AWS Certified Developer – Associate — Question 378
A developer needs to launch a new Amazon EC2 instance by using the AWS CLI.
Which AWS CLI command should the developer use to meet this requirement?
Answer options
- A. aws ec2 bundle-instance
- B. aws ec2 start-instances
- C. aws ec2 confirm-product-instance
- D. aws ec2 run instances
Correct answer: D
Explanation
The aws ec2 run-instances command is used to launch and configure a brand new EC2 instance from an AMI. In contrast, aws ec2 start-instances is used only to resume an existing instance that is currently in a stopped state, while the other commands serve different administrative purposes.