Medium1 markMultiple Choice

GCP ACE · Question 02 · Domain 1.1: Setting up cloud projects and accounts

A new team member has joined your operations team. They need to be able to view all Compute Engine instances, their configurations, and their current state across your project, but they should not be able to start, stop, or modify any instances.

Which predefined IAM role should you assign to this user?

Answer options:

A.

roles/compute.networkViewer

B.

roles/viewer

C.

roles/compute.viewer

D.

roles/compute.instanceAdmin.v1

How to approach this question

Apply the principle of least privilege. Look for a predefined role specific to the service (Compute Engine) and the action (viewing).

Full Answer

C.roles/compute.viewer✓ Correct
The `roles/compute.viewer` role grants permissions to list and get information about Compute Engine resources without granting permission to modify them. This adheres to the principle of least privilege.

Common mistakes

Selecting `roles/viewer` because it sounds correct, but it grants too much access across the entire project.

Practice the full GCP Associate Cloud Engineer Practice Exam 3

50 questions · hints · full answers · grading

More questions from this exam