Connect to and consume Azure services and third-party services →mediumMultiple ChoiceObjective-mapped
AZ-204 Practice Question: Connect to and consume Azure services and third-party services
Network Topology
Refer to the exhibit. A developer runs this Azure CLI command to set an app setting for a web app. What is the impact on the web app?
⚠ Common exam trap
Watch out — candidates often assume app settings are hot-reloaded without a restart (like in some local development frameworks), but Azure App Service requires a restart to apply environment-level configuration changes.
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 web app restarts to apply the new setting.
When you use the Azure CLI command `az webapp config appsettings set` to modify an app setting for a web app, Azure App Service automatically triggers a restart of the web app to apply the new setting. This is because app settings are injected into the application's environment at startup, and changes require a fresh process to pick them up. Option C correctly identifies this behavior.
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 command fails because the password is provided in plaintext.
Why it's wrong here
The Azure CLI command `az webapp config appsettings set` does not validate the security of the input value format. While providing sensitive information like passwords directly in a command-line argument is a significant security risk, the command itself will execute successfully and apply the setting. The issue lies with security best practices, not with the command's functional execution, as the CLI is designed to accept string values for app settings.
- ✗
The setting is available immediately without restart.
Why it's wrong here
Azure App Service application settings are injected into the application's process as environment variables when the web app starts. Consequently, any changes to these settings require the application process to be reinitialized to pick up the new environment variables. Therefore, the setting is not available immediately; a restart of the web app is necessary for the changes to take effect within the running application.
- ✓
The web app restarts to apply the new setting.
Why this is correct
When an application setting is modified for an Azure App Service, the platform automatically triggers a restart of the web app instance(s). This restart is crucial because it ensures that the updated configuration, which is exposed to the application as environment variables, is properly loaded into the application's runtime process. Without this restart, the running application would continue to use the old, cached environment variables, preventing the new setting from being applied.
- ✗
The setting is stored in a local configuration file.
Why it's wrong here
Azure App Service application settings are not stored within the web app's deployed file system or in a local configuration file like `web.config` or `appsettings.json`. Instead, these settings are securely stored within the Azure App Service platform itself and are dynamically injected as environment variables into the application's process at startup. This approach centralizes configuration management in Azure, separating it from the application's code and deployment package.
Go deeper
Related to this question
About these practice questions
One of 881 original AZ-204 practice questions on Courseiva, each with a full explanation and wrong-answer analysis — not exam dumps or protected exam content. 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.