You run the command aws s3 mb s3://my-unique-bucket-12345. What is the expected result if the bucket name is globally unique and you have permissions?
aws s3 mb s3://my-unique-bucket-12345
Think about what mb means in the AWS S3 CLI.
The aws s3 mb command means 'make bucket'. If the bucket name is unique and you have permission, it creates the bucket and shows a success message.
Which AWS CLI command correctly lists all EC2 instances in the default region?
Think about the AWS CLI command that describes resources.
The correct command to list EC2 instances is aws ec2 describe-instances. Other options are invalid commands.
You want to stop an EC2 instance with ID i-0abcd1234efgh5678 using AWS CLI. Which command will correctly stop the instance?
Stopping an instance is different from terminating or rebooting it.
The stop-instances command stops the instance without deleting it. Terminate deletes it, reboot restarts it, and start turns it on.
You run aws s3 cp file.txt s3://mybucket/ without specifying any ACL options. What is the default permission behavior for the uploaded file?
aws s3 cp file.txt s3://mybucket/
Think about default ACL behavior when none is specified.
By default, files uploaded to S3 are private and accessible only to the bucket owner unless ACL options are specified.
You want to launch an EC2 instance and tag it with Environment=Production using a single AWS CLI command. Which command correctly achieves this?
Tagging requires specifying resource type and tags in a specific format.
The --tag-specifications option requires the resource type and tags in JSON-like syntax. Only option C uses the correct syntax.