Q65 — AWS SOA-C02 Ch.1

Question 65 of 100 | ← Chapter 1

A company uses an Amazon Simple Queue Service (Amazon SQS) standard queue with its application. The application sends messages to the queue with unique message bodies. The company decides to switch to an SQS FIFO queue. What must the company do to migrate to an SQS FIFO queue?

Correct Answer: A. Create a new SQS FIFO queue. Turn on content-based deduplication on the new FIFO queue. Update the application to include a message group ID in the messages.

Explanation

Amazon SQS标准队列迁移到FIFO队列需满足三个核心步骤:创建新队列、配置去重机制、添加消息组ID。使用FIFO队列无法直接修改现有标准队列,必须新建。FIFO队列要求消息带唯一MessageGroupId以实现顺序处理,同时需启用内容去重或消息去重ID。选项A正确包含这三个要素。选项B缺少MessageGroupId,C错误尝试修改队列类型,D同样修改队列类型且忽略去重。AWS文档明确要求FIFO队列名称以.fifo结尾,必须包含MessageGroupId,并配置去重(内容或ID)。