0
0
AWScloud~10 mins

Basic CLI commands (s3, ec2) 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 list all S3 buckets using AWS CLI.

AWS
aws s3 [1]
Drag options to blanks, or click blank then click option'
Amv
Bcp
Crm
Dls
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'cp' instead of 'ls' will try to copy files.
Using 'rm' will attempt to delete buckets, which is dangerous.
2fill in blank
medium

Complete the code to start an EC2 instance with a specific instance ID.

AWS
aws ec2 [1] --instance-ids i-1234567890abcdef0
Drag options to blanks, or click blank then click option'
Astart-instances
Bstop-instances
Cterminate-instances
Ddescribe-instances
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'stop-instances' will stop the instance instead of starting it.
Using 'terminate-instances' will delete the instance permanently.
3fill in blank
hard

Fix the error in the command to copy a file to an S3 bucket.

AWS
aws s3 [1] myfile.txt s3://mybucket/
Drag options to blanks, or click blank then click option'
Acp
Bls
Cmv
Drm
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'ls' will only list files, not copy.
Using 'mv' moves files, which deletes the source.
Using 'rm' deletes files.
4fill in blank
hard

Fill both blanks to describe EC2 instances filtered by state 'running'.

AWS
aws ec2 [1] --filters Name=instance-state-name,Values=[2]
Drag options to blanks, or click blank then click option'
Adescribe-instances
Bstart-instances
Crunning
Dstopped
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'start-instances' will try to start instances, not describe them.
Filtering by 'stopped' shows inactive instances.
5fill in blank
hard

Fill all three blanks to copy a directory recursively to an S3 bucket with verbose output.

AWS
aws s3 [1] myfolder s3://mybucket/ --[2] --[3]
Drag options to blanks, or click blank then click option'
Acp
Brecursive
Cverbose
Dsync
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'sync' instead of 'cp' changes the command behavior.
Omitting 'recursive' copies only one file.
Omitting 'verbose' hides progress details.