Topic 1 Question 119
2 つ選択A real-time messaging application uses Amazon API Gateway WebSocket APIs with backend HTTP service. A developer needs to build a feature in the application to identify a client that keeps connecting to and disconnecting from the WebSocket connection. The developer also needs the ability to remove the client.
Which combination of changes should the developer make to the application to meet these requirements?
Switch to HTTP APIs in the backend service.
Switch to REST APIs in the backend service.
Use the callback URL to disconnect the client from the backend service.
Add code to track the client status in Amazon ElastiCache in the backend service.
Implement $connect and $disconnect routes in the backend service.
ユーザの投票
コメント(4)
- 正解だと思う選択肢: DE
Option D because by storing the client status in the cache, the backend service can quickly access the client status data without the need to query the database or perform other time-consuming operations. Option E. Implement $connect and $disconnect routes in the backend service: $connect and $disconnect are the reserved routes in WebSocket APIs, which are automatically called by API Gateway whenever a client connects or disconnects from the WebSocket. By implementing these routes in the backend service, the developer can track and manage the client status, including identifying and removing the client when needed.
👍 7MrTee2023/04/22 - 正解だと思う選択肢: CE
Implementing a callback URL allows the backend service to initiate disconnection from the WebSocket connection.
👍 1loctong2023/05/17 - 正解だと思う選択肢: CE👍 1delak2023/05/21
シャッフルモード