AWS Certified Solutions Architect – Professional (SAP-C02) — Question 483

A company is using AWS CloudFormation as its deployment tool for all applications. It stages all application binaries and templates within Amazon S3 buckets with versioning enabled. Developers have access to an Amazon EC2 instance that hosts the integrated development environment (IDE). The developers download the application binaries from Amazon S3 to the EC2 instance, make changes, and upload the binaries to an S3 bucket after running the unit tests locally. The developers want to improve the existing deployment mechanism and implement CI/CD using AWS CodePipeline.

The developers have the following requirements:
• Use AWS CodeCommit for source control.
• Automate unit testing and security scanning.
• Alert the developers when unit tests fail.
• Turn application features on and off, and customize deployment dynamically as part of CI/CD.
• Have the lead developer provide approval before deploying an application.

Which solution will meet these requirements?

Answer options

Correct answer: A

Explanation

AWS CodeBuild is the ideal service for running unit tests and security scans in an AWS-native CI/CD pipeline, and EventBridge with SNS is the standard way to route build failure events to developers. Using AWS CDK constructs combined with a manifest file provides a clean, programmatic way to dynamically toggle features and customize the CloudFormation deployments. Finally, AWS CodePipeline natively supports a manual approval stage, making Option A the most efficient and fully integrated solution.