Bird
0
0

Which of the following best describes the row key design for efficient time-series data retrieval in Bigtable?

easy📝 Conceptual Q2 of 15
GCP - Cloud Firestore and Bigtable
Which of the following best describes the row key design for efficient time-series data retrieval in Bigtable?
AUse a random UUID as the row key
BUse a timestamp as the first part of the row key
CUse a device ID followed by a reversed timestamp
DUse only the device ID as the row key
Step-by-Step Solution
Solution:
  1. Step 1: Understand row key impact on data access

    Row keys determine how data is stored and retrieved. For time-series, sorting by device and time helps efficient queries.
  2. Step 2: Why reversed timestamp?

    Reversing timestamp allows recent data to be stored close together, speeding up queries for latest data.
  3. Final Answer:

    Use a device ID followed by a reversed timestamp -> Option C
  4. Quick Check:

    Row key design = Device ID + reversed timestamp [OK]
Quick Trick: Reverse timestamp to get recent data quickly [OK]
Common Mistakes:
  • Starting row key with timestamp causes hot-spotting
  • Using random UUID breaks data locality
  • Using only device ID limits time-based queries

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More GCP Quizzes