Data Modeling & Transaction Mechanics Quiz

Q1. An application requires complex analytical queries on large datasets with relatively infrequent updates. To optimize query performance, how should the data be modeled?




Q2. In which scenario is a highly normalized database schema (minimal redundancy) more appropriate than a denormalized one?




Q3. Which type of index is generally most suitable for efficiently retrieving records within a continuous range (e.g., all entries in a date range)?




Q4. An application frequently retrieves individual records by a unique identifier (exact matches only) on a very large table. Which indexing approach offers the fastest lookups for this use case?




Q5. Which of the following scenarios best illustrates a **phantom read** anomaly in transaction processing?




Q6. In SQL database isolation levels, which level must be used to completely prevent phantom reads (ensuring no new rows can appear in a transaction’s repeated query)?




Q7. For a system where data conflicts between concurrent transactions are rare, which concurrency control method tends to yield the best performance?




Q8. In a high-contention environment where many transactions frequently try to update the same records, which concurrency control strategy will maintain correctness while minimizing performance loss?




Q9. What is the primary purpose of Write-Ahead Logging (WAL) in database systems?




Q10. Which of the following is a typical use case for implementing a database trigger?




Q11. Which statement is true about a standard (non-materialized) database view?




Q12. For handling a one-to-many relationship in a document-oriented NoSQL database (e.g., MongoDB) with emphasis on read performance, which data modeling approach is commonly used?




Q13. What does *eventual consistency* guarantee in a distributed NoSQL system?




Q14. A SQL query is running very slowly on a large table because it’s scanning the entire table to find matching rows. What is the most likely cause of this performance bottleneck?




Q15. In a distributed NoSQL database cluster, what is a common cause of one node (or a subset of nodes) becoming a performance bottleneck?




system-design