GCP Professional Cloud Security Engineer Practice Question
A new Cloud Run service must read a database password that, for compliance, must be kept in a centrally managed, version-retained location, encrypted at rest with a customer-managed Cloud KMS key, restricted to the service's own service account through least-privilege IAM, and recorded in Cloud Audit Logs on every read. Which solution meets all these controls with the least operational overhead?
Run an open-source HashiCorp Vault cluster on Compute Engine, store the password there, and have the Cloud Run service fetch it over HTTPS.
Encrypt the password file with Cloud KMS, place it in a private Cloud Storage bucket, and distribute signed URLs to the Cloud Run service for download and decryption at startup.
Provide the password as an encrypted environment variable during Cloud Run deployment using the --set-secrets flag so the container can read it at runtime.
Store the password in Secret Manager encrypted with a customer-managed key, grant the Cloud Run service account the Secret Manager Secret Accessor role on that secret, and rely on Secret Manager's built-in versioning and audit logging.
Secret Manager stores each secret as immutable, numbered versions, allowing seamless rotations while preserving prior values. A secret can be protected with a customer-managed Cloud KMS key, fulfilling the CMEK requirement. Granting the service account the roles/secretmanager.secretAccessor role limits access to just that identity, and every secret access or change is automatically captured in Cloud Audit Logs. Cloud Storage with signed URLs lacks tight IAM enforcement and secret-aware logging, environment variables retrieved via deploy-time injection do not log each runtime access or support painless rotation, and self-hosting Vault introduces substantial management burden.
Ask Bash
Bash is our AI bot, trained to help you pass your exam. AI Generated Content may display inaccurate information, always double-check anything important.
What is Google Secret Manager?
Open an interactive chat with Bash
What is a customer-managed encryption key (CMEK) in Cloud KMS?
Open an interactive chat with Bash
Why does least-privilege IAM matter for security in Secret Manager?
Open an interactive chat with Bash
What is Google Secret Manager?
Open an interactive chat with Bash
How does Google Cloud KMS integrate with Secret Manager?
Open an interactive chat with Bash
Why is Cloud Audit Logging important for secrets management?
Open an interactive chat with Bash
GCP Professional Cloud Security Engineer
Ensuring data protection
Your Score:
Report Issue
Bash, the Crucial Exams Chat Bot
AI Bot
Loading...
Loading...
Loading...
Pass with Confidence.
IT & Cybersecurity Package
You have hit the limits of our free tier, become a Premium Member today for unlimited access.
Military, Healthcare worker, Gov. employee or Teacher? See if you qualify for a Community Discount.
Monthly
$19.99 $11.99
$11.99/mo
Billed monthly, Cancel any time.
$19.99 after promotion ends
3 Month Pass
$44.99 $26.99
$8.99/mo
One time purchase of $26.99, Does not auto-renew.
$44.99 after promotion ends
Save $18!
MOST POPULAR
Annual Pass
$119.99 $71.99
$5.99/mo
One time purchase of $71.99, Does not auto-renew.
$119.99 after promotion ends
Save $48!
BEST DEAL
Lifetime Pass
$189.99 $113.99
One time purchase, Good for life.
Save $76!
What You Get
All IT & Cybersecurity Package plans include the following perks and exams .