Architecture Design and Implementation Built for the Cloud
Which Amazon API Gateway REST API feature can rename JSON request fields before forwarding a request to a legacy backend?
Show the answer
Correct answerD. Mapping templates
AWhy not this: Stage variables provide stage-specific configuration values rather than transform request bodies.
BWhy not this: Usage plans control API consumer quotas and throttling rather than transform payloads.
CWhy not this: Request validators check request parameters and body structure; they do not rename fields.
DWhy this is right: Mapping templates reshape request bodies to match the field names expected by a backend.
Mapping templates transform request or response bodies, including renaming JSON fields for a legacy interface. Request validators check required parameters and body structure but do not transform the payload.