Serverless: Azure Functions and AWS Lambda Interview Questions

261 multiple-choice tech interview questions on Serverless: Azure Functions and AWS Lambda: triggers and bindings, cold starts, hosting plans, limits, statelessness, durable orchestration, cost model. Written for technical phone screens and interview prep, organized by subtopic, with a short explanation for every answer. Learn the 240 key terms with the flashcards first, then test yourself.

Take the practice test · Flashcards · All study tools

What it covers

  1. 5.1 Serverless concepts and trade-offs
  2. 5.2 AWS Lambda runtime and configuration
  3. 5.3 Azure Functions hosting and development
  4. 5.4 Triggers, bindings and event sources
  5. 5.5 Performance, scaling and limits
  6. 5.6 Orchestration and workflows
  7. 5.7 Event-driven messaging patterns
  8. 5.8 Serverless APIs, data and edge
  9. 5.9 Security, testing, deployment and operations

Key terms

5.1 Serverless concepts and trade-offs

Serverless
Cloud model where the provider manages servers and bills by use
FaaS
Function as a service: running individual functions in response to events
Serverless containers
Running container images without managing servers
Backend as a service
Managed backend features consumed through APIs
Serverless operations
The work left for teams using serverless
Event-driven compute
Code that runs in response to events
Ephemeral storage
Temporary disk space for a function
Environment reuse
Warm environments keeping globals between invocations
Per-environment concurrency
How many requests one instance handles at a time
Lambda free tier
Monthly free requests and compute time
Tail latency
The slowest responses, often hit by cold starts
Lambdalith
A single function serving a whole API
Built-in availability
Serverless services spread across zones by default
Knative
Open-source serverless platform for Kubernetes
Edge functions
Code running at CDN edge locations
V8 isolates
Lightweight sandboxes inside one JavaScript engine
Long-running jobs
Tasks exceeding function time limits
Millisecond billing
Lambda duration charged in 1 ms increments
Distributed debugging
Following problems across many functions and services
Serverless-first
Choosing managed serverless options by default
Firecracker
Open-source microVM technology behind Lambda and Fargate
Serverless services
Managed services with no servers to run and usage billing
Durable Objects
Stateful, single-instance objects on Cloudflare Workers
Managed building blocks
Services like queues, databases and identity used by functions
Managed runtime patching
Provider updates to OS and runtime under functions

5.2 AWS Lambda runtime and configuration

Lambda memory limit
Up to 10,240 MB per function
Context object
Lambda's per-invocation info, like request ID and time left
Lambda lifecycle
Init, Invoke and Shutdown phases of an environment
Init billing
Charging for time spent initializing a Lambda environment
Init time limit
The 10-second cap on on-demand initialization
OS-only runtime
A Lambda runtime providing only the OS, for custom binaries
Runtime deprecation
The end of support for a Lambda language runtime
arm64 Lambda
Lambda on Graviton processors
Lambda environment variables
Key-value settings for a function, up to 4 KB
Lambda version
An immutable snapshot of a function's code and settings
Alias targets
Triggers invoking a named alias, not $LATEST
Package size limit
Lambda's ZIP and unzipped size caps
Layer limit
Up to five layers per function
Lambda extension
A process running alongside a function's code
Hyperplane ENI
Shared network interfaces linking Lambda to a VPC
Execution role
IAM role a function assumes to call other services
Lambda destinations
Targets receiving async invocation results
Recursive loop detection
Lambda stopping functions that trigger themselves
Lambda timeout
Maximum run time per invocation, 3 s by default
Invocation models
How Lambda functions are called
Event invocation
Asynchronous Lambda invocation
Runtime Interface Client
Library letting a container talk to the Lambda Runtime API
Runtime management controls
Settings for when Lambda applies runtime patches
Sync errors
Errors returned to the caller of a synchronous invocation
Image vs ZIP
Choosing between container images and ZIP packages
Freeze after return
Lambda pausing the environment once a response returns
Managed runtimes
Language runtimes AWS maintains for Lambda
Power Tuning
Open-source tool testing Lambda memory settings

5.3 Azure Functions hosting and development

