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.
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?
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.
Keep the momentum going with these hand-picked practice scenarios
Want more questions like this?
Get a free certification question every week.