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.
An enterprise DevOps team is designing an automated workflow to ingest and process Google Cloud Recommender suggestions across multiple production projects within their GitOps CI/CD pipeline.
The governance policy defines the following criteria:
Which workflow and configuration should the team implement?
This solution establishes a secure, GitOps-aligned automation architecture that uses Google Cloud Recommender APIs to discover optimization and security insights, classifies them based on operational risk, and applies distinct remediation paths for automated enforcement versus human-in-the-loop review.
roles/recommender.viewer role allows the CI/CD worker to inspect and ingest recommendation payloads across projects without conferring broad write or administrative access.ENFORCEMENT mode ensures runtime and OS compliance configurations (such as baseline CIS benchmark settings) are automatically validated and brought into compliance across VMs without manual intervention.Directly applying high-risk IAM changes via automated scripts introduces the danger of revoking critical service agent permissions or breaking microservice mesh communication. Using read-only Recommender permissions combined with pull-request workflows for high-risk items provides safety and auditability, while OS Policy enforcement handles repetitive baseline compliance efficiently.
This configuration attempts to use Policy Controller (an admission controller and policy engine for Kubernetes) to manage Google Cloud organization-level IAM bindings and disables CIS benchmark checks in host OS Policies.
AuthorizationPolicy resources). It does not manage or modify project-level or organization-level Google Cloud IAM permissions.The objective was specifically to enforce Kubernetes-native constraint templates and admission control policies on Pod specifications inside a GKE cluster.
This approach grants the CI/CD runner full administrative permissions over IAM recommendations via roles/recommender.iamAdmin and uses an event-driven Cloud Function to automatically mutate IAM policy bindings as soon as the Recommender API flags an over-privileged account.
roles/recommender.viewer) to fetch recommendations, making roles/recommender.iamAdmin overly permissive.The organization had a policy requiring fully autonomous, zero-human-touch IAM policy compaction in ephemeral non-production sandbox environments.
This option grants primitive roles/owner privileges to the pipeline runner identity, uses OS configuration policies in non-enforcing validation mode, and completely ignores IAM recommendations.
roles/owner role violates cloud security best practices by granting unrestricted administrative access across all project resources.The pipeline were solely an audit-only scanner with no mandate for active remediation or recommendation processing.
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