Q: 17
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?
Options
Discussion
C imo, I saw a similar question on my last practice and it matched.
Its C since IAM roles are what you need for cross-project resource access. Granting Compute Storage Admin to the service account in proj-vm gives it snapshot permissions. The other options mess with keys or scopes but don't solve the permission problem. Pretty sure that's right, correct me if I missed something.
C tbh, seen similar scenario in official practice tests. Granting the right IAM role is the supported way. GCP docs cover this.
Be respectful. No spam.