Practice - 5 Tasks
Answer the questions below
1fill in blank
easyComplete the code to list all S3 buckets using AWS CLI.
AWS
aws s3 [1] Drag options to blanks, or click blank then click option'
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.
✗ Incorrect
The ls command lists all S3 buckets in your AWS account.
2fill in blank
mediumComplete 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'
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.
✗ Incorrect
The start-instances command starts a stopped EC2 instance.
3fill in blank
hardFix 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'
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.
✗ Incorrect
The cp command copies files to or from S3 buckets.
4fill in blank
hardFill 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'
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'start-instances' will try to start instances, not describe them.
Filtering by 'stopped' shows inactive instances.
✗ Incorrect
The describe-instances command shows details of instances. Filtering by running shows only active instances.
5fill in blank
hardFill 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'
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.
✗ Incorrect
The cp command copies files. The recursive option copies all files in folders. The verbose option shows details during the copy.