nerdexam
Google

PROFESSIONAL-CLOUD-SECURITY-ENGINEER · Question #33

A customer needs an alternative to storing their plain text secrets in their source-code management (SCM) system. How should the customer achieve this using Google Cloud Platform?

The correct answer is B. Encrypt the secrets with a Customer-Managed Encryption Key (CMEK), and store them in Cloud. Customers should secure their secrets by encrypting them with Customer-Managed Encryption Keys (CMEK) and storing them in a dedicated cloud secret management service.

Submitted by deeparc· Apr 18, 2026Ensuring data protection

Question

A customer needs an alternative to storing their plain text secrets in their source-code management (SCM) system. How should the customer achieve this using Google Cloud Platform?

Options

  • AUse Cloud Source Repositories, and store secrets in Cloud SQL.
  • BEncrypt the secrets with a Customer-Managed Encryption Key (CMEK), and store them in Cloud
  • CRun the Cloud Data Loss Prevention API to scan the secrets, and store them in Cloud SQL.
  • DDeploy the SCM to a Compute Engine VM with local SSDs, and enable preemptible VMs.

How the community answered

(34 responses)
  • A
    3% (1)
  • B
    94% (32)
  • D
    3% (1)

Why each option

Customers should secure their secrets by encrypting them with Customer-Managed Encryption Keys (CMEK) and storing them in a dedicated cloud secret management service.

AUse Cloud Source Repositories, and store secrets in Cloud SQL.

Storing secrets in Cloud SQL, even if not plain text, is not the intended purpose of a relational database for general secret management and lacks the dedicated features of a secret management service. Cloud Source Repositories is an SCM, which the problem states to move secrets from.

BEncrypt the secrets with a Customer-Managed Encryption Key (CMEK), and store them in CloudCorrect

Using a service like Google Cloud Secret Manager, which encrypts secrets at rest, ideally with Customer-Managed Encryption Keys (CMEK) from Cloud KMS, provides a dedicated, secure, and auditable solution for storing secrets outside of SCM systems.

CRun the Cloud Data Loss Prevention API to scan the secrets, and store them in Cloud SQL.

While Cloud Data Loss Prevention (DLP) API can scan for sensitive data, it's for detection and remediation, not for secure storage. Storing secrets in Cloud SQL is not the recommended primary solution for secret management.

DDeploy the SCM to a Compute Engine VM with local SSDs, and enable preemptible VMs.

Deploying SCM to a Compute Engine VM with local SSDs and preemptible VMs does not address the core problem of securely managing secrets; it only describes an infrastructure setup for the SCM system itself.

Concept tested: Secure secret management using Secret Manager and CMEK

Source: https://cloud.google.com/secret-manager/docs/encrypt-secrets-with-cmek

Topics

#Secrets Management#Cloud Secret Manager#Customer-Managed Encryption Keys#Secure Storage

Community Discussion

No community discussion yet for this question.

Full PROFESSIONAL-CLOUD-SECURITY-ENGINEER Practice