QuestionQ2

SDLC Automation

A company uses a series of separate Amazon CloudFormation templates to deploy its multi-Region applications. The templates must be deployed in a particular order. The company is making more template changes than it previously anticipated and wants to deploy new templates more efficiently. In addition, the data engineering team must receive notification of every template change.

What should the company do to meet these goals?

  • A Create an AWS Lambda function to deploy the CloudFormation templates in the required order. Use stack policies to alert the data engineering team.
  • B Host the CloudFormation templates in Amazon S3. Use Amazon S3 events to directly trigger CloudFormation updates and Amazon SNS notifications.
  • C Implement CloudFormation StackSets and use drift detection to trigger update alerts to the data engineering team.
  • D Leverage CloudFormation nested stacks and stack sets for deployments. Use Amazon SNS to notify the data engineering team.
Explanation

CloudFormation nested stacks place related templates under a parent stack, so CloudFormation manages dependent stack updates as part of the parent deployment. CloudFormation StackSets provide centralized deployment of stacks across AWS Regions. Amazon SNS can receive CloudFormation stack-event notifications for the data engineering team. Drift detection identifies differences between deployed resources and their expected configuration; it is not a template-change notification mechanism.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!