Google Cloud Professional Data Engineer · 20% practice allocation

Google Cloud Professional Data Engineer: Storing the data Practice Questions

5 free sample questions from the Storing the data domain, with answers and explanations. The full Professional Data Engineer bank has 252 questions across 5 domains. Questions are scenario-based and written from the official Google Cloud exam guide.

1.

You are designing the row-key strategy for a Bigtable table that stores user activity logs. The table will be used for both real-time queries (looking up specific users' recent activities) and batch analytics (scanning activity by time range). User IDs are randomly distributed UUIDs, and timestamps are from a continuous stream. Which row-key design minimizes hotspotting and supports both query patterns?

  • A. Use timestamp as the row-key prefix, followed by user ID (e.g., ts#userID). This ensures chronological ordering and prevents hotspot concentration on recent data.
  • B. Use user ID as the sole row-key with timestamp stored as a column family qualifier. This optimizes real-time lookups but will cause hotspotting during batch time-range scans.
  • C. Reverse the timestamp bytes and prepend user ID (e.g., userID#reversed_ts). This distributes writes evenly across tablets while allowing efficient range scans by time.
  • D. Use a hash of user ID as a prefix followed by timestamp (e.g., hash(userID)#ts). This distributes load across tablets and allows both user-specific and time-range queries.✓ Correct
Explanation

The correct answer is option 3: hashing the user ID prefix ensures writes are distributed evenly across Bigtable tablets (avoiding hotspots), while the timestamp suffix still allows efficient range scans by time within each user's partition. This balances both query patterns. Option 1 fails because timestamps increase monotonically; recent activity will concentrate writes on a single tablet (hotspotting). Option 2 reverses the timestamp but doesn't solve hotspotting if writes cluster around current time. Option 4 optimizes only for user lookups and causes severe hotspotting on recent timestamps during batch scans.

2.

You are implementing Analytics Hub to share a curated dataset with 30 external partners. The dataset is 2 TB and updated daily. Which of the following should you consider? (Select TWO.)

  • A. Export the 2 TB dataset to Cloud Storage and share via signed URLs. This avoids the overhead of Analytics Hub and provides direct access to partners.
  • B. Analytics Hub listings are read-only from the subscriber's perspective; ensure your governance and access control policies allow partners to subscribe without direct database credentials.✓ Correct
  • C. Use a single Analytics Hub listing with a shared dataset that all 30 partners can subscribe to. Implement column-level security using BigQuery's authorized views to restrict sensitive columns per partner.✓ Correct
  • D. Implement a scheduled export job that pushes the 2 TB dataset to each partner's GCP project daily via Cloud Storage Transfer Service.
  • E. Create separate BigQuery datasets for each partner to enforce fine-grained column-level access control and ensure data isolation.
Explanation

Options 1 and 3 are correct. Option 1 correctly identifies that Analytics Hub listings are read-only subscriptions; partners gain access without credentials, and you manage access via subscription approvals and BigQuery IAM—critical for governed sharing. Option 3 recognizes that a single listing with authorized views enables column-level fine-grained access control across 30 partners without creating 30 separate datasets. Option 2 is incorrect because Cloud Storage signed URLs bypass Analytics Hub governance and require credential management, violating a key reason to use Analytics Hub. Option 4 is impractical; creating 30 datasets multiplies operational overhead. Option 5 is unnecessary; Analytics Hub subscriptions provide real-time (or daily refresh) access without daily push exports.

3.

A financial services firm stores 15 years of transaction history in BigQuery (500 billion rows, 10 TB). Queries typically scan the last 12 months of data but occasionally run year-over-year comparisons (e.g., comparing Q1 this year to Q1 five years ago). Current monthly storage cost is $1,200. Which storage optimization should you implement?

  • A. Partition the table by year and cluster by month within each year. This allows efficient year-level partition pruning for recent queries and cross-partition scans for year-over-year comparisons.
  • B. Partition by quarter and create a summary table containing year-over-year aggregates. Query the summary table for YoY comparisons and the detail table for recent queries.
  • C. Archive all data older than 24 months to a separate BigQuery table and query both tables in a UNION. This reduces the primary table size and cost while preserving historical access.✓ Correct
  • D. Use BigQuery's automatic table expiration to delete data older than 5 years, then partition by month. This reduces storage cost and simplifies partitioning logic.
Explanation

Option 1 is correct. Partitioning by year enables rapid pruning for recent 12-month queries (only 1–2 partitions scanned), while year-level partitions allow efficient cross-partition scans for year-over-year comparisons. Clustering by month further optimizes seasonal filters. Option 2 (archiving to a separate table) adds operational complexity; UNIONing tables reduces benefits of partition pruning. Option 3 pre-aggregates data, losing detail for ad-hoc analysis. Option 4 deletes data you need for 5-year comparisons and is inappropriate.

4.

Your team is designing a Bigtable instance for a real-time analytics platform. You expect 1 TB of data and 500,000 QPS (queries per second). The workload is consistent throughout the day. Which instance configuration minimizes cost while meeting performance requirements?

  • A. Use a 5-node Bigtable cluster with HDD storage and automatic scaling. HDD storage is 75% cheaper than SSD, and 5 nodes can handle 500k QPS (~100k per node).
  • B. Use a 10-node Bigtable cluster with SSD storage and automatic scaling enabled. This provides headroom for traffic spikes and ensures latency remains under 50 ms.
  • C. Use a 6-node Bigtable cluster with SSD storage. SSD provides better latency; 6 nodes × ~100k QPS per node = 600k QPS capacity, meeting the 500k QPS requirement.✓ Correct
  • D. Use a single-node Bigtable cluster with SSD storage. This is the most cost-effective option for 1 TB and allows up to 100k QPS per node.
Explanation

Option 2 is correct. For consistent, predictable 500k QPS workload, a 5-node cluster with HDD storage provides ~100k QPS per node (500k total) at significantly lower cost than SSD. HDD is suitable for this throughput-oriented workload without strict latency requirements. Option 1 undersizes the cluster; a single node maxes out around 100k QPS. Option 3 oversizes with SSD (more expensive) and 6 nodes when 5 would suffice for consistent traffic. Option 4 adds unnecessary nodes and automatic scaling; the workload is stable, not spiky.

5.

You are optimizing BigQuery costs for a large organization with 50 datasets and 1,000+ tables. Annual spend is $500,000 on-demand. You are evaluating annual slots but are concerned about reserved capacity being underutilized if workload patterns change. What is the most appropriate risk mitigation strategy?

  • A. Commit to 2,000 annual slots (~$96,000/year) to cover your entire current workload with headroom. This ensures no queries run on-demand (higher cost per query on burst) but limits flexibility.
  • B. Start with monthly flex slots (more expensive per TB but cancellable anytime) to test workload patterns for 3 months, then commit to annual slots based on observed utilization.✓ Correct
  • C. Remain on on-demand pricing and implement strict query governance (e.g., query approval workflows, maximum scan limits) to control costs without capital commitment.
  • D. Purchase 500 annual slots (~$24,000/year) to cover 50% of your current on-demand workload. This hedges your risk by reserving capacity for baseline queries while remaining flexible for spikes.
Explanation

Option 2 is correct. Using monthly flex slots (or Flex Slots, which offer hourly commitment) is a low-risk way to validate workload patterns before committing to annual slots. After 3 months of data, you can make an informed decision on annual slot size, avoiding overpayment if workloads decrease or underpayment if they increase. Option 1 oversimplifies; hedging only 50% leaves significant burst costs. Option 3 commits too aggressively without proving ROI and assumes workload stability. Option 4 avoids commitment but provides no cost savings; governance alone does not reduce the underlying query volume.

Test yourself across every Professional Data Engineer domain

The free Professional Data Engineer practice test mixes about 20 questions weighted like the exam. The full 252-question bank adds instant grading, flashcards and a timed mock exam.

Study this domain

Storing the data study guide (Professional Data Engineer) →

Other Professional Data Engineer domains

← All Google Cloud Professional Data Engineer study resources