Q10 — AWS DVA-C02 Ch.1
Question 10 of 100 | ← Chapter 1
A developer needs to launch a new Amazon EC2 instance using the AWS CLI. Which AWS CLI command should the developer use to meet this requirement?
- A. aws ec2 bundle-instance
- B. aws ec2 start-instances
- C. aws ec2 confirm-product-instance
- D. aws ec2 run-instances ✓
Correct Answer: D. aws ec2 run-instances
Explanation
In the AWS CLI, the command used to launch a new Amazon EC2 instance is `aws ec2 run-instances`. This command allows users to specify parameters such as AMI ID, instance type, security groups, subnets, and more to create and launch a new EC2 instance. Among the given options, `aws ec2 run-instances` (represented by option D, though phrased informally as 'aws ec2 run instance') is correct. Therefore, the answer is D.