Cyber Monday 2024! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Google Exam Professional Cloud DevOps Engineer Topic 5 Question 75 Discussion

Actual exam question for Google's Professional Cloud DevOps Engineer exam
Question #: 75
Topic #: 5
[All Professional Cloud DevOps Engineer Questions]

Your company runs applications in Google Kubernetes Engine (GKE) that are deployed following a GitOps methodology.

Application developers frequently create cloud resources to support their applications. You want to give developers the ability to manage infrastructure as code, while ensuring that you follow Google-recommended practices. You need to ensure that infrastructure as code reconciles periodically to avoid configuration drift. What should you do?

Show Suggested Answer Hide Answer
Suggested Answer: A

The best option to give developers the ability to manage infrastructure as code, while ensuring that you follow Google-recommended practices, is to install and configure Config Connector in Google Kubernetes Engine (GKE).

Config Connector is a Kubernetes add-on that allows you to manage Google Cloud resources through Kubernetes. You can use Config Connector to create, update, and delete Google Cloud resources using Kubernetes manifests. Config Connector also reconciles the state of the Google Cloud resources with the desired state defined in the manifests, ensuring that there is no configuration drift1.

Config Connector follows the GitOps methodology, as it allows you to store your infrastructure configuration in a Git repository, and use tools such as Anthos Config Management or Cloud Source Repositories to sync the configuration to your GKE cluster. This way, you can use Git as the source of truth for your infrastructure, and enable reviewable and version-controlled workflows2.

Config Connector can be installed and configured in GKE using either the Google Cloud Console or the gcloud command-line tool. You need to enable the Config Connector add-on for your GKE cluster, and create a Google Cloud service account with the necessary permissions to manage the Google Cloud resources. You also need to create a Kubernetes namespace for each Google Cloud project that you want to manage with Config Connector3.

By using Config Connector in GKE, you can give developers the ability to manage infrastructure as code, while ensuring that you follow Google-recommended practices. You can also benefit from the features and advantages of Kubernetes, such as declarative configuration, observability, and portability4.


1: Overview | Artifact Registry Documentation | Google Cloud

2: Deploy Anthos on GKE with Terraform part 1: GitOps with Config Sync | Google Cloud Blog

3: Installing Config Connector | Config Connector Documentation | Google Cloud

4: Why use Config Connector? | Config Connector Documentation | Google Cloud

Contribute your Thoughts:

Kanisha
2 months ago
You know, this question is making me hungry. I could really go for a nice terraform pie right about now.
upvoted 0 times
...
Kizzy
2 months ago
Hmm, I'm torn between A and D. But I guess I'd go with A. Config Connector just sounds more 'Google-y', you know?
upvoted 0 times
...
Jesse
2 months ago
C? Really? Manually running Terraform in a Pod? That's so 2010. Wake me up when you've got a real answer.
upvoted 0 times
Dyan
1 months ago
Yeah, using Config Connector or Cloud Build with Terraform integration would be a better approach.
upvoted 0 times
...
Yolande
1 months ago
D) Create a Job resource with a Terraform docker image to execute terraform plan and terraform apply commands.
upvoted 0 times
...
Amber
2 months ago
B) Configure Cloud Build with a Terraform builder to execute plan and apply commands.
upvoted 0 times
...
Joseph
2 months ago
A) Install and configure Config Connector in Google Kubernetes Engine (GKE).
upvoted 0 times
...
...
Ma
3 months ago
D is the way to go! A Job resource with Terraform is the perfect solution to avoid configuration drift.
upvoted 0 times
Zona
2 months ago
Cloud Build with a Terraform builder is another option to consider for executing plan and apply commands.
upvoted 0 times
...
Lindsey
2 months ago
Config Connector in GKE can also be a useful tool for managing infrastructure as code.
upvoted 0 times
...
Yuonne
2 months ago
It's important to follow Google-recommended practices when managing cloud resources for applications in GKE.
upvoted 0 times
...
Margart
2 months ago
I agree, using a Job resource with Terraform is a great way to ensure infrastructure as code reconciles periodically.
upvoted 0 times
...
...
Leatha
3 months ago
I think option D) Create a Job resource with a Terraform docker image might be a good alternative for periodic reconciliation.
upvoted 0 times
...
Lavonda
3 months ago
I'm not sure, I think option B) Configure Cloud Build with Terraform builder could also work well.
upvoted 0 times
...
Leslie
3 months ago
B sounds good to me. Cloud Build is super powerful, and using Terraform makes it easy to manage infrastructure as code.
upvoted 0 times
Samira
2 months ago
Yeah, I agree. It's a good choice to ensure infrastructure as code reconciles periodically.
upvoted 0 times
...
Jannette
3 months ago
B sounds good. Cloud Build is powerful and Terraform is great for managing infrastructure as code.
upvoted 0 times
...
...
Ronnie
3 months ago
A, definitely! Config Connector is the way to go for GitOps on GKE. It's like having your own personal infrastructure butler.
upvoted 0 times
Micaela
3 months ago
A, definitely! Config Connector is the way to go for GitOps on GKE. It's like having your own personal infrastructure butler.
upvoted 0 times
...
Cathrine
3 months ago
A) Install and configure Config Connector in Google Kubernetes Engine (GKE).
upvoted 0 times
...
...
Annabelle
3 months ago
I agree with Jacklyn, Config Connector seems like the best choice to avoid configuration drift.
upvoted 0 times
...
Jacklyn
4 months ago
I think we should go with option A) Install and configure Config Connector in GKE.
upvoted 0 times
...

Save Cancel