Database Architecture Flashcards

(72 cards)

1
Q

What is deployment topology?

A

The arrangement of hardware, software, and network components in a system

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

What factors influence deployment topology choice?

A

Scalability, performance, reliability, application type

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

What is single-tier architecture?

A

All components run on one machine

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

What components exist in single-tier architecture?

A

User interface, application logic, database

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

Give one disadvantage of single-tier architecture

A

Poor scalability or security

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

What is two-tier architecture?

A

Client-server architecture

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

What are the two layers in two-tier architecture?

A

Client layer and server layer

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

Where is the database in two-tier architecture?

A

On the server tier

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

How does the client connect to the database?

A

Using database APIs or drivers such as JDBC or ODBC

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

What is DBMS?

A

Database Management System

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

Name three DBMS layers

A

Data access layer, database engine layer, storage layer

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

What is three-tier architecture?

A

Client, application server, and database server layers

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

What does the presentation layer do?

A

Provides the user interface

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

What does the application layer do?

A

Handles business logic and communication with the database

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

Why is three-tier architecture used in production?

A

Better security, scalability, and performance

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

Why is direct access to database servers restricted?

A

Security, performance, maintainability

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

What is cloud-based database deployment?

A

Database hosted in a cloud environment

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

Give one advantage of cloud databases

A

Accessible anywhere, no installation, scalable

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

What is required to access a cloud database?

A

Internet connection

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

Where is the application server in cloud deployment?

A

In the cloud environment

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

Which topology is most secure for enterprise use?

A

Three-tier or cloud-based architecture

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

What is distributed database architecture?

A

A database system using multiple machines to share storage and processing

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

Why use distributed databases?

A

Scalability, high availability, fault tolerance, performance

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
25
What is a database cluster?
A group of connected database servers working together
26
What is shared disk architecture?
Multiple servers accessing the same storage
27
What is a benefit of shared disk architecture?
High availability and parallel processing
28
What happens if a server fails in shared disk architecture?
Clients are rerouted to another server
29
What is shared nothing architecture?
Each server has its own storage and compute resources
30
What techniques does shared nothing architecture use?
Replication and partitioning
31
What is a benefit of shared nothing architecture?
High scalability and fault tolerance
32
What are combination architectures?
Architectures mixing shared disk, shared nothing, replication, or partitioning
33
What is database replication?
Copying data changes to other servers
34
What is a high availability (HA) replica?
A replica in the same location for failover
35
What is a disaster recovery (DR) replica?
A geographically distant replica for major outages
36
Give one benefit of replication
Load balancing or failover protection
37
What is database partitioning?
Splitting a table into smaller logical parts
38
What is sharding?
Storing partitions of data on separate servers
39
What resources does each shard have?
CPU, memory, storage
40
How are queries handled in sharding?
Processed in parallel and results combined
41
What happens when workload increases in sharding?
New shards can be added
42
Where are partitioning and sharding commonly used?
Data warehousing and business intelligence
43
What is fault tolerance?
The ability to continue operating after failures
44
What is high availability?
System remains accessible during failures
45
What are the three main categories of database users?
DBAs & data engineers, data scientists & analysts, application developers
46
What is the main role of a DBA?
Manage, secure, monitor, and optimise databases
47
What is the main role of a data engineer?
Build and maintain data systems and pipelines
48
What is the main role of a data scientist?
Analyse data and build models
49
What is the main role of a business analyst?
Create reports and business insights
50
What is the main role of an application developer?
Build applications that read and write to databases
51
Name three tools used by DBAs
GUI tools, command-line tools, APIs
52
Give an example of a GUI database tool
Oracle SQL Developer
53
Why are command-line tools still used by DBAs
Automation and advanced control
54
What is an example of an interactive SQL shell?
sqlplus or db2 clp
55
Why do DBAs use APIs?
For automated administrative tasks
56
Name two data science tools
Jupyter, R Studio
57
Name two business intelligence tools
Power BI, Tableau
58
How do analysts connect to databases?
SQL interfaces and APIs
59
Do analysts usually write raw SQL?
Often abstracted by tools
60
Name three programming languages used by developers
Java, Python, C#
61
What are ODBC and JDBC?
Database connection APIs
62
What is a REST API used for?
Accessing cloud databases
63
What is an ORM framework?
A tool that maps objects to database tables
64
Give an example of a Python ORM
Django ORM
65
Give an example of a Java ORM
Hibernate
66
Give an example of a .NET ORM
Entity Framework
67
Give an example of a Ruby ORM
ActiveRecord
68
Give an example of a JavaScript ORM
Sequelize
69
Why do developers prefer ORM frameworks?
Simpler coding and less SQL
70
Which users mostly use GUI tools?
DBAs and data engineers
71
Which users mostly use BI tools?
Business analysts
72
Which users mostly use ORMs?
Application developers