Professional Cloud DevOps Engineer
Prepare and test your skills
Prepare and test your skills
Worked example. The correct answer is already marked and every option is explained below, so there is nothing to select here. To answer questions yourself, start the free trial.
A DevOps team is developing a continuous integration and continuous delivery (CI/CD) pipeline using Cloud Build to automate project environment bootstrapping and resource configuration. The workflow must execute custom Python automation scripts that interact with Google Cloud APIs and configure external third-party services.
The pipeline implementation must satisfy the following criteria:
How should the team design the Cloud Build configuration and Python automation workflow?
Secret Manager is Google Cloud's fully managed service designed to store, manage, and access sensitive metadata and operational credentials. Integrating Secret Manager natively with Cloud Build allows build steps to inject secrets into memory as environment variables or retrieve them dynamically via API clients.
availableSecrets block ensures tokens are mounted directly into containerized build step environments rather than stored in cleartext source files or configuration manifests.roles/secretmanager.secretAccessor) role limits permissions to reading only the necessary secret payload without granting broader administrative rights.os.environ['SECRET_KEY']) or the Secret Manager client library to provision infrastructure, after which a secondary test step validates the environment.cloudbuild.yaml without needing custom decryption tooling.This approach aligns with Google Cloud security best practices by separating configuration from credentials, leveraging native service-level IAM controls, and preventing secret exposure across CI/CD log streams.
Keep the momentum going with these hand-picked practice scenarios
Want more questions like this?
Get a free certification question every week.