Medium1 markMultiple Choice

GCP ACE · Question 42 · Domain 5.1: Managing Identity and Access Management (IAM)

You need to grant a new auditor access to your Google Cloud project. The auditor needs to be able to list and view the configuration of all Compute Engine instances, but they must NOT be able to start, stop, or modify them. They also should not have access to view Cloud Storage data.

Which IAM role should you assign?

Answer options:

A.

roles/compute.viewer

B.

roles/compute.networkViewer

C.

roles/viewer

D.

roles/compute.admin

How to approach this question

Match the service (Compute Engine) and the access level (read-only) to the correct predefined role format.

Full Answer

A.roles/compute.viewer✓ Correct
roles/compute.viewer
The `roles/compute.viewer` role provides read-only access to get and list Compute Engine resources. It does not allow modifications, and because it is a predefined role specific to Compute Engine, it does not grant access to other services like Cloud Storage. The primitive `roles/viewer` would grant too much access.

Common mistakes

Selecting `roles/viewer` (primitive role) which grants read access to everything, not just Compute Engine.

Practice the full GCP Associate Cloud Engineer Practice Exam 5

50 questions · hints · full answers · grading

More questions from this exam