AWS Certified Solutions Architect – Professional — Question 90
If I write the below command, what does it do?
ec2-run ami-e3a5408a -n 20 -g appserver
Answer options
- A. Start twenty instances as members of appserver group.
- B. Creates 20 rules in the security group named appserver
- C. Terminate twenty instances as members of appserver group.
- D. Start 20 security groups
Correct answer: A
Explanation
The command ec2-run ami-e3a5408a -n 20 -g appserver is used to launch 20 instances associated with the appserver group, making option A the correct answer. Options B and D incorrectly describe actions related to security groups, while option C incorrectly claims that the command terminates instances instead of starting them.