SAP-C02 学习助手

SAP-C02 第 276 题

SQS Config

题目

A company has implemented an ordering system using an event-driven architecture. During initial testing, the system stopped processing orders. Further log analysis revealed that one order message in an Amazon Simple Queue Service (Amazon SQS) standard queue was causing an error on the backend and blocking all subsequent order messages. The visibility timeout of the queue is set to 30 seconds, and the backend processing timeout is set to 10 seconds. A solutions architect needs to analyze faulty order messages and ensure that the system continues to process subsequent messages. Which step should the solutions architect take to meet these requirements?

中文翻译:
一家公司使用事件驱动架构实现了订购系统。在初始测试期间,系统停止处理订单。进一步的日志分析显示,Amazon Simple Queue Service (Amazon SQS) 标准队列中的一条订单消息导致后端出现错误并阻止所有后续订单消息。队列的可见性超时设置为30秒,后端处理超时设置为10秒。解决方案架构师需要分析错误的订单消息并确保系统继续处理后续消息。解决方案架构师应该采取哪一步来满足这些要求?

选项

A. Increase the backend processing timeout to 30 seconds to match the visibility timeout.

中文翻译:
将后端处理超时增加到 30 秒以匹配可见性超时。

B. Reduce the visibility timeout of the queue to automatically remove the faulty message.

中文翻译:
减少队列的可见性超时以自动删除错误消息。

C. Configure a new SQS FIFO queue as a dead-letter queue to isolate the faulty messages.

中文翻译:
配置新的SQS FIFO队列作为死信队列以隔离故障消息。

D. Configure a new SQS standard queue as a dead-letter queue to isolate the faulty messages.

中文翻译:
配置新的SQS标准队列作为死信队列以隔离故障消息。

答案

D

解析

正确答案:D 解析: 本题应选择 D。 正确选项: D. 配置新的SQS标准队列作为死信队列以隔离故障消息。 选择理由: 该选项最直接地满足题干中的关键约束。做 SAP-C02 题目时,需要同时对照题干里的限定词,例如最高性能、最低运维开销、成本效益、可靠性、可扩展性、安全性、RTO/RPO、合规要求等。本题相关考点主要包括:SQS、Config。 排除思路: A、B、C 通常会在协议或服务适配、单点故障、跨区域/高可用设计、运维复杂度...

登录后查看完整解析