0
0
GCPcloud~10 mins

Project configuration 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 set the project ID in the gcloud CLI.

GCP
gcloud config set project [1]
Drag options to blanks, or click blank then click option'
Amy-project-id
B--project
Cproject-id
Dset-project
Attempts:
3 left
💡 Hint
Common Mistakes
Using flags like --project instead of the project ID
Typing 'set-project' which is not a valid argument
2fill in blank
medium

Complete the command to create a new GCP project with the given project ID.

GCP
gcloud projects create [1]
Drag options to blanks, or click blank then click option'
A--name
B--project
Cmy-new-project-123
Dcreate-project
Attempts:
3 left
💡 Hint
Common Mistakes
Using flags like --name or --project incorrectly
Typing 'create-project' which is not a valid argument
3fill in blank
hard

Fix the error in the command to list all projects.

GCP
gcloud [1] projects list
Drag options to blanks, or click blank then click option'
Alist
Bprojects
Ccompute
Dconfig
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'config' or 'compute' which are unrelated command groups here
Using 'list' alone which is not a command group
4fill in blank
hard

Fill both blanks to set the billing account for a project.

GCP
gcloud billing projects link [1] --billing-account=[2]
Drag options to blanks, or click blank then click option'
Alink
Bmy-project-123
CbillingAccounts/01A2B3-C4D5E6-F7G8H9
Ddescribe
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'describe' instead of 'link' for billing
Putting the project ID instead of the billing account ID as the second argument
5fill in blank
hard

Fill all three blanks to assign the 'viewer' role to a user on a project.

GCP
gcloud projects add-iam-policy-binding [1] --member='user:[2]' --role='[3]'
Drag options to blanks, or click blank then click option'
Amy-project-456
Balice@example.com
Croles/viewer
Droles/editor
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'roles/editor' instead of 'roles/viewer' for viewer access
Putting the billing account or other IDs instead of project ID
Using incorrect member format