Courseiva
Develop Azure compute solutionseasyMultiple ChoiceObjective-mapped

AZ-204 Develop Azure compute solutions Practice Question

You are deploying a web application to Azure App Service. The application needs to read configuration settings that vary by deployment environment (development, staging, production). You want to minimize application changes and leverage Azure services. What should you use?

⚠ Common exam trap

The trap here is that candidates often overcomplicate the solution by choosing Azure App Configuration or Key Vault for all configuration needs, forgetting that Azure App Service application settings are the simplest, most direct way to handle environment-specific, non-sensitive settings without additional code or services.

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

Use Azure App Service application settings.

Azure App Service application settings are the correct choice because they are natively supported by the App Service platform, allowing you to define key-value pairs that are injected as environment variables at runtime. This approach requires no application code changes, as the settings are automatically available via standard configuration APIs (e.g., `Environment.GetEnvironmentVariable` in .NET or `process.env` in Node.js), and you can configure different values per deployment slot (e.g., development, staging, production) without redeploying the application.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • Use Azure Key Vault secrets for configuration values.

    Why it's wrong here

    Azure Key Vault is primarily designed for securely storing and managing cryptographic keys, secrets (like API keys, connection strings, and certificates), and highly sensitive data that requires strict access control and auditing. While it can store any string, using it for general, non-sensitive application configuration values introduces unnecessary complexity and cost overhead. Its robust security features are overkill for typical application settings, making it less suitable for basic configuration needs.

  • Use Azure DevOps variable groups and inject them at build time.

    Why it's wrong here

    Azure DevOps variable groups are designed to store values used during the build and release pipeline execution, allowing for parameterization of scripts and tasks. Injecting configuration values at build time bakes them directly into the deployed artifact, making runtime changes impossible without a full re-build and re-deployment. This approach lacks the flexibility required for dynamic configuration updates or environment-specific settings in an Azure App Service, which often need to be adjusted without code changes.

  • Use Azure App Configuration with feature flags.

    Why it's wrong here

    Azure App Configuration provides a centralized service for managing application settings and feature flags, enabling dynamic configuration updates without redeploying the application. While powerful for complex scenarios involving multiple services, geo-distributed deployments, or advanced feature management, using it solely for simple configuration values in a single web application deployment introduces additional service dependencies and management overhead. For basic, non-dynamic settings specific to an App Service instance, a simpler mechanism is often more appropriate.

  • Use Azure App Service application settings.

    Why this is correct

    Azure App Service application settings are key-value pairs that are exposed to the application as environment variables at runtime. These settings can be easily configured and managed directly within the Azure portal, Azure CLI, or PowerShell, and critically, they can be configured per deployment slot. This allows for seamless environment-specific configurations (e.g., development, staging, production) and dynamic updates without requiring code changes or redeployments, making them the most straightforward and effective solution for web application configuration.

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 →

How Courseiva writes practice questions · Editorial policy

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.