Understanding databases Flashcards

General questions to test knowledge about databases (19 cards)

1
Q

What is a database?

A

A structured data storage designed for ease of data accessibility, manipulation, and manageability.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Why use a database instead of storing data in files?

A

Databases support data integrity, allow constraints, enable efficient querying, and provide better security through authentication and authorization.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is structured data?

A

Data that can be organized in tables, such as relational databases, spreadsheets, or logs.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Give 3 real-world examples of structured data.

A

Relational database with customer records, Excel employee spreadsheet, bank transaction log.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is unstructured data?

A

Data that lacks a predefined format, and cannot be organized in tables.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Give 3 real-world examples of unstructured data.

A

Social media posts, scanned PDF contracts, audio files from support calls.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What are ACID properties in databases?

A

Atomicity, Consistency, Isolation, Durability — they ensure reliable transactions.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What does Atomicity ensure?

A

That a transaction fully succeeds or fully aborts — no partial changes.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What does Consistency ensure?

A

That the data remains valid before and after a transaction.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What does Isolation ensure?

A

That transactions do not interfere with each other.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What does Durability ensure?

A

That once committed, a transaction’s changes are permanently saved.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Why are queries better than file system searches?

A

Because queries allow targeted retrieval, while file systems often require full scans.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Why are constraints important in databases?

A

They enforce data correctness, preventing invalid or absurd entries.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

How do databases offer better security than files?

A

Through authentication and authorization mechanisms.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

List four main types of databases.

A

Relational, NoSQL, Graph, Object-Oriented.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Which type of database uses tables and keys?

A

Relational databases.

17
Q

Which type of database is best for unstructured or flexible data?

A

NoSQL databases.

18
Q

Which database type focuses on relationships and connections?

A

Graph databases.

19
Q

Which database stores data like object-oriented code?

A

Object-Oriented databases.