Introduction to databases Flashcards

1
Q

What is the primary purpose of a database in a software application?

a) To enhance graphical user interfaces
b) To store and manage data on disk
c) To debug application code
d) To execute operating system commands

A

b) To store and manage data on disk

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

What type of database management systems (DBMS) were introduced in the 1960s?

a) Relational and NoSQL
b) Hierarchical and network
c) Distributed and columnar
d) Flat file and XML-based

A

b) Hierarchical and network

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

Who is credited with the invention of the relational database management system (RDBMS)?

a) Dr. Eric Brewer
b) Dr. Edgar F. Codd
c) Dr. Armando Fox
d) Larry Ellison

A

b) Dr. Edgar F. Codd

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

What was the initial name for SQL, the query language developed by IBM?

a) Relational Query Language (RQL)
b) Structured English Query Language (SEQUEL)
c) Advanced Database Language (ADL)
d) Query and Analysis Language (QAL)

A

b) Structured English Query Language (SEQUEL)

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

What was Oracle V2 known for when released in 1979?

a) Being the first distributed database
b) Introducing vertical scaling
c) Being the first commercially-available RDBMS
d) Supporting hierarchical data storage

A

c) Being the first commercially-available RDBMS

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

Which concept from the CAP theorem states that distributed systems cannot achieve all three properties simultaneously?

a) Availability, scalability, and replication
b) Consistency, availability, and partition tolerance
c) Fault tolerance, availability, and consistency
d) Replication, partition tolerance, and scalability

A

b) Consistency, availability, and partition tolerance

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

What process involves adding more CPU, RAM, or disk to a single database system to meet resource demands?

a) Horizontal scaling
b) Vertical scaling
c) Cluster scaling
d) Network scaling

A

b) Vertical scaling

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

What distinguishes NoSQL databases from traditional RDBMSs?

a) They always prioritize consistency over availability
b) They are designed for horizontal scaling across machines
c) They do not store structured data
d) They require special hardware configurations

A

b) They are designed for horizontal scaling across machines

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

What inspired the development of distributed or non-relational databases in the early 2000s?

a) The rise of SQL-based systems
b) The demand for better graphical interfaces
c) Large-scale internet applications requiring scalability
d) The decline of RDBMS performance

A

c) Large-scale internet applications requiring scalability

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

What is the key difference between vertical and horizontal scaling?

a) Vertical scaling adds resources to one system, while horizontal scaling uses multiple systems
b) Vertical scaling is faster, but horizontal scaling is less reliable
c) Vertical scaling applies only to NoSQL databases, while horizontal scaling is for RDBMS
d) Vertical scaling improves partition tolerance, while horizontal scaling does not

A

a) Vertical scaling adds resources to one system, while horizontal scaling uses multiple systems

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

What does the term ‘partition tolerance’ mean in the context of the CAP theorem?

a) A system can maintain operations despite network failures
b) A database can process partitions faster
c) It ensures data consistency across all nodes
d) It prioritizes availability over consistency

A

a) A system can maintain operations despite network failures

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

Why are NoSQL databases well-suited for cloud environments?

a) They minimize the need for storage
b) They can add machine instances easily through horizontal scaling
c) They depend on custom operating systems
d) They avoid the use of structured data models

A

b) They can add machine instances easily through horizontal scaling

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

Which of the following is an example of a NoSQL database advantage?

a) Supports SQL queries for all operations
b) Can quickly scale out by adding more machines
c) Requires less complex architecture than RDBMS
d) Maintains strict consistency across all nodes

A

b) Can quickly scale out by adding more machines

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

What is a key factor when selecting a database for a new application?

a) The database’s popularity
b) The specific goals and requirements of the application
c) The availability of cloud hosting
d) Whether it supports only vertical scaling

A

b) The specific goals and requirements of the application

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

What is the most common approach today in large enterprises regarding database use?

a) Exclusively using RDBMS databases
b) Combining NoSQL and RDBMS databases as needed
c) Relying on flat-file storage
d) Using only hierarchical database systems

A

b) Combining NoSQL and RDBMS databases as needed

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