InterviewHubPRO
Section Overview
Q28

Question 28 of 65

Part 3: Compute, Containers & Serverless (21 - 35)

43%
AWS Cloud Architecture•Part 3: Compute, Containers & Serverless (21 - 35)

Lambda Hard Resource Limits.

In Simple Words:

  • Maximum Memory: 10,240 MB (10 GB).
  • Maximum Timeout: 900 seconds (15 minutes).
  • Ephemeral /tmp storage: Up to 10 GB.
  • Synchronous invocation payload limit: 6 MB; Asynchronous: 256 KB.
typescript
// Validating payload size before sending to synchronous Lambda:
const payloadBytes = Buffer.byteLength(JSON.stringify(payload));
if (payloadBytes > 6 * 1024 * 1024) {
  // Upload to S3 and pass S3 URL to avoid 6MB synchronous limit!
}