Which AWS CLI command launches a new Amazon EC2 instance?
Choose an answer
Tap an option to check your answer.
Correct answer: aws ec2 run-instances.
Why this is the answer
The aws ec2 run-instances command is used to launch one or more EC2 instances. It requires parameters such as the Amazon Machine Image (AMI) ID, instance type, and key pair name to specify the configuration of the new instance(s). aws ec2 bundle-instance is used for creating an AMI from an existing instance, not launching a new one. aws ec2 start-instances is used to start instances that are already stopped, not to provision new ones. aws ec2 confirm-product-instance is a deprecated command related to confirming product codes for instances, and is not used for launching.
Pass your exam — without the endless answer hunt
Get every verified question and explanation for this exam in one place, and save hours of prep. 1,000+ certifications · 20+ languages · free to start.
Pass your exam faster → No card needed