ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 36 - Associate Cloud Engineer discussion

Report
Export

You have one project called proj-sa where you manage all your service accounts. You want to be able to use a service account from this project to take snapshots of VMs running in another project called proj-vm. What should you do?

A.
Download the private key from the service account, and add it to each VMs custom metadata.
Answers
A.
Download the private key from the service account, and add it to each VMs custom metadata.
B.
Download the private key from the service account, and add the private key to each VM's SSH keys.
Answers
B.
Download the private key from the service account, and add the private key to each VM's SSH keys.
C.
Grant the service account the IAM Role of Compute Storage Admin in the project called proj-vm.
Answers
C.
Grant the service account the IAM Role of Compute Storage Admin in the project called proj-vm.
D.
When creating the VMs, set the service account's API scope for Compute Engine to read/write.
Answers
D.
When creating the VMs, set the service account's API scope for Compute Engine to read/write.
Suggested answer: C

Explanation:

https://gtseres.medium.com/using-service-accounts-across-projects-in-gcp-cf9473fef8f0

You create the service account in proj-sa and take note of the service account email, then you go to proj-vm in IAM > ADD and add the service account's email as new member and give it the Compute Storage Admin role.

https://cloud.google.com/compute/docs/access/iam#compute.storageAdmin

asked 18/09/2024
Raphael Oliveir
42 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first