A developer is building an application that requires a rigid structure where data must be organized into tables with predefined columns and data types. Which database model is characterized by this requirement for a predefined schema?
The correct answer is a relational database. Relational databases use a "schema-on-write" model, which means the structure (schema), including tables, columns, data types, and relationships, must be defined before data is inserted. This approach ensures data integrity and consistency. Non-relational databases, such as document or key-value databases, are known for their flexible or dynamic schemas ("schema-on-read"), allowing data to be stored without a strictly enforced, predefined structure.
Ask Bash
Bash is our AI bot, trained to help you pass your exam. AI Generated Content may display inaccurate information, always double-check anything important.
What is a database schema?
Open an interactive chat with Bash
Why do we need to define relationships between tables in a schema?
Open an interactive chat with Bash
What could happen if a database schema is not defined before data storage?