Developer Associate · Lesson 1 of 5APIs and user identity6 min

What should API Gateway send to the backend?

The essentials in 30 seconds

before you dive into the details
Picture this

A messenger or a translator?

Pass the envelope

Proxy -> backend response contract

The backend supplies the required response envelope.

Transform the envelope

Non-proxy mapping -> response transformation

The integration maps the backend reply.

Where the analogy stops: REST proxy and HTTP API payload formats differ. A MOCK response does not perform real business work. IAM permissions still apply to direct AWS integrations.
01Picture the mechanism

A proxy passes an agreed envelope from the backend. A non-proxy integration can translate it. A mock has no backend to contact.

02Choose by the signal

Choose the API type and integration from the required contract, transformation and backend.

03In the application

For REST Lambda proxy, check statusCode and the string body. For direct SQS integration, check SendMessage mapping and the integration role.

Exam trap

A successful Lambda invocation does not prove its REST proxy response has a valid format.

Keywords
  • REST API
  • HTTP API
  • statusCode
  • body
  • MOCK
  • SendMessage
One sentence to remember

Choose the API type and integration from the required contract, transformation and backend.

1 media item5 rule steps5 scenarios6 flashcards

Focus mode