What should a DevOps engineer do to meet these requirements?
Create an Amazon Simple Queue Service (Amazon SQS) queue. On the SNS topic, configure a redrive policy that sends undelivered messages to the SQS queue. Create an Amazon CloudWatch alarm for the new SQS queue to notify the development team when messages are delivered to the queue.
Create an Amazon Simple Queue Service (Amazon SQS) queue. On the HTTP endpoint subscription of the SNS topic, configure a redrive policy that sends undelivered messages to the SQS queue. Create an Amazon CloudWatch alarm for the new SQS queue to notify the development team when messages are delivered to the queue.
On the SNS topic, configure an HTTPS delivery policy that will retry delivery until the order message is delivered successfully. Configure the backoffFunction parameter in the policy to notify the development team when a message cannot be delivered within the set constraints.
On the HTTP endpoint subscription of the SNS topic, configure an HTTPS delivery policy that will retry delivery until the order message is delivered successfully. Configure the backoffFunction parameter in the policy to notify the development team when a message cannot be delivered within the set constraints.
Explanations:
This option describes creating an SQS queue with a redrive policy on the SNS topic, but SNS does not support redrive policies directly. Instead, messages can be sent to SQS when they fail to deliver to HTTP, but the alarm setup does not directly relate to undelivered HTTP messages.
This option correctly specifies using an SQS queue with a redrive policy on the HTTP endpoint subscription. If delivery fails, messages will be sent to the SQS queue. The CloudWatch alarm can then notify the team about messages that were undelivered, fulfilling the requirement.
This option suggests configuring an HTTPS delivery policy on the SNS topic, which is not applicable as the delivery policy should be configured on the subscription level, not the topic level. Also, while the retry mechanism is mentioned, it does not provide a method to alert the team if delivery fails.
While this option suggests configuring a delivery policy on the HTTP subscription, the wording regarding notifying the development team is misleading. The backoffFunction parameter can manage retries but does not inherently send a notification for undelivered messages, nor does it imply a direct alert mechanism.