PROFESSIONAL-CLOUD-DEVOPS-ENGINEER practice question 1 of 25
[Building and implementing CI/CD pipelines for a service] You need to enforce several constraint templates across your Google Kubernetes Engine (GKE) clusters. The constraints include policy parameters, such as restricting the Kubernetes API. You must ensure that the policy parameters are stored in a GitHub repository and automatically applied when changes occur. What should you do?
Full set: 205 questionsAnthos Config Management is Google Cloud's purpose-built GitOps solution for managing configurations and policies across multiple Kubernetes clusters. By pointing Anthos Config Management to a GitHub repository, it automatically detects any changes (commits) to the constraint templates and their parameters. It then applies these changes to all enrolled GKE clusters, ensuring they are consistently in the state defined in the Git repository. This provides a declarative, automated, and auditable way to enforce policies, which is the core requirement of the question.
A. This is a custom CI/CD approach. While possible, it's less integrated and requires more manual scripting and maintenance than the managed GitOps solution provided by Anthos Config Management.
B. Anthos Service Mesh is used for managing service-to-service communication, security, and observability within a service mesh. It is not designed for cluster configuration or policy management from Git.
D. Config Connector manages Google Cloud resources (e.g., Cloud SQL, Pub/Sub) via the Kubernetes API. It does not manage Kubernetes-native policy objects or synchronize them from a Git repository.
1. Google Cloud, Anthos Config Management overview. "Anthos Config Management lets you create a common configuration... for all your administrative and policy needs... This configuration is stored in a central Git repository... Anthos Config Management checks for new commits and applies them to all clusters."
2. Google Cloud, Policy Controller overview. "Policy Controller is built on the open source Open Policy Agent (OPA) Gatekeeper project... You can manage and audit your policies by using Anthos Config Management..." This shows the direct integration for the use case described.
Keep practicing
Take the free PROFESSIONAL-CLOUD-DEVOPS-ENGINEER practice test
Ten exam-style questions with answers and explanations, plus the exam facts and study guides.
More questions
Other PROFESSIONAL-CLOUD-DEVOPS-ENGINEER practice questions
- Question 2You deployed an application into a large Standard Google Kubernetes Engine (GKE) cluster.…
- Question 3You are responding to a high-priority incident where a critical, user-facing payment serv…
- Question 4[Applying Site Reliability Engineering (SRE) principles to a service] You support a user-…
- Question 5You are deploying an application that needs to access sensitive information. You need to …
- Question 6[Building and implementing CI/CD pipelines for a service] You are building an application…
- Question 7[Optimizing service performance] You support a Node.js application running on Google Kube…
