AWS - Auto ScalingWhich of the following is the correct way to specify a launch template version in an AWS CLI command to run an EC2 instance?Aaws ec2 run-instances --launch-template LaunchTemplateId=lt-12345678,Version=2Baws ec2 run-instances --template-id lt-12345678 --version 2Caws ec2 run-instances --launch-template-id lt-12345678 --template-version 2Daws ec2 run-instances --launch-template lt-12345678 version=2Check Answer
Step-by-Step SolutionSolution:Step 1: Recall AWS CLI syntax for launch templatesThe correct syntax uses --launch-template with parameters LaunchTemplateId and Version separated by commas.Step 2: Match syntax to optionsaws ec2 run-instances --launch-template LaunchTemplateId=lt-12345678,Version=2 matches the correct syntax exactly.Final Answer:aws ec2 run-instances --launch-template LaunchTemplateId=lt-12345678,Version=2 -> Option AQuick Check:Correct CLI syntax = aws ec2 run-instances --launch-template LaunchTemplateId=lt-12345678,Version=2 [OK]Quick Trick: Use --launch-template LaunchTemplateId=ID,Version=NUM [OK]Common Mistakes:MISTAKESUsing incorrect parameter names like --template-idSeparating parameters with spaces instead of commasOmitting the 'Version=' keyword
Master "Auto Scaling" in AWS9 interactive learning modes - each teaches the same concept differentlyLearnWhyDeepVisualTryChallengeProjectRecallTime
More AWS Quizzes API Gateway - API deployment and stages - Quiz 14medium API Gateway - REST API creation - Quiz 7medium AWS Lambda - Lambda handler function structure - Quiz 2easy AWS Lambda - Why serverless matters - Quiz 10hard AWS Lambda - Creating a Lambda function - Quiz 5medium AWS Lambda - Lambda execution model - Quiz 1easy AWS Lambda - Lambda handler function structure - Quiz 11easy Auto Scaling - Cooldown periods - Quiz 5medium Auto Scaling - Scaling policies (target tracking, step, simple) - Quiz 14medium DynamoDB - Scan vs query performance - Quiz 14medium