Understanding databases Flashcards

General questions to test knowledge about databases

1
Q

What is a database?

A

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

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

What describes a structured data storage designed for accessibility and manipulation?

A

A database.

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

Why do businesses prefer databases over file storage?

A

Because databases ensure data integrity, enable efficient querying, apply constraints, and offer security through authentication and authorization.

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

If you want data that is easy to access, manage, and manipulate, what should you use?

A

A database.

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

Explain in your own words why a database is better than using files for storing important business data.

A

Databases enforce rules, make data retrieval faster, prevent errors, and secure the data.

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

What is structured data?

A

Data that can be organized in tables, like relational databases, Excel spreadsheets, or bank transaction logs.

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

Give three examples of structured data.

A

Relational database customer records, Excel employee salary spreadsheet, Bank transaction log.

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

What kind of data fits well in relational databases?

A

Structured data with defined formats and fields.

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

How does structured data help with analysis?

A

It is easy to query, aggregate, and perform analytics using SQL.

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

What is unstructured data?

A

Data that does not fit into tables and has no fixed format.

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

Give three examples of unstructured data.

A

Social media posts, scanned contracts in PDF, MP3 audio files of customer service calls.

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

Why can’t unstructured data be directly queried in a relational database?

A

Because it lacks a predefined format that fits table structures.

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

How is unstructured data typically handled?

A

Using NoSQL databases or specialized data processing tools.

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

List four advantages of using a database over file storage.

A

Data integrity, efficient querying, constraint enforcement, and improved security.

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

What does the ACID principle stand for?

A

Atomicity, Consistency, Isolation, Durability.

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

What does Atomicity ensure in databases?

A

That transactions fully succeed or fully abort, preventing partial data updates.

17
Q

What does Consistency ensure in databases?

A

That the data remains valid and correct before and after a transaction.

18
Q

What does Isolation ensure in databases?

A

That transactions do not interfere with each other.

19
Q

What does Durability ensure in databases?

A

That completed transactions are permanently saved.

20
Q

What happens in a file system if there’s an error in data entry?

A

The system saves whatever is entered, even if it’s incorrect, because file systems lack constraints.

21
Q

Why are queries more efficient than scanning files?

A

Queries access only the needed data directly, while file scanning requires reading the whole file.

22
Q

How does a database provide better security than a file system?

A

Databases use authentication and authorization to control data access.

23
Q

Why is it risky to store sensitive data in plain files?

A

Because file systems lack robust access control and integrity checks.

24
Q

Name four main types of databases.

A

Relational databases, NoSQL databases, Graph databases, Object-oriented databases.

25
Q

Which type of database is best for relationships between entities?

A

Relational databases.

26
Q

Which database type is preferred for flexible, unstructured data?

A

NoSQL databases.

27
Q

Which database type focuses on relationships and connections between data points?

A

Graph databases.

28
Q

What database type stores data as objects, similar to object-oriented programming?

A

Object-oriented databases.