How to enable frontend development while backend API is not ready using API Gateway?

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?

  1. Configure mock integrations for API Gateway API methods. Source Reference Answer
  2. Integrate a Lambda function with API Gateway and return a mocked response.
  3. Add new API endpoints to the API Gateway stage and returns a mocked response.
  4. Configure a proxy resource for API Gateway API methods.

Community Votes

A
100%

100% of anonymous learners picked answer A. Votes are pick records left by other test-takers — they are not the verified answer.

Community Insight

This question tests the ability to decouple frontend and backend development using API Gateway's native mock integration feature, avoiding unnecessary infrastructure like Lambda functions or extra endpoints.

When backend APIs are not yet ready, Amazon API Gateway mock integrations allow frontend developers to continue building by returning predefined static responses. This is the most operationally efficient solution as it requires no additional backend resources.

Candidates often choose option B (Lambda function returning a mocked response) because it seems practical, but it is less operationally efficient as it requires deploying and managing additional Lambda resources when API Gateway can natively return mock responses.

Community Discussion (5 comments)

SerialiDr 👍 6 Selected: A
A. Configure mock integrations for API Gateway API methods. Mock integrations in Amazon API Gateway allow you to return a fixed response without sending the request further to the backend. This approach enables frontend developers to work with a predetermined response structure and data, facilitating parallel development without waiting for the backend services to be fully implemented. This solution does not require additional code changes or the deployment of placeholder backend services, making it operationally efficient and straightforward to implement for temporary use during the development phase.
65703c1 👍 2 Selected: A
A is the correct answer.
KarBiswa 👍 2
Mock integration
monishvster 👍 1 Selected: A
mock integration
CrescentShared 👍 1 Selected: A
Duplicated questions.

Comments & Corrections

No comments yet — spotted an error or have a note? Share it below.

Log in to comment, report an error, or add a note about this question.

Submitted for moderation before publishing. Keep it helpful and respectful.

Expert Analysis

The correct answer is A. Configure mock integrations for API Gateway API methods.

Amazon API Gateway supports mock integrations, which allow you to define a method that returns a static response without forwarding the request to any backend service. This is specifically designed for scenarios where frontend developers need to proceed with integration testing or UI development while the backend is still under construction.

Why Option A is correct: Mock integrations are built directly into API Gateway. You simply configure the integration type as MOCK and define the response templates. This requires zero additional AWS resources, making it the most operationally efficient solution. Frontend developers can immediately start consuming the API with predictable response structures.

Why Option B is incorrect: While integrating a Lambda function that returns a mocked response would technically work, it introduces unnecessary operational overhead. You would need to write, deploy, and maintain a Lambda function solely for returning static data. This violates the principle of operational efficiency since API Gateway can accomplish the same task natively.

Why Option C is incorrect: Adding new API endpoints to the API Gateway stage does not address the core requirement. The question is about enabling frontend development while the backend is not ready, not about creating additional endpoints. This option also lacks clarity on how the mocked response would be generated.

Why Option D is incorrect: A proxy resource in API Gateway forwards all requests directly to a backend integration (like Lambda or HTTP). It does not provide mock responses and would still require a functioning backend, defeating the purpose of allowing frontend developers to work independently.

Community consensus strongly supports Option A, with 100% of voters selecting it. As noted by community members, mock integrations are the standard AWS approach for enabling parallel development between frontend and backend teams.

Official Reference

Exam Strategy

When the question emphasizes 'MOST operationally efficient,' always look for the solution that uses native AWS features without requiring additional resources. Mock integrations in API Gateway are a perfect example of a built-in feature that solves a common development workflow problem without extra infrastructure.

Related Analysis

Practice All DVA-C02 Questions

Access 100 questions with complete answers and detailed explanations.

View Full DVA-C02 Practice Test →

← Back to DVA-C02 Study Guide