Question 10
A production GenAI service has TWO independent requirements. (1) A streaming chat UI currently waits for an entire response even though users need incremental output. (2) An FM API gateway allows callers to request any model and returns raw provider errors and secrets. Which TWO actions directly satisfy both requirements?
Explanation
Correct Answers
Correct for requirement (1). Streamed tokens improve perceived responsiveness only if the API/client can consume events. The action addresses this distinct requirement: A streaming chat UI currently waits for an entire response even though users need incremental output. The other requirement still needs its own authorized control.
Correct for requirement (2). An API façade must shield provider details and prevent unauthorized model usage. The action addresses this distinct requirement: An FM API gateway allows callers to request any model and returns raw provider errors and secrets. The other requirement still needs its own authorized control.
Incorrect Answers
An integration boundary translates legacy requests and enforces policy without exposing model credentials. In this case the first outcome requires the team to use a compatible Bedrock streaming API with safe chunk forwarding and disconnect handling, and the second requires it to use authenticated model allowlists, request-size limits and sanitized error translation. This option does not replace those two separate controls.
Bulk jobs should not consume interactive endpoints unnecessarily when latency is not important. In this case the first outcome requires the team to use a compatible Bedrock streaming API with safe chunk forwarding and disconnect handling, and the second requires it to use authenticated model allowlists, request-size limits and sanitized error translation. This option does not replace those two separate controls.
An MCP tool listing or successful gateway login does not by itself grant report entitlements; IAM/OAuth ingress and target-specific authorization must both be enforced. In this case the first outcome requires the team to use a compatible Bedrock streaming API with safe chunk forwarding and disconnect handling, and the second requires it to use authenticated model allowlists, request-size limits and sanitized error translation. This option does not replace those two separate controls.