What is CMEK in BigQuery, and when should you use customer-managed keys instead of Google-managed keys?

Quick Overview

Explain what customer-managed encryption keys are in BigQuery and when a team should choose them over the default Google-managed keys. The question tests knowledge of Cloud KMS setup, compliance and governance drivers, and the availability and cost trade-offs of owning the key lifecycle.

What is CMEK in BigQuery, and when should you use customer-managed keys instead of Google-managed keys?

Role: Data Scientist

Category: Software Engineering Fundamentals

Difficulty: medium

Interview Round: Other

What is CMEK in the context of BigQuery, and when would you use customer-managed encryption keys instead of Google-managed keys? ```hint Think like an auditor List what a security team or an auditor might need to do with an encryption key (create it, rotate it, switch it off, see who used it), then check which option lets them do each one. ``` ### What a Strong Answer Covers - What CMEK is and what stays the same under both options - How CMEK is set up in BigQuery: the Cloud KMS key, dataset default or per-table key, and the permissions involved - Concrete situations where CMEK is justified - The trade-offs: the KMS dependency, the cost and the risk of losing access to the data ### Follow-up Questions - How would you move an existing table from Google-managed keys to CMEK? - What does disabling the key do to future queries, and how quickly does it take effect? - How would you make sure no team in the organization creates a dataset without CMEK? - When is an external key through Cloud EKM worth its extra operational risk?

Overview: Explain what customer-managed encryption keys are in BigQuery and when a team should choose them over the default Google-managed keys. The question tests knowledge of Cloud KMS setup, compliance and governance drivers, and the availability and cost trade-offs of owning the key lifecycle.

PracHub logo
General
Nov 25, 2026
mediumData ScientistOtherSoftware Engineering Fundamentals
0
0

What is CMEK in the context of BigQuery, and when would you use customer-managed encryption keys instead of Google-managed keys?

What a Strong Answer Covers Guidance

  • What CMEK is and what stays the same under both options
  • How CMEK is set up in BigQuery: the Cloud KMS key, dataset default or per-table key, and the permissions involved
  • Concrete situations where CMEK is justified
  • The trade-offs: the KMS dependency, the cost and the risk of losing access to the data

Follow-up Questions Guidance

  • How would you move an existing table from Google-managed keys to CMEK?
  • What does disabling the key do to future queries, and how quickly does it take effect?
  • How would you make sure no team in the organization creates a dataset without CMEK?
  • When is an external key through Cloud EKM worth its extra operational risk?