GCP Professional Cloud Architect Practice Question

Your company runs a multi-tenant SaaS platform on Cloud Run services deployed to multiple regions. Application containers require database credentials and third-party API tokens at startup. Security requirements mandate: 1) secrets must not be stored in container images or source control, 2) rotation must be possible without redeploying services, 3) audit logs of secret access must be retained, and 4) developers should read secrets only in non-production projects. Which design best satisfies these requirements?

  • Store each credential as a Secret Manager secret with automatic replication; grant Cloud Run runtime service accounts roles/secretmanager.secretAccessor in production, give developers roles/secretmanager.secretViewer only in dev/test projects, configure Cloud Run to inject the secrets as environment variables referencing version "latest" so new versions are used without redeploying, and enable Secret Manager Data Access audit logs to retain access records.

  • Create Kubernetes Secrets in a GKE cluster, sync them to Cloud Run using Config Connector, and hard-code service account keys in the deployment YAML. Rotate by redeploying the YAML manifests and monitor access through GKE audit logs.

  • Encrypt secrets with a customer-managed key in Cloud KMS, upload the ciphertext to a private Cloud Storage bucket, and let Cloud Run read the files at startup via Cloud Storage FUSE. Replace the objects when rotating credentials and rely on bucket access logs for auditing.

  • Inject credentials as build-time substitution variables in Cloud Build, store the values in a secured parameter file inside Cloud Source Repositories, and redeploy Cloud Run whenever a secret changes. Control developer access with repository ACLs.

GCP Professional Cloud Architect
Designing for security and compliance
Your Score:
Settings & Objectives
Random Mixed
Questions are selected randomly from all chosen topics, with a preference for those you haven’t seen before. You may see several questions from the same objective or domain in a row.
Rotate by Objective
Questions cycle through each objective or domain in turn, helping you avoid long streaks of questions from the same area. You may see some repeat questions, but the distribution will be more balanced across topics.

Check or uncheck an objective to set which questions you will receive.

Bash, the Crucial Exams Chat Bot
AI Bot