AZ-204 Practice Question: Monitor, troubleshoot, and optimize Azure solutions
You are running an Azure App Service web app on the Basic tier. Users report slow initial responses due to cold starts. You need to keep the app warm without upgrading the hosting plan. Which feature should you enable?
⚠ Common exam trap
Test-takers frequently confuse auto-scaling (which handles load distribution) with keeping a single instance warm, or incorrectly assume that 'Always On' requires a Premium plan when it is actually available from the Basic tier upward.
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
✓
Enable 'Always On' in the App Service configuration.
The 'Always On' feature prevents the App Service from being unloaded after periods of inactivity, eliminating cold starts by keeping the application loaded in memory. This is available on the Basic tier and above, so it solves the problem without requiring a plan upgrade.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✓
Enable 'Always On' in the App Service configuration.
Why this is correct
Enabling 'Always On' in the App Service configuration ensures that the web application's worker process is continuously loaded and running, even during periods of inactivity. This prevents the application from being unloaded from memory, thereby eliminating "cold starts" where the first request after an idle period incurs significant latency for the application to initialize. This crucial setting is available starting from the Basic App Service plan tier, directly addressing the problem of initial request delays.
- ✗
Upgrade to a Premium plan to get pre-warmed instances.
Why it's wrong here
Upgrading to a Premium App Service plan would indeed provide more robust features, including potentially faster instance provisioning or dedicated resources that inherently reduce cold start occurrences. However, the scenario explicitly constrains the solution to the existing Basic tier, making any plan upgrade an invalid approach. While Premium tiers offer performance benefits, they fall outside the specified operational parameters for this particular problem.
- ✗
Implement an auto-scaling rule to maintain a minimum instance count.
Why it's wrong here
Implementing an auto-scaling rule to maintain a minimum instance count primarily addresses capacity and availability under varying load, not the cold start issue for individual instances. While it ensures a certain number of instances are running, if those instances become idle and 'Always On' is not enabled, they can still be unloaded and experience cold starts when new requests arrive. Auto-scaling scales out by adding new instances, but doesn't prevent existing ones from going idle.
- ✗
Reduce the web app's idle timeout via application code.
Why it's wrong here
Reducing the web app's idle timeout via application code is not feasible because the idle timeout is a platform-level configuration managed by the Azure App Service infrastructure, not by the application itself. Application code operates within the runtime environment and lacks the permissions or mechanisms to modify these fundamental hosting parameters. The default idle timeout, which causes cold starts, can only be circumvented by platform features like 'Always On'.
Go deeper
Related to this question
About these practice questions
This AZ-204 question is part of Courseiva's 881-question bank — original exam-style content with full explanations and wrong-answer analysis, never real exam questions or exam 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.