__________ is a feature of API Gateway that caches responses from AWS Lambda functions to improve latency and reduce costs.

  • Cross-origin resource sharing (CORS)
  • Request logging
  • Response caching
  • Traffic shaping
Response caching in API Gateway allows for the caching of responses from AWS Lambda functions to improve latency and reduce costs.

API Gateway allows for the creation of __________, enabling the decoupling of client applications from AWS Lambda implementations.

  • API endpoints
  • Direct integrations
  • Lambda functions
  • Webhooks
API Gateway allows for the creation of API endpoints, enabling the decoupling of client applications from AWS Lambda implementations.

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.

How can you configure AWS Lambda to filter S3 events based on object prefixes?

  • Bucket filtering
  • Content filtering
  • Prefix filtering
  • Suffix filtering
AWS Lambda allows you to configure prefix filtering on S3 event notifications, enabling you to specify object prefixes for filtering events.

What are some considerations for handling large numbers of S3 event notifications in AWS Lambda?

  • Concurrent executions
  • Disk space
  • Memory allocation
  • Network bandwidth
Considerations for handling large numbers of S3 event notifications in AWS Lambda include managing concurrent executions and scaling strategies.

S3 events can trigger AWS Lambda functions in response to changes in __________.

  • Amazon EC2 instances
  • Amazon RDS databases
  • Amazon S3 buckets
  • Amazon SQS queues
S3 events can trigger AWS Lambda functions in response to changes in Amazon S3 buckets, such as object creation, deletion, or modification.

AWS Lambda functions invoked by S3 events receive information about the event, including the __________ that triggered the function.

  • Bucket name
  • Event timestamp
  • Event type
  • Object key
AWS Lambda functions invoked by S3 events receive information about the event, including the object key that triggered the function, allowing you to process the relevant object.

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.