SAP-C02 学习助手

SAP-C02 第 392 题

API Gateway Lambda Aurora ElastiCache Config

题目

A car rental company has built a serverless REST API to provide data to its mobile app. The app consists of an Amazon API Gateway API with a Regional endpoint, AWS Lambda functions, and an Amazon Aurora MySQL Serverless DB cluster. The company recently opened the API to mobile apps of partners. A significant increase in the number of requests resulted, causing sporadic database memory errors. Analysis of the API traffic indicates that clients are making multiple HTTP GET requests for the same queries in a short period of time. Traffic is concentrated during business hours, with spikes around holidays and other events. The company needs to improve its ability to support the additional usage while minimizing the increase in costs associated with the solution. Which strategy meets these requirements?

中文翻译:
一家汽车租赁公司构建了一个无服务器 REST API 来为其移动应用程序提供数据。该应用程序由具有区域终端节点的 Amazon API Gateway API、AWS Lambda 函数和 Amazon Aurora MySQL Serverless 数据库集群组成。该公司最近向合作伙伴的移动应用程序开放了API。结果请求数量显着增加,导致偶发的数据库内存错误。对 API 流量的分析表明,客户端在短时间内对同一查询发出多个 HTTP GET 请求。流量集中在工作时间,节假日和其他活动期间流量高峰。该公司需要提高支持额外使用的能力,同时最大限度地减少与解决方案相关的成本增加。哪种策略可以满足这些要求?

选项

A. Convert the API Gateway Regional endpoint to an edge-optimized endpoint. Enable caching in the production stage.

中文翻译:
将 API Gateway 区域端点转换为边缘优化端点。在生产阶段启用缓存。

B. Implement an Amazon ElastiCache for Redis cache to store the results of the database calls. Modify the Lambda functions to use the cache.

中文翻译:
实施 Amazon ElastiCache for Redis 缓存来存储数据库调用的结果。修改 Lambda 函数以使用缓存。

C. Modify the Aurora Serverless DB cluster configuration to increase the maximum amount of available memory.

中文翻译:
修改 Aurora Serverless 数据库集群配置以增加最大可用内存量。

D. Enable throttling in the API Gateway production stage. Set the rate and burst values to limit the incoming calls.

中文翻译:
在 API Gateway 生产阶段启用限制。设置速率和突发值以限制来电。

答案

A

解析

正确答案:A 解析: 本题应选择 A。 正确选项: A. 将 API Gateway 区域端点转换为边缘优化端点。在生产阶段启用缓存。 选择理由: 该选项最直接地满足题干中的关键约束。做 SAP-C02 题目时,需要同时对照题干里的限定词,例如最高性能、最低运维开销、成本效益、可靠性、可扩展性、安全性、RTO/RPO、合规要求等。本题相关考点主要包括:API Gateway、Lambda、Aurora、ElastiCache、Confi...

登录后查看完整解析