Exam SAP-C02 All QuestionsBrowse all questions from this exam
Question 492

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?

    Correct Answer: A

    The solution leverages AWS CodeBuild for running unit tests and security scans, which is a service specifically designed for such tasks. It uses Amazon EventBridge rules to send Amazon SNS alerts to developers when unit tests fail, addressing the requirement for alerting. AWS Cloud Development Kit (AWS CDK) constructs and manifest files can be used to turn application features on and off dynamically, satisfying the customization requirement. Finally, a manual approval stage in the pipeline ensures the lead developer can review and approve deployments before they proceed, meeting the requirement for lead developer approval.

Discussion
ebbff63

A- Yes B - No - Lambda not optimal for unit testing c- No - Jenkins needs separate management not part of the AWS native services D - No - CodeDeploy is for deployment, not to run unit tests and security scans

5ehjry6sktukliyliuliykutjhyOption: A

Codebuild looks good