exam questions

Exam AWS Certified Developer - Associate DVA-C02 All Questions

View all questions & answers for the AWS Certified Developer - Associate DVA-C02 exam

Exam AWS Certified Developer - Associate DVA-C02 topic 1 question 214 discussion

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?

  • A. aws ec2 bundle-instance
  • B. aws ec2 start-instances
  • C. aws ec2 confirm-product-instance
  • D. aws ec2 run-instances
Show Suggested Answer Hide Answer
Suggested Answer: D 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
Claire_KMT
Highly Voted 1 year, 7 months ago
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.
upvoted 8 times
...
chris_777
Highly Voted 1 year, 6 months ago
Selected Answer: D
D. aws ec2 run-instances Note: B aws ec2 start-instances is used to "start an instance that you've previously stopped"
upvoted 7 times
...
albert_kuo
Most Recent 8 months, 3 weeks ago
Selected Answer: D
aws ec2 run-instances \ --image-id ami-xxxxxxxx \ --count 1 \ --instance-type t2.micro \ --key-name MyKeyPair \ --security-group-ids sg-xxxxxxxx \ --subnet-id subnet-xxxxxxxx
upvoted 1 times
...
65703c1
1 year ago
Selected Answer: D
D is the correct answer.
upvoted 1 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...