Easy1 markMultiple Choice

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

You have recently joined a new team and need to set up a new Google Cloud project for a development environment. You want to use the Cloud SDK to create the project with the ID 'dev-env-789'.

Which gcloud command should you use?

Answer options:

A.

gcloud init project dev-env-789

B.

gcloud projects create dev-env-789

C.

gcloud config set project dev-env-789

D.

gcloud compute project create dev-env-789

How to approach this question

Recall the gcloud resource manager commands for project creation.

Full Answer

B.gcloud projects create dev-env-789✓ Correct
The `gcloud projects create` command is used to create a new Google Cloud project. You must specify the project ID, which must be globally unique.

Common mistakes

Confusing `config set project` (which changes your local context) with `projects create` (which provisions the resource in GCP).

Practice the full GCP Associate Cloud Engineer Practice Exam 4

50 questions · hints · full answers · grading

More questions from this exam