Amazon
DVA-C02 · Question #229
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?
The correct answer is D. aws ec2 run-instances. So, to create a new EC2 instance using the AWS CLI, you would typically use the aws ec2 run- instances command, providing the necessary parameters such as the AMI ID, instance type, security groups, and key pair, among others.
Submitted by brentm· Mar 5, 2026Development with AWS Services
Question
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?
Options
- Aaws ec2 bundle-instance
- Baws ec2 start-instances
- Caws ec2 confirm-product-instance
- Daws ec2 run-instances
How the community answered
(34 responses)- A3% (1)
- B6% (2)
- C3% (1)
- D88% (30)
Explanation
So, to create a new EC2 instance using the AWS CLI, you would typically use the aws ec2 run- instances command, providing the necessary parameters such as the AMI ID, instance type, security groups, and key pair, among others.
Community Discussion
No community discussion yet for this question.