Bird
0
0

Which of the following is the correct way to specify a launch template version in an AWS CLI command to run an EC2 instance?

easy📝 Configuration Q12 of 15
AWS - Auto Scaling
Which 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=2
Baws ec2 run-instances --template-id lt-12345678 --version 2
Caws ec2 run-instances --launch-template-id lt-12345678 --template-version 2
Daws ec2 run-instances --launch-template lt-12345678 version=2
Step-by-Step Solution
Solution:
  1. Step 1: Recall AWS CLI syntax for launch templates

    The correct syntax uses --launch-template with parameters LaunchTemplateId and Version separated by commas.
  2. Step 2: Match syntax to options

    aws ec2 run-instances --launch-template LaunchTemplateId=lt-12345678,Version=2 matches the correct syntax exactly.
  3. Final Answer:

    aws ec2 run-instances --launch-template LaunchTemplateId=lt-12345678,Version=2 -> Option A
  4. Quick 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:
MISTAKES
  • Using incorrect parameter names like --template-id
  • Separating parameters with spaces instead of commas
  • Omitting the 'Version=' keyword

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More AWS Quizzes