Interview Prep/AWS/Containers and Serverless

What are Lambda's invocation models?

IntermediateConceptContainers and Serverless
Answer
  • Synchronous (API Gateway, ALB, SDK RequestResponse): caller waits and handles errors.
  • Asynchronous (S3, SNS, EventBridge): Lambda queues the event, retries twice on failure by default, and can send failures to a DLQ or on-failure destination.
  • Poll-based event source mappings (SQS, Kinesis, DynamoDB Streams, Kafka): Lambda polls and invokes in batches, with retry behavior depending on the source.
aws All AWS questions Roadmap: EKS, ECS & serverless on AWS

More on Containers and Serverless