0
0
AWScloud~20 mins

Launch templates in AWS - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Launch Template Mastery
Get all challenges correct to earn this badge!
Test your skills under time pressure!
Architecture
intermediate
2:00remaining
Understanding Launch Template Versioning

You have created an AWS EC2 launch template with multiple versions. You want to ensure that your Auto Scaling group always uses the latest version of the launch template when launching instances.

Which configuration setting in the Auto Scaling group will achieve this behavior?

ASpecify the launch template name and set the version to '$Default' in the Auto Scaling group configuration.
BSpecify the launch template ID and set the version to '1' in the Auto Scaling group configuration.
CSpecify the launch template ID and set the version to '$Latest' in the Auto Scaling group configuration.
DSpecify the launch template name and set the version to '0' in the Auto Scaling group configuration.
Attempts:
2 left
💡 Hint

Think about how AWS identifies the most recent version of a launch template.

security
intermediate
2:00remaining
Launch Template and IAM Role Association

You want to launch EC2 instances using a launch template that automatically assigns an IAM role to the instances for accessing S3 buckets securely.

Where should you specify the IAM role in the launch template configuration?

AAttach the IAM role directly to the EC2 instances after launch manually.
BIn the launch template's 'IamInstanceProfile' section, specify the IAM role name or ARN.
CSpecify the IAM role in the user data script of the launch template.
DAssign the IAM role to the VPC where the instances will launch.
Attempts:
2 left
💡 Hint

Consider how AWS associates IAM roles with EC2 instances at launch time.

service_behavior
advanced
2:00remaining
Effect of Changing Launch Template Data on Running Instances

You update the user data script in an existing launch template version and set this new version as the default. What happens to the EC2 instances that were launched using the previous launch template versions?

AThe user data script update causes a reboot of all running instances to apply changes.
BAll running instances automatically update their user data script to the new version.
CExisting instances are terminated and replaced with new instances using the updated launch template version.
DExisting instances continue running with their original user data; only new instances use the updated user data.
Attempts:
2 left
💡 Hint

Think about how launch templates affect instances after they are launched.

Configuration
advanced
2:00remaining
Launch Template Network Interface Configuration

You want to create a launch template that launches EC2 instances with two network interfaces: one primary and one secondary. Which configuration in the launch template correctly defines this setup?

ADefine two network interfaces in the 'NetworkInterfaces' section, marking one as 'DeviceIndex' 0 and the other as 'DeviceIndex' 1.
BUse the 'SubnetId' field twice in the launch template to create two interfaces automatically.
CSpecify only one network interface in the launch template; add the second interface manually after instance launch.
DCreate two separate launch templates, each with one network interface, and launch instances from both.
Attempts:
2 left
💡 Hint

Consider how AWS identifies multiple network interfaces on an instance.

Best Practice
expert
3:00remaining
Managing Launch Template Versions for Production Stability

Your team uses launch templates for production EC2 instances. You want to deploy updates safely without affecting running instances and be able to roll back quickly if needed.

Which launch template versioning strategy best supports this goal?

ACreate a new launch template version for each update, test it in staging, then update the Auto Scaling group to use the new version only after validation.
BAlways use the '$Latest' version in the Auto Scaling group to ensure instances get the newest configuration immediately.
CDelete old launch template versions to keep only the current version for simplicity.
DEdit the default launch template version directly to apply changes instantly to all instances.
Attempts:
2 left
💡 Hint

Think about how to minimize risk and enable rollback when updating infrastructure.