Courseiva
Develop for Azure storagehardMultiple ChoiceObjective-mapped

AZ-204 Develop for Azure storage Practice Question

You are using Azure File Sync to sync on-premises file shares to Azure. You need to ensure that files are cached locally on the on-premises server for fast access, but only the most frequently accessed files should be cached. What should you configure?

⚠ Common exam trap

Candidates often confuse cloud tiering with manual recall or think they can filter files by access time via sync group settings, but Azure File Sync's cloud tiering is the only built-in mechanism that automatically manages local caching based on access frequency.

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

Enable cloud tiering on the server endpoint and set a volume free space policy.

Cloud tiering on an Azure File Sync server endpoint allows you to keep only frequently accessed files cached locally while infrequently accessed files are tiered to Azure. By setting a volume free space policy, you control how much local disk space is reserved for frequently accessed files, ensuring that only the most accessed files remain cached. This directly meets the requirement of caching only the most frequently accessed files locally.

Answer analysis

Option-by-option breakdown

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

  • Configure a caching rule using Azure File Sync's built-in cache size limit.

    Why it's wrong here

    Azure File Sync does not offer explicit "caching rules" or a configurable "built-in cache size limit" as a standalone feature. Its local caching mechanism is primarily managed through cloud tiering policies, which operate based on volume free space and date policies, not a direct, fixed cache size limit. Therefore, attempting to configure a non-existent built-in caching rule or size limit is not a valid approach within Azure File Sync.

  • Configure a sync group with a custom server endpoint that filters files by last access time.

    Why it's wrong here

    Azure File Sync's server endpoint configuration allows for file and folder exclusion filters based on name, extension, or path, but it explicitly lacks the capability to filter or tier files based on their last access time attribute for the sync process itself. While cloud tiering policies can use a date policy that considers last modified or last accessed time for tiering, this is distinct from filtering which files participate in the sync group based on last access time. Thus, this option describes an unsupported filtering capability.

  • Enable cloud tiering on the server endpoint and set a volume free space policy.

    Why this is correct

    Enabling cloud tiering on the server endpoint and configuring a volume free space policy is the correct method to automatically manage the local cache. Cloud tiering intelligently moves infrequently accessed files to Azure Files, replacing them with reparse points (tiering stubs) locally. The volume free space policy ensures that a specified percentage of the local volume remains free, automatically recalling files as needed and tiering others to maintain the desired free space, effectively managing the local cache based on disk capacity and access patterns.

  • Use the Invoke-AzStorageSyncFileRecall cmdlet to recall files on demand.

    Why it's wrong here

    The `Invoke-AzStorageSyncFileRecall` cmdlet is an administrative command-line tool used to manually force the recall of specific tiered files from Azure Files back to the local server. While it ensures a file is available locally, it is an on-demand, manual action rather than an automatic caching mechanism or a policy-driven solution for continuous local cache management. This cmdlet does not configure or automate the caching behavior of Azure File Sync.

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.