A developer is configuring a REST API in Amazon API Gateway using a Lambda proxy integration with a backend AWS Lambda function. Which two requirements or behaviors apply to this integration type? (Select TWO.)
- The Lambda function response must be formatted as a JSON object with statusCode, headers, and body keys.Cevap
- API Gateway passes the entire client HTTP request to the Lambda function as a structured event parameter.Cevap
- CThe developer must configure mapping templates in API Gateway to format the request payload before it reaches the Lambda function.
- DThe developer must configure integration response mappings in API Gateway to bind function returns to specific HTTP status codes.
- EThe developer must configure a custom Lambda authorizer to handle user authentication via Amazon Cognito User Pools.
Cevap
The correct options are that the Lambda function response must be formatted as a JSON object with statusCode, headers, and body keys, and API Gateway passes the entire client HTTP request to the Lambda function as a structured event parameter.
In a Lambda proxy integration, API Gateway automatically forwards the entire HTTP request to the Lambda function as a structured event object, and the Lambda function must return the response in a specific JSON format containing statusCode, headers, and body keys.
Adım Adım Çözüm
Anahtar Kavram
API Gateway Lambda Proxy Integration behavior and requirements