SAP-C02 第 171 题
题目
A company uses an AWS CodeCommit repository. The company must store a backup copy of the data that is in the repository in a second AWS Region. Which solution will meet these requirements?
中文翻译:
一家公司使用 AWS CodeCommit 存储库。公司必须在第二个 AWS 区域的存储库中存储数据的备份副本。哪种解决方案可以满足这些要求?
选项
A. Configure AWS Elastic Disaster Recovery to replicate the CodeCommit repository data to the second Region.
中文翻译:
配置 AWS Elastic Disaster Recovery 以将 CodeCommit 存储库数据复制到第二个区域。
B. Use AWS Backup to back up the CodeCommit repository on an hourly schedule. Create a cross-Region copy in the second Region.
中文翻译:
使用 AWS Backup 按小时计划备份 CodeCommit 存储库。在第二个区域中创建跨区域副本。
C. Create an Amazon EventBridge rule to invoke AWS CodeBuild when the company pushes code to the repository. Use CodeBuild to clone the repository. Create a .zip file of the content. Copy the file to an S3 bucket in the second Region.
中文翻译:
创建 Amazon EventBridge 规则,以便在公司将代码推送到存储库时调用 AWS CodeBuild。使用 CodeBuild 克隆存储库。创建内容的 .zip 文件。将文件复制到第二个区域中的 S3 存储桶。
D. Create an AWS Step Functions workflow on an hourly schedule to take a snapshot of the CodeCommit repository. Configure the workflow to copy the snapshot to an S3 bucket in the second Region
中文翻译:
按小时计划创建 AWS Step Functions 工作流程以拍摄 CodeCommit 存储库的快照。配置工作流程以将快照复制到第二个区域中的 S3 存储桶
答案
C
解析
正确答案:C 解析: 本题应选择 C。 正确选项: C. 创建 Amazon EventBridge 规则,以便在公司将代码推送到存储库时调用 AWS CodeBuild。使用 CodeBuild 克隆存储库。创建内容的 .zip 文件。将文件复制到第二个区域中的 S3 存储桶。 选择理由: 该选项最直接地满足题干中的关键约束。做 SAP-C02 题目时,需要同时对照题干里的限定词,例如最高性能、最低运维开销、成本效益、可靠性、可扩展性...