Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Google Professional Cloud Developer Exam - Topic 4 Question 119 Discussion

You have an application written in Python running in production on Cloud Run. Your application needs to read/write data stored in a Cloud Storage bucket in the same project. You want to grant access to your application following the principle of least privilege. What should you do?
A) Create a user-managed service account with a custom Identity and Access Management (IAM) role.
B) Create a user-managed service account with the Storage Admin Identity and Access Management (IAM) role.
C) Create a user-managed service account with the Project Editor Identity and Access Management (IAM) role.
D) Use the default service account linked to the Cloud Run revision in production.

Google Professional Cloud Developer Exam - Topic 4 Question 119 Discussion

Actual exam question for Google's Professional Cloud Developer exam
Question #: 119
Topic #: 4
[All Professional Cloud Developer Questions]

You have an application written in Python running in production on Cloud Run. Your application needs to read/write data stored in a Cloud Storage bucket in the same project. You want to grant access to your application following the principle of least privilege. What should you do?

Show Suggested Answer Hide Answer

Contribute your Thoughts:

0/2000 characters
Shad
25 minutes ago
Surprised that D) is even an option!
upvoted 0 times
...
Marya
5 days ago
I disagree, B) gives more control.
upvoted 0 times
...
Carlee
10 days ago
A) is the best choice for least privilege.
upvoted 0 times
...
Laquita
16 days ago
C) sounds risky, why give editor access when you don't need it?
upvoted 0 times
...
Polly
21 days ago
Wait, can you really use the default service account safely?
upvoted 0 times
...
Hobert
26 days ago
B) seems too broad for just reading/writing.
upvoted 0 times
...
Mayra
2 months ago
Totally agree, custom roles are the way to go!
upvoted 0 times
...
Isreal
3 months ago
A) is the best choice for least privilege.
upvoted 0 times
...
Stephen
3 months ago
I recall that using the default service account might give too many permissions, so I think we should avoid that option.
upvoted 0 times
...
Dante
3 months ago
I’m leaning towards option A, but I’m a bit uncertain if the custom role would cover all the necessary permissions for Cloud Storage.
upvoted 0 times
...
Devora
3 months ago
I think we practiced a similar question where we had to choose between custom roles and predefined ones. I feel like a custom role might be too complex for this case.
upvoted 0 times
...
Nu
4 months ago
I remember we talked about the principle of least privilege, but I'm not sure which IAM role would be the best fit for just reading and writing to Cloud Storage.
upvoted 0 times
...

Save Cancel