โ† 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 Lambda function needs to process messages from an SQS queue but should stop retrying a message after 3 failed attempts. What should you configure?

    Answer: Configure a Dead Letter Queue (DLQ) on the SQS event source mapping with maxReceiveCount=3

    Setting maxReceiveCount on the SQS event source mapping's redrive policy sends messages to a DLQ after the specified number of failed processing attempts.

  2. Which Lambda feature allows you to run a portion of traffic on a new version while keeping most traffic on a stable version?

    Answer: Lambda Aliases with weighted routing

    Lambda aliases support weighted routing, allowing you to split traffic between two function versions for canary or blue/green deployments.

  3. A Lambda function reads from DynamoDB Streams. The function is failing and the stream iterator keeps replaying the same batch. What is the most likely cause?

    Answer: The Lambda function is throwing an unhandled exception, causing the batch to retry

    When a Lambda function throws an unhandled exception processing a DynamoDB Stream batch, the batch is retried until it succeeds or the retention period expires.

  4. What is the maximum execution timeout for an AWS Lambda function?

    Answer: 15 minutes

    AWS Lambda functions have a maximum execution timeout of 15 minutes (900 seconds).

  5. An application uses Lambda with API Gateway. During a traffic spike, some requests receive 429 errors. What is the root cause?

    Answer: Both A and C are possible causes

    429 Too Many Requests errors from API Gateway + Lambda can result from API Gateway throttling limits OR Lambda concurrency limits being exhausted.

  6. You want a Lambda function to access resources inside a private VPC without internet access. What must you configure?

    Answer: Configure Lambda with VPC settings specifying subnets and security groups

    To access VPC resources, Lambda must be configured with VPC settings including the target subnets and security groups, which creates ENIs in your VPC.

  7. Which AWS service can be used to orchestrate multiple Lambda functions into a workflow with branching logic, error handling, and retries?

    Answer: AWS Step Functions

    AWS Step Functions allows you to build state machines that orchestrate Lambda functions with support for branching, parallel execution, error handling, and automatic retries.