0
0
AWScloud~10 mins

Why CLI matters for automation in AWS - Test Your Understanding

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'
Adelete-bucket
Bcreate-bucket
Cls
Dcp
Attempts:
3 left
💡 Hint
Common Mistakes
Using commands that create or delete buckets instead of listing.
2fill in blank
medium

Complete the code to automate EC2 instance start using AWS CLI.

AWS
aws ec2 [1] --instance-ids i-1234567890abcdef0
Drag options to blanks, or click blank then click option'
Astop-instances
Bstart-instances
Cterminate-instances
Ddescribe-instances
Attempts:
3 left
💡 Hint
Common Mistakes
Using stop or terminate commands by mistake.
3fill in blank
hard

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

AWS
aws s3 [1] myfile.txt s3://mybucket/
Drag options to blanks, or click blank then click option'
Aremove
Bcopy
Cmove
Dcp
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'copy' instead of 'cp', which causes an error.
4fill in blank
hard

Fill both blanks to create a new IAM user with AWS CLI.

AWS
aws iam [1] --user-name [2]
Drag options to blanks, or click blank then click option'
Acreate-user
Bdelete-user
Cnew-user
Dadd-user
Attempts:
3 left
💡 Hint
Common Mistakes
Using invalid commands like 'new-user' or 'add-user'.
5fill in blank
hard

Fill all three blanks to automate EC2 instance creation with AWS CLI.

AWS
aws ec2 [1] --image-id [2] --count [3] --instance-type t2.micro
Drag options to blanks, or click blank then click option'
Arun-instances
Bami-0abcdef1234567890
C1
Dstart-instances
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'start-instances' which only starts existing instances.