AWS Lambda interview questions
100 Data Engineering practice questions. Read what a strong answer covers, then practise it out loud against the clock.
Practise AWS Lambda questionsBeginner
- AccessDenied writing to S3
- API key exposed in Lambda environment variables
- Cold starts
- Different settings for dev and prod
- Environment variables and configuration
- Estimating Lambda cost
- Finding why a function failed
- Function getting throttled
- Function slow and using little memory
- Function timing out on large files
- Handling the 15-minute timeout
- Hourly API pull with Lambda
- How Lambda pricing works
- ImportError for a library
- Key Lambda limits
- Lambda execution role
- Lambda layers
- Lambda runtimes and architectures
- Lambda triggering itself in a loop
- Lambda triggers and event sources
- Lambda use cases in data engineering
- Logging and monitoring Lambda
- Memory and CPU in Lambda
- No space left on device
- Notifying teams when files arrive
- Packaging Python dependencies
- Processing S3 uploads with Lambda
- Reacting to DynamoDB changes
- Should this job be a Lambda?
- SQS messages processed twice
- Synchronous vs asynchronous invocation
- Using /tmp storage
- Validating incoming files
- What AWS Lambda is
Intermediate
- API Gateway timing out before Lambda finishes
- API latency spikes in the morning
- arm64 (Graviton) for Lambda
- Chaining Lambdas directly
- Dead-letter queues vs destinations
- Duplicate records written to the warehouse
- Event filtering in event source mappings
- Event source mappings
- Function running out of memory
- Idempotency in Lambda functions
- Kinesis consumer stuck on one bad record
- Lambda container images
- Lambda exhausting database connections
- Lambda in a VPC and connecting to databases
- Lambda in VPC can't reach the internet
- Lambda waiting on a long Glue job
- Lambda with Kinesis streams
- Lambda with Step Functions
- Messages ending up in the DLQ without errors
- Order events processed out of order
- Powertools for AWS Lambda
- Processing large files in Lambda
- Processing thousands of files in a backfill
- Reprocessing whole Kinesis batches
- Reserved vs provisioned concurrency
- Retry behavior by invocation type
- Secrets Manager costs and latency
- SnapStart
- SQS batches and partial batch failures
- Testing changes before deploying
- Transforming records in a Firehose stream
- Using the initialization phase efficiently
- Webhook ingestion with Lambda
Experienced
- Avoiding recursive loops
- Calling a rate-limited partner API
- Choosing Lambda for an event-driven ETL design
- Debugging latency across a serverless pipeline
- Event-driven ingestion at 50,000 events per second
- Exactly-once processing with Lambda
- Handling poison messages
- Handling throttling from downstream AWS services
- Lambda consuming from Kafka (MSK)
- Lambda cost higher than expected
- Lambda handling PII under compliance rules
- Lambda processing for many tenants
- Lambda scaling and protecting downstream systems
- Lambda security best practices
- Lambda vs Fargate vs Glue vs Batch
- Large fan-out with Step Functions Distributed Map
- Making a Lambda pipeline resilient to regional failure
- Moving cron jobs from EC2 to serverless
- Observability for Lambda-based pipelines
- One function starving others of concurrency
- Optimizing Lambda cost at scale
- Ordering guarantees with Lambda
- Processing a 500 GB dataset with Lambda
- Reducing cold starts for latency-sensitive APIs
- Replaying events after a bug
- Retry storm amplifying an outage
- Safe deployments with versions and aliases
- SQS maximum concurrency vs reserved concurrency
- Standardizing 300 Lambda functions
- Sudden Lambda cost anomaly
- Testing Lambda functions
- Upgrading deprecated runtimes across many functions
- Validating streaming data with Lambda