SAP-C02 第 100 题
题目
A company is running an application in the AWS Cloud. Recent application metrics show inconsistent response times and a significant increase in error rates. Calls to third-party services are causing the delays. Currently, the application calls third-party services synchronously by directly invoking an AWS Lambda function. A solutions architect needs to decouple the third-party service calls and ensure that all the calls are eventually completed. Which solution will meet these requirements?
中文翻译:
一家公司正在 AWS 云中运行应用程序。最近的应用程序指标显示响应时间不一致且错误率显着增加。对第三方服务的调用导致了延误。目前,应用程序通过直接调用AWS Lambda函数来同步调用第三方服务。解决方案架构师需要解耦第三方服务调用并确保所有调用最终完成。哪种解决方案可以满足这些要求?
选项
A. Use an Amazon Simple Queue Service (Amazon SQS) queue to store events and invoke the Lambda function.
中文翻译:
使用 Amazon Simple Queue Service (Amazon SQS) 队列来存储事件并调用 Lambda 函数。
B. Use an AWS Step Functions state machine to pass events to the Lambda function.
中文翻译:
使用 AWS Step Functions 状态机将事件传递到 Lambda 函数。
C. Use an Amazon EventBridge rule to pass events to the Lambda function.
中文翻译:
使用 Amazon EventBridge 规则将事件传递到 Lambda 函数。
D. Use an Amazon Simple Notification Service (Amazon SNS) topic to store events and Invoke the Lambda function.
中文翻译:
使用 Amazon Simple Notification Service (Amazon SNS) 主题存储事件并调用 Lambda 函数。
答案
A
解析
正确答案:A 解析: 本题应选择 A。 正确选项: A. 使用 Amazon Simple Queue Service (Amazon SQS) 队列来存储事件并调用 Lambda 函数。 选择理由: 该选项最直接地满足题干中的关键约束。做 SAP-C02 题目时,需要同时对照题干里的限定词,例如最高性能、最低运维开销、成本效益、可靠性、可扩展性、安全性、RTO/RPO、合规要求等。本题相关考点主要包括:Lambda、SQS、SNS、E...