SAP-C02 第 493 题
题目
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?
中文翻译:
一家公司正在使用 AWS CloudFormation 作为所有应用程序的部署工具。它将所有应用程序二进制文件和模板暂存在 Amazon S3 存储桶中,并启用版本控制。开发人员可以访问托管集成开发环境 (IDE) 的 Amazon EC2 实例。开发人员将应用程序二进制文件从 Amazon S3 下载到 EC2 实例,进行更改,然后在本地运行单元测试后将二进制文件上传到 S3 存储桶。开发人员希望改进现有的部署机制,并使用AWS CodePipeline实现CI/CD。开发人员有以下要求: • 使用AWS CodeCommit 进行源代码控制。 • 自动化单元测试和安全扫描。 • 当单元测试失败时提醒开发人员。 • 作为 CI/CD 的一部分,打开和关闭应用程序功能并动态自定义部署。 • 在部署应用程序之前让首席开发人员批准。哪种解决方案可以满足这些要求?
选项
A. Use AWS CodeBuild to run unit tests and security scans. Use an Amazon EventBridge rule to send Amazon SNS alerts to the developers when unit tests fail. Write AWS Cloud Development Kit (AWS CDK) constructs for different solution features, and use a manifest file to tum features on and off in the AWS CDK application. Use a manual approval stage in the pipeline to allow the lead developer to approve applications.
中文翻译:
使用 AWS CodeBuild 运行单元测试和安全扫描。当单元测试失败时,使用 Amazon EventBridge 规则向开发人员发送 Amazon SNS 警报。为不同的解决方案功能编写 AWS 云开发工具包 (AWS CDK) 构造,并使用清单文件在 AWS CDK 应用程序中打开和关闭功能。在管道中使用手动批准阶段,以允许首席开发人员批准应用程序。
B. Use AWS Lambda to run unit tests and security scans. Use Lambda in a subsequent stage in the pipeline to send Amazon SNS alerts to the developers when unit tests fail. Write AWS Amplify plugins for different solution features and utilize user prompts to tum features on and off. Use Amazon SES in the pipeline to allow the lead developer to approve applications.
中文翻译:
使用 AWS Lambda 运行单元测试和安全扫描。在管道的后续阶段使用 Lambda 在单元测试失败时向开发人员发送 Amazon SNS 警报。为不同的解决方案功能编写 AWS Amplify 插件,并利用用户提示打开和关闭功能。在管道中使用 Amazon SES 允许首席开发人员批准应用程序。
C. Use Jenkins to run unit tests and security scans. Use an Amazon EventBridge rule in the pipeline to send Amazon SES alerts to the developers when unit tests fail Use AWS CloudFormation nested stacks for different solution features and parameters to turn features on and off. Use AWS Lambda in the pipeline to allow the lead developer to approve applications.
中文翻译:
使用 Jenkins 运行单元测试和安全扫描。在管道中使用 Amazon EventBridge 规则,在单元测试失败时向开发人员发送 Amazon SES 警报 对不同的解决方案功能和参数使用 AWS CloudFormation 嵌套堆栈来打开和关闭功能。在管道中使用 AWS Lambda 允许首席开发人员批准应用程序。
D. Use AWS CodeDeploy to run unit tests and security scans. Use an Amazon CloudWatch alarm in the pipeline to send Amazon SNS alerts to the developers when unit tests fail. Use Docker images for different solution features and the AWS CLI to turn features on and off. Use a manual approval stage in the pipeline to allow the lead developer to approve applications.
中文翻译:
使用 AWS CodeDeploy 运行单元测试和安全扫描。在单元测试失败时,使用管道中的 Amazon CloudWatch 警报向开发人员发送 Amazon SNS 警报。使用 Docker 映像实现不同的解决方案功能,并使用 AWS CLI 打开和关闭功能。在管道中使用手动批准阶段,以允许首席开发人员批准应用程序。
答案
A
解析
正确答案:A 解析: 本题应选择 A。 正确选项: A. 使用 AWS CodeBuild 运行单元测试和安全扫描。当单元测试失败时,使用 Amazon EventBridge 规则向开发人员发送 Amazon SNS 警报。为不同的解决方案功能编写 AWS 云开发工具包 (AWS CDK) 构造,并使用清单文件在 AWS CDK 应用程序中打开和关闭功能。在管道中使用手动批准阶段,以允许首席开发人员批准应用程序。 选择理由: 该选项最...