A Lambda function consumes Amazon SQS batches for permit enrichment, but one poison message must not block the rest of the fleet. What consumer pattern should be used?
Select an answer to reveal the explanation.
Short Explanation
Treat the bad apple alone—partial batch failure lets good permit messages finish while the poison one retries or lands in a DLQ. Tossing the whole crate or shutting the dock forever stalls the fleet for one rotten message.
Full Explanation
Lambda’s SQS partial batch failure feature allows the function to report which messages failed so only those remain visible for retry, isolating poison messages. Failing entire batches repeatedly, disabling consumption after one error, or deleting messages before successful processing harms throughput and durability.