Q30 — AWS DVA-C02 Ch.1
Question 30 of 100 | ← Chapter 1
A developer is building a payment service platform that communicates with several third-party payment processing APIs. The third-party services do not provide test environments. The developer must verify integration between the payment service platform and the third-party payment processing APIs. The developer must test the API integration code without invoking the actual third-party payment processing APIs. Which solution meets these requirements?
- A. Set up an Amazon API Gateway REST API and configure a gateway response with status code 200. Add a response template containing sample responses captured from the real third-party API.
- B. Set up an AWS AppSync GraphQL API and configure a data source for each third-party API. Specify the integration type as Mock. Configure the integration response using sample responses captured from the real third-party API.
- C. Create an AWS Lambda function for each third-party API. Embed sample responses captured from the real third-party API. Configure inbound endpoints in Amazon Route 53 Resolver for each Lambda function’s ARN.
- D. Set up an Amazon API Gateway REST API for each third-party API. Specify the integration request type as Mock. Configure the integration response using sample responses captured from the real third-party API. ✓
Correct Answer: D. Set up an Amazon API Gateway REST API for each third-party API. Specify the integration request type as Mock. Configure the integration response using sample responses captured from the real third-party API.
Explanation
Option D correctly describes using Amazon API Gateway REST APIs with Mock integration type, enabling developers to simulate third-party API responses without making live calls. This validates integration logic using realistic, pre-captured responses—fulfilling the requirement efficiently and reliably.