0
0
AWScloud~10 mins

Buckets and objects concept in AWS - 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 S3 bucket named 'my-bucket'.

AWS
aws s3api create-bucket --bucket [1] --region us-east-1
Drag options to blanks, or click blank then click option'
Abucket-name
Bmy-bucket
Cmy-object
Dbucket123
Attempts:
3 left
💡 Hint
Common Mistakes
Using an object name instead of a bucket name.
Leaving the bucket name blank.
2fill in blank
medium

Complete the code to upload a file named 'photo.jpg' to the bucket 'my-bucket'.

AWS
aws s3 cp photo.jpg s3://[1]/
Drag options to blanks, or click blank then click option'
Abucket1
Bphotos
Cmy-bucket
Dimages
Attempts:
3 left
💡 Hint
Common Mistakes
Using a folder name instead of the bucket name.
Omitting the bucket name.
3fill in blank
hard

Fix the error in the command to list all objects in the bucket 'my-bucket'.

AWS
aws s3api list-objects --bucket [1]
Drag options to blanks, or click blank then click option'
Abucket
Bbucket-my
Cmy-buckets
Dmy-bucket
Attempts:
3 left
💡 Hint
Common Mistakes
Misspelling the bucket name.
Using a generic word instead of the bucket name.
4fill in blank
hard

Fill both blanks to copy the object 'document.txt' from 'source-bucket' to 'destination-bucket'.

AWS
aws s3 cp s3://[1]/document.txt s3://[2]/
Drag options to blanks, or click blank then click option'
Asource-bucket
Bdestination-bucket
Cmy-bucket
Dbackup-bucket
Attempts:
3 left
💡 Hint
Common Mistakes
Swapping source and destination bucket names.
Using incorrect bucket names.
5fill in blank
hard

Fill all three blanks to delete the object 'oldfile.txt' from the bucket 'archive-bucket' using AWS CLI.

AWS
aws s3api delete-object --bucket [1] --key [2] --region [3]
Drag options to blanks, or click blank then click option'
Aarchive-bucket
Boldfile.txt
Cus-east-1
Dmy-bucket
Attempts:
3 left
💡 Hint
Common Mistakes
Using wrong bucket or object names.
Omitting the region parameter.