Courseiva
Data GovernancemediumMultiple ChoiceObjective-mapped

DA0-002 Data Governance Practice Question

Exhibit

Refer to the exhibit.
ERROR: Duplicate entry '12345' for key 'PRIMARY'
Query: INSERT INTO customers (customer_id, name, email) VALUES (12345, 'John Doe', 'jdoe@example.com');

Refer to the exhibit. A data analyst receives this error when running a data load script. What is the most likely cause?

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

The customer_id 12345 already exists in the table

The error message states 'Duplicate entry '12345' for key 'PRIMARY'', indicating that a record with customer_id 12345 already exists in the table. Option A (email too long) would produce a data truncation error, not a duplicate key error. Option B (connection lost) would result in a connection timeout or similar error. Option D (name field null) could cause a constraint violation if the column is not nullable, but the specific error here is a primary key violation.

Answer analysis

Option-by-option breakdown

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

  • The email field is too long

    Why it's wrong here

    This would cause a different error, not a primary key violation.

  • The database connection is lost

    Why it's wrong here

    Connection loss would give a different error message.

  • The customer_id 12345 already exists in the table

    Why this is correct

    The error indicates duplicate primary key value.

  • The name field is null

    Why it's wrong here

    Null values in non-key fields do not cause primary key errors.

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 →

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.