- Lab
-
Libraries: If you want this lab, consider one of these libraries.
Bigtable Schema Design and CLI Operations
Welcome to the guided lab on Bigtable Schema Design and CLI Operations. This lab is for data engineers who need to design high-throughput operational tables that still support fast, targeted reads. You’ll create a Cloud Bigtable instance and table, load a small dataset, and use the CLI to query data using prefix and regex filters. You’ll also encounter a realistic failure state, hotspotting caused by a poor row key design, observe the impact, and redesign the schema to distribute traffic and improve read efficiency. By the end, you’ll be able to design row keys that scale, avoid hotspots, and query Bigtable efficiently using CLI-based filters.
Lab Info
Table of Contents
-
Challenge
Create a Cloud Bigtable Instance and Table Using the cbt CLI
- Verify CLI/tooling access and set the active project/region context.
- Create a Bigtable instance sized for fast lab feedback (development instance).
- Create a table and at least one column family aligned to the access pattern (operational event storage).
-
Challenge
Design Row Keys that Prevent Hotspotting and Support Efficient Queries
- Review the initial (naive) row key design and the team’s primary query patterns.
- Observe the failure: identify how the naive key layout leads to hotspotting or inefficient query behavior.
- Redesign the row key using a scalable pattern (e.g., hashed/salted prefix, reversed timestamp, and composite keys).
- Recreate or migrate data into the improved schema and compare the behavior.
-
Challenge
Query Bigtable Using Prefix and Regex Filters to Retrieve Targeted Data
- Use
cbtreads to retrieve rows by prefix aligned to query patterns (per-customer or per-order lookups). - Apply regex filters to narrow results without scanning unrelated keys.
- Validate that the improved row key design makes these queries practical and predictable at scale.
- Use
About the author
Real skill practice before real-world application
Hands-on Labs are real environments created by industry experts to help you learn. These environments help you gain knowledge and experience, practice without compromising your system, test without risk, destroy without fear, and let you learn from your mistakes. Hands-on Labs: practice your skills before delivering in the real world.
Learn by doing
Engage hands-on with the tools and technologies you’re learning. You pick the skill, we provide the credentials and environment.
Follow your guide
All labs have detailed instructions and objectives, guiding you through the learning process and ensuring you understand every step.
Turn time into mastery
On average, you retain 75% more of your learning if you take time to practice. Hands-on labs set you up for success to make those skills stick.