- A
Create a symmetric encryption key in Cloud KMS.
The key is needed to encrypt/decrypt data at the field level.
- B
Install the pgcrypto extension in the PostgreSQL database.
pgcrypto provides encrypt/decrypt functions that can use Cloud KMS key via a wrapper.
- C
Configure a Cloud HSM key to generate the data encryption key.
Why wrong: Cloud HSM is not required; Cloud KMS key is sufficient.
- D
Enable CMEK on the Cloud SQL instance.
Why wrong: CMEK encrypts the entire disk, not individual fields.
- E
Grant the Cloud SQL service account the 'Cloud KMS CryptoKey Encrypter/Decrypter' role.
The service account needs permission to use the KMS key.
Quick Answer
The answer is to grant the Cloud SQL service account the Cloud KMS CryptoKey Encrypter/Decrypter role. This step is required because field-level encryption for Cloud SQL PostgreSQL using pgcrypto relies on a two-tier key hierarchy: a data encryption key (DEK) encrypts each column value, and that DEK is then wrapped by a Cloud KMS key. The Cloud SQL service account must have the Encrypter/Decrypter role to call the KMS API for unwrapping the DEK during decryption and wrapping it during encryption, ensuring the sensitive data is protected at the application layer rather than relying solely on storage-level encryption. On the Google Professional Cloud Security Engineer exam, this tests your understanding of envelope encryption and service account permissions—a common trap is confusing this role with Cloud KMS Admin or Cloud SQL Client roles. Remember the mnemonic "DEK needs KMS wrap": the service account must be able to both encrypt and decrypt the DEK, not just manage keys.
PCSE Ensuring data protection Practice Question
This PCSE practice question tests your understanding of ensuring data protection. Read the scenario carefully and evaluate each option against the stated constraints before committing to an answer. After answering, compare your reasoning against the explanation and wrong-answer breakdown below. Once you have made your selection, read the full explanation to reinforce the concept and understand why each distractor is designed to mislead on exam day.
Which THREE steps are required to implement field-level encryption for sensitive columns in a Cloud SQL for PostgreSQL database using Cloud KMS? (Choose three.)
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
Create a symmetric encryption key in Cloud KMS.
Option A is correct because Cloud KMS symmetric encryption keys are used to encrypt data encryption keys (DEKs) that protect the column data. In field-level encryption, the application or database encrypts each column value using a DEK, which is then wrapped (encrypted) by a Cloud KMS key. This ensures the sensitive data is encrypted at the application layer, independent of the underlying storage encryption.
Key principle: Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✓
Create a symmetric encryption key in Cloud KMS.
Why this is correct
The key is needed to encrypt/decrypt data at the field level.
Related concept
Read the scenario before looking for a memorised answer.
- ✓
Install the pgcrypto extension in the PostgreSQL database.
Why this is correct
pgcrypto provides encrypt/decrypt functions that can use Cloud KMS key via a wrapper.
Related concept
Read the scenario before looking for a memorised answer.
- ✗
Configure a Cloud HSM key to generate the data encryption key.
Why it's wrong here
Cloud HSM is not required; Cloud KMS key is sufficient.
- ✗
Enable CMEK on the Cloud SQL instance.
Why it's wrong here
CMEK encrypts the entire disk, not individual fields.
- ✓
Grant the Cloud SQL service account the 'Cloud KMS CryptoKey Encrypter/Decrypter' role.
Why this is correct
The service account needs permission to use the KMS key.
Related concept
Read the scenario before looking for a memorised answer.
Common exam traps
Common exam trap: answer the scenario, not the keyword
Google Cloud often tests the distinction between instance-level encryption (CMEK) and field-level encryption; the trap here is that candidates confuse CMEK (which encrypts the entire database at rest) with the need for a per-column encryption mechanism using pgcrypto and Cloud KMS.
Detailed technical explanation
How to think about this question
Field-level encryption in PostgreSQL using pgcrypto leverages the pgp_sym_encrypt or pgp_pub_encrypt functions, which generate a random session key (DEK) for each encryption operation. The DEK is then encrypted (wrapped) using a Cloud KMS key via the `kms_encrypt` function or a client library. This approach ensures that even if the database is compromised, the encrypted columns remain unreadable without access to the Cloud KMS key. The Cloud KMS CryptoKey Encrypter/Decrypter role grants the Cloud SQL service account permission to perform the wrap/unwrap operations on the key.
KKey Concepts to Remember
- Read the scenario before looking for a memorised answer.
- Find the constraint that changes the correct option.
- Eliminate answers that are true in general but not in this case.
TExam Day Tips
- Watch for words such as best, first, most likely and least administrative effort.
- Review why wrong options are wrong, not only why the correct option is correct.
Key takeaway
Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option.
Real-world example
How this comes up in practice
A media company stores terabytes of video archives that are accessed once a year for audit purposes. Moving these objects to a cold storage tier (Azure Archive, S3 Glacier, or Google Nearline) costs a fraction of hot storage. Questions like this test whether you understand storage tiers, access frequency tradeoffs, and retrieval latency requirements.
What to study next
Got this wrong? Here's your next step.
Identify which exam domain this question belongs to, review the core concept, then practise similar questions from the same domain.
- →
Ensuring data protection — study guide chapter
Learn the concepts, then practise the questions
- →
Ensuring data protection practice questions
Targeted practice on this topic area only
- →
All PCSE questions
500 questions across all exam domains
- →
Google Professional Cloud Security Engineer study guide
Full concept coverage aligned to exam objectives
- →
PCSE practice test guide
How to use practice tests most effectively before exam day
Related practice questions
Related PCSE practice-question pages
Use these pages to review the topic behind this question. This is how one missed question becomes focused revision.
Configuring network security practice questions
Practise PCSE questions linked to Configuring network security.
Configuring access within a cloud solution environment practice questions
Practise PCSE questions linked to Configuring access within a cloud solution environment.
Ensuring data protection practice questions
Practise PCSE questions linked to Ensuring data protection.
Managing operations in a cloud solution environment practice questions
Practise PCSE questions linked to Managing operations in a cloud solution environment.
Supporting compliance requirements practice questions
Practise PCSE questions linked to Supporting compliance requirements.
PCSE fundamentals practice questions
Practise PCSE questions linked to PCSE fundamentals.
PCSE scenario practice questions
Practise PCSE questions linked to PCSE scenario.
PCSE troubleshooting practice questions
Practise PCSE questions linked to PCSE troubleshooting.
Practice this exam
Start a free PCSE practice session
Short sessions build daily habit. Longer sessions build exam-day stamina. Try a timed session to simulate real conditions.
FAQ
Questions learners often ask
What does this PCSE question test?
Ensuring data protection — This question tests Ensuring data protection — Read the scenario before looking for a memorised answer..
What is the correct answer to this question?
The correct answer is: Create a symmetric encryption key in Cloud KMS. — Option A is correct because Cloud KMS symmetric encryption keys are used to encrypt data encryption keys (DEKs) that protect the column data. In field-level encryption, the application or database encrypts each column value using a DEK, which is then wrapped (encrypted) by a Cloud KMS key. This ensures the sensitive data is encrypted at the application layer, independent of the underlying storage encryption.
What should I do if I get this PCSE question wrong?
Identify which exam domain this question belongs to, review the core concept, then practise similar questions from the same domain.
What is the key concept behind this question?
Read the scenario before looking for a memorised answer.
About these practice questions
Courseiva creates original exam-style practice questions with explanations and wrong-answer analysis. It does not publish real exam questions, exam dumps, or protected exam content. Learn why practice questions differ from exam dumps →
Keep practising
More PCSE practice questions
- Match each IAM role to its typical use case.
- Match each encryption scope to its description.
- Match each CVE or security concept to its description.
- Match each Google Cloud logging/monitoring term to its definition.
- Drag and drop the steps to rotate a customer-managed encryption key (CMEK) in Cloud KMS in the correct order.
- Drag and drop the steps to configure a Cloud NAT for private VM instances in the correct order.
Last reviewed: Jun 30, 2026
This PCSE 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 PCSE exam.
Question Discussion
Share a tip, memory trick, or ask about the reasoning behind this question. Do not post real exam questions, leaked content, braindumps, or copyrighted exam material. Comments are moderated and may be removed without notice.
Sign in to join the discussion.