SAP-C02 第 86 题
题目
A company plans to refactor a monolithic application into a modern application design deployed on AWS. The CI/CD pipeline needs to be upgraded to support the modern design for the application with the following requirements: • It should allow changes to be released several times every hour. • It should be able to roll back the changes as quickly as possible. Which design will meet these requirements?
中文翻译:
一家公司计划将单体应用程序重构为部署在 AWS 上的现代应用程序设计。 CI/CD 管道需要升级以支持具有以下要求的应用程序的现代设计: • 它应该允许每小时发布多次更改。 • 它应该能够尽快回滚更改。哪种设计能够满足这些要求?
选项
A. Deploy a CI/CD pipeline that incorporates AMIs to contain the application and their configurations. Deploy the application by replacing Amazon EC2 instances.
中文翻译:
部署包含 AMI 的 CI/CD 管道以包含应用程序及其配置。通过替换 Amazon EC2 实例来部署应用程序。
B. Specify AWS Elastic Beanstalk to stage in a secondary environment as the deployment target for the CI/CD pipeline of the application. To deploy, swap the staging and production environment URLs.
中文翻译:
指定要在辅助环境中暂存的 AWS Elastic Beanstalk 作为应用程序 CI/CD 管道的部署目标。要进行部署,请交换暂存环境和生产环境 URL。
C. Use AWS Systems Manager to re-provision the infrastructure for each deployment. Update the Amazon EC2 user data to pull the latest code artifact from Amazon S3 and use Amazon Route 53 weighted routing to point to the new environment.
中文翻译:
使用 AWS Systems Manager 为每个部署重新配置基础设施。更新 Amazon EC2 用户数据以从 Amazon S3 提取最新的代码工件并使用 Amazon Route 53 加权路由指向新环境。
D. Roll out the application updates as part of an Auto Scaling event using prebuilt AMIs. Use new versions of the AMIs to add instances. and phase out all instances that use the previous AMI version with the configured termination policy during a deployment event.
中文翻译:
使用预构建的 AMI 将应用程序更新作为 Auto Scaling 事件的一部分推出。使用新版本的 AMI 添加实例。并在部署事件期间逐步淘汰使用先前 AMI 版本以及配置的终止策略的所有实例。
答案
B
解析
正确答案:B 解析: 本题应选择 B。 正确选项: B. 指定要在辅助环境中暂存的 AWS Elastic Beanstalk 作为应用程序 CI/CD 管道的部署目标。要进行部署,请交换暂存环境和生产环境 URL。 选择理由: 该选项最直接地满足题干中的关键约束。做 SAP-C02 题目时,需要同时对照题干里的限定词,例如最高性能、最低运维开销、成本效益、可靠性、可扩展性、安全性、RTO/RPO、合规要求等。本题相关考点主要包括:Ro...