0
0
AWScloud~10 mins

Why EC2 matters for compute 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 launch an EC2 instance using AWS CLI.

AWS
aws ec2 run-instances --image-id [1] --count 1 --instance-type t2.micro
Drag options to blanks, or click blank then click option'
Aus-east-1
Binstance-12345
Ct2.large
Dami-0abcdef1234567890
Attempts:
3 left
💡 Hint
Common Mistakes
Using instance type or region instead of image ID.
Providing an invalid or incomplete AMI ID.
2fill in blank
medium

Complete the code to specify the instance type when launching an EC2 instance.

AWS
aws ec2 run-instances --image-id ami-0abcdef1234567890 --count 1 --instance-type [1]
Drag options to blanks, or click blank then click option'
At2.micro
Bmy-key-pair
Cus-west-2
Dami-123456
Attempts:
3 left
💡 Hint
Common Mistakes
Using an AMI ID or region instead of instance type.
Using a key pair name in place of instance type.
3fill in blank
hard

Fix the error in the command to add a key pair for SSH access.

AWS
aws ec2 run-instances --image-id ami-0abcdef1234567890 --count 1 --instance-type t2.micro --key-name [1]
Drag options to blanks, or click blank then click option'
At2.micro
Bus-east-1
Cmy-key-pair
Dami-0abcdef1234567890
Attempts:
3 left
💡 Hint
Common Mistakes
Using region or instance type instead of key pair name.
Using an AMI ID as the key name.
4fill in blank
hard

Fill both blanks to create a security group rule allowing SSH access on port 22.

AWS
aws ec2 authorize-security-group-ingress --group-id [1] --protocol [2] --port 22 --cidr 0.0.0.0/0
Drag options to blanks, or click blank then click option'
Asg-0123456789abcdef0
Btcp
Cudp
Dsg-abcdef0123456789
Attempts:
3 left
💡 Hint
Common Mistakes
Using UDP protocol for SSH.
Using incorrect security group IDs.
5fill in blank
hard

Fill all three blanks to tag an EC2 instance with Name and Environment tags.

AWS
aws ec2 create-tags --resources [1] --tags Key=Name,Value=[2] Key=Environment,Value=[3]
Drag options to blanks, or click blank then click option'
Ai-0abcdef1234567890
BProduction
CWebServer
DDevelopment
Attempts:
3 left
💡 Hint
Common Mistakes
Mixing up tag values.
Using incorrect instance IDs.