Serverless and Function-as-a-Service Architecture Questions

Building applications on managed, event-triggered compute: functions-as-a-service (AWS Lambda, Azure Functions, Google Cloud Functions, Cloudflare Workers) and serverless containers. Covers the invocation lifecycle and cold starts (init vs handler work, provisioned concurrency, packaging, layers and container images), statelessness and externalizing state, execution limits (timeouts, memory, payload and /tmp size), concurrency and scaling behavior (account limits, burst scaling, protecting downstream databases with connection proxies and throttling), event sources and trigger semantics (at-least-once delivery, retries, idempotent handlers, dead-letter handling), composing functions with managed services and workflow orchestrators (Step Functions and equivalents), and serverless-specific observability, security (per-function IAM, secrets) and pay-per-invocation cost modeling. Includes when serverless fits versus containers or VMs, and vendor lock-in trade-offs. General compute selection, generic messaging patterns, and general idempotency theory are covered by their own topics.

HardSystem Design
47 practiced

Design a serverless, event-driven pipeline that ingests telemetry at 100k events/second, does lightweight enrichment and aggregation, and writes results to analytic storage. Cover event ingestion and buffering, processing concurrency, idempotency, error handling, storage choice, observability, and the cost profile of your design.

EasyTechnical
43 practiced

Explain stateless versus stateful function design in a serverless architecture. When should a function be fully stateless, and when is holding state (session context, aggregated results, a warm cache) actually justified? Where does that state live once it's outside the function, and what latency or consistency trade-offs come with each option?

EasyTechnical
35 practiced

How do FaaS platforms scale as traffic increases rapidly? Using AWS Lambda as an example, explain how new execution environments get provisioned, what account or regional concurrency limits exist, and what reserved versus provisioned concurrency each do. What does this mean for a latency-sensitive endpoint under a sudden burst of traffic?

MediumTechnical
41 practiced

A function is hitting downstream throttling from a database or third-party API during traffic spikes. Design a strategy to handle this gracefully: consider buffering with queues, circuit breakers, retry behavior, rate-limiting at the edge, and what a degraded-mode response looks like when a dependency is unavailable. How would you implement this on a serverless platform specifically?

MediumTechnical
40 practiced

Your team runs a Flask-based inference server on EC2 and wants to migrate it to Lambda to cut ops overhead. Walk through the migration: how do you package the model and its native dependencies, what do you do about model size and cold starts, how do you replace whatever persistent, in-process caching the EC2 service relied on, and what benchmarking methodology and acceptance criteria would you use before cutting traffic over?

Unlock Full Question Bank

Get access to all 27 Serverless and Function-as-a-Service Architecture interview questions and detailed answers.

Sign in to Continue

Join thousands of developers preparing for their dream job.