โ† All AWS Flashcard Decks

Serverless Architecture and AWS Lambda Flashcards

7 cards from real AWS practice questions. Tap to flip, then mark Knew It or Still Learning โ€” missed cards come back until you master them.

Read the first 7 Serverless Architecture and AWS Lambda flashcards as text
  1. A developer wants to reuse common libraries across multiple Lambda functions without duplicating code. What is the recommended approach?

    Answer: Use Lambda Layers to share common dependencies

    Lambda Layers allow you to package shared libraries, dependencies, or custom runtimes separately and attach them to multiple functions.

  2. What happens to a Lambda function's environment variables when you publish a new version?

    Answer: Environment variables are snapshotted and immutable in the published version

    When you publish a Lambda version, the environment variables are included in the snapshot and become immutable for that specific version.

  3. A serverless application needs to fan out a single event to multiple downstream Lambda functions simultaneously. Which pattern is most appropriate?

    Answer: Publish the event to SNS and subscribe multiple Lambda functions

    SNS enables a fan-out pattern where a single published message is delivered to all subscribed Lambda functions simultaneously.

  4. Which Lambda concurrency type pre-warms execution environments to eliminate cold starts entirely?

    Answer: Provisioned Concurrency

    Provisioned Concurrency pre-initializes a specified number of execution environments so they are always ready to respond without cold start latency.

  5. A Lambda function is processing S3 events but occasionally fails and you want failed events routed to an SQS queue automatically. What feature enables this?

    Answer: Lambda Destinations for asynchronous invocations

    Lambda Destinations for asynchronous invocations allow you to route failed events to an SQS queue, SNS topic, EventBridge, or another Lambda function.

  6. What is the default ephemeral storage size available in /tmp for a Lambda function, and what is the maximum?

    Answer: 512 MB default, 10 GB maximum

    Lambda provides 512 MB of /tmp ephemeral storage by default, which can be configured up to 10 GB for functions requiring larger temporary storage.

  7. An AWS Lambda function invoked by API Gateway must return a response within how many seconds before API Gateway times out?

    Answer: 29 seconds

    API Gateway has a maximum integration timeout of 29 seconds, so Lambda functions invoked synchronously via API Gateway must complete within this limit.