__________ 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 can enforce __________ on incoming requests before allowing them to reach AWS Lambda.

  • Authentication and authorization
  • Data encryption
  • Load balancing
  • Rate limiting
API Gateway can enforce authentication and authorization on incoming requests before allowing them to reach AWS Lambda, ensuring only authorized users or systems can access the functions.

AWS Lambda functions integrated with API Gateway can be associated with __________, allowing for fine-grained access control.

  • Environment variables
  • IAM roles
  • Security groups
  • VPC endpoints
AWS Lambda functions integrated with API Gateway can be associated with IAM roles, allowing for fine-grained access control based on the permissions assigned to the IAM role.

__________ is a feature of API Gateway that allows you to define request and response transformations when integrating with AWS Lambda.

  • API keys
  • Authorization policies
  • Mapping templates
  • Rate limiting
Mapping templates in API Gateway allow you to define transformations for incoming requests and outgoing responses, facilitating integration with AWS Lambda.

API Gateway provides __________ for AWS Lambda functions, allowing them to be exposed as HTTP endpoints.

  • File storage
  • HTTP APIs
  • Message queues
  • WebSocket support
API Gateway provides HTTP APIs for AWS Lambda functions, allowing them to be exposed as HTTP endpoints, enabling interaction with web clients.

How does API Gateway handle error responses from AWS Lambda functions?

  • API Gateway forwards Lambda function errors to CloudWatch Logs
  • API Gateway maps Lambda function error responses to HTTP error status codes
  • API Gateway returns generic error messages for all Lambda function errors
  • API Gateway terminates requests upon encountering a Lambda function error
API Gateway handles error responses from Lambda functions by mapping Lambda function error responses to appropriate HTTP error status codes, providing meaningful error messages to clients.

What are the steps involved in configuring API Gateway to trigger AWS Lambda functions?

  • Create a new API in API Gateway, define resources and methods, and configure integration settings to invoke Lambda functions
  • Install additional SDKs
  • Modify VPC settings
  • Update Lambda function IAM roles
Configuring API Gateway to trigger Lambda functions involves creating a new API, defining resources and methods, and configuring integration settings to specify which Lambda function to invoke for each method.

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.

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.

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.

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.

__________ 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.