Answer - B
This is also mentioned in the AWS Documentation.
For example, suppose that an API has an application/json template defined for a request payload and has an application/xml template defined for the response payload. If the client sets the "Content-Type : application/json", and "Accept : application/xml" headers in the request, both the request and response payloads will be processed with the corresponding mapping templates. If the Accept:application/xml header is absent, the application/xml mapping template will be used to map the response payload. To return the response payload unmapped, you must set up an empty template for application/json.
Since the documentation clearly mentions what should be the way to handle such requests, all other options are incorrect.
For more information on request-response data mappings, please refer to the below URL-
https://docs.aws.amazon.com/apigateway/latest/developerguide/request-response-data-mappings.html