Scenario: You are building a microservices architecture where multiple AWS Lambda functions handle different API endpoints. How would you design API Gateway to efficiently route incoming requests to the corresponding Lambda functions?

  • Use API Gateway custom headers
  • Use API Gateway query parameters
  • Use API Gateway resource paths and HTTP methods
  • Use API Gateway stage variables
By using API Gateway resource paths and HTTP methods, you can efficiently route incoming requests to the corresponding Lambda functions based on the request path and method.

Scenario: Your application requires secure authentication for API requests before they reach AWS Lambda. How would you configure API Gateway to handle authentication and authorization?

  • Use API Gateway API keys
  • Use API Gateway custom authorizers
  • Use API Gateway usage plans
  • Use AWS IAM roles
By using API Gateway custom authorizers, you can configure secure authentication and authorization for API requests before they reach AWS Lambda, ensuring controlled access to API endpoints.

Can you configure AWS Lambda to process S3 events across multiple AWS regions?

  • No, AWS Lambda can only process S3 events within the same region
  • No, AWS Lambda does not support processing S3 events across multiple regions
  • Yes, by configuring Lambda aliases
  • Yes, by configuring event source mappings
AWS Lambda supports configuring event source mappings to process S3 events across multiple AWS regions, enabling cross-region event processing.

How can API Gateway manage throttling and caching for AWS Lambda-backed APIs?

  • By configuring usage plans and setting caching options in API Gateway
  • By directly adjusting Lambda function settings
  • By modifying Lambda function code
  • By adjusting networking configurations
API Gateway can manage throttling by configuring usage plans to limit the number of requests per second and caching by setting caching options to cache responses from AWS Lambda-backed APIs, improving performance and reducing latency.

To filter S3 events based on object prefixes, you can specify a __________ in the event configuration.

  • Metadata filter
  • Prefix filter
  • Size filter
  • Suffix filter
To filter S3 events based on object prefixes, you can specify a prefix filter in the event configuration, allowing you to narrow down which objects trigger the Lambda function.

AWS Lambda can process S3 events in __________ mode, allowing you to handle high volumes of events.

  • Batch
  • Real-time
  • Sequential
  • Stream
AWS Lambda can process S3 events in batch mode, allowing it to handle high volumes of events efficiently by batching multiple events together for processing.

__________ is a feature of S3 events that enables you to customize the event notification content sent to AWS Lambda.

  • Event filtering
  • Event logging
  • Event routing
  • Event transformation
Event transformation is a feature of S3 event notifications that enables you to modify the content of the event before it's sent to AWS Lambda.

Cross-region replication of S3 events can be used to trigger AWS Lambda functions in __________ regions.

  • Local
  • Multiple
  • Same
  • Single
Cross-region replication of S3 events allows you to trigger AWS Lambda functions in multiple regions, enabling distributed processing of events.

Scenario: You are building a data processing pipeline that requires real-time analysis of images uploaded to an S3 bucket. How would you configure AWS Lambda to trigger image processing functions in response to S3 upload events?

  • Configure an S3 event notification to trigger a Lambda function
  • Poll the S3 bucket for changes periodically
  • Use Amazon SNS to publish S3 events
  • Use Amazon SQS to queue S3 events
Configuring an S3 event notification to trigger a Lambda function is the correct approach for real-time analysis of images uploaded to an S3 bucket.

Scenario: You need to replicate S3 objects across multiple AWS regions and trigger AWS Lambda functions in each region. How would you design the architecture to achieve this requirement?

  • Implement custom scripts to manage object replication and Lambda invocation
  • Manually copy S3 objects to each region and trigger Lambda functions
  • Use AWS Lambda destinations to replicate objects and trigger functions
  • Use S3 cross-region replication to replicate objects and trigger Lambda functions in each region
Using S3 cross-region replication to replicate objects and trigger Lambda functions in each region is the most efficient way to achieve the requirement of replicating S3 objects across multiple regions and triggering functions.