Amazon

DVA-C02 practice question 6

AWS Certified Developer - Associate (DVA-C02) · free question 6 of 20

Question

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. Correct

Explanation

According to AWS documentation, to restrict input values for a parameter to a specific set of options, you can use the 'AllowedValues' property within the parameter definition in a CloudFormation template. This allows specifying a list of approved EC2 instance types from which users can choose.

Need the theory? Learn it free in the DVA-C02 course on Godlike Academy

Practice the whole free set

Answer all 20 free DVA-C02 questions with instant feedback, or unlock all 557 questions with Learn and Exam modes.