Indexing & Denormalization Strategies Quiz

Q1. Which index structure is optimized for high write throughput by batching writes and later merging data (compaction)?




Q2. Which type of index is typically used for full-text search, storing a mapping from terms to the documents or rows that contain them?




Q3. Which of the following best describes a covering index?




Q4. Which is an example of a composite index?




Q5. What is a partial index in a relational database?




Q6. What is a likely effect of having many secondary indexes on a heavily updated (write-intensive) table?




Q7. In an eventually consistent database, what issue can arise with secondary indexes?




Q8. Why might a database design deliberately denormalize data?




Q9. Which index type is most suitable for efficiently querying a JSONB column for a specific key-value pair in PostgreSQL?




Q10. How can you index a computed value or expression (e.g. LOWER(column)) in PostgreSQL?




Q11. What do database statistics (e.g., histograms on column data) help the query optimizer do?




Q12. What does the SQL EXPLAIN command do?




Q13. Which maintenance task can help reduce index bloat in a PostgreSQL database?




Q14. If the 99th percentile (p99) query latency is high while the average latency remains low, what does this suggest?




Q15. Which of the following accurately describes a difference between a DynamoDB Global Secondary Index (GSI) and a Local Secondary Index (LSI)?




system-design