
Answer-first summary for fast verification
Answer: Implement Amazon API Gateway REST APIs for each third-party service, using Mock integration requests and responses derived from actual API samples.
The correct answer is D. Setting up an Amazon API Gateway REST API for each third-party API and specifying an integration request type of Mock allows developers to emulate the third-party payment processing APIs. This method involves configuring integration responses using sample responses obtained from the real APIs, which effectively simulates the APIs without actually invoking them. This approach ensures that the developer can validate the integration of the e-commerce platform with the third-party services in a controlled and predictable manner.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
No comments yet.
An e-commerce developer requires a method to test API integration with third-party payment services lacking a test environment. What is the appropriate solution to simulate these APIs without actual invocation?
A
Configure an Amazon API Gateway REST API to return a 200 status code with response templates mimicking third-party API responses.
B
Establish an AWS AppSync GraphQL API, using a Mock integration type and integration responses based on captured third-party API samples.
C
Develop AWS Lambda functions emulating each third-party API, with Route 53 Resolver directing to these functions based on their ARNs.
D
Implement Amazon API Gateway REST APIs for each third-party service, using Mock integration requests and responses derived from actual API samples.