Courseiva

FC0-U71 Data and Database Fundamentals Practice Question

A junior administrator is reviewing a database schema and must identify which statements about primary keys and foreign keys are accurate. (Choose two.)

⚠ Common exam trap

The trap here is assuming a table can have several primary keys or that a foreign key must be unique, when in fact only one primary key exists per table and foreign keys are routinely repeated.

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

✓

A foreign key value must match an existing primary key value in the referenced table, or be NULL if the column allows it.

A primary key uniquely identifies rows and forbids NULLs, while a foreign key must either match an existing referenced key or be NULL when the column allows it. These two rules together enforce entity integrity and referential integrity, which are the cornerstones of a reliable relational schema.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • ✓

    A foreign key value must match an existing primary key value in the referenced table, or be NULL if the column allows it.

    Why this is correct

    This is accurate because referential integrity requires every non-null foreign key value to correspond to an existing referenced key. The exception is when the foreign key column permits NULL, which represents the absence of a relationship, such as an unassigned order. This rule prevents orphaned rows that point to nonexistent parent records.

  • ✓

    A primary key uniquely identifies each row in its table and cannot contain NULL values.

    Why this is correct

    This is accurate because a primary key enforces uniqueness across all rows and, by definition, rejects NULLs so every row has a known identifier. Databases implement this with a unique constraint plus a not-null requirement. This guarantee is what allows other tables to reference a specific row reliably, making it a foundational rule of relational design.

  • ✗

    A primary key value can be changed freely at any time without affecting related tables.

    Why it's wrong here

    Changing a primary key value can break or cascade to every foreign key that references it, depending on whether ON UPDATE CASCADE or ON UPDATE RESTRICT is defined. Most designs treat primary keys as stable and rarely modified. Claiming it can change freely ignores referential integrity, so this statement is false.

  • ✗

    A foreign key must be unique within its own table.

    Why it's wrong here

    Foreign keys are commonly duplicated, which is how one-to-many relationships work: many child rows can reference the same parent key. Requiring uniqueness would force a one-to-one relationship and break normal designs such as many orders sharing one customer. Uniqueness is a property of primary keys and unique constraints, not foreign keys.

  • ✗

    A table can contain multiple primary keys to improve query performance.

    Why it's wrong here

    A table may have only one primary key, though that key can span multiple columns as a composite key. Adding a second primary key is not permitted because it would create two competing unique identifiers for the same row. Performance improvements come from indexes or unique constraints, not from declaring extra primary keys.

About these practice questions

This FC0-U71 question is part of Courseiva's 988-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 →

How Courseiva writes practice questions · Editorial policy

JA

Written and reviewed by Johnson Ajibi, MSc IT Security

Senior Network & Security Engineer · founder of Courseiva

Last reviewed September 2026 · checked against the official CompTIA exam blueprint

This FC0-U71 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 FC0-U71 exam.