A data analyst is tasked with merging customer records from two separate databases into a single, consolidated table. Each source database uses an auto-incrementing integer for its primary key, which has resulted in key collisions during the merge process. To ensure every record is unique regardless of its original source, which data type is the best choice for the new primary key in the consolidated table?
The correct answer is GUID/UUID. A Globally Unique Identifier (GUID) or Universally Unique Identifier (UUID) is a 128-bit number designed to be unique across different systems and databases. Its primary purpose is to allow for decentralized generation of identifiers that are, for all practical purposes, guaranteed to be unique, making it the ideal solution for preventing key collisions when consolidating data from multiple sources.
An Integer is incorrect because using an auto-incrementing integer is the source of the problem described in the scenario.
A Composite Key is a plausible but less optimal solution. While combining the original key with a source system identifier would create uniqueness, it results in a more complex key structure that is harder to manage and join on compared to a single GUID/UUID column.
Datetime is incorrect because a timestamp is not guaranteed to be unique. In a high-volume system, multiple records could be created at the exact same time, leading to collisions.
Ask Bash
Bash is our AI bot, trained to help you pass your exam. AI Generated Content may display inaccurate information, always double-check anything important.
Why are GUIDs/UUIDs considered globally unique?
Open an interactive chat with Bash
How does a composite key work compared to a GUID/UUID?
Open an interactive chat with Bash
What are the trade-offs of using GUID/UUID as a primary key?
Open an interactive chat with Bash
CompTIA Data+ DA0-002 (V2)
Data Concepts and Environments
Your Score:
Report Issue
Bash, the Crucial Exams Chat Bot
AI Bot
Loading...
Loading...
Loading...
Pass with Confidence.
IT & Cybersecurity Package
You have hit the limits of our free tier, become a Premium Member today for unlimited access.
Military, Healthcare worker, Gov. employee or Teacher? See if you qualify for a Community Discount.
Monthly
$19.99 $11.99
$11.99/mo
Billed monthly, Cancel any time.
$19.99 after promotion ends
3 Month Pass
$44.99 $26.99
$8.99/mo
One time purchase of $26.99, Does not auto-renew.
$44.99 after promotion ends
Save $18!
MOST POPULAR
Annual Pass
$119.99 $71.99
$5.99/mo
One time purchase of $71.99, Does not auto-renew.
$119.99 after promotion ends
Save $48!
BEST DEAL
Lifetime Pass
$189.99 $113.99
One time purchase, Good for life.
Save $76!
What You Get
All IT & Cybersecurity Package plans include the following perks and exams .