0
0
GCPcloud~10 mins

Projects as resource containers in GCP - Interactive Code Practice

Choose your learning style9 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the code to create a new GCP project using gcloud CLI.

GCP
gcloud projects create [1] --name="My Project"
Drag options to blanks, or click blank then click option'
Anew-project
Bproject-id
Cmy-project-id
Dcreate-project
Attempts:
3 left
💡 Hint
Common Mistakes
Using a name instead of a project ID
Using spaces or uppercase letters in the project ID
2fill in blank
medium

Complete the code to list all projects under your GCP account.

GCP
gcloud projects [1]
Drag options to blanks, or click blank then click option'
Alist
Bshow
Cdescribe
Ddelete
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'show' which displays details of one project
Using 'delete' which removes a project
3fill in blank
hard

Fix the error in the command to set the active project.

GCP
gcloud config set project [1]
Drag options to blanks, or click blank then click option'
Aproject-id
Bproject id
Cproject_name
DprojectId
Attempts:
3 left
💡 Hint
Common Mistakes
Using the project name instead of the project ID
Including spaces in the project ID
4fill in blank
hard

Fill both blanks to create a project and set it as active.

GCP
gcloud projects create [1] --name="[2]"
Drag options to blanks, or click blank then click option'
Amy-new-project
BMy New Project
Cproject-123
DTest Project
Attempts:
3 left
💡 Hint
Common Mistakes
Swapping project ID and project name
Using spaces in project ID
5fill in blank
hard

Fill all three blanks to list projects, filter by name, and format output.

GCP
gcloud projects list --filter='name:[1]' --format='[2](projectId, [3])'
Drag options to blanks, or click blank then click option'
ATest
Btable
Cname
Djson
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'json' format instead of 'table'
Filtering by project ID instead of name