A new REST interface must synchronously call an unchanged on-premises SOAP service, enrich requests from DynamoDB, and translate SOAP faults into appropriate HTTP errors. The SOAP service returns HTTP 200 for both success and faults; which integration best satisfies these requirements?
Show the answer
Correct answerD. Use an API Gateway Lambda proxy integration with a function that enriches requests and translates SOAP responses.
AWhy not this: Backend HTTP status matching cannot distinguish fault and success bodies when both arrive with HTTP 200.
BWhy not this: Returning an acceptance response provides asynchronous submission, not the required synchronous SOAP result.
CWhy not this: Returning a DynamoDB record omits the required SOAP invocation and SOAP fault translation.
DWhy this is right: The function can perform enrichment, invoke SOAP synchronously, and classify faults by inspecting the response body.
Lambda can retrieve enrichment data, invoke the SOAP service, inspect its response body, and return the appropriate HTTP status synchronously. HTTP integration status patterns cannot distinguish SOAP faults from successes when both have backend status 200.