0
0
GCPcloud~10 mins

Storage commands (gsutil) 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 list all buckets in your Google Cloud project.

GCP
gsutil [1]
Drag options to blanks, or click blank then click option'
Acp
Brm
Cls
Dmb
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'mb' which is for making buckets.
Using 'cp' which copies files.
Using 'rm' which deletes files or buckets.
2fill in blank
medium

Complete the code to create a new bucket named 'my-new-bucket'.

GCP
gsutil [1] gs://my-new-bucket
Drag options to blanks, or click blank then click option'
Als
Bmb
Crm
Dcp
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'rm' which deletes buckets.
Using 'ls' which lists buckets.
Using 'cp' which copies files.
3fill in blank
hard

Fix the error in the command to copy a file 'data.txt' to the bucket 'my-bucket'.

GCP
gsutil [1] data.txt gs://my-bucket
Drag options to blanks, or click blank then click option'
Als
Brm
Cmb
Dcp
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'rm' which deletes files.
Using 'mb' which creates buckets.
Using 'ls' which lists buckets or files.
4fill in blank
hard

Fill both blanks to remove the file 'old-data.txt' from the bucket 'archive-bucket'.

GCP
gsutil [1] gs://archive-bucket/[2]
Drag options to blanks, or click blank then click option'
Arm
Bcp
Cold-data.txt
Dmb
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'cp' which copies files instead of deleting.
Using 'mb' which creates buckets.
Not specifying the file name to delete.
5fill in blank
hard

Fill all three blanks to copy all files from local folder 'backup' to the bucket 'data-bucket' recursively.

GCP
gsutil [1] -[2] [3] backup/* gs://data-bucket
Drag options to blanks, or click blank then click option'
Acp
Br
C-m
Drm
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'rm' which deletes files.
Forgetting the recursive flag '-r'.
Not using '-m' for faster copying.