AWS Certified Solutions Architect – Professional — Question 310

A company recently transformed its legacy infrastructure provisioning scripts to AWS CloudFormation templates. The newly developed templates are hosted in the company's private GitHub repository. Since adopting CloudFormation, the company has encountered several issues with updates to the CloudFormation templates, causing execution or creating environment. Management is concerned by the increase in errors and has asked a Solutions Architect to design the automated testing of CloudFormation template updates.
What should the Solution Architect do to meet these requirements?

Answer options

Correct answer: B

Explanation

Option B is the designated correct choice as mirroring the private GitHub repository to AWS CodeCommit via AWS Lambda establishes a secure, AWS-native entry point for the templates. Using AWS CodeDeploy to manage the creation and execution of the CloudFormation change set, integrated with AWS CodeBuild for running automated test scripts, ensures that updates are thoroughly validated before final deployment. Other options either do not use this specific repository mirroring strategy or fail to leverage CodeDeploy's testing integration.