AWS Certified Developer – Associate (DVA-C02) — Question 291
A company is building an application on AWS. The application's backend includes an Amazon API Gateway REST API. The company's frontend application developers cannot continue work until the backend API is ready for integration. The company needs a solution that will allow the frontend application developers to continue their work.
Which solution will meet these requirements in the MOST operationally efficient way?
Answer options
- A. Configure mock integrations for API Gateway API methods.
- B. Integrate a Lambda function with API Gateway and return a mocked response.
- C. Add new API endpoints to the API Gateway stage and returns a mocked response.
- D. Configure a proxy resource for API Gateway API methods.
Correct answer: A
Explanation
Mock integrations in Amazon API Gateway allow developers to generate API responses directly from the gateway without needing any backend integration, making it the most operationally efficient approach. Using an AWS Lambda function to return mocked responses introduces unnecessary operational overhead and cost. Configuring proxy resources or adding new stage endpoints does not natively supply mock responses without backend implementation.