Google
PROFESSIONAL-DATA-ENGINEER · Question #223
You need to create a new transaction table in Cloud Spanner that stores product sales data. You are deciding what to use as a primary key. From a performance perspective, which strategy should you cho
Sign in or unlock PROFESSIONAL-DATA-ENGINEER to reveal the answer and full explanation for question #223. The question stem and answer options stay visible for context.
Submitted by minji_kr· Mar 30, 2026Designing data processing systems
Question
You need to create a new transaction table in Cloud Spanner that stores product sales data. You are deciding what to use as a primary key. From a performance perspective, which strategy should you choose?
Options
- AThe current epoch time
- BA concatenation of the product name and the current epoch time
- CA random universally unique identifier number (version 4 UUID)
- DThe original order identification number from the sales system, which is a monotonically increasing integer
Unlock PROFESSIONAL-DATA-ENGINEER to see the answer
You've previewed enough free PROFESSIONAL-DATA-ENGINEER questions. Unlock PROFESSIONAL-DATA-ENGINEER for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.
Topics
#Cloud Spanner#primary key design#hotspot avoidance#UUID