A company has a data-ingestion workflow that uses an Amazon Simple Notification Service (Amazon SNS) topic to notify about new deliveries and an AWS Lambda function to process the data and record metadata. The workflow sometimes fails due to network connectivity issues; when it fails, the Lambda function does not ingest the data unless the company manually reruns the job. Which combination of actions should a solutions architect take so the Lambda function ingests all data reliably in the future? (Choose two.)
Choose an answer
Tap an option to check your answer.
Correct answer: Create an Amazon Simple Queue Service (Amazon SQS) queue and subscribe it to the SNS topic., Modify the Lambda function to read from an Amazon Simple Queue Service (Amazon SQS) queue..
Why this is the answer
This solution addresses the reliability issue by decoupling the SNS topic from the Lambda function using an SQS queue. When the SNS topic publishes a message, the SQS queue receives and stores it. If the Lambda function experiences a transient failure (e.g., network connectivity), the message remains in the SQS queue, ensuring no data loss. The Lambda function is then modified to poll and process messages from the SQS queue. This provides a robust, asynchronous processing model with automatic retries and dead-letter queue capabilities, making the data ingestion reliable. Deploying Lambda in multiple AZs improves availability but doesn't guarantee data ingestion if the function fails to process a message. Increasing CPU/memory or provisioned throughput won't prevent data loss during transient failures.
Pass your exam — without the endless answer hunt
Get every verified question and explanation for this exam in one place, and save hours of prep. 1,000+ certifications · 20+ languages · free to start.
Pass your exam faster → No card needed