Functions hosting plans
The options for running Azure Functions apps
Flex Consumption
Azure Functions plan with fast scaling, VNets and memory choices
functionTimeout
host.json setting for a function's maximum run time
Premium plan
Elastic Premium hosting with pre-warmed instances
In-process model
The older .NET model running inside the Functions host
Function app
A container for functions sharing plan and settings
local.settings.json
Local-only settings for Functions development
Core Tools
The CLI for creating and running Functions locally
Python hosting OS
Azure runs Python function apps on Linux
AzureWebJobsStorage
The storage connection the Functions runtime requires
Identity-based connection
Binding connections using managed identity, not secrets
Per-function scaling
Flex Consumption scaling groups of functions independently
Function keys
Shared keys required by function-level HTTP triggers
Linux Consumption retirement
Planned end of the Linux Consumption plan in September 2028
Deployment slot
A separate live copy of an app for staging
Node.js v4 model
Code-centric Functions model for JavaScript and TypeScript
Python v2 model
Decorator-based Azure Functions model for Python
Custom handler
A web server process the Functions host calls
Scale controller
Azure component that adds and removes function instances
Maximum instance count
Limit on how far a function app scales out
Always-ready instances
Pre-warmed Flex Consumption instances
Functions on Container Apps
Running containerized function apps in Container Apps
Worker middleware
Code that runs around each invocation in the isolated model
ASP.NET Core integration
Using ASP.NET Core HTTP types in isolated functions
Extension bundle
A versioned set of binding extensions
KEDA
Kubernetes event-driven autoscaler

5.4 Triggers, bindings and event sources

Trigger
The event that starts a function
Binding
Declarative connection from a function to input or output data
Event source mapping
Lambda poller that reads queues or streams and invokes a function
Batching window
Time Lambda waits to gather records before invoking
Visibility timeout
Time a received message stays hidden from other consumers
Message group
A FIFO queue key whose messages stay in order
Poison record
A record that always fails and blocks a stream shard
Parallelization factor
Concurrent batches per shard for stream triggers
Event filtering
Rules that drop events before Lambda invokes
S3 event notification
Message S3 sends when objects change
Starting position
Where a stream trigger begins reading
Tumbling window
Fixed, non-overlapping windows with state passed between invocations
Service Bus sessions
Grouping related messages for ordered, exclusive handling
Poison queue
A queue holding messages that keep failing
Subscription DLQ
An SQS queue holding messages SNS couldn't deliver
Checkpointing
Saving a reader's position in an event stream
Stream error handling
Handling failures when a stream won't redeliver
Cosmos DB change feed
An ordered feed of changes in a Cosmos DB container
Singleton timer
Timer triggers run on only one instance at a time
Multiple outputs
Returning several binding outputs from one function
Event Grid delivery
Push delivery with retries and optional dead-lettering
Kafka event source
Lambda event source mapping for Kafka topics
Maximum concurrency
Cap on instances an SQS event source mapping invokes
Route template
Custom URL pattern for an HTTP-triggered function
Retry policy
Function-level retry settings for some triggers

5.5 Performance, scaling and limits

Cold start
Latency to create and initialize a new function instance
Provisioned concurrency
Pre-initialized Lambda instances that avoid cold starts
Account concurrency
The regional cap on simultaneous Lambda executions
Scaling rate
How quickly Lambda adds concurrent environments
Throttling
Rejection of calls beyond available concurrency
Scheduled provisioned concurrency
Changing warm capacity on a schedule
Concurrency kill switch
Setting reserved concurrency to 0 to halt a function
Sync payload limit
Maximum request or response size for sync Lambda calls
Runtime cold start
How language choice affects startup time
Lazy loading
Deferring imports until they're needed
Bundling
Combining and minifying code into one small file
Native AOT
Ahead-of-time compilation of .NET to native code
Startup CPU boost
Temporary extra CPU during container startup
Keep-alive
Reusing TCP and TLS connections across requests
Timeout budget
Keeping inner timeouts shorter than outer ones
Pass by reference
Sending a pointer to stored data instead of the data
RDS Data API
HTTP-based access to Aurora databases
Dynamic concurrency
Functions host tuning how many events each instance handles
Init Duration
Time spent initializing a new Lambda environment
Warmers
Scheduled pings meant to keep functions warm
Unreserved pool
Concurrency left for functions without reservations
Deploy cold starts
Cold starts caused by replacing warm environments
Environment recycling
Lambda retiring environments over time
HTTP concurrency
How many HTTP requests one instance takes at once
Synchronous chaining
Functions waiting on other functions

5.6 Orchestration and workflows

Durable Functions
Azure Functions extension for stateful orchestrations in code
Step Functions
AWS state machine service for orchestrating serverless workflows
Choice state
A Step Functions state that branches on conditions
Retry and Catch
Step Functions fields for retrying and handling errors
Wait state
A state that pauses for a time or until a timestamp
Task token
A token that resumes a paused Step Functions task
.sync integration
Step Functions pattern that waits for a job to complete
SDK integration
Step Functions calling AWS APIs directly
JSONata
Query and transform language usable in Step Functions
Execution history limit
The cap on events in a Standard workflow run
Redrive
Restarting a failed execution from the failed state
Monitor pattern
A durable loop that checks status on an interval
Activity function
The unit of work called by a durable orchestrator
Durable timer
A persisted delay in a durable orchestration
External event
A message raised into a waiting orchestration
Durable entity
A stateful actor-like object in Durable Functions
Sub-orchestration
An orchestration started from another
ContinueAsNew
Restarting an orchestration with new input and empty history
Durable Task Scheduler
Azure's managed backend for durable orchestrations
Step Functions activity
A task done by your own polling workers
Orchestrator I/O
Doing I/O in activities, not orchestrators
Logic Apps vs Durable Functions
Designer-first connectors versus code-first orchestration
TestState API
Step Functions API for testing a single state
Lambda durable functions
Lambda feature for checkpointed, resumable code workflows
Activity idempotency
Making activities safe to run more than once
MaxConcurrency
Limit on parallel iterations in a Map state
Orchestration versioning
Handling code changes for in-flight workflows

