Courseiva
Data Concepts and EnvironmentseasyMultiple SelectObjective-mapped

DA0-002 Data Concepts and Environments Practice Question

A data analyst is working with a dataset that includes customer names, email addresses, and purchase history. The analyst wants to ensure that each customer is uniquely identified. Which TWO database concepts should be used to enforce uniqueness and link related data?

⚠ Common exam trap

Candidates often confuse normalization with a constraint or think an index enforces uniqueness, when only primary and foreign keys provide the required referential integrity and unique identification.

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

Foreign key

A primary key uniquely identifies each row in a table, ensuring no duplicate customer records. A foreign key links related data across tables by referencing the primary key of another table, enforcing referential integrity. Together, they guarantee uniqueness and enable relational joins between customer and purchase history tables.

Answer analysis

Option-by-option breakdown

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

  • Foreign key

    Why this is correct

    A foreign key links purchase history to customers, maintaining relationships.

  • Normalization

    Why it's wrong here

    Normalization reduces redundancy but does not directly enforce uniqueness or relationships.

  • View

    Why it's wrong here

    A view is a virtual table, not used for uniqueness or relationships.

  • Primary key

    Why this is correct

    A primary key ensures each customer record is unique.

  • Index

    Why it's wrong here

    An index improves query performance but does not enforce uniqueness or relationships.

About these practice questions

Courseiva writes every DA0-002 question from scratch — 986 in total, each with an explanation and a wrong-answer breakdown. None are copied from real exams or dumps. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

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.