Google ACE Configuring Access and Security Practice Question
To meet compliance requirements, a company must encrypt all data at rest in Cloud SQL using customer-managed encryption keys (CMEK). What is required to enable CMEK on a Cloud SQL instance?
Answer choices
Why each option matters
Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.
Correct answer & explanation
✓
Specify the key during instance creation using --disk-encryption-key, and ensure the Cloud SQL service account has encryption/decryption permissions on the key
When creating the Cloud SQL instance, you must specify a Cloud KMS key using the --disk-encryption-key flag. The Cloud SQL service account must be granted the Cloud KMS CryptoKey Encrypter/Decrypter role. The key must be in the same region as the Cloud SQL instance.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✓
Specify the key during instance creation using --disk-encryption-key, and ensure the Cloud SQL service account has encryption/decryption permissions on the key
Why this is correct
For Cloud SQL, customer-managed encryption keys (CMEK) must be supplied at the moment you create the instance. You specify the key with the --disk-encryption-key flag in the gcloud sql instances create command, and the Cloud SQL service account must be granted Cloud KMS CryptoKey Encrypter/Decrypter permissions so it can use the key to encrypt data at rest. If these permissions are missing, instance creation fails; the key cannot be retroactively attached to an existing instance because the encryption setting is immutable.
- ✗
Create the instance without encryption, then use gcloud sql instances patch to add CMEK later
Why it's wrong here
You cannot enable CMEK on an existing Cloud SQL instance by patching it with gcloud sql instances patch or any other update operation. The disk encryption configuration is fixed at creation time and changing it later is unsupported; the only workaround is to create a new instance with the desired CMEK, migrate your data, and then delete the old instance. Therefore, patching to add CMEK after the fact is not a valid approach.
- ✗
Enable CMEK by setting an organization policy that requires CMEK for all Cloud SQL instances
Why it's wrong here
Organization policies can impose constraints that require Cloud SQL instances to use CMEK, but the policy alone does not assign or select the actual key. Even when an org policy mandates CMEK, you still must explicitly provide a specific Cloud KMS key using --disk-encryption-key during instance creation, and your project must have the required key permissions. The org policy enforces that a key is present, but it does not perform the technical step of binding the key to the instance.
- ✗
Use the default encryption; CMEK is not supported for Cloud SQL
Why it's wrong here
This option is false because Cloud SQL fully supports CMEK for all its database engines, including MySQL, PostgreSQL, and SQL Server. If you do not configure a CMEK, Cloud SQL automatically uses Google-managed encryption keys for at-rest encryption, but you are absolutely allowed to bring your own key through Cloud KMS. The statement that CMEK is unsupported for Cloud SQL directly contradicts documented functionality, so this approach would leave you with default encryption only, not compliance-grade customer-managed encryption.
Go deeper
Related to this question
Learn chapter
Google Cloud Platform Overview
Key term
Service
A service is a software component or system that performs a specific function and is available to be used by other programs or users over a network.
Key term
Cloud KMS
Cloud KMS (Key Management Service) is a cloud-based service that lets you create, manage, and use encryption keys to protect your data at rest and in transit.
About these practice questions
Courseiva writes every ACE question from scratch — 769 in total, each with an explanation and a wrong-answer breakdown. None are copied from real exams or dumps. Learn why practice questions differ from exam dumps →
JA
Written by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
This ACE practice question is part of Courseiva's free Google Cloud certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the ACE exam.