exam questions

Exam Associate Cloud Engineer All Questions

View all questions & answers for the Associate Cloud Engineer exam

Exam Associate Cloud Engineer topic 1 question 148 discussion

Actual exam question from Google's Associate Cloud Engineer
Question #: 148
Topic #: 1
[All Associate Cloud Engineer Questions]

A colleague handed over a Google Cloud Platform project for you to maintain. As part of a security checkup, you want to review who has been granted the Project
Owner role. What should you do?

  • A. In the console, validate which SSH keys have been stored as project-wide keys.
  • B. Navigate to Identity-Aware Proxy and check the permissions for these resources.
  • C. Enable Audit Logs on the IAM & admin page for all resources, and validate the results.
  • D. Use the command gcloud projects getג€"iamג€"policy to view the current role assignments.
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
ESP_SAP
Highly Voted 4 years ago
Correct Answer is (D): A simple approach would be to use the command flags available when listing all the IAM policy for a given project. For instance, the following command: `gcloud projects get-iam-policy $PROJECT_ID --flatten="bindings[].members" --format="table(bindings.members)" --filter="bindings.role:roles/owner"` outputs all the users and service accounts associated with the role ‘roles/owner’ in the project in question. https://groups.google.com/g/google-cloud-dev/c/Z6sZs7TvygQ?pli=1
upvoted 45 times
...
MohammedGhouse
Highly Voted 4 years ago
D: is the answer
upvoted 13 times
SSPC
4 years ago
D is the correct.
upvoted 3 times
yurstev
3 years, 8 months ago
D IS THE ANSWER
upvoted 4 times
...
...
...
blackBeard33
Most Recent 6 months, 4 weeks ago
Selected Answer: D
The Answer is D. Per documentation: https://cloud.google.com/sdk/gcloud/reference/projects/get-iam-policy. Also, just tried in my own account and it brought a list if all users and their roles.
upvoted 1 times
...
Captain1212
1 year ago
Selected Answer: D
D seems, more correct
upvoted 1 times
...
tomis2
2 years, 1 month ago
Selected Answer: D
gcloud iam get-iam-policy
upvoted 1 times
...
AzureDP900
2 years, 2 months ago
D is right
upvoted 1 times
...
Rutu_98
2 years, 3 months ago
Selected Answer: D
Answer is D
upvoted 2 times
...
somenick
2 years, 5 months ago
Selected Answer: D
gcloud projects get-iam-policy $PROJECT_ID
upvoted 1 times
...
obeythefist
2 years, 6 months ago
I chose D by a process of elimination. Here's my take: A. There's more than one way to access an instance than just the SSH keys, and SSH keys have nothing to do with Project Owner role. B. Barking up the wrong tree here, Identity-Aware Proxy is more for remotely accessing resources, rather than Project Owner IAM roles. C. This will only work if everyone who is a Project Owner accesses the system so you can see them in the logs. What if a Project Owner doesn't access the Project for a while? How long will you wait? Nope. D. By elimination, this is the best result.
upvoted 12 times
BigQuery
2 years, 5 months ago
NICE EXPLANATION; WAY TO G0 D
upvoted 1 times
...
...
HansKloss611
2 years, 7 months ago
Selected Answer: D
D is correct
upvoted 1 times
...
PR0704
2 years, 9 months ago
how can the admin be so inconsistent throughout with the answers..not good ..its so confusing
upvoted 2 times
tvinay
2 years, 9 months ago
Confusion!! that's the main goal here so that we all go to the docs and Study hard xD
upvoted 1 times
...
...
mohamedmahmoudf97
2 years, 11 months ago
D is the correct answer
upvoted 1 times
...
arsh1916
3 years, 3 months ago
D is correct
upvoted 2 times
...
GCP_Student1
3 years, 6 months ago
D. Use the command gcloud projects get""iam""policy to view the current role assignments.
upvoted 3 times
...
Bhagirathi
3 years, 8 months ago
D 200%
upvoted 3 times
...
Bhagirathi
3 years, 9 months ago
anyone will be confused - solution says one answer same time, all you guys have different choices here. what to take from this ?
upvoted 1 times
...
swatititame
3 years, 9 months ago
D. Use the command gcloud projects get""iam""policy to view the current role assignments.
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