Relational databases use certain features to ensure data stays accurate and consistent. Which feature best explains this strength?
Think about how databases keep data reliable during multiple operations.
Relational databases use ACID transactions to ensure that all operations complete fully or not at all, preserving data integrity.
Relational databases allow users to retrieve data using powerful queries. Which feature enables this?
Think about how you combine data from multiple tables.
SQL supports JOINs that combine rows from two or more tables based on related columns, enabling complex queries.
Relational databases are strong but face challenges when scaling out. What is a typical issue?
Think about what happens when data is spread across many servers.
When scaling horizontally, relational databases must keep data consistent across nodes, which is complex and can impact performance.
Relational databases prioritize strong consistency. What is a common tradeoff they make?
Consider the CAP theorem and what happens when network issues occur.
To maintain strong consistency, relational databases may sacrifice availability during network partitions, following the CAP theorem.
A relational database server has 16 CPU cores and 64 GB RAM. Each transaction requires 50 MB RAM and 1 CPU core for processing. What is the maximum number of concurrent transactions it can handle without swapping or CPU contention?
Calculate limits based on CPU cores and RAM separately, then choose the smaller number.
CPU limits concurrency to 16 (cores). RAM allows 64 GB (65536 MB) / 50 MB ≈ 1310 transactions. The bottleneck is CPU, so max concurrency is 16.