AWS Certified Developer - Associate: CloudFormation Template Parameters

Types supported in CloudFormation template parameters: String, Number, and List

Prev Question Next Question

Question

Which of the following are the types supported while defining Parameters in a CloudFormation template? (Select THREE)

Answers

Explanations

Click on the arrows to vote for the correct answer

A. B. C. D. E.

Correct Answer - A, C, E.

Parameters within an AWS CloudFormation Template allow to input custom values while creating or updating a stack.

Supported data types for Parameters are as follows.

· String.

· Number.

· List.

· CommaDelimitedList.

· AWS-Specific Parameter Types.

· SSM Parameter Types.

Options B & D are incorrect as they are not the supported Data Types for Parameters in CloudFormation Templates.

For more information on Parameters in AWS CloudFormation Templates, refer to the following URL-

https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/parameters-section-structure.html

CloudFormation is an AWS service that allows you to define and provision infrastructure as code. When creating a CloudFormation stack, you define the resources you want to create and their dependencies, as well as any necessary inputs or parameters to configure those resources.

To define parameters in a CloudFormation template, you can specify their type, default value, and allowed values. Parameters can be used to make your templates more flexible and reusable, as they allow you to customize the stack at runtime.

Here are the explanations for the supported parameter types:

A. String: A String parameter allows you to pass in any arbitrary string value as a parameter. This can be useful for things like setting a hostname or other configuration values.

B. Binary: A Binary parameter allows you to pass in binary data as a parameter. This is useful if you need to pass in files or other binary data to your stack.

C. Number: A Number parameter allows you to pass in a numerical value as a parameter. This can be useful for setting things like port numbers or other numerical configuration values.

D. Array: An Array parameter allows you to pass in an array of values as a parameter. This can be useful if you need to pass in a list of values to your stack.

E. List: A List parameter allows you to pass in a list of values as a parameter. This is similar to an Array parameter, but with slightly different syntax.

Therefore, the correct answers to the question are A. String, C. Number, and D. Array.