Prepare and test your skills
Prepare and test your skills
Free sample question, answered and explained below. The Professional Cloud DevOps Engineer practice bank has 1,455 more like it. Try 10 free: instant score, no account.
A DevOps engineer is designing a secure CI/CD pipeline using Cloud Build and Artifact Registry. The security policy mandates two key requirements:
Which approach should the DevOps engineer implement to satisfy these requirements?
This design uses a periodic cron trigger via Cloud Scheduler to poll repositories in Artifact Registry, trigger external scanning APIs, and send static email alerts.
The goal was periodic compliance auditing of dormant, long-stored legacy container images rather than active CI/CD gating and real-time build alerting.
This approach integrates shifting security left with event-driven automation. By invoking the On-Demand Scanning API within the Cloud Build pipeline, container images are scanned for vulnerabilities before they are deployed or promoted. Downstream services leverage Pub/Sub build notifications to act instantly upon build completion and vulnerability reports.
SUCCESS, FAILURE, or step metadata) to the cloud-builds Pub/Sub topic. Downstream subscribers—such as Cloud Functions, Cloud Run, or custom Cloud Build notifiers—can listen to these messages to execute immediate automated remediation.Using the native On-Demand Scanning API combined with Pub/Sub event streams provides end-to-end automation, low latency, and adherence to Google Cloud supply chain security best practices.
This configuration relies on individual developers executing manual scan scripts on their local laptops and uses scheduled BigQuery queries against exported Cloud Logging audit logs to identify security anomalies.
The organization required long-term historical vulnerability analytics across multi-year audit logs rather than automated in-pipeline gating and real-time event dispatching.
This approach defers vulnerability analysis until after container images are actively deployed to runtime clusters (e.g., Google Kubernetes Engine) and relies on log metrics to send synchronous notifications.
The requirement focused strictly on post-deployment runtime anomaly detection rather than securing the build and artifact generation lifecycle in CI/CD.
Answer them yourself and get your score the moment you finish. No account needed.
Full access includes
Keep the momentum going with these hand-picked practice scenarios
Last updated Validated