Question 6 of 997
Develop Azure compute solutionshardMultiple ChoiceObjective-mapped

Quick Answer

The answer is Azure Files share, because it provides a fully managed SMB file share that can be mounted as a volume in Azure Container Instances, enabling persistent storage for data across container restarts and concurrent access from multiple instances. This works because Azure Files stores data in a remote storage account, decoupling the data lifecycle from the container’s ephemeral state—unlike the container’s temporary disk, which is lost on restart. On the AZ-204 exam, this scenario tests your understanding of stateful workloads in serverless containers, often appearing as a distractor against options like Azure Blob Storage (which lacks native SMB mounting in ACI) or the container’s ephemeral volume. A common trap is assuming any Azure storage works, but only Azure Files supports the SMB protocol required for ACI volume mounts with shared, durable access. Memory tip: think “Files for persistence, Blobs for objects”—if it needs to survive a restart and be shared, mount an Azure Files share.

AZ-204 Develop Azure compute solutions Practice Question

This AZ-204 practice question tests your understanding of develop azure compute solutions. This is a configuration task: choose the command set that satisfies every stated requirement. Small differences — like 'secret' vs 'password' or 'transport input ssh' vs 'all' — change whether the answer is correct. After answering, compare your reasoning against the explanation and wrong-answer breakdown below. Once you have made your selection, read the full explanation to reinforce the concept and understand why each distractor is designed to mislead on exam day.

You deploy a containerized application on Azure Container Instances (ACI). The application writes data that must persist across container restarts and be accessible from multiple instances. Which volume mount should you configure?

Question 1hardmultiple choice
Full question →

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

Azure Files share

Azure Files shares provide a fully managed SMB file share in the cloud that can be mounted as a volume in Azure Container Instances. This allows data written by the container to persist across restarts and be accessed concurrently by multiple container instances, meeting the requirements for durability and shared access.

Key principle: Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option.

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 Files share

    Why this is correct

    Azure Files offers SMB shares that can be mounted as volumes in ACI, persisting data independent of the container lifecycle.

    Related concept

    Read the scenario before looking for a memorised answer.

  • emptyDir volume

    Why it's wrong here

    emptyDir is a temporary volume that is cleared when the container restarts.

  • Azure Disk

    Why it's wrong here

    Azure Disk is not natively supported in ACI; it requires a sidecar container or use of virtual machines.

  • ConfigMap

    Why it's wrong here

    ConfigMaps are used for injecting configuration data, not for persistent storage.

Common exam traps

Common exam trap: answer the scenario, not the keyword

The trap here is confusing Azure Disk (which is block storage with ReadWriteOnce semantics) with Azure Files (which is file storage with ReadWriteMany semantics), leading candidates to choose Azure Disk for persistence without considering multi-instance access requirements.

Detailed technical explanation

How to think about this question

Azure Files uses the SMB 3.0 protocol, which supports encryption in transit and can be mounted on both Windows and Linux containers. Under the hood, ACI mounts the Azure Files share via the CIFS driver, and the share must be in the same region as the container group. In a real-world scenario, this is ideal for stateful workloads like web applications that need to share uploaded files or logs across multiple replicas.

KKey Concepts to Remember

  • Read the scenario before looking for a memorised answer.
  • Find the constraint that changes the correct option.
  • Eliminate answers that are true in general but not in this case.

TExam Day Tips

  • Watch for words such as best, first, most likely and least administrative effort.
  • Review why wrong options are wrong, not only why the correct option is correct.

Key takeaway

Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option.

Real-world example

How this comes up in practice

A company's IT admin needs to give a contractor read-only access to production logs without sharing account credentials. Using role-based access control (RBAC) and temporary scoped permissions — not a permanent shared password — is the correct pattern. Questions like this test whether you can apply least-privilege access across cloud identity services.

What to study next

Got this wrong? Here's your next step.

Identify which exam domain this question belongs to, review the core concept, then practise similar questions from the same domain.

Related practice questions

Related AZ-204 practice-question pages

Use these pages to review the topic behind this question. This is how one missed question becomes focused revision.

Practice this exam

Start a free AZ-204 practice session

Short sessions build daily habit. Longer sessions build exam-day stamina. Try a timed session to simulate real conditions.

FAQ

Questions learners often ask

What does this AZ-204 question test?

