exam questions

Exam Professional Cloud Security Engineer All Questions

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

Exam Professional Cloud Security Engineer topic 1 question 32 discussion

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

You are creating an internal App Engine application that needs to access a user's Google Drive on the user's behalf. Your company does not want to rely on the current user's credentials. It also wants to follow Google-recommended practices.
What should you do?

  • A. Create a new Service account, and give all application users the role of Service Account User.
  • B. Create a new Service account, and add all application users to a Google Group. Give this group the role of Service Account User.
  • C. Use a dedicated G Suite Admin account, and authenticate the application's operations with these G Suite credentials.
  • D. Create a new service account, and grant it G Suite domain-wide delegation. Have the application use it to impersonate the user.
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
mozammil89
Highly Voted 4 years, 7 months ago
I think the correct answer is D https://developers.google.com/admin-sdk/directory/v1/guides/delegation
upvoted 16 times
...
eeghai7thioyaiR4
Most Recent 6 months ago
A and B are wrong Service Account User is use to grant someone the ability to impersonate a service account (ref: https://cloud.google.com/iam/docs/understanding-roles) So with those solution, the user could do some actions as the newly created service account We want the opposite: the service account need to do some actions as some user => D is the only working solution
upvoted 1 times
...
chagchoug
8 months, 2 weeks ago
Selected Answer: D
Option A is false because it does not address the requirement of accessing a user's Google Drive on their behalf without relying on the user's credentials. Instead, option D, which involves granting domain-wide delegation to a service account for impersonation, is the recommended approach for this scenario.
upvoted 1 times
...
Olen93
1 year, 8 months ago
I'm not sure if D is the correct answer. The question specifically states that they want to follow Google-recommended practices and https://cloud.google.com/iam/docs/best-practices-service-accounts#domain-wide-delegation states to avoid domain-wide delegation. I do agree that D is the only way a service account can impersonate the user though
upvoted 1 times
...
Meyucho
1 year, 11 months ago
Selected Answer: D
A (Wrong) The access will be with the SA not the user's account. B (Wrong) Same as A. C. (Wrong) In this case the access is with the admins account, not user's. D. (CORRECT!) It's the only answer that really impersonate the user.
upvoted 3 times
...
AzureDP900
1 year, 11 months ago
D. Create a new service account, and grant it G Suite domain-wide delegation. Have the application use it to impersonate the user.
upvoted 1 times
...
AwesomeGCP
2 years ago
Selected Answer: D
correct answer is D https://developers.google.com/admin-sdk/directory/v1/guides/delegation
upvoted 2 times
...
Medofree
2 years, 6 months ago
Selected Answer: D
Clearly D is the right answer
upvoted 2 times
...
Rhehehe
2 years, 10 months ago
They are asking for google recommended practice. Does D says that?
upvoted 1 times
...
[Removed]
3 years, 12 months ago
Ans - D
upvoted 2 times
...
CHECK666
4 years ago
D is the answer.
upvoted 1 times
...
ArizonaClassics
4 years, 2 months ago
D is the best choice
upvoted 1 times
...
MarkDillon1075
4 years, 3 months ago
I agree D
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 ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago