Which API Gateway setup streams Bedrock responses with least operational overhead?
Short answer
D Use an API Gateway REST API with a streaming Lambda function to invoke Amazon Bedrock, enforce token limits in Lambda, and implement retries for timeouts.
Question
Which solution will meet these requirements with the LEAST operational overhead?
Key Takeaways
Tests whether you know native Lambda response streaming through API Gateway requires a REST API, not an HTTP API, despite the HTTP API’s lower baseline overhead.
This scenario compares API Gateway HTTP, REST, and WebSocket patterns for streaming Amazon Bedrock responses while enforcing token limits and retries. The least-overhead design uses an API Gateway REST API integrated with a Lambda function that streams responses.
Common mistake: Selecting A because HTTP APIs are cheaper and lower-latency by default, overlooking that HTTP APIs do not natively support Lambda response streaming to clients.
Expert Analysis
Why the Answer Is Correct
Option D aligns with the current AWS capability: an API Gateway REST API can use a Lambda proxy integration with response streaming, so the Lambda function can invoke Amazon Bedrock and progressively return the model output. Token limits can be enforced inside the Lambda function before and during the Bedrock invocation, and retry logic for timeouts or partial responses can run in the same function with API Gateway timeout settings as a backstop. This design avoids container orchestration, WebSocket session management, or client-side polling, so it has the least operational overhead among the streaming-capable choices. It also keeps token enforcement and retry behavior server-side, where it can be trusted.
Why the Other Options Are Wrong
Option A is close but uses an HTTP API; HTTP APIs do not natively support Lambda response streaming to the client, so achieving progressive delivery would require an additional Function URL proxy or similar workaround that adds configuration. Option B does not stream at all: direct HTTP API integration with Bedrock plus client-side polling and frontend token limits is inefficient and insecure, and polling is not the required low-latency streaming design. Option C uses WebSocket APIs and an ECS-hosted inference server, which introduces container task lifecycle management, scaling, restart policies, and WebSocket state handling—far more operational overhead. Option B also improperly enforces token limits on the frontend, which cannot reliably manage compute usage.
Community Comment Notes
Wardove pointed to the November 2025 AWS announcement that response streaming is supported for REST APIs, which is the decisive detail. attila9778 and Kimzia both noted that HTTP APIs do not support streaming while REST APIs support progressive delivery, and Kraftzman added that an HTTP API solution would need a Lambda Function URL proxy, adding configuration. Some learners initially chose A because HTTP APIs are generally cheaper and lower-latency, but that general advantage does not satisfy the native streaming requirement in this question.
Official Reference
- https://aws.amazon.com/about-aws/whats-new/2025/11/api-gateway-response-streaming-rest-apis/
- https://docs.aws.amazon.com/lambda/latest/dg/configuration-response-streaming.html
These links open the official vendor documentation in a new tab.
Exam Strategy
When LEAST operational overhead appears, first eliminate options that add container lifecycle or WebSocket state management. Then verify the exact managed-service feature: API Gateway REST APIs support Lambda response streaming, while HTTP APIs do not natively, so the cheaper HTTP API is not automatically correct.
Frequently Asked Questions
Why is an API Gateway HTTP API not the best choice for streaming here?
Does Amazon API Gateway REST API support Lambda response streaming?
Discussion 12 contributions
Compiled from public community threads and reader submissions, lightly edited for clarity. Handles and vote tallies are shown as recorded, and comments reflect the views of individual contributors.
From public community threads 12
-
Kraftzman 👍 4 Answered DOption A (HTTP API): While HTTP APIs are often faster/cheaper, native payload response streaming is currently a feature exclusive to REST APIs in API Gateway. Attempting this with an HTTP API would require a Lambda Function URL proxy, adding an extra layer of configuration.
-
Wardove 👍 4 Answered Donly (D) uses REST API + Lambda response streaming, this IS valid as of November 2025. REST API is the ONLY API Gateway type that supports Lambda response streaming https://aws.amazon.com/about-aws/whats-new/2025/11/api-gateway-response-streaming-rest-apis/
-
Kimzia 👍 4 Answered DResponse streaming is only supported for REST APIs.
-
taka5094 👍 2 Answered AD: REST API does not natively support streaming responses. A: The HTTP API is more suitable for streaming use cases and can meet requirements with lower latency and lower cost.
-
eesa 👍 2 Answered AStream responses para reducir latencia Enforce token limits para gestionar recursos Implement retry logic para timeouts y respuestas parciales LEAST operational overhead
Show 7 more comments
-
GiorgioGss 👍 2 Answered A"LEAST operational overhead"
-
Tanle 👍 2 Answered ACorrect ansswer
-
xyztest 👍 2 Answered DCorrect Answer
-
Naaser 👍 1 Answered AManaged Services: Amazon Bedrock is a fully managed service for foundation models, eliminating the need to manage infrastructure (unlike the ECS option in C).Response Streaming: Lambda response streaming (introduced for Node.js and Python) allows the API Gateway HTTP API to push partial payloads to the client as they are generated, satisfying the low-latency requirement.Least Operational Overhead: HTTP APIs are simpler and cheaper than REST APIs (Option D) and integrate seamlessly with Lambda for event-driven scaling.
-
Chibuzo1 👍 1 Answered Ahe critical architectural detail: HTTP API (not REST API) is the correct API Gateway type here because it supports Lambda response streaming and has lower latency and cost than REST API.
-
a0c03ac 👍 1 Answered DAmazon API Gateway HTTP API - does not support streaming, while REST supports progressive delivery
-
nebulane 👍 1 Answered Aanswer is A since http api has lower latency than REST for streaming
Reader comments & corrections
No reader corrections yet — spotted an error or have a note? Share it below.
Related Analysis
Practice All AIP-C01 Questions
Access 110 questions with complete answers and detailed explanations.
View Full AIP-C01 Practice Test →