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.

EasyTechnical
38 practiced

A greenfield service needs to choose between serverless functions and containers managed by Kubernetes. What practical criteria would you use to decide: think about latency and cold starts, traffic pattern, cost model, operational overhead, vendor lock-in, and your team's existing skills. In what kind of scenario does one option clearly win?

EasyTechnical
60 practiced

A serverless function has intermittent cold-start latency spikes that are hurting your p99. Name three practical strategies to reduce cold-start latency, and for each one explain the mechanism by which it helps and its trade-offs in cost, complexity, or effectiveness.

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.

HardTechnical
44 practiced

You're being asked to recommend whether to adopt a cloud provider's proprietary managed serverless inference offering: autoscaling and monitoring are built in and deployment is simpler, but it increases vendor lock-in. Draft the key points of a decision memo: what business and technical trade-offs would you weigh, how would you quantify the cost and velocity gains, and what would you propose to mitigate lock-in if you go ahead with it?

HardTechnical
67 practiced

Create a migration plan for moving a monolithic, Kubernetes-based serving stack (model servers, feature caches, batch jobs) to a serverless-first architecture. Cover your assessment criteria for what moves where (FaaS, serverless containers, or a managed service), the cutover strategy, the rollback plan, how you'd load-test before cutover, and what organizational or process changes the new model requires.

Unlock Full Question Bank

Get access to all 21 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.