DA0-002 Data Concepts and Environments Practice Question
A database has a table 'Orders' with columns OrderID (PK), CustomerID, OrderDate, and a table 'OrderDetails' with OrderID (FK), ProductID, Quantity. To ensure that every OrderID in OrderDetails exists in Orders, which integrity constraint is enforced?
Answer choices
Why each option matters
Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.
Correct answer & explanation
✓
Referential integrity
Referential integrity, enforced via a foreign key constraint, ensures that values in the foreign key column (OrderID in OrderDetails) match values in the primary key column of the referenced table (Orders).
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
Entity integrity
Why it's wrong here
Entity integrity ensures primary keys are unique and not null.
- ✗
Domain integrity
Why it's wrong here
Domain integrity ensures values fall within a domain.
- ✗
User-defined integrity
Why it's wrong here
User-defined integrity applies business rules.
- ✓
Referential integrity
Why this is correct
Referential integrity ensures foreign key values match primary key values.
Go deeper
Related to this question
About these practice questions
This DA0-002 question is part of Courseiva's 986-question bank — original exam-style content with full explanations and wrong-answer analysis, never real exam questions or exam dumps. Learn why practice questions differ from exam dumps →
JA
Written by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
This DA0-002 practice question is part of Courseiva's free CompTIA certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the DA0-002 exam.