0
0
AWScloud~10 mins

Amazon Machine Images (AMIs) 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 specify the AMI ID when launching an EC2 instance.

AWS
aws ec2 run-instances --image-id [1] --count 1 --instance-type t2.micro
Drag options to blanks, or click blank then click option'
Akey-name
Bami-0abcdef1234567890
Csecurity-group
Dinstance-type
Attempts:
3 left
💡 Hint
Common Mistakes
Using instance type or security group instead of AMI ID.
Leaving the AMI ID blank.
2fill in blank
medium

Complete the code to create a new AMI from an existing EC2 instance.

AWS
aws ec2 create-image --instance-id [1] --name "MyServerBackup"
Drag options to blanks, or click blank then click option'
Ai-1234567890abcdef0
Bami-0abcdef1234567890
Ct2.micro
DMyServerBackup
Attempts:
3 left
💡 Hint
Common Mistakes
Using an AMI ID instead of an instance ID.
Using the AMI name as the instance ID.
3fill in blank
hard

Fix the error in the command to deregister an AMI by filling the blank with the correct option.

AWS
aws ec2 deregister-image --image-id [1]
Drag options to blanks, or click blank then click option'
AMyServerBackup
Bi-1234567890abcdef0
Cami-0abcdef1234567890
Dt2.micro
Attempts:
3 left
💡 Hint
Common Mistakes
Using the instance ID instead of the AMI ID.
Using the AMI name or instance type instead of the AMI ID.
4fill in blank
hard

Fill both blanks to create an AMI with a description and no reboot option.

AWS
aws ec2 create-image --instance-id [1] --name "BackupImage" --description [2] --no-reboot
Drag options to blanks, or click blank then click option'
Ai-0a1b2c3d4e5f6g7h8
B"Backup of server before update"
C"MyServerBackup"
Dtrue
Attempts:
3 left
💡 Hint
Common Mistakes
Using AMI ID instead of instance ID for --instance-id.
Not quoting the description string.
5fill in blank
hard

Fill all three blanks to launch an EC2 instance with a specific AMI, instance type, and key pair.

AWS
aws ec2 run-instances --image-id [1] --instance-type [2] --key-name [3] --count 1
Drag options to blanks, or click blank then click option'
Aami-0a1b2c3d4e5f6g7h8
Bt3.medium
CMyKeyPair
Di-1234567890abcdef0
Attempts:
3 left
💡 Hint
Common Mistakes
Using instance ID instead of AMI ID for --image-id.
Using AMI ID instead of instance type for --instance-type.
Using instance ID instead of key pair name for --key-name.