Medium1 markMultiple Choice

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

Your company uses Google Workspace. You need to grant a new developer, Alice, the ability to view all resources in your 'production-app' project, but she should not be able to modify anything. You want to follow the principle of least privilege using predefined roles.

What should you do?

Answer options:

A.

Assign Alice the roles/browser role at the organization level.

B.

Assign Alice the roles/viewer role at the project level.

C.

Create a custom role with 'get' and 'list' permissions and assign it to Alice.

D.

Assign Alice the roles/editor role at the project level.

How to approach this question

Identify the requirement: read-only access to all resources using predefined roles.

Full Answer

B.Assign Alice the roles/viewer role at the project level.✓ Correct
Assign Alice the roles/viewer role at the project level.
The basic Viewer role (`roles/viewer`) provides read-only access to state and metadata for all resources within the project. It is the most appropriate predefined role for someone who needs to view everything but change nothing.

Common mistakes

Selecting custom roles when the scenario explicitly asks for predefined roles.

Practice the full GCP Associate Cloud Engineer Practice Exam 4

50 questions · hints · full answers · grading

More questions from this exam