DVA-C02 · Question #287
DVA-C02 Question #287: Real Exam Question with Answer & Explanation
The correct answer is A: Configure mock integrations for API Gateway API methods.. API Gateway's built-in MOCK integration is the most operationally efficient way to return predefined responses without any backend, allowing frontend developers to work against a real API contract immediately.
Question
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?
Options
- AConfigure mock integrations for API Gateway API methods.
- BIntegrate a Lambda function with API Gateway and return a mocked response.
- CAdd new API endpoints to the API Gateway stage and returns a mocked response.
- DConfigure a proxy resource for API Gateway API methods.
Explanation
API Gateway's built-in MOCK integration is the most operationally efficient way to return predefined responses without any backend, allowing frontend developers to work against a real API contract immediately.
Common mistakes.
- B. Deploying a Lambda function to return mock responses achieves the same result as MOCK integration but adds operational overhead of managing, deploying, and paying for a Lambda function when the native MOCK type already handles this requirement.
- C. Adding new API endpoints to return mocked responses does not address the existing endpoint contract and creates unnecessary resource sprawl; it does not represent a supported API Gateway integration pattern for mocking.
- D. A proxy resource forwards the entire request to a backend HTTP or Lambda endpoint unchanged; it requires an actual backend to exist and does not provide mock response capability.
Concept tested. API Gateway MOCK integration for frontend-backend parallel development
Reference. https://docs.aws.amazon.com/apigateway/latest/developerguide/how-to-mock-integration.html
Community Discussion
No community discussion yet for this question.