Bird
0
0

Which AWS CLI command is used to start a new EC2 instance with a specific AMI ID and instance type?

easy📝 Syntax Q3 of 15
AWS - EC2 Fundamentals
Which AWS CLI command is used to start a new EC2 instance with a specific AMI ID and instance type?
Aaws ec2 create-instance --image-id ami-0abcdef1234567890 --type t2.micro
Baws ec2 run-instances --image-id ami-0abcdef1234567890 --instance-type t2.micro
Caws ec2 start-instance --ami ami-0abcdef1234567890 --type t2.micro
Daws ec2 launch-instance --image ami-0abcdef1234567890 --instance t2.micro
Step-by-Step Solution
Solution:
  1. Step 1: Identify correct AWS CLI command

    The command to launch EC2 instances is 'aws ec2 run-instances'.
  2. Step 2: Check parameters

    --image-id specifies the AMI, --instance-type specifies the instance type.
  3. Final Answer:

    aws ec2 run-instances --image-id ami-0abcdef1234567890 --instance-type t2.micro -> Option B
  4. Quick Check:

    Only 'run-instances' is valid for launching [OK]
Quick Trick: Use 'run-instances' to launch EC2, not 'create' or 'start' [OK]
Common Mistakes:
MISTAKES
  • Using incorrect commands like 'create-instance' or 'start-instance'
  • Misnaming parameters like '--image' instead of '--image-id'
  • Confusing instance type parameter names

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More AWS Quizzes