GCP Professional Cloud Security Engineer Practice Question

Your company builds container images with Cloud Build and pushes them to Artifact Registry, where automatic vulnerability scanning is enabled. Security policy states that any image containing unresolved HIGH or CRITICAL CVEs must be blocked from running on Google Kubernetes Engine (GKE), except when an on-call SRE group needs to perform an emergency "breakglass" deployment. With minimal ongoing maintenance, which solution best enforces these requirements during every deployment to all GKE clusters?

  • Schedule a nightly Cloud Build job that exports a list of vulnerability-free image digests to Cloud Storage; deploy an admission webhook in each GKE cluster that rejects images not on the list, granting the SRE group permission to modify the webhook for emergency deployments.

  • Enable Cloud Audit Logs and configure a log-based alert that triggers a Cloud Function to delete any image with HIGH or CRITICAL findings after it is pushed; require developers to redeploy once issues are fixed.

  • Mandate that developers add a "vuln=pass" label to Deployment manifests and use OPA Gatekeeper to reject resources lacking the label; allow the SRE group to edit the Gatekeeper constraint to bypass checks in emergencies.

  • Enable Artifact Registry vulnerability scanning and create a Binary Authorization policy that blocks images with HIGH or CRITICAL findings unless they carry an attestation signed by Cloud Build; add the SRE group to the policy's breakglass allowlist so they can override enforcement when needed.

GCP Professional Cloud Security Engineer
Managing operations
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