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.
Your organization requires real-time automated remediation of infrastructure configuration drift across its Google Cloud projects. Specifically, whenever a storage bucket or resource IAM policy is modified to grant public access, an automated Python remediation script must execute immediately to evaluate the change and revert non-compliant IAM bindings.
Which architecture should you implement to deploy and trigger this event-driven remediation script with minimal operational overhead and latency?
Artifact Registry vulnerability scanning is an automated security feature that scans container images and OS packages stored in Artifact Registry repositories for known CVE vulnerabilities and software supply chain issues.
The requirement was to prevent vulnerable container base images from being deployed to Cloud Run or Google Kubernetes Engine (GKE).
gcloud run deploy and configure an Eventarc trigger to route Cloud Audit Log events directly to the function.Cloud Run functions (formerly Cloud Functions 2nd gen) provide a lightweight, event-driven serverless execution environment powered by Cloud Run. Combined with Eventarc, it enables developers to route events from over 130+ Google Cloud sources—including Cloud Audit Logs and Cloud Pub/Sub—directly to containerized or function-based runtimes without managing persistent infrastructure.
gcloud run deploy --function ... or via Infrastructure as Code (IaC).storage.setIamPermissions).This architecture directly couples event detection with serverless execution. Compared to scheduled polling or self-managed VMs, it guarantees sub-second response times for security remediation while maintaining zero baseline compute costs.
This approach uses Cloud Scheduler to initiate a batch Cloud Build pipeline at fixed intervals (e.g., every 15 minutes). The pipeline uses the Cloud Asset Inventory API to scan resource states across projects and run correction scripts.
The organization required scheduled baseline compliance audits or periodic reconciliation of drifted state where near-real-time enforcement was not required.
This design relies on a dedicated Compute Engine virtual machine running a continuous background loop or cron job that queries the Cloud Logging API repeatedly to detect new audit log entries.
RESOURCE_EXHAUSTED).The workload required a legacy, stateful application that maintained active TCP connections or lacked support for stateless serverless runtimes.
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