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

Unlimited Access

Get Unlimited Contributor Access to the all ExamTopics Exams!
Take advantage of PDF Files for 1000+ Exams along with community discussions and pass IT Certification Exams Easily.

Exam Professional Cloud DevOps Engineer topic 1 question 35 discussion

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

Your team uses Cloud Build for all CI/CD pipelines. You want to use the kubectl builder for Cloud Build to deploy new images to Google Kubernetes Engine
(GKE). You need to authenticate to GKE while minimizing development effort. What should you do?

  • A. Assign the Container Developer role to the Cloud Build service account.
  • B. Specify the Container Developer role for Cloud Build in the cloudbuild.yaml file.
  • C. Create a new service account with the Container Developer role and use it to run Cloud Build.
  • D. Create a separate step in Cloud Build to retrieve service account credentials and pass these to kubectl.
Show Suggested Answer Hide Answer
Suggested Answer: C 🗳️

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
[Removed]
Highly Voted 2 years, 11 months ago
I think A
upvoted 25 times
...
TNT87
Highly Voted 2 years, 8 months ago
A https://cloud.google.com/build/docs/securing-builds/configure-user-specified-service-accounts
upvoted 11 times
...
jomonkp
Most Recent 5 months, 2 weeks ago
Selected Answer: C
Option C
upvoted 2 times
...
Orzechowski
8 months ago
A https://cloud.google.com/build/docs/deploying-builds/deploy-gke#required_iam_permissions
upvoted 1 times
...
sidharthwader
10 months, 2 weeks ago
Doesn't C makes more sense ? Why is it A?
upvoted 1 times
aswani
10 months ago
are these questions still relevant?
upvoted 2 times
Magist3r
10 months ago
I hope that are still relevant. I'll take the exam this week, can someone confirm about aswani question?
upvoted 1 times
joshtechgroup
3 months, 4 weeks ago
can someone confirm now?
upvoted 1 times
...
...
...
...
samuelmorher
10 months, 3 weeks ago
I think that the A is incorrect... The good practices says that the CB like the other resources should avoid to use the default SA, so the correct one is the C which creates a SA and then give the required roles.
upvoted 1 times
aswani
10 months ago
are these questions still relevant?
upvoted 1 times
...
...
felipeschossler
1 year, 1 month ago
Selected Answer: A
100% A and this is the doc the proves this: https://cloud.google.com/build/docs/deploying-builds/deploy-gke#required_iam_permissions
upvoted 3 times
...
JonathanSJ
1 year, 4 months ago
Selected Answer: A
The best option for authenticating to GKE while minimizing development effort would be A. Assign the Container Developer role to the Cloud Build service account. Google Cloud Build uses a default service account to run the build, this service account is automatically created by Cloud Build and it has the necessary permissions to access the resources used by the build. By assigning the Container Developer role to this service account, it will have the necessary permissions to deploy new images to GKE. This way you don't need to create a new service account or specify the role in the cloudbuild.yaml file. This is an easy and secure way to authenticate to GKE without adding extra steps to the CI/CD pipeline.
upvoted 3 times
...
juliefighting
1 year, 4 months ago
Answer is A https://cloud.google.com/build/docs/deploying-builds/deploy-gke#required_iam_permissions
upvoted 1 times
...
floppino
1 year, 4 months ago
Selected Answer: A
Ans: A Exam passed and taken on 19/12/2022, 50/50 from this dump without buying the full access and looking for 'devops' word here: https://www.examtopics.com/discussions/google/1/
upvoted 1 times
...
hanweiCN
1 year, 5 months ago
i think A, new service account needs " Cloud Build Service Account " role and " kubernete engine developer" role to execute the build steps for cloud build.
upvoted 2 times
...
AzureDP900
1 year, 6 months ago
A is more suitable for this scenario https://cloud.google.com/build/docs/securing-builds/configure-access-for-cloud-build-service-account
upvoted 1 times
...
okercho
1 year, 7 months ago
I think A is correct, but please note that question specify that kubectl builder (https://github.com/GoogleCloudPlatform/cloud-builders/tree/master/kubectl) and NOT gke-deploy (https://github.com/GoogleCloudPlatform/cloud-builders/tree/master/gke-deploy) is being used! https://cloud.google.com/build/docs/deploying-builds/deploy-gke In any case, as specified in kubectl builder documentation: When executed in the Cloud Build environment, commands are executed with credentials of the builder service account for the build project.
upvoted 1 times
...
GCP72
1 year, 9 months ago
Selected Answer: A
Answer is A
upvoted 1 times
...
Pankul
2 years ago
Selected Answer: A
A is the correct answer
upvoted 1 times
...
cloudbee
2 years, 4 months ago
Selected Answer: A
A should be the correct one. because assigning permission to cloud build service account will give permission to deploy while minimizing additional overhead.
upvoted 4 times
...
Biden
2 years, 5 months ago
Agree with A. Reference to container.developer role: https://cloud.google.com/kubernetes-engine/docs/how-to/iam
upvoted 3 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 ...