Question 128 of 997
Develop for Azure storageeasyMultiple ChoiceObjective-mapped

Quick Answer

The answer is Azure Files with an SMB share mounted as a drive letter on the Windows machine. This is correct because the SMB protocol (also known as CIFS) allows the mounted share to appear as a local drive to the operating system, so standard .NET file system calls like File.ReadAllText and Directory.GetFiles work without any code changes—the .NET runtime simply passes these calls through the Windows file system API to the remote Azure Files share. On the AZ-204 exam, this scenario tests your understanding of legacy migration patterns where you must avoid rewriting application code; a common trap is choosing Blob Storage, which requires the Azure Storage SDK and would force code changes. The key insight is that Azure Files supports the SMB protocol natively, making it the only Azure storage service that can be mounted as a drive letter for seamless legacy app integration. Memory tip: think "SMB = Same Mounted Behavior" for zero-code migration.

AZ-204 Practice Question: Azure Files SMB vs Blob Storage for standard file…

This AZ-204 practice question tests your understanding of develop for azure storage. Match the stated requirement to the specific cloud service, access model, or configuration option — many options are valid in isolation but not for this scenario. A key principle to apply: azure Files SMB. 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.

A Windows desktop application uses standard .NET file system calls such as File.ReadAllText and Directory.GetFiles. The team wants to move the file storage to Azure. The application code must not be rewritten. Which Azure storage service supports this requirement?

Question 1easymultiple 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 with an SMB share mounted as a drive letter on the Windows machine

Azure Files with an SMB share mounted as a drive letter on the Windows machine allows the existing .NET application to use standard file system calls like File.ReadAllText and Directory.GetFiles without any code changes. This is because the mounted SMB share presents itself as a local drive, and the .NET runtime interacts with it through the standard Windows file system API, which internally uses the SMB protocol (CIFS) to communicate with Azure Files. No SDK or API rewrite is required.

Key principle: Azure Files SMB

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 with an SMB share mounted as a drive letter on the Windows machine

    Why this is correct

    SMB shares exposed by Azure Files are indistinguishable from local or network drives at the OS level. The .NET file system APIs translate directly to SMB operations on the share, requiring zero code changes in the application.

    Related concept

    Azure Files SMB

  • Azure Blob Storage with the Azure Storage SDK replacing all file system calls

    Why it's wrong here

    Blob Storage does not support drive-letter mounting or SMB access. Using it would require rewriting all file I/O calls to use BlobClient or BlobContainerClient, which the requirement explicitly prohibits.

  • Azure Queue Storage for staging files between producer and consumer processes

    Why it's wrong here

    Queue Storage is a messaging service. It stores short text messages, not file contents, and offers no file system interface. It does not replace file I/O semantics.

  • Azure Table Storage with the file content stored as base64-encoded entity properties

    Why it's wrong here

    Table Storage is a key-value store for structured data. Entity property size is limited to 64 KB, making it impractical for file storage. It has no file system interface and requires SDK-based access.

Common exam traps

Common exam trap: answer the scenario, not the keyword

The trap here is that candidates may assume Azure Blob Storage is the only file storage option and overlook Azure Files, which is specifically designed for lift-and-shift scenarios requiring SMB-based file sharing without code changes.

Detailed technical explanation

How to think about this question

Azure Files supports the SMB 3.0 protocol, which includes encryption and multi-channel support for secure, high-performance access over the internet. When mounted as a drive letter (e.g., Z:), the Windows operating system handles all file I/O through the SMB redirector (mrxsmb.sys), so .NET's File and Directory classes work transparently. A subtle behavior is that the SMB share must be accessed using the storage account key or Azure AD credentials, and the client must have SMB 3.0 enabled (default on Windows 8+ and Server 2012+).

KKey Concepts to Remember

  • Azure Files SMB
  • network drive mapping
  • file system APIs
  • legacy application support

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

Azure Files SMB

Real-world example

How this comes up in practice

A media company stores terabytes of video archives that are accessed once a year for audit purposes. Moving these objects to a cold storage tier (Azure Archive, S3 Glacier, or Google Nearline) costs a fraction of hot storage. Questions like this test whether you understand storage tiers, access frequency tradeoffs, and retrieval latency requirements.

What to study next

Got this wrong? Here's your next step.

Review azure Files SMB, then practise related AZ-204 questions on the same topic to reinforce the concept.

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 for Azure storage — This question tests Develop for Azure storage — Azure Files SMB.

What is the correct answer to this question?

The correct answer is: Azure Files with an SMB share mounted as a drive letter on the Windows machine — Azure Files with an SMB share mounted as a drive letter on the Windows machine allows the existing .NET application to use standard file system calls like File.ReadAllText and Directory.GetFiles without any code changes. This is because the mounted SMB share presents itself as a local drive, and the .NET runtime interacts with it through the standard Windows file system API, which internally uses the SMB protocol (CIFS) to communicate with Azure Files. No SDK or API rewrite is required.

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

Review azure Files SMB, then practise related AZ-204 questions on the same topic to reinforce the concept.

What is the key concept behind this question?

Azure Files SMB

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

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.