0
0
GCPcloud~20 mins

Bigtable schema design in GCP - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Bigtable Schema Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate
2:00remaining
Understanding Row Key Design in Bigtable
Why is it important to design row keys in Bigtable to avoid sequential patterns?
ABecause sequential row keys cause data to be stored in multiple tables automatically.
BBecause sequential row keys increase storage costs significantly.
CBecause sequential row keys prevent data from being compressed.
DBecause sequential row keys can cause hotspotting, leading to uneven load on nodes.
Attempts:
2 left
💡 Hint
Think about how Bigtable distributes data across nodes.
query_result
intermediate
2:00remaining
Predicting Data Retrieval Order
Given a Bigtable with row keys formatted as 'userID#timestamp', what will be the order of rows returned when scanning the table?
ARows will be returned sorted by userID ascending, then timestamp ascending.
BRows will be returned in random order.
CRows will be returned sorted by timestamp ascending, then userID ascending.
DRows will be returned sorted by userID descending, then timestamp descending.
Attempts:
2 left
💡 Hint
Remember how Bigtable sorts rows lexicographically by row key.
📝 Syntax
advanced
2:00remaining
Identifying Invalid Row Key Design
Which of the following row key designs is invalid because it can cause performance issues in Bigtable?
AUsing a random UUID as the row key.
BUsing a hashed user ID as the prefix of the row key (e.g., 'a1b2c3#20240601').
CUsing a timestamp as the prefix of the row key (e.g., '20240601#user123').
DUsing a reversed timestamp as the prefix of the row key (e.g., '10964202#user123').
Attempts:
2 left
💡 Hint
Consider how row key prefixes affect data distribution.
optimization
advanced
2:00remaining
Optimizing Column Family Usage
Which practice optimizes Bigtable schema design regarding column families?
APut all columns into a single column family regardless of access patterns.
BGroup columns with similar access patterns into the same column family.
CCreate a separate column family for every individual column.
DAvoid using column families and store all data in row keys.
Attempts:
2 left
💡 Hint
Think about how column families affect read and write efficiency.
🔧 Debug
expert
3:00remaining
Diagnosing Hotspotting in Bigtable
A Bigtable instance is experiencing slow write performance. The row keys are user IDs followed by timestamps in ascending order (e.g., 'user123#20240601'). What is the most likely cause?
ARow keys are causing hotspotting because timestamps are ascending, leading to sequential writes on the same node.
BThe row keys are too short, causing collisions.
CThe table has too many column families, causing overhead.
DColumn families are too large, causing slow writes.
Attempts:
2 left
💡 Hint
Consider how row key order affects write distribution.