ExamQuestions.com

Register
Login
AWS Certified DevOps Engineer Professional Exam Questions

Amazon

AWS Certified DevOps Engineer Professional

203 / 500

Question 203:

Your team is using AWS API Gateway and Lambda function to maintain an API endpoint. Recently, there is a change in the Lambda function which adds some new data in the response body. The Lambda function is upgraded and a new API is added to support the change. The team wants to keep both version1 and version2 of the API to be available simultaneously to your API consumers. How should you modify the version1 API in API Gateway to behave as the V1 consumers expect?

Answer options:

A.Add a mapping template in the Method Response of version1 API to remove the new data in response to keep the same behaviors as before.
B.In the Integration Request of version1 API, add a mapping to inform the backend Lambda to remove the new data in the relevant response.
C.In the Integration Response of version1 API, add a new Header Mapping to remove the new data which comes from the backend.
D.Add a mapping template in the Integration Response of version1 API to remove the new data so that the response is transformed to the original format.