AWS Certified Developer - Associate

AWS Certified Developer - Associate

Get started today

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?




Explanation:

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.