5.7 Event-driven messaging patterns

Event pattern
JSON that selects which events a rule matches
Content filtering
EventBridge pattern operators like numeric and anything-but
Event bus types
Default, custom and partner buses in EventBridge
Input transformer
EventBridge feature reshaping events for a target
Archive and replay
Storing bus events and resending them later
Schema discovery
EventBridge inferring schemas from events on a bus
Cross-account bus
Sending events to another account's event bus
Cross-region routing
Event bus targets in other regions
API destination
An HTTP endpoint target for EventBridge rules
Target retry policy
EventBridge's retry window and attempts for a target
Rule targets
Destinations of an EventBridge rule, up to five
Flexible time window
A window in which a scheduled invocation may run
System topic
Event Grid topic for events from an Azure service
Event Grid schemas
Event Grid schema or CloudEvents for events
Advanced filter
Event Grid filter on fields within event data
Idempotency utility
Powertools feature recording handled requests
API call events
EventBridge events created from CloudTrail records
Global endpoint
EventBridge endpoint that fails over between regions
Direct service integration
API Gateway calling SQS without Lambda
Storage-first
Persisting input before processing it
TestEventPattern
API that checks a sample event against a pattern
Partner event source
A SaaS provider's events delivered into EventBridge
Event Grid domain
A grouping of many topics behind one endpoint
Event source naming
Naming custom event sources clearly
Entra publishing
Publishing events with identity-based auth
Queue buffering
Adding a queue between event source and processor
EventBridge pricing
Charges for published custom and partner events
Resource group events
Event Grid events for resource changes

5.8 Serverless APIs, data and edge

Proxy integration
API Gateway passing the whole request to Lambda and expecting a full response
Request validation
API Gateway checking requests against JSON schemas
API caching
API Gateway storing responses for a TTL
API throttling
Rate and burst limits on API requests
API CORS
Allowing cross-origin browser calls to an API
Mapping template
VTL template reshaping API requests or responses
Private API
API Gateway API reachable only through VPC endpoints
Mutual TLS
Both client and server presenting certificates
Redshift Serverless
Redshift without provisioned clusters, billed by RPU use
EMR Serverless
Serverless Spark and Hive on AWS
APIM Consumption tier
Serverless, pay-per-call API Management
Functions Proxies
A retired Functions feature for API routing
Zero-egress storage
Object storage without data transfer out fees
Presigned URL
A time-limited signed URL granting direct S3 access
Endpoint type
Edge-optimized, regional or private API endpoints
ALB for Lambda
Using a load balancer instead of API Gateway
KeyValueStore
Global key-value store readable by CloudFront Functions
Data API builder
Microsoft tool turning databases into REST and GraphQL endpoints
Input binding
Declarative read of data into a function parameter
OpenSearch Serverless
OpenSearch without managing clusters
Serverless cache
A managed cache without node sizing
Stage canary
Splitting a stage's traffic to a new deployment
Lambda Web Adapter
Tool running regular web apps on Lambda
API payload limit
API Gateway's 10 MB request size cap
Connection ID
The ID of one WebSocket client in API Gateway
SignalR serverless mode
SignalR Service used with Functions, no hub server
Database branching
Creating instant copies of a database for testing
Edge data latency
Distance from edge code to central data

5.9 Security, testing, deployment and operations

Per-function role
A least-privilege IAM role for each function
Event injection
Attacks hidden in event data like keys or message bodies
Confused deputy
A service tricked into acting for the wrong party
Denial of wallet
Abuse that drives up usage-based costs
Handler unit test
Testing a handler locally with fake events
LocalStack
A local emulator for AWS services
Ephemeral environment
A short-lived stack created for one branch or test run
Serverless Framework
A popular tool for deploying serverless apps
Pre-traffic hook
A test function run before shifting Lambda traffic
VPC attachment
Connecting a function to subnets in a VPC
Code storage quota
The regional limit on stored function code
Async testing
Testing event flows by waiting for outcomes
Lambda fault injection
Controlled failures injected into functions
Snapshot uniqueness
Values that must differ per environment after restore
Inbound restrictions
Controls on who can reach a function app
Easy Auth
Platform-level authentication for App Service and Functions
Layer trust
Choosing and pinning third-party layers carefully
Lambda Protection
GuardDuty monitoring of Lambda network activity
AppConfig extension
Lambda extension serving AppConfig settings
Diagnose and solve problems
Azure portal troubleshooting detectors
CDK constructs
Reusable infrastructure components written in code
source_code_hash
Terraform attribute that detects Lambda package changes
Config visibility
Environment values readable by users with config access
Basic auth publishing
Username and password credentials for FTP and deploys
SDK mocking
Faking AWS SDK calls in unit tests
Layer versioning
Functions pinned to a specific layer version
sam sync
AWS SAM command for quick cloud updates during development
Record-level failures
Failures within a batch that don't fail the invocation

