What is an index and how does it affect database performance in the context of data modeling?

Heisenbug logo
TheHeisenBug

Search

Search across questions, learning content, and hands-on projects

Ace Your Next Tech Interview

5,986+ interview questions across 87 technologies — with expert answers, advanced search, AI-powered assistance, personal highlights, structured learning paths, and hands-on practice projects.

5,986+Questions & Answers
87Technologies
AdvancedSearch
Built-inAsk AI
PersonalHighlights
StructuredLearning Paths
Hands-onPractice Projects

Lifetime Access

One-time payment. No subscriptions. Unlock everything, forever.

$19.90USD

or R$49.90 BRL

FeatureFreePremium
Question titlesAllAll
Answers per topicTop 5All
Learning chaptersFirst 5All
Practice projectsFirst 3All
Highlights
Ask AI
Read tracking
Search

Database Modeling Interview Questions

  1. [JUNIOR] What are the three types of data models: conceptual, logical, and physical?
  2. [JUNIOR] What is the difference between a primary key and a foreign key?
  3. [JUNIOR] What is data modeling and why is it important?
  4. [JUNIOR] What is an Entity-Relationship Diagram (ERD) and why is it useful?
  5. [MID] What are the different normal forms (1NF, 2NF, 3NF) and what does each enforce?
  6. [MID] What is denormalization and when would you use it?
  7. [JUNIOR] What are entities, attributes, and relationships in data modeling?
  8. [MID] What are the trade-offs between normalization and denormalization?
  9. [MID] How do you model a many-to-many relationship in a relational database?
  10. [MID] What is the difference between OLTP and OLAP systems and how does each affect data modeling?
  11. [MID] What are one-to-one, one-to-many, and many-to-many relationships and when would you use each?
  12. [MID] What is the difference between a star schema and a snowflake schema?
  13. [JUNIOR] What is normalization and why is it important in database design?
  14. [JUNIOR] What is cardinality in database modeling?
  15. [JUNIOR] What is referential integrity and why does it matter?
  16. [JUNIOR] What is a relational database and how does it organize data?
  17. [MID] What is a surrogate key and when should you use it instead of a natural key?
  18. [MID] How do you model hierarchical data in a relational database?
  19. [MID] What are fact tables and dimension tables in data warehousing?
  20. [MID] How do SQL and NoSQL databases differ from a data modeling perspective?
  21. [MID] What is an index and how does it affect database performance in the context of data modeling?
  22. [SENIOR] How do you design a data model for high query performance in a large-scale system?
  23. [SENIOR] How do you handle slowly changing dimensions (SCDs) and what are the different types?
  24. [SENIOR] How does the CAP theorem relate to database design decisions?
  25. [JUNIOR] What is the difference between an entity and an attribute?
  26. [JUNIOR] What is a composite key and when would you use one?
  27. [JUNIOR] What does the term "data redundancy" mean and how can it be minimized?
  28. [MID] What is dimensional modeling and how is it used in data warehousing?
  29. [MID] What are supertypes and subtypes (inheritance hierarchies) in data modeling?
  30. [MID] What is the difference between horizontal and vertical partitioning?
  31. [MID] What is the difference between structured, semi-structured, and unstructured data?
  32. [MID] How do you handle multi-valued attributes in a relational database?
  33. [SENIOR] How do you approach modeling time-dependent or historical data?
  34. [SENIOR] How would you approach data modeling for a NoSQL database compared to a relational database?
  35. [SENIOR] What are common data modeling anti-patterns and how do you avoid them?
  36. [SENIOR] What are the key considerations when designing a data model for data privacy compliance (e.g., GDPR)?
  37. [JUNIOR] What is a database schema and how does it differ from a database instance?
  38. [MID] What are recursive relationships and how do you model them?
  39. [MID] What is a data dictionary and what role does it play in data modeling?
  40. [MID] What is metadata and what is its significance in data modeling?
  41. [MID] What are the different types of dimensions (conformed, degenerate, junk, role-playing) in data warehousing?
  42. [MID] What are some common mistakes encountered in data modeling?
  43. [SENIOR] When would you use an Entity-Attribute-Value (EAV) model and what are its trade-offs?
  44. [SENIOR] How do you approach data modeling in a microservices architecture to ensure data consistency?
  45. [SENIOR] How do you ensure data quality and consistency when integrating data from multiple disparate sources?
  46. [SENIOR] How do you approach data modeling in an agile environment with rapidly changing requirements?
  47. [SENIOR] How do you design a data model to track the provenance and lineage of data changes over time?
  48. [EXPERT] How would you design a data model for a real-time fraud detection system balancing performance and accuracy?
  49. [EXPERT] How do you optimize a data model for efficient query performance in a petabyte-scale data warehouse?
  50. [JUNIOR] What are the common data types used in database modeling and how do you choose between them?
  51. [JUNIOR] What is the role of a data modeler in a software development team?
  52. [MID] What is a data mart and how does it differ from a data warehouse?
  53. [MID] What is a factless fact table and when would you use one?
  54. [SENIOR] How do you perform reverse engineering on an existing database schema to create a data model?
  55. [SENIOR] How would you design a data model for an e-commerce platform with complex product variations and pricing rules?
  56. [EXPERT] How do you ensure data consistency across multiple disparate systems when building an enterprise data warehouse?
  57. [EXPERT] How would you model data for a machine learning pipeline considering feature engineering and model training requirements?
  58. [SENIOR] How does data modeling for a data lake differ from traditional data warehousing?
  59. [SENIOR] How do you model data for a system that needs to support both real-time and batch processing?
  60. [EXPERT] How would you design a unified data model for customer data across sales, marketing, and support departments with conflicting schemas?
  61. [EXPERT] How would you design a data model for a global organization with varying data privacy regulations across multiple jurisdictions?
  62. [EXPERT] How would you model data for a distributed event-sourced system with CQRS?
  63. [EXPERT] How does temporal database modeling (bitemporal, valid-time, transaction-time) differ from standard relational modeling and when would you use it?
  64. [EXPERT] How do you handle schema evolution in a polyglot persistence environment without breaking downstream consumers?