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.
Question
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)- A3% (1)
- B94% (32)
- D3% (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.
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.
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.
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.
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
Community Discussion
No community discussion yet for this question.