Medium1 markMultiple Choice

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

You have created a new GCP project and want to deploy a Compute Engine instance. However, when you try to run the deployment command, you receive an error stating that the Compute Engine API is not enabled.

Which TWO methods can you use to enable the Compute Engine API for your project? (Select TWO)

Answer options:

A.

Navigate to APIs & Services > Library in the Cloud Console, search for Compute Engine API, and click Enable.

B.

Run the command: gcloud compute api enable

C.

Run the command: gcloud services enable compute.googleapis.com

D.

Add the 'API Enabler' IAM role to your user account.

E.

Create a billing budget alert for the Compute Engine API.

How to approach this question

Identify the valid Console and CLI methods for enabling GCP APIs.

Full Answer

Navigate to APIs & Services > Library in the Cloud Console, search for Compute Engine API, and click Enable., Run the command: gcloud services enable compute.googleapis.com
APIs in GCP can be enabled via the Google Cloud Console by navigating to the API Library, or via the Cloud SDK using the `gcloud services enable [SERVICE_NAME]` command. The service name for Compute Engine is `compute.googleapis.com`.

Common mistakes

Guessing incorrect gcloud syntax like `gcloud compute api enable`.

Practice the full GCP Associate Cloud Engineer Practice Exam 4

50 questions · hints · full answers · grading

More questions from this exam