AWS CloudFormation Templates
AWS CloudFormation Templates are the basis for a CloudFormation stack. It is a JSON or YAML-formatted text file that describes the infrastructure resources needed and their dependencies. The template follows a specified schema, allowing users to specify resources, configurations, and mapping values…
AWS Certified Solutions Architect - AWS CloudFormation Templates Example Questions
Test your knowledge of AWS CloudFormation Templates
Question 1
You need a modular IaC design where a single CloudFormation parent stack orchestrates creation of a VPC, an RDS DB instance, and an EC2 Auto Scaling Group, ensuring the compute and database are deployed into the same VPC by passing VPC and subnet identifiers to child components. Which approach should you use?
Question 2
You are working on a new AWS CloudFormation project, and you have been given the requirement to create a single stack which includes multiple environments such as Development, Staging, and Production. You are required to deploy a different EC2 instance type based on the environment. Which approach would you use to accomplish this?
Question 3
You have an existing CloudFormation template that deploys an Amazon DynamoDB table along with several AWS resources. A project requirement now insists on only creating the DynamoDB table when a specific parameter is set to 'true'. What is the most efficient method to conditionally create the DynamoDB table?