Easy1 markMultiple Choice
Domain 1.1: Setting up cloud projects and accountsgcloudProject ManagementResource Manager

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 Cloud SDK. You want the project to be named 'data-analytics-prod' and you need to specify your organization ID (1234567890) so it is created in the correct hierarchy.

Which gcloud command should you use?

Answer options:

A.

gcloud config set project data-analytics-prod --organization=1234567890

B.

gcloud projects create data-analytics-prod --organization=1234567890

C.

gcloud compute project create data-analytics-prod --org=1234567890

D.

gcloud init project data-analytics-prod --organization=1234567890

How to approach this question

Recall the gcloud command group for project management. Project creation falls under 'gcloud projects'.

Full Answer

B.gcloud projects create data-analytics-prod --organization=1234567890✓ Correct
The `gcloud projects create` command is used to create a new Google Cloud project. The `--organization` flag allows you to specify the organization ID under which the project should be created.

Common mistakes

Confusing `gcloud config set project` (which changes your local active project) with `gcloud projects create`.

Practice the full GCP Associate Cloud Engineer Practice Exam 7

50 questions · hints · full answers · grading

More questions from this exam