Develop Azure compute solutions — This question tests Develop Azure compute solutions — Read the scenario before looking for a memorised answer..

What is the correct answer to this question?

The correct answer is: Azure Files share — Azure Files shares provide a fully managed SMB file share in the cloud that can be mounted as a volume in Azure Container Instances. This allows data written by the container to persist across restarts and be accessed concurrently by multiple container instances, meeting the requirements for durability and shared access.

What should I do if I get this AZ-204 question wrong?

Identify which exam domain this question belongs to, review the core concept, then practise similar questions from the same domain.

What is the key concept behind this question?

Read the scenario before looking for a memorised answer.

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 →

How Courseiva writes practice questions · Editorial policy

Same concept, more angles

5 more ways this is tested on AZ-204

These questions test the same concept from different angles. Work through them to make sure you can recognise it however the exam phrases it.

Variation 1. You deploy a containerized web application to Azure Container Instances (ACI). The application writes session data to a local directory. You need the data to persist across container restarts (e.g., after a crash or redeployment). Which storage configuration should you use?

easy
  • A.Use an emptyDir volume within the container group.
  • B.Mount an Azure Files share as a volume in the container group.
  • C.Use the container's own filesystem and copy data to a blob storage on shutdown.
  • D.Enable Azure Disk Encryption on the container group.

Why B: Option B is correct because Azure Files provides a fully managed SMB file share in the cloud that can be mounted as a volume in an Azure Container Instance. This allows session data written to the local directory to persist across container restarts, crashes, or redeployments, as the data lives on the share rather than in the ephemeral container filesystem.

Variation 2. You deploy a containerized application to Azure Container Instances (ACI). The application writes logs that must persist across container restarts and be accessible from a file system. The solution must minimize cost and complexity. Which configuration should you use?

medium
  • A.Mount an Azure Files share as a volume
  • B.Store logs in Azure Container Registry
  • C.Use a Docker volume in the container
  • D.Pass log path via an environment variable

Why A: Mounting an Azure Files share as a volume in Azure Container Instances provides persistent, shared file storage that survives container restarts and is accessible via the container's file system. This approach minimizes cost by using standard Azure Files storage (pay only for consumed capacity) and complexity by leveraging ACI's native volume mount support without requiring additional orchestration or stateful infrastructure.

Variation 3. You deploy a containerized application to Azure Container Instances (ACI). The application writes state to the /data directory. You need to ensure that if the container restarts, the data persists. Which type of volume mount should you use?

medium
  • A.Azure Files share
  • B.emptyDir volume
  • C.hostPath volume
  • D.Azure Disk volume

Why A: Azure Files shares provide a fully managed SMB file share in the cloud that can be mounted to Azure Container Instances. When a container restarts, the data written to the /data directory persists because the share lives independently of the container lifecycle, ensuring state survives crashes or restarts.

Variation 4. You are deploying a containerized application to Azure Container Instances. The application requires writing temporary files to a local filesystem. You need to ensure that the files persist if the container restarts. What should you do?

medium
  • A.Mount an Azure Files share as a volume in the container group.
  • B.Use the container's writable layer to store files.
  • C.Use Azure Blob Storage and mount it as a volume.
  • D.Configure a Docker volume in the container image.

Why A: Azure Container Instances (ACI) supports mounting Azure Files shares as volumes. When a container restarts, its writable layer is ephemeral and lost, but an Azure Files share persists independently. By mounting the share, temporary files written to the mount point survive container restarts, meeting the persistence requirement.

Variation 5. You are deploying a containerized application to Azure Container Instances (ACI). The application writes temporary data to a local disk that must persist across container restarts (e.g., after a crash). Which configuration should you use?

easy
  • A.Mount an Azure Files share as a volume in the container group.
  • B.Use the temporary disk automatically allocated by ACI.
  • C.Store data in an Azure Cosmos DB database.
  • D.Use an emptyDir volume as available in Kubernetes.

Why A: Option A is correct because Azure Container Instances (ACI) supports mounting an Azure Files share as a persistent volume. When a container restarts (e.g., after a crash), the temporary disk is wiped, but data written to an Azure Files share persists independently of the container's lifecycle. This meets the requirement for data to survive container restarts.

Last reviewed: Jun 11, 2026

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.

Loading comments…

Sign in to join the discussion.

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.