AZ-204 Develop Azure compute solutions Practice Question
You are deploying a web app to Azure App Service. The app uses environment-specific configuration (e.g., connection strings). You need to manage these settings without redeploying the app. Which feature should you use?
⚠ Common exam trap
Watch out — candidates often confuse Azure App Configuration service (a premium, centralized config service) with the simpler, built-in App Service application settings, or they mistakenly think Key Vault references alone can replace application settings, not realizing that references are just a value source within an application setting.
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
✓
App Service application settings
App Service application settings (option B) are the correct feature because they allow you to store environment-specific configuration (e.g., connection strings, app settings) as key-value pairs that are injected into the app at runtime. These settings can be changed in the Azure portal, CLI, or PowerShell without redeploying the application code, making them ideal for managing configuration across different environments (development, staging, production). The settings are automatically encrypted at rest and overridden for the specific App Service slot when using deployment slots.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
Azure App Configuration service
Why it's wrong here
Azure App Configuration service is designed for centralized management of application settings and feature flags, especially across distributed microservices. While it can store configuration, integrating it requires adding client libraries to the application and managing a separate Azure resource. For a single web app needing straightforward environment-specific settings that can be updated without redeployment, it introduces unnecessary complexity and overhead compared to App Service's native capabilities.
- ✓
App Service application settings
Why this is correct
App Service application settings are key-value pairs that are injected as environment variables into the application's runtime. They can be easily managed through the Azure portal, CLI, or PowerShell, allowing immediate updates without requiring a code redeployment. Changes to these settings automatically trigger an application restart, ensuring the new values are picked up promptly, making them the ideal and most straightforward solution for managing environment-specific configuration.
- ✗
ARM template parameters
Why it's wrong here
ARM template parameters are used to provide values at the time of resource deployment to customize the resources being created or updated by the template. Once the deployment is complete, these parameters are static and do not facilitate dynamic runtime configuration changes. To modify a setting originally defined by an ARM parameter, a new deployment of the ARM template would be required, which directly contradicts the requirement to manage configuration without redeployment.
- ✗
Azure Key Vault references in App Service
Why it's wrong here
Azure Key Vault references inject secret values from a vault into App Service settings, but they are designed for secure secret storage, not for general environment‑specific configuration management. Changing a referenced secret requires updating the vault, then waiting for a cache refresh (up to 24 hours) or manually restarting the app. The correct feature—Application Settings—allows immediate value changes via the portal or CLI, automatically restarting the app. This option is tempting because connection strings are often sensitive, and Key Vault references securely hold such secrets, but the scenario does not demand security—it demands straightforward setting updates without redeploy.
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.