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 6 discussion

A developer is creating an AWS CloudFormation template to deploy Amazon EC2 instances across multiple AWS accounts. The developer must choose the EC2 instances from a list of approved instance types.
How can the developer incorporate the list of approved instance types in the CloudFormation template?

  • A. Create a separate CloudFormation template for each EC2 instance type in the list.
  • B. In the Resources section of the CloudFormation template, create resources for each EC2 instance type in the list.
  • C. In the CloudFormation template, create a separate parameter for each EC2 instance type in the list.
  • D. In the CloudFormation template, create a parameter with the list of EC2 instance types as AllowedValues.
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
Bibay
Highly Voted 1 year, 12 months ago
Selected Answer: D
Option D is the correct answer. In the CloudFormation template, the developer should create a parameter with the list of approved EC2 instance types as AllowedValues. This way, users can select the instance type they want to use when launching the CloudFormation stack, but only from the approved list. Option A is not a scalable solution as it requires creating a separate CloudFormation template for each EC2 instance type, which can become cumbersome and difficult to manage as the number of approved instance types grows. Option B is not necessary as creating resources for each EC2 instance type in the list would not enforce the requirement to choose only from the approved list. It would also increase the complexity of the template and make it difficult to manage. Option C is not ideal as it would require creating a separate parameter for each EC2 instance type, which can become difficult to manage as the number of approved instance types grows. Also, it does not enforce the requirement to choose only from the approved list.
upvoted 26 times
jipark
1 year, 9 months ago
quite much clear explanation !!!
upvoted 2 times
...
...
geekdamsel
Highly Voted 1 year, 12 months ago
Got this question in exam.Correct answer is D.
upvoted 8 times
...
anandkg
Most Recent 2 weeks, 4 days ago
Selected Answer: D
list is the solution
upvoted 1 times
...
sumanshu
4 months, 2 weeks ago
Selected Answer: D
A) Eliminated - higher maintenance overhead for maintaining multiple templates B) Eliminated - This would create multiple EC2 instances unnecessarily, which does not align with the requirement to choose a single instance type from a list.
upvoted 1 times
...
trieudo
4 months, 3 weeks ago
Selected Answer: D
==> Discard A: duplicate code, hard to maintain ==> Discard B: all resource wil be created instead of it is neccessary or not ==> Discard C: multiple param ==> when have larger param count, hard to maintain D for dynamic for fixed parameter ==> most generic
upvoted 1 times
...
LocNV
7 months, 1 week ago
Selected Answer: D
Parameters: InstanceType: Type: String Default: 't2.micro' AllowedValues: - 't2.micro' - 't2.small' - 't2.medium' - 't3.micro' - 't3.small' - 't3.medium' Description: 'Select the EC2 instance type for deployment.' Resources: MyEC2Instance: Type: 'AWS::EC2::Instance' Properties: ImageId: ami-12345678 InstanceType: !Ref InstanceType
upvoted 4 times
...
MessiVN
10 months, 2 weeks ago
Selected Answer: D
D is correct
upvoted 1 times
...
65703c1
11 months, 2 weeks ago
Selected Answer: D
D is the correct answer.
upvoted 1 times
...
vinfo
1 year ago
Selected Answer: D
Correcta D. Con este parámetro se permite dar permisos de elegir el tipo de instancia.
upvoted 1 times
...
apa_1
1 year, 1 month ago
Selected Answer: D
option D is correct
upvoted 1 times
...
payireb682
1 year, 5 months ago
Selected Answer: D
D is correct
upvoted 1 times
...
leonardoliveros
1 year, 5 months ago
Selected Answer: D
D is the correct, because you are restricting the possible options to that parameter
upvoted 1 times
...
Pupina
1 year, 10 months ago
Why B instead of C? Each AWS SDK implements retry logic automatically. Most AWS SDKs now support exponential backoff and jitter as part of their retry behavior Then D to increase capacity https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/TroubleshootingThrottling.html C&D
upvoted 1 times
Pupina
1 year, 10 months ago
This answer is for question 7 not 6
upvoted 1 times
...
...
NanaDanso
2 years ago
Selected Answer: D
D looks about right
upvoted 4 times
...
prabhay786
2 years, 1 month ago
It should be D
upvoted 4 times
...
aragon_saa
2 years, 1 month ago
D https://www.examtopics.com/discussions/amazon/view/88788-exam-aws-certified-developer-associate-topic-1-question-343/
upvoted 3 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 ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago