D1: Lambda Event Lifecycle & Error Handling
AWS Associate AWS Certified Developer – Associate exam practice questions · 10 flashcards
Question
Synchronous invocation error handling?
1 / 10
Tip: Space flips the card, ← / → navigate.
Show all 10 Lambda Event Lifecycle & Error Handling practice questions and answers
- Synchronous invocation error handling?Caller receives error; caller is responsible for retries (e.g. API Gateway).
- Asynchronous invocation retries?Lambda retries twice by default (configurable 0–2) with delays; max event age up to 6 hours.
- Lambda destinations?Send async invocation results (on success/on failure) to SQS, SNS, Lambda, EventBridge, S3 (failure).
- Destinations vs DLQ?Destinations include more context and support success; DLQ (SQS/SNS) captures failed events only.
- Event source mapping error handling (SQS)?Failed messages return to the queue after visibility timeout; use redrive DLQ on the queue and partial batch responses.
- Which invocations are async?S3, SNS, EventBridge, CloudWatch Logs subscriptions, etc.
- Which use event source mappings?SQS, Kinesis, DynamoDB Streams, MSK, self-managed Kafka, Amazon MQ, DocumentDB.
- Throttled async invocation?Lambda retries for up to 6 hours, then sends to DLQ/destination.
- Error: 'Task timed out after X seconds'. Fix?Increase timeout, optimize code, check downstream calls/VPC connectivity.
- Lambda recursive loop detection?Lambda stops recursive invocations between Lambda/SQS/SNS/S3 after ~16 loops.