0
0
AWScloud~10 mins

Launch templates 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 create a launch template with a name.

AWS
aws ec2 create-launch-template --launch-template-name [1] --version-description "v1" --launch-template-data file://template.json
Drag options to blanks, or click blank then click option'
Atemplate123
BMyLaunchTemplate
CLaunchTemplate1
DTestTemplate
Attempts:
3 left
💡 Hint
Common Mistakes
Using spaces in the launch template name
Leaving the name empty
2fill in blank
medium

Complete the code to specify the AMI ID in the launch template data.

AWS
{
  "ImageId": "[1]",
  "InstanceType": "t2.micro"
}
Drag options to blanks, or click blank then click option'
Aami-xyz789
Bami-12345
Cami-0abcdef1234567890
Dimage-123456
Attempts:
3 left
💡 Hint
Common Mistakes
Using invalid AMI ID formats
Using placeholder text instead of real AMI IDs
3fill in blank
hard

Fix the error in the launch template data to correctly specify the instance type.

AWS
{
  "ImageId": "ami-0abcdef1234567890",
  "InstanceType": "[1]"
}
Drag options to blanks, or click blank then click option'
At2.micro
Bmicro.t2
Ct2_micro
Dt2micro
Attempts:
3 left
💡 Hint
Common Mistakes
Using underscores or missing dots in instance type
Swapping family and size order
4fill in blank
hard

Fill both blanks to specify the key name and security group IDs in the launch template data.

AWS
{
  "KeyName": "[1]",
  "SecurityGroupIds": ["[2]"]
}
Drag options to blanks, or click blank then click option'
AMyKeyPair
Bdefault
Csg-0a1b2c3d4e5f6g7h8
Dsg-12345678
Attempts:
3 left
💡 Hint
Common Mistakes
Using security group names instead of IDs
Using invalid key pair names
5fill in blank
hard

Fill all three blanks to create a launch template data snippet with user data, tag specifications, and block device mappings.

AWS
{
  "UserData": "[1]",
  "TagSpecifications": [{"ResourceType": "instance", "Tags": [{"Key": "Name", "Value": "[2]"}]}],
  "BlockDeviceMappings": [{"DeviceName": "/dev/xvda", "Ebs": {"VolumeSize": [3]]
}
Drag options to blanks, or click blank then click option'
AIyEvYmluL2Jhc2gKZWNobyAiSGVsbG8gV29ybGQiID4gL2hvbWUvZXMvdXNlci9pbmRleC50eHQ=
BMyInstance
C30
DHelloWorld
Attempts:
3 left
💡 Hint
Common Mistakes
Using plain text instead of base64 for user data
Incorrect volume size types
Missing tag keys or values