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 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?
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
Q02Your company is migrating to Google Cloud and wants to manage user identities centrally. They cur...MediumQ03You have just created a new Google Cloud project and want to deploy a containerized application u...MediumQ04Your finance team wants to perform complex SQL queries on your Google Cloud billing data to analy...MediumQ05You are managing a development project in Google Cloud. You want to ensure that you are notified ...EasyQ06You have just installed the Google Cloud SDK on your local workstation. You need to authenticate ...Easy
Expert