Easy1 markMultiple Choice

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

You are starting a new initiative and need to create a new Google Cloud project using the command-line interface.

Which gcloud command should you use?

Answer options:

A.

gcloud config set project

B.

gcloud projects create

C.

gcloud init project

D.

gcloud compute project create

How to approach this question

Recall the standard gcloud command structure: gcloud [group] [action]. Managing projects falls under the 'projects' group.

Full Answer

B.gcloud projects create✓ Correct
gcloud projects create
To create a new project in Google Cloud using the CLI, you use the Resource Manager commands, specifically `gcloud projects create [PROJECT_ID]`. The other commands either do not exist or serve different purposes like setting the active configuration.

Common mistakes

Confusing 'gcloud config set project' (which switches context) with project creation.

Practice the full GCP Associate Cloud Engineer Practice Exam 5

50 questions · hints · full answers · grading

More questions from this exam