Question 102 of 881
AZ-204 Develop Azure compute solutions Practice Question
You deploy a containerized application to Azure Container Instances (ACI). The application needs to store configuration settings that might change at runtime. You need to update the configuration without redeploying the container. What should you do?
⚠ Common exam trap
Many exam-takers confuse Azure Container Instances with Azure App Service, mistakenly selecting 'Application Settings' (Option C) which is an App Service feature, not available in ACI.
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
✓
Mount an Azure Files share and update the configuration file
To update configuration settings at runtime without redeploying the container in Azure Container Instances (ACI), you should mount an Azure Files share. The application can read its configuration from a file stored on this share. When configuration changes are needed, you can update the file directly on the Azure Files share. The container itself does not need to be redeployed or restarted, provided the application is designed to periodically re-read the configuration file or react to file changes. This approach allows for dynamic configuration updates independent of the container lifecycle.
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 environment variables in the container group
Why it's wrong here
Azure Container Instances (ACI) allows you to define environment variables directly within the container group definition. These variables are injected into the container at startup and are accessible by the application running inside. To update the configuration, you simply modify the environment variable values in the ACI container group definition and then restart the container group. This approach provides a straightforward and effective method for runtime configuration changes without altering the container image itself.
- ✓
Mount an Azure Files share and update the configuration file
Why this is correct
While Azure Container Instances supports mounting Azure Files shares as volumes, simply updating a configuration file on the mounted share does not automatically trigger a configuration refresh within the running container. The application inside the container would need to implement specific logic to continuously monitor the file for changes or be restarted to re-read the updated configuration. This method introduces additional complexity and does not provide a truly dynamic, out-of-the-box configuration update mechanism for ACI.
- ✗
Use Application Settings in the container
Why it's wrong here
Application Settings are a specific feature primarily associated with Azure App Service, providing a managed way to inject configuration into web applications. Azure Container Instances, however, does not natively support "Application Settings" in the same manner as App Service. ACI is a more fundamental container hosting service, and its configuration mechanisms are typically handled through environment variables, command-line arguments, or mounted volumes, rather than App Service-specific settings.
- ✗
Modify the container image to include new configuration
Why it's wrong here
Modifying the container image to embed new configuration values necessitates a complete rebuild of the Docker image. After rebuilding, the new image must then be pushed to a container registry and the Azure Container Instance must be updated to pull and run this new image. This process is time-consuming and resource-intensive, making it unsuitable for dynamic or frequent configuration updates at runtime, as it fundamentally changes the deployed artifact rather than just its operational parameters.
About these practice questions
Courseiva creates original exam-style practice questions with explanations and wrong-answer analysis. It does not publish real exam questions, exam dumps, or protected exam content. Learn why practice questions differ from exam dumps →
Last reviewed: Jun 24, 2026
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.
Question Discussion
Share a tip, memory trick, or ask about the reasoning behind this question. Do not post real exam questions, leaked content, braindumps, or copyrighted exam material. Comments are moderated and may be removed without notice.
Sign in to join the discussion.