0
0
GCPcloud~20 mins

Bigtable for time-series data in GCP - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Bigtable Time-Series Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
Architecture
intermediate
2:00remaining
Choosing the best row key design for time-series data in Bigtable

You want to store sensor readings collected every second in Bigtable. Which row key design will best prevent hotspotting and allow efficient range scans for recent data?

AUse a row key with the sensor ID followed by the reversed timestamp (e.g., sensor123#99999999999999 - timestamp).
BUse a row key with the timestamp in ascending order followed by the sensor ID (e.g., 20240601120000#sensor123).
CUse a row key with the sensor ID followed by the timestamp in ascending order (e.g., sensor123#20240601120000).
DUse a row key with a random UUID followed by the timestamp (e.g., uuid#20240601120000).
Attempts:
2 left
💡 Hint

Think about how Bigtable stores rows lexicographically and how to avoid all writes going to the same region.

service_behavior
intermediate
2:00remaining
Bigtable read latency for time-series queries

You query Bigtable for sensor data over the last hour using a row key range scan. What behavior should you expect regarding read latency?

ARead latency will be constant regardless of the time range size because Bigtable indexes all data.
BRead latency increases linearly with the number of rows scanned in the time range.
CRead latency decreases as the time range increases because Bigtable caches more data.
DRead latency is unpredictable and depends only on network speed.
Attempts:
2 left
💡 Hint

Consider how Bigtable stores data and how scanning more rows affects performance.

security
advanced
2:00remaining
Securing Bigtable access for time-series ingestion

You have multiple IoT devices sending time-series data to Bigtable. Which approach best secures write access while minimizing operational overhead?

AUse a proxy service that authenticates devices and writes to Bigtable using a single service account with limited permissions.
BUse Cloud IAM to grant each device a unique service account with only write permissions to the specific Bigtable instance.
CAllow all devices to write anonymously to Bigtable by disabling authentication temporarily during ingestion.
DCreate a single service account with full Bigtable admin permissions and share its key with all devices.
Attempts:
2 left
💡 Hint

Think about security best practices and operational simplicity when many devices are involved.

Best Practice
advanced
2:00remaining
Optimizing Bigtable schema for time-series data compression

Which schema design choice helps Bigtable compress time-series data most effectively?

AStore sensor readings in a single column family with timestamps as part of the row key.
BStore each sensor reading as a separate column with a unique timestamp as the column qualifier.
CStore sensor readings in a single column with timestamps encoded in the cell value.
DStore sensor readings in a single column family with timestamps as column qualifiers sorted in ascending order.
Attempts:
2 left
💡 Hint

Consider how Bigtable compresses data within column families and the effect of sorted column qualifiers.

🧠 Conceptual
expert
2:00remaining
Impact of hot-spotting on Bigtable write throughput for time-series data

You notice Bigtable write throughput drops significantly during peak sensor data ingestion. Which cause best explains this behavior?

AWrite throughput drops because Bigtable limits writes per column family regardless of row key distribution.
BBigtable automatically balances writes evenly, so throughput drops are caused by network congestion only.
CAll writes are targeting a small range of row keys due to monotonically increasing timestamps causing hotspotting on a single tablet server.
DThe Bigtable instance is running out of storage space, causing automatic throttling of all writes.
Attempts:
2 left
💡 Hint

Think about how Bigtable partitions data and how row key design affects write distribution.