A dashboard uses API Gateway WebSocket APIs, and an SNS topic receives status updates. Which design lets a backend push each update to all currently connected dashboard clients?
Show the answer
Correct answerD. Invoke Lambda from SNS to read stored connection IDs and call the API Gateway Management API.
AWhy not this: The $connect integration handles connection establishment, not delivery of subsequent SNS updates.
BWhy not this: API Gateway WebSocket APIs do not automatically poll an SQS queue to push messages to connected clients.
CWhy not this: SNS cannot directly subscribe a client's API Gateway WebSocket connection as a delivery endpoint.
DWhy this is right: The backend can use stored connection IDs to push messages through the API Gateway Management API.
A Lambda subscriber can fan out updates to active connection IDs through the API Gateway Management API. SNS does not support direct subscriptions to API Gateway WebSocket client connections.