Curioustab
Aptitude
General Knowledge
Verbal Reasoning
Computer Science
Interview
Take Free Test
Aptitude
General Knowledge
Verbal Reasoning
Computer Science
Interview
Take Free Test
Data Models into Database Designs Questions
Database design principle check:\n“The DBMS allows surrogate keys to be changed.”\nDecide whether this statement is accurate, considering how surrogate keys are defined and used in relational systems.
Referential integrity behavior:\n“For every relationship, there are six possible referential integrity actions.”\nJudge the accuracy of this claim about ON UPDATE/ON DELETE behaviors.
Parent side in a 1:N relationship:\n“In one-to-many (1:N) relationships, which entity becomes the parent is arbitrary.”\nChoose the most accurate evaluation.
Implementing relationships:\n“A foreign key is used to implement relationships between tables.”\nEvaluate the statement’s correctness in standard relational modeling.
Primary key nullability and necessity:\n“All primary keys are required.”\nDecide if this statement accurately reflects relational rules for primary keys.
Optionality and insertion order:\n“When the parent entity is required, a new parent row can always be inserted.”\nAssess whether this statement aligns with relational integrity and typical DBMS behavior.
Managing parent changes when children depend on the parent:\n“When the parent entity is required, cascading updates and cascading deletions should be allowed or parent actions should be prohibited.”\nChoose the best assessment.
Modeling many-to-many (M:N) relationships:\n“An intersection (associative) table is required to represent M:N relationships.”\nDetermine whether this is accurate for relational schemas.
Primary key placement in one-to-one (1:1) relationships:\n“In a 1:1 relationship, the primary key placement is arbitrary.”\nEvaluate this statement with respect to optionality and design practice.
Counting minimum cardinality patterns:\n“For every relationship, there are six possible sets of minimum cardinalities.”\nJudge the correctness of this statement for binary relationships.
In relational database design, does the term “cascading updates” mean that child rows are automatically deleted when a parent row is deleted, or does it specifically refer to propagating key value changes from the parent to matching foreign keys in child rows?
In data modeling, do surrogate keys (system-generated identifiers) carry meaningful information for end users, or are they intentionally devoid of business meaning?
If the parent entity is required by a foreign key constraint, can a new child row always be inserted unconditionally, or must a matching parent row already exist (or be created in the same transaction)?
In transforming an entity–relationship (ER) model to a relational schema, is it correct that each entity type is represented as a separate table (with relationships mapped via keys or associative tables)?
If the parent entity is required and the parent uses a surrogate key, can update actions on referential integrity be ignored, or must update behavior still be considered explicitly?
Primary key design guidance: is an ideal primary key short in length, numeric (or compact), and very stable (seldom changing over time)?
Association (intersection) tables in many-to-many relationships: are such tables identifying (ID-dependent) on both of their parent tables?
Are the terms “alternate key” and “candidate key” truly synonymous, or is an alternate key specifically a candidate key that was not chosen as the primary key?
Mandatory child participation: if the child entity is required, are we prevented from creating a new parent row unless a corresponding child row is also created (typically within the same transaction)?
Is (STREET_ADDRESS, CITY, STATE, ZIP) an ideal choice for a primary key, or is such a multi-attribute natural key typically long, mutable, and therefore not recommended?
1
2