nerdexam
Amazon

DVA-C02 · Question #287

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…

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.

Submitted by skyler.x· Mar 5, 2026Development with AWS Services

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.

How the community answered

(53 responses)
  • A
    92% (49)
  • B
    4% (2)
  • C
    2% (1)
  • D
    2% (1)

Why each option

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.

AConfigure mock integrations for API Gateway API methods.Correct

Configuring a MOCK integration directly on API Gateway methods requires no additional AWS resources, no code, and no backend infrastructure. The integration response mapping is defined within API Gateway itself, returning any desired HTTP status code and body. This is the lowest-overhead approach for unblocking frontend development while the backend is built in parallel.

BIntegrate a Lambda function with API Gateway and return a mocked response.

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.

CAdd new API endpoints to the API Gateway stage and returns a mocked response.

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.

DConfigure a proxy resource for API Gateway API methods.

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

Source: https://docs.aws.amazon.com/apigateway/latest/developerguide/how-to-mock-integration.html

Community Discussion

No community discussion yet for this question.

Full DVA-C02 Practice