Ravindra BagaleCourses & study guides मराठी

Chapter 93: AWS Lambda and Serverless for DevOps

DevOps

93.15 Interview questions, revision and chapter quiz

Why

Explain a safe complete flow, not just a service name.

What

These standalone cards recap the terms and trade-offs.

How

  1. Read the question aloud.
  2. Give a short answer and an example.
  3. Open the quiz answers only after you try.
What is a Lambda handler?
What is a Lambda handler?
What is a Lambda handler? — मराठी
What is a Lambda handler? — मराठी
Who retries a failed invocation?
Who retries a failed invocation?
Who retries a failed invocation? — मराठी
Who retries a failed invocation? — मराठी
Reserved versus provisioned concurrency
Reserved versus provisioned concurrency
Reserved versus provisioned concurrency — मराठी
Reserved versus provisioned concurrency — मराठी
Lambda revision checklist
Lambda revision checklist
Lambda revision checklist — मराठी
Lambda revision checklist — मराठी

Revision checklist

  1. I can identify the event, handler and context.
  2. I can explain role permissions and separate invocation permission.
  3. I know retry behaviour depends on the invocation path.
  4. I can distinguish a pure repeatable result from durable idempotency.
  5. I can explain timeout, memory and both concurrency settings.
  6. I never put secrets in code, events or logs.
  7. I can separate an adapter from core logic.
  8. I can describe versions, alias routing and rollback limits.
  9. I can compare Lambda, ECS and EC2 honestly.
  10. I can run the local tests without AWS.

Ravindra Bagale's Tip

Explain the retry path before claiming a function is safe.

Did you understand? Let us try it once more.

Quick quiz

Q1. What does serverless remove?

Managing the underlying servers; not code, security, data or cost responsibility.

Q2. What does price.lambda_handler name?

The function lambda_handler inside the file price.py.

Q3. Does a direct synchronous function error automatically retry twice?

No. The caller decides retries; the async function-error default is two retries.

Q4. Is a Python set enough for production duplicate protection?

No. It is local to an environment and not durable or shared. Use a properly designed atomic durable claim and recovery.

Q5. What does reserved concurrency do?

It reserves and caps concurrency for a function; it does not pre-initialize environments.

Q6. What is provisioned concurrency for?

Keeping environments initialized to reduce startup latency, with additional charges.

Q7. Should a function contain long-lived AWS keys?

No. Use a least-privilege execution role for AWS access.

Q8. Does an S3 notification contain the complete object body?

No. It describes the object event; authorized code retrieves the object if needed.

Q9. Does an alias rollback undo database writes?

No. It redirects later alias-routed invocations; data recovery is separate.

Q10. What do the eight local tests prove?

The tested Python behaviours, not real AWS integration, limits, billing or runtime execution.

Did you understand? Let us try it once more.

In short

  1. A small event starts a handler in a managed runtime.
  2. Use scoped identity, retry-aware logic and safe limits.
  3. Package and observe deliberately; release immutable versions through aliases.
  4. Test locally first; validate cloud wiring only in a separately approved funded environment.

Official references opened for this draft

  1. Runtime support and lifecycle.
  2. Invocation retry behaviour.
  3. Quotas and configuration limits.

These references were read on 6 November 2026. This chapter's numeric limits apply to ordinary Lambda event functions; the official pages also describe other modes with different limits.