SAP-C02 第 22 题
题目
A software company has deployed an application that consumes a REST API by using Amazon API Gateway, AWS Lambda functions, and an Amazon DynamoDB table. The application is showing an increase in the number of errors during PUT requests. Most of the PUT calls come from a small number of clients that are authenticated with specific API keys. A solutions architect has identified that a large number of the PUT requests originate from one client. The API is noncritical, and clients can tolerate retries of unsuccessful calls. However, the errors are displayed to customers and are causing damage to the API’s reputation. What should the solutions architect recommend to improve the customer experience?
中文翻译:
一家软件公司部署了一个应用程序,该应用程序通过使用 Amazon API Gateway、AWS Lambda 函数和 Amazon DynamoDB 表来使用 REST API。应用程序显示 PUT 请求期间的错误数量有所增加。大多数 PUT 调用来自少数使用特定 API 密钥进行身份验证的客户端。解决方案架构师发现大量 PUT 请求源自一个客户端。该 API 并不重要,客户端可以容忍重试不成功的调用。然而,这些错误会向客户显示,并对 API 的声誉造成损害。解决方案架构师应该建议什么来改善客户体验?
选项
A. Implement retry logic with exponential backoff and irregular variation in the client application. Ensure that the errors are caught and handled with descriptive error messages.
中文翻译:
在客户端应用程序中实现具有指数退避和不规则变化的重试逻辑。确保使用描述性错误消息捕获并处理错误。
B. Implement API throttling through a usage plan at the API Gateway level. Ensure that the client application handles code 429 replies without error.
中文翻译:
通过 API 网关级别的使用计划实施 API 限制。确保客户端应用程序处理代码 429 回复时不会出现错误。
C. Turn on API caching to enhance responsiveness for the production stage. Run 10-minute load tests. Verify that the cache capacity is appropriate for the workload.
中文翻译:
打开 API 缓存以增强生产阶段的响应能力。运行 10 分钟的负载测试。验证缓存容量是否适合工作负载。
D. Implement reserved concurrency at the Lambda function level to provide the resources that are needed during sudden increases in traffic.
中文翻译:
在 Lambda 函数级别实现预留并发,以提供流量突然增加时所需的资源。
答案
B
解析
正确答案:B 解析: 本题应选择 B。 正确选项: B. 通过 API 网关级别的使用计划实施 API 限制。确保客户端应用程序处理代码 429 回复时不会出现错误。 选择理由: 该选项最直接地满足题干中的关键约束。做 SAP-C02 题目时,需要同时对照题干里的限定词,例如最高性能、最低运维开销、成本效益、可靠性、可扩展性、安全性、RTO/RPO、合规要求等。本题相关考点主要包括:API Gateway、Lambda、DynamoDB...