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)
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
Q01You are starting a new initiative and need to create a new Google Cloud project using the command...EasyQ02A developer on your team needs to manage App Engine applications, including deploying new version...MediumQ04Which statement best describes the relationship between Google Cloud projects and billing accounts?EasyQ05Your company wants to be notified immediately in their Slack channel whenever their monthly Googl...MediumQ06You have just installed the Google Cloud SDK on your local workstation. You need to authenticate ...Medium
Expert