Practice - 5 Tasks
Answer the questions below
1fill in blank
easyComplete 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'
Attempts:
3 left
💡 Hint
Common Mistakes
Not using quotes around the folder name
Using spaces without quotes
✗ Incorrect
The display name must be a string enclosed in quotes to handle spaces or special characters.
2fill in blank
mediumComplete 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'
Attempts:
3 left
💡 Hint
Common Mistakes
Using organization name instead of ID
Using project ID instead of organization ID
✗ Incorrect
The organization flag requires the numeric organization ID, not names or project IDs.
3fill in blank
hardFix 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'
Attempts:
3 left
💡 Hint
Common Mistakes
Using folder name instead of project ID
Including 'folders/' prefix in folder ID
✗ Incorrect
The project ID is the first argument; the folder flag requires only the folder numeric ID without 'folders/' prefix.
4fill in blank
hardFill 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'
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'folders/' prefix in folder ID
Swapping project ID and folder ID
✗ Incorrect
The project ID is 'my-project-123' and the folder ID is the numeric ID without 'folders/' prefix.
5fill in blank
hardFill 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'
Attempts:
3 left
💡 Hint
Common Mistakes
Not quoting folder name
Using wrong IDs
Mixing project and folder IDs
✗ Incorrect
Use 'Finance' as folder name with quotes, organization ID 123456789, project ID 'my-project-123', and folder ID 987654321.