Medium1 markMultiple Choice

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

You have created a new Google Cloud project. You need to allow a specific group of developers to provision Compute Engine virtual machines. The Compute Engine API has not been enabled yet.

Which TWO actions must you take to fulfill this requirement? (Select TWO)

Answer options:

A.

Run gcloud services enable compute.googleapis.com

B.

Assign the Compute Admin role to the developer group

C.

Run gcloud compute api enable

D.

Assign the Project Editor role to the developer group

E.

Assign the Compute Viewer role to the developer group

How to approach this question

Identify the two distinct prerequisites: 1) The API must be enabled. 2) The users need appropriate permissions (least privilege).

Full Answer

Enable the Compute Engine API, Assign the Compute Admin role to the developer group
Before using any Google Cloud service, its API must be enabled. The correct command is `gcloud services enable compute.googleapis.com`. Secondly, to allow developers to create VMs without granting excessive permissions, you should assign them the Compute Admin role (roles/compute.admin).

Common mistakes

Selecting Project Editor instead of Compute Admin, or choosing the wrong gcloud command syntax for enabling APIs.

Practice the full GCP Associate Cloud Engineer Practice Exam 5

50 questions · hints · full answers · grading

More questions from this exam