Development with AWS Services
Clients send customerId, but an existing backend expects accountId in the JSON body. An Amazon API Gateway REST API uses a non-proxy integration; which change translates the field without changing either application?
Show the answer
Correct answerC. Add an integration request mapping template.
AWhy not this: A request model describes or validates input structure but does not rename fields.
BWhy not this: Response mapping transforms backend output, not the request sent to the backend.
CWhy this is right: Request mapping can read customerId and produce the accountId field expected by the backend.
DWhy not this: A method response model describes response structure rather than rewriting incoming data.
An integration request mapping template can reshape the client payload before sending it to the backend. An integration response mapping template transforms traffic in the opposite direction.