Sample practice questions

  1. What does "serverless" mean in cloud computing?

    1. Code runs entirely on users' own devices, with no servers involved
    2. Applications don't have any backend at all, only static front ends
    3. Only static websites are supported, with no custom code allowed
    4. The provider runs and scales the servers, billing per use, not idle time

    Answer: D. The provider runs and scales the servers, billing per use, not idle time Serverless covers functions (FaaS) and other services such as serverless databases and containers.

  2. What are Lambda layers?

    1. Network layers that give functions access to a VPC
    2. Separate pricing tiers for functions with more memory
    3. Stages in a deployment pipeline for Lambda code
    4. Shared packages of libraries or data that functions include

    Answer: D. Shared packages of libraries or data that functions include Layers reduce duplication but count toward the 250 MB unzipped deployment size limit.

  3. Which Azure Functions hosting plan is Microsoft's recommended serverless option for new apps in 2026, with fast scaling, VNet integration and always-ready instances?

    1. Legacy Consumption plan on Linux
    2. Flex Consumption plan
    3. Free tier
    4. Classic cloud services

    Answer: B. Flex Consumption plan The Linux Consumption plan is being retired; Flex Consumption is the replacement. Premium and Dedicated plans remain options.

  4. What is a trigger in Azure Functions?

    1. A setting that limits how much memory a function can use
    2. The event that runs a function, like an HTTP call or queue message
    3. A deployment slot used to stage a new version of a function
    4. A monitoring alert that fires when a function fails

    Answer: B. The event that runs a function, like an HTTP call or queue message Each function has exactly one trigger.

  5. What is a cold start?

    1. A function that's deployed to a region with a cold climate
    2. A function that fails the first time it's ever deployed
    3. Extra latency while a new instance is created and initialized
    4. A database query that runs before the cache has warmed

    Answer: C. Extra latency while a new instance is created and initialized Cold starts depend on runtime, package size, VNet setup and initialization code.

  6. What are Azure Durable Functions used for?

    1. Stateful workflows in code, like chaining, fan-out and approvals
    2. Running functions on durable, dedicated virtual machines
    3. Storing function logs durably for long-term retention
    4. Encrypting function code before it's deployed to Azure

    Answer: A. Stateful workflows in code, like chaining, fan-out and approvals The framework checkpoints orchestration state to storage and replays it, so orchestrator code must be deterministic.

  7. Which AWS service is a serverless event bus that routes events from AWS services, SaaS apps and your own apps to targets by rules?

    1. Amazon SQS
    2. AWS Lambda Layers
    3. Amazon EventBridge
    4. Amazon Kinesis Data Firehose

    Answer: C. Amazon EventBridge EventBridge also includes a scheduler and pipes for point-to-point integrations.

  8. A serverless API must handle unpredictable spikes from zero to thousands of requests per second, with costs near zero when idle. Which design fits best?

    1. A single large VM sized for the expected peak load
    2. A fixed cluster of 20 VMs behind a load balancer
    3. An API gateway over functions, with a serverless database
    4. An on-premises server in the company's data center

    Answer: C. An API gateway over functions, with a serverless database Scale to zero plus automatic scale-out matches spiky, unpredictable traffic.

  9. What is a common way to deal with vendor lock-in concerns in serverless design?

    1. Avoid using any managed cloud services anywhere in the system
    2. Write every function in assembly language so it's fully portable
    3. Deploy the same function to every cloud provider at the same time
    4. Keep business logic in plain modules, separate from trigger handlers

    Answer: D. Keep business logic in plain modules, separate from trigger handlers Thin handlers make code testable and more portable.

  10. Why must serverless functions generally be stateless?

    1. Serverless functions aren't allowed to write to any storage
    2. Each function is only allowed to run once per day
    3. Stateless functions are cheaper to license from the provider
    4. Instances come and go, so state must live in external storage

    Answer: D. Instances come and go, so state must live in external storage Keep state in databases, caches or durable orchestration, not in function memory.

Practice all 261 questions

More Cloud and DevOps