PROFESSIONAL-CLOUD-DEVOPS-ENGINEER practice question 5 of 25
You are deploying an application that needs to access sensitive information. You need to ensure that this information is encrypted and the risk of exposure is minimal if a breach occurs. What should you do?
Full set: 205 questionsTo encrypt sensitive information and minimize risk, a robust key management system is essential. Cloud Key Management Service (KMS) provides a secure, centralized service for managing cryptographic keys. Storing the encryption keys in Cloud KMS ensures they are protected by hardware security modules (HSMs). Regularly rotating these keys is a critical security best practice that limits the potential impact if a key is ever compromised, reducing the "blast radius" of a breach.
B. Inject the secret at the time of instance creation via an encrypted configuration management system: This is a viable pattern but less secure, as the secret still resides on the instance, increasing its exposure to other processes or potential attackers on that machine.
C. Integrate the application with a Single sign-on (SSO) system and do not expose secrets to the application: SSO is a system for user authentication and authorization, not for providing application-level secrets like database credentials or API keys to a workload.
D. Leverage a continuous build pipeline that produces multiple versions of the secret for each instance of the application: This unnecessarily increases complexity and the number of secrets to manage, which generally increases, rather than minimizes, security risk.
1. Google Cloud Documentation, "Cloud Key Management Service documentation". The overview states, "Cloud KMS is a centralized cloud service that allows you to manage cryptographic keys... It provides a root of trust for your data."
2. Google Cloud Documentation, "Secret Manager documentation". Secret Manager is the recommended service for storing secrets, and it integrates directly with Cloud KMS for encryption. The documentation on "Editing secrets" describes how to set a rotation schedule for secrets. Option A describes the underlying cryptographic best practice (key management and rotation) that enables services like Secret Manager.
3. Google Cloud Security Foundations Guide, "Managing secrets". This guide recommends using Secret Manager, which leverages Cloud KMS for encryption, and emphasizes the importance of rotating secrets and keys.
Keep practicing
Take the free PROFESSIONAL-CLOUD-DEVOPS-ENGINEER practice test
Ten exam-style questions with answers and explanations, plus the exam facts and study guides.
More questions
Other PROFESSIONAL-CLOUD-DEVOPS-ENGINEER practice questions
- Question 1[Building and implementing CI/CD pipelines for a service] You need to enforce several con…
- Question 2You deployed an application into a large Standard Google Kubernetes Engine (GKE) cluster.…
- Question 3You are responding to a high-priority incident where a critical, user-facing payment serv…
- Question 4[Applying Site Reliability Engineering (SRE) principles to a service] You support a user-…
- Question 6[Building and implementing CI/CD pipelines for a service] You are building an application…
- Question 7[Optimizing service performance] You support a Node.js application running on Google Kube…
