Welcome to ExamTopics
ExamTopics Logo
- Expert Verified, Online, Free.
exam questions

Exam Professional Cloud DevOps Engineer All Questions

View all questions & answers for the Professional Cloud DevOps Engineer exam

Exam Professional Cloud DevOps Engineer topic 1 question 95 discussion

Actual exam question from Google's Professional Cloud DevOps Engineer
Question #: 95
Topic #: 1
[All Professional Cloud DevOps Engineer Questions]

Your team deploys applications to three Google Kubernetes Engine (GKE) environments: development, staging, and production. You use GitHub repositories as your source of truth. You need to ensure that the three environments are consistent. You want to follow Google-recommended practices to enforce and install network policies and a logging DaemonSet on all the GKE clusters in those environments. What should you do?

  • A. Use Google Cloud Deploy to deploy the network policies and the DaemonSet. Use Cloud Monitoring to trigger an alert if the network policies and DaemonSet drift from your source in the repository.
  • B. Use Google Cloud Deploy to deploy the DaemonSet and use Policy Controller to configure the network policies. Use Cloud Monitoring to detect drifts from the source in the repository and Cloud Functions to correct the drifts.
  • C. Use Cloud Build to render and deploy the network policies and the DaemonSet. Set up Config Sync to sync the configurations for the three environments.
  • D. Use Cloud Build to render and deploy the network policies and the DaemonSet. Set up a Policy Controller to enforce the configurations for the three environments.
Show Suggested Answer Hide Answer
Suggested Answer: D 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
ManishKS
Highly Voted 1 year, 1 month ago
Option C is not as effective as Option D because it does not enforce the network policies and DaemonSet configurations. This means that unauthorized changes could still be made to the configurations. Config Sync is a tool that can be used to synchronize Kubernetes configurations across multiple clusters. However, it does not prevent unauthorized changes from being made to the configurations. Policy Controller is a tool that can be used to enforce Kubernetes configurations. It does this by monitoring the Kubernetes API for changes to the configurations and automatically reverting unauthorized changes. Therefore, Option D is a more secure and reliable option for ensuring that the network policies and DaemonSet are enforced and installed consistently across the three environments.
upvoted 9 times
...
surfer111
Most Recent 3 months, 2 weeks ago
Its a toss up here. C hits all the keywords in "https://cloud.google.com/kubernetes-engine/enterprise/config-sync/docs/overview" - source of truth, gitops, but does not talk about enforcement. However, policy controller is a subset of configsync and it does handle enforcement. "Constraints can be applied directly to your clusters using the Kubernetes API, or distributed to a set of clusters from a centralized source, like a Git repository, by using Config Sync." https://cloud.google.com/kubernetes-engine/enterprise/policy-controller/docs/overview#constraints Really seems like a trick question leading you to D when C is the right answer with the knowledge that you would configure policy controller as a sub step when setting up config sync for your gitops.
upvoted 1 times
...
winston9
5 months, 3 weeks ago
Selected Answer: C
This method leverages Cloud Build for rendering and deploying configurations, and Config Sync to ensure that the desired state specified in your GitHub repositories is consistently applied across all GKE clusters. This approach provides robust management and automatic synchronization, ensuring that configurations remain consistent across development, staging, and production environments.
upvoted 1 times
winston9
5 months, 3 weeks ago
C better than D: While Cloud Build and Policy Controller can work together, Config Sync provides a more complete solution for synchronizing configurations across multiple clusters.
upvoted 1 times
...
...
dija123
6 months, 2 weeks ago
Selected Answer: D
Should be D
upvoted 1 times
...
Xoxoo
9 months, 2 weeks ago
Selected Answer: D
Policy Controller can enforce the configurations specified in the repositories, ensuring consistency across the environments and enforcing compliance with defined policies.
upvoted 1 times
...
medox89
9 months, 3 weeks ago
Option C is the right one." Cloud Build: Ideal for building and deploying software artifacts based on your GitHub repositories, your chosen source of truth. Renders your network policies and DaemonSet configurations, ensuring consistency before deployment. Config Sync: Designed for configuration management across GKE clusters. Continuously synchronizes your rendered configurations (network policies and DaemonSet) from GitHub to all three environments (development, staging, production). Provides automated drift detection and remediation, ensuring consistency remains enforced.
upvoted 3 times
...
xhilmi
11 months, 3 weeks ago
Selected Answer: D
Option D is the recommended approach for ensuring consistency across the three Google Kubernetes Engine (GKE) environments—development, staging, and production—while adhering to Google-recommended practices. By using Cloud Build to render and deploy network policies and a DaemonSet, and implementing Policy Controller, you can enforce configurations uniformly across environments. Policy Controller ensures that the deployed configurations align with your desired state, providing a consistent and policy-driven approach. This method leverages the declarative nature of Kubernetes configurations, facilitating configuration management. Overall, Option D combines infrastructure-as-code principles with policy enforcement to maintain consistency and enhance manageability across GKE clusters in different environments.
upvoted 1 times
...
Andrei_Z
1 year ago
Selected Answer: D
I would go for D as well
upvoted 1 times
...
lelele2023
1 year ago
Selected Answer: D
"Policy Controller can catch and enforce policy violations on those resources before they are deployed. " https://cloud.google.com/anthos-config-management/docs/concepts/config-controller-overview
upvoted 1 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...