Bird
0
0

What will happen if you run this command?

medium📝 service behavior Q13 of 15
AWS - EC2 Fundamentals
What will happen if you run this command?
aws ec2 run-instances --image-id ami-12345678 --count 1 --instance-type t2.micro --key-name MyKeyPair --security-groups MySecurityGroup
ADeletes the specified AMI image
BCreates a new security group named MySecurityGroup
CLaunches one t2.micro EC2 instance with specified settings
DStarts an existing stopped EC2 instance
Step-by-Step Solution
Solution:
  1. Step 1: Analyze the command parameters

    The command uses 'run-instances' with image ID, count=1, instance type, key pair, and security group.
  2. Step 2: Understand the command effect

    This command launches one new EC2 instance of type t2.micro with the given AMI and security settings.
  3. Final Answer:

    Launches one t2.micro EC2 instance with specified settings -> Option C
  4. Quick Check:

    run-instances with parameters = launch instance [OK]
Quick Trick: run-instances with --count 1 launches one instance [OK]
Common Mistakes:
  • Thinking it deletes or modifies AMI
  • Confusing security group creation with usage
  • Assuming it starts an existing instance

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More AWS Quizzes