
Answer-first summary for fast verification
Answer: Use API Gateway Mapping Templates
Use API Gateway Mapping Templates - In API Gateway, an API's method request can take a payload in a different format from the corresponding integration request payload, as required in the backend. Similarly, vice versa is also possible. API Gateway lets you use mapping templates to map the payload from a method request to the corresponding integration request and from an integration response to the corresponding method response.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
As a developer working with AWS Lambda functions, you are tasked with handling requests via Amazon API Gateway for your REST APIs. At present, when a consumer triggers a GET request, the Lambda function returns the entire dataset, making it fully visible. Your team lead has requested that you properly format the data response before it is sent back to the consumer.
What feature within the Amazon API Gateway can you utilize to address this requirement?
A
Use an API Gateway stage variable
B
Use a Lambda custom interceptor
C
Deploy an interceptor shell script
D
Use API Gateway Mapping Templates
No comments yet.