Professional Cloud Security 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.
Keep the momentum going with these hand-picked practice scenarios
Want more questions like this?
Get a free certification question every week.
Last updated
An enterprise is establishing an automated CI/CD pipeline using Cloud Build, Artifact Registry, Artifact Analysis, and Binary Authorization to deploy containerized workloads to Google Kubernetes Engine (GKE).
The security team mandates the following security gates:
CRITICAL or HIGH are discovered.Which workflow sequence in Cloud Build should the security team implement to satisfy these requirements?
gcloud artifacts docker images scan to perform On-Demand Scanning, and check effective severity levels with gcloud artifacts docker images list-vulnerabilities to fail the build if CRITICAL or HIGH findings exist.gcloud beta container binauthz attestations sign-and-create using the image digest, the target attestor, and the Cloud KMS key version to register the attestation.kubectl apply --dry-run=server.clouddeploy-operations Pub/Sub topic to detect deployment errors.verify: true using a custom Skaffold verification test container to check vulnerabilities at runtime.evaluation_mode: ALWAYS_ALLOW and rely on Cloud Deploy verification job rollbacks.:latest tag.roles/binaryauthorization.attestorsViewer permissions.gcloud artifacts docker images scan to perform On-Demand Scanning, and check effective severity levels with gcloud artifacts docker images list-vulnerabilities to fail the build if CRITICAL or HIGH findings exist.gcloud beta container binauthz attestations sign-and-create using the image digest, the target attestor, and the Cloud KMS key version to register the attestation.This workflow integrates Artifact Analysis On-Demand Scanning API, Cloud Key Management Service (Cloud KMS), and Binary Authorization directly into a Cloud Build pipeline to enforce shift-left security and cryptographic provenance across the software supply chain.
gcloud artifacts docker images scan. It inspects vulnerability.effectiveSeverity with gcloud artifacts docker images list-vulnerabilities, parsing findings with an exit code condition (grep -Exq 'CRITICAL|HIGH') that terminates the build before pushing unauthorized artifacts to Artifact Registry.sha256), the pipeline guarantees that the attestation and the deployed artifact are immutably linked, eliminating time-of-check to time-of-use (TOCTOU) tag mutation risks.gcloud beta container binauthz attestations sign-and-create, Cloud Build invokes an asymmetric signing key in Cloud KMS to sign the image digest payload and records the signed attestation as an occurrence under the attestor's Artifact Analysis Note.This architecture establishes a strict gatekeeper mechanism inside CI/CD, preventing vulnerable or non-compliant containers from reaching deployment targets by cryptographically binding policy compliance to immutable image digests.
kubectl apply --dry-run=server.clouddeploy-operations Pub/Sub topic to detect deployment errors.verify: true using a custom Skaffold verification test container to check vulnerabilities at runtime.evaluation_mode: ALWAYS_ALLOW and rely on Cloud Deploy verification job rollbacks.:latest tag.roles/binaryauthorization.attestorsViewer permissions.