Which AWS CLI command should the developer use to meet this requirement?
aws ec2 bundle-instance
aws ec2 start-instances
aws ec2 confirm-product-instance
aws ec2 run-instances
Explanations:
The commandaws ec2 bundle-instanceis used to bundle an Amazon EC2 instance for creating an Amazon Machine Image (AMI), not for launching a new instance. Therefore, it does not meet the requirement of launching a new EC2 instance.
The commandaws ec2 start-instancesis used to start an EC2 instance that is already stopped. It cannot be used to launch a new instance, which requires a different command.
The commandaws ec2 confirm-product-instanceis used in the context of confirming a product instance for AWS Marketplace products. It does not relate to launching new EC2 instances.
The commandaws ec2 run-instancesis specifically designed to launch new EC2 instances. It allows the user to specify the number of instances, instance type, AMI ID, and other configurations necessary to create a new instance.