SAP-C02 第 426 题
题目
A global company has a mobile app that displays ticket barcodes. Customers use the tickets on the mobile app to attend live events. Event scanners read the ticket barcodes and call a backend API to validate the barcode data against data in a database. After the barcode is scanned, the backend logic writes to the database's single table to mark the barcode as used. The company needs to deploy the app on AWS with a DNS name of api.example.com. The company will host the database in three AWS Regions around the world. Which solution will meet these requirements with the LOWEST latency?
中文翻译:
一家跨国公司拥有一款可显示票据条形码的移动应用程序。客户使用移动应用程序上的门票参加现场活动。事件扫描仪读取票据条形码并调用后端 API 以根据数据库中的数据验证条形码数据。扫描条形码后,后端逻辑写入数据库的单个表以将条形码标记为已使用。该公司需要在 AWS 上部署该应用程序,DNS 名称为 api.example.com。该公司将在全球三个 AWS 区域托管该数据库。哪种解决方案能够以最低的延迟满足这些要求?
选项
A. Host the database on Amazon Aurora global database clusters. Host the backend on three Amazon Elastic Container Service (Amazon ECS) clusters that are in the same Regions as the database. Create an accelerator in AWS Global Accelerator to route requests to the nearest ECS cluster. Create an Amazon Route 53 record that maps api.example.com to the accelerator endpoint
中文翻译:
将数据库托管在 Amazon Aurora 全局数据库集群上。将后端托管在与数据库位于同一区域的三个 Amazon Elastic Container Service (Amazon ECS) 集群上。在 AWS Global Accelerator 中创建加速器以将请求路由到最近的 ECS 集群。创建将 api.example.com 映射到加速器终端节点的 Amazon Route 53 记录
B. Host the database on Amazon Aurora global database clusters. Host the backend on three Amazon Elastic Kubernetes Service (Amazon EKS) clusters that are in the same Regions as the database. Create an Amazon CloudFront distribution with the three clusters as origins. Route requests to the nearest EKS cluster. Create an Amazon Route 53 record that maps api.example.com to the CloudFront distribution.
中文翻译:
将数据库托管在 Amazon Aurora 全局数据库集群上。将后端托管在与数据库位于同一区域的三个 Amazon Elastic Kubernetes Service (Amazon EKS) 集群上。创建以三个集群为源的 Amazon CloudFront 分配。将请求路由到最近的 EKS 集群。创建将 api.example.com 映射到 CloudFront 分配的 Amazon Route 53 记录。
C. Host the database on Amazon DynamoDB global tables. Create an Amazon CloudFront distribution. Associate the CloudFront distribution with a CloudFront function that contains the backend logic to validate the barcodes. Create an Amazon Route 53 record that maps api.example.com to the CloudFront distribution.
中文翻译:
将数据库托管在 Amazon DynamoDB 全局表上。创建 Amazon CloudFront 分配。将 CloudFront 分配与包含用于验证条形码的后端逻辑的 CloudFront 函数关联。创建将 api.example.com 映射到 CloudFront 分配的 Amazon Route 53 记录。
D. Host the database on Amazon DynamoDB global tables. Create an Amazon CloudFront distribution. Associate the CloudFront distribution with a Lambda@Edge function that contains the backend logic to validate the barcodes. Create an Amazon Route 53 record that maps api.example.com to the CloudFront distribution.
中文翻译:
将数据库托管在 Amazon DynamoDB 全局表上。创建 Amazon CloudFront 分配。将 CloudFront 分配与 Lambda@Edge 函数关联,该函数包含用于验证条形码的后端逻辑。创建将 api.example.com 映射到 CloudFront 分配的 Amazon Route 53 记录。
答案
D
解析
正确答案:D 解析: 本题应选择 D。 正确选项: D. 将数据库托管在 Amazon DynamoDB 全局表上。创建 Amazon CloudFront 分配。将 CloudFront 分配与 Lambda@Edge 函数关联,该函数包含用于验证条形码的后端逻辑。创建将 api.example.com 映射到 CloudFront 分配的 Amazon Route 53 记录。 选择理由: 该选项最直接地满足题干中的关键约束。做 S...