AZ-204 Practice Question: Connect to and consume Azure services and third-party services
Your Azure App Service app uses SignalR Service to push real-time updates to clients. You notice that some clients are disconnected after 30 minutes of inactivity. What is the most likely cause and solution?
⚠ Common exam trap
It's easy for candidates to confuse the App Service plan's idle timeout (which affects the web app process) with the SignalR Service's client timeout, leading them to incorrectly select Option B, whereas the real culprit is the SignalR Service's default 30-minute idle disconnect.
Answer choices
Why each option matters
Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.
Correct answer & explanation
✓
The Azure SignalR Service has a default client timeout of 30 minutes; configure the ClientTimeout setting in the SignalR service
The Azure SignalR Service has a default idle client timeout of 30 minutes. When a client connection remains idle (no data frames sent or received) for this duration, the service proactively closes the connection to conserve resources. To prevent this, you must configure the `ClientTimeout` setting in the SignalR service to a higher value or implement keep-alive mechanisms such as ping frames from the client.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
The app service plan is scaled down, causing idle connections to drop
Why it's wrong here
Scaling down an App Service Plan reduces the number of backend instances available to process requests, but it does not directly terminate client connections managed by the Azure SignalR Service. The SignalR Service operates as a separate, fully managed platform-as-a-service (PaaS) component, offloading connection management from the application server. Therefore, client connections persist independently of the App Service Plan's scaling actions, as long as the SignalR Service itself remains operational.
- ✗
The app service plan has an idle timeout of 30 minutes
Why it's wrong here
The App Service Plan's idle timeout primarily affects the backend application process, causing it to unload from memory if it remains inactive for a specified duration. This timeout is distinct from client connection lifecycles managed by the Azure SignalR Service. While an unloaded application might temporarily delay message processing, it does not inherently cause the Azure SignalR Service to disconnect active client connections, which are maintained by the SignalR Service itself.
- ✗
The SignalR service is in serverless mode, which disconnects idle clients
Why it's wrong here
Azure SignalR Service in serverless mode routes client connections directly to the service, and backend functions use the service to send messages, rather than maintaining persistent server connections. While this mode changes the backend interaction model, it does not impose a fixed 30-minute idle client disconnection policy. Client connections in serverless mode are still long-lived and managed by the SignalR Service, subject to its general connection timeouts, but not specifically a 30-minute idle timeout because it's serverless.
- ✓
The Azure SignalR Service has a default client timeout of 30 minutes; configure the ClientTimeout setting in the SignalR service
Why this is correct
The Azure SignalR Service includes a configurable ClientTimeoutInterval property, which defaults to 30 minutes. This setting dictates the maximum period of inactivity allowed on a client connection before the service proactively terminates it. To prevent unexpected disconnections for idle clients, administrators should increase this ClientTimeoutInterval value within the SignalR Service configuration to a duration appropriate for their application's requirements.
Go deeper
Related to this question
About these practice questions
Courseiva writes every AZ-204 question from scratch — 881 in total, each with an explanation and a wrong-answer breakdown. None are copied from real exams or dumps. Learn why practice questions differ from exam dumps →
JA
Written by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
This AZ-204 practice question is part of Courseiva's free Microsoft certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the AZ-204 exam.