0
0
GCPcloud~10 mins

Projects as organizational units 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 the gcloud CLI.

GCP
gcloud projects create [1] --name="My Project"
Drag options to blanks, or click blank then click option'
Aproject-id-001
B1234567890
Cmy-project-123
Ddefault-project
Attempts:
3 left
💡 Hint
Common Mistakes
Using a numeric-only string as project ID
Using uppercase letters in project ID
Using reserved or default names
2fill in blank
medium

Complete the code to list all projects under your organization using gcloud CLI.

GCP
gcloud projects list --filter='parent.type:organization AND parent.id=[1]'
Drag options to blanks, or click blank then click option'
Amy-org
Borganization-id
Cdefault
D123456789012
Attempts:
3 left
💡 Hint
Common Mistakes
Using organization name instead of numeric ID
Using placeholder text instead of actual ID
3fill in blank
hard

Fix the error in the command to set the billing account for a project.

GCP
gcloud beta billing projects [1] --billing-account=000000-000000-000000
Drag options to blanks, or click blank then click option'
Alink
Bset-billing-account
Cupdate
Dassign
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'set-billing-account' which is invalid
Using 'update' or 'assign' which are not valid subcommands
4fill in blank
hard

Fill both blanks to assign a role to a user on a project using gcloud CLI.

GCP
gcloud projects [1]-iam-policy-binding [2] --member='user:alice@example.com' --role='roles/viewer'
Drag options to blanks, or click blank then click option'
Aadd
Bremove
Cmy-project-001
Dtest-project-123
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'remove' instead of 'add'
Using invalid project IDs
5fill in blank
hard

Fill all three blanks to create a new project with a specific organization and folder.

GCP
gcloud projects create [1] --name="New Project" --organization=[2] --folder=[3]
Drag options to blanks, or click blank then click option'
Anew-project-789
B123456789012
C345678901234
Ddefault-folder
Attempts:
3 left
💡 Hint
Common Mistakes
Using default or placeholder values
Mixing organization and folder IDs