0
0
GCPcloud~10 mins

Folders for grouping projects 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 folder under an organization in GCP.

GCP
gcloud resource-manager folders create --display-name=[1] --organization=123456789
Drag options to blanks, or click blank then click option'
A"My Folder"
BMyFolder
CMy Folder
D'MyFolder'
Attempts:
3 left
💡 Hint
Common Mistakes
Not using quotes around the folder name
Using spaces without quotes
2fill in blank
medium

Complete the code to list all folders under an organization.

GCP
gcloud resource-manager folders list --organization=[1]
Drag options to blanks, or click blank then click option'
A123456789
Bfolder-id
Cmy-org
Dproject-id
Attempts:
3 left
💡 Hint
Common Mistakes
Using organization name instead of ID
Using project ID instead of organization ID
3fill in blank
hard

Fix the error in the command to move a project to a folder.

GCP
gcloud projects move [1] --folder=[2]
Drag options to blanks, or click blank then click option'
A123456789
Bmy-project-123
Cfolders/987654321
D987654321
Attempts:
3 left
💡 Hint
Common Mistakes
Using folder name instead of project ID
Including 'folders/' prefix in folder ID
4fill in blank
hard

Fill both blanks to correctly move a project to a folder.

GCP
gcloud projects move [1] --folder=[2]
Drag options to blanks, or click blank then click option'
Amy-project-123
B987654321
Cfolders/987654321
D123456789
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'folders/' prefix in folder ID
Swapping project ID and folder ID
5fill in blank
hard

Fill all three blanks to create a folder, list folders, and move a project.

GCP
gcloud resource-manager folders create --display-name=[1] --organization=[2]
gcloud resource-manager folders list --organization=[2]
gcloud projects move [3] --folder=[4]
Drag options to blanks, or click blank then click option'
A"Finance"
B123456789
Cmy-project-123
D987654321
Attempts:
3 left
💡 Hint
Common Mistakes
Not quoting folder name
Using wrong IDs
Mixing project and folder IDs