
Answer-first summary for fast verification
Answer: Track client status with Amazon ElastiCache., Implement $connect and $disconnect routes in the backend.
Option D (Track client status with Amazon ElastiCache) is correct because using ElastiCache allows the backend service to efficiently track client connection status without querying a database, thereby detecting clients that frequently connect and disconnect. Option E (Implement $connect and $disconnect routes in the backend) is correct because $connect and $disconnect routes are reserved routes in WebSocket APIs, automatically triggered when a client connects or disconnects, enabling the backend service to manage the client's connection state.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
In a real-time messaging app using Amazon API Gateway WebSocket APIs, how can a developer implement features to identify and remove clients frequently connecting and disconnecting?
A
Switch backend to HTTP APIs.
B
Switch backend to REST APIs.
C
Utilize callback URL for client disconnection.
D
Track client status with Amazon ElastiCache.
E
Implement disconnect routes in the backend.
No comments yet.