
AWS Certified Developer - Associate
Get started today
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?
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?
Exam-Like
Explanation:
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 disconnect routes in the backend) is correct because 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.