Opscraft
AWS cloud

Serverless with AWS Lambda

New6 lessons · 23 min · 3 tests ·

Serverless questions appear in almost every AWS-focused DevOps interview, usually as "when would you use Lambda instead of containers?" followed by cold starts, concurrency limits, retries and cost. This topic explains how Lambda actually runs your code, the three ways it gets invoked and what each does on failure, how scaling and concurrency work, how to package, deploy and secure functions, and how to operate them: observability, orchestration with Step Functions, idempotency and the cost traps.

Stage 2 · Core tools

Know these first

After this topic you can

  • Decide when Lambda fits better than containers
  • Handle retries, duplicates and failures for each trigger type
  • Tune concurrency, cold starts and cost and deploy functions safely

Lessons

  1. 1What serverless means 3 min read
    • Serverless, containers and VMs
    • How Lambda runs your code
  2. 2Triggers and invocation models 4 min read
    • The three invocation models
    • API Gateway and function URLs
  3. 3Scaling, limits and cold starts 5 min read
    • Limits you must know
    • Concurrency
    • Cold starts
  4. 4Building and deploying functions 3 min read
    • Packaging
    • Infrastructure as code, versions and aliases
    • Permissions, networking and secrets
  5. 5Operating serverless 4 min read
    • Observability
    • Orchestration with Step Functions
    • Cost and failure traps
    • Choosing Lambda, Fargate or EKS
  6. 6Interview questions and model answers 4 min read
    • "When would you choose Lambda over containers?"
    • "What is a cold start and how do you reduce it?"
    • "Explain reserved vs provisioned concurrency."
    • "Your Lambda reads from SQS and some messages are processed twice. Why?"
    • "A Kinesis-triggered function stopped processing and IteratorAge keeps growing. What's happening?"
    • "How do you deploy Lambda safely?"
    • "Hundreds of Lambdas are exhausting our PostgreSQL connections. Fix?"
    • "How do you handle a task that takes 40 minutes?"