Recall & Review
beginner
What command lists all your S3 buckets using AWS CLI?
Use
aws s3 ls to list all your S3 buckets. It shows bucket names and creation dates.Click to reveal answer
beginner
How do you create a new S3 bucket named 'mybucket' in AWS CLI?
Use
aws s3 mb s3://mybucket. 'mb' means make bucket.Click to reveal answer
intermediate
Which command shows all running EC2 instances?
Use
aws ec2 describe-instances --filters Name=instance-state-name,Values=running to see running EC2 instances.Click to reveal answer
beginner
How to start an EC2 instance with ID 'i-1234567890abcdef0' using AWS CLI?
Use
aws ec2 start-instances --instance-ids i-1234567890abcdef0 to start the instance.Click to reveal answer
beginner
What command copies a file 'photo.jpg' from your computer to an S3 bucket 'mybucket'?
Use
aws s3 cp photo.jpg s3://mybucket/ to copy the file to the bucket.Click to reveal answer
Which AWS CLI command lists all your S3 buckets?
✗ Incorrect
The correct command is
aws s3 ls to list all buckets.How do you stop an EC2 instance with ID 'i-abc123'?
✗ Incorrect
Use
aws ec2 stop-instances --instance-ids i-abc123 to stop an instance.Which command uploads a file 'data.txt' to S3 bucket 'mybucket'?
✗ Incorrect
The correct command is
aws s3 cp data.txt s3://mybucket/.What does the command
aws ec2 describe-instances do?✗ Incorrect
It lists details about your EC2 instances.
How to create a new S3 bucket named 'photos'?
✗ Incorrect
Use
aws s3 mb s3://photos to make a new bucket.Explain how to list, create, and upload files to an S3 bucket using AWS CLI.
Think about commands starting with 'aws s3' and their short forms.
You got /3 concepts.
Describe how to check running EC2 instances and start or stop an instance using AWS CLI.
Focus on 'describe-instances', 'start-instances', and 'stop-instances' commands.
You got /3 concepts.