Courses Job Ready Program Fresher Trainings AI For Class 7 to 12 Corporate Training Placements Tutorials
Free Learning Resources

IT Tutorials & Interview Prep

Free guides, interview Q&As, and job responsibility breakdowns — curated by industry veterans to help you crack MNC interviews

248+
Tutorial Articles
17
Topic Categories
100%
Free to Read
← Back to Learning Hub

AZ-104: Day 6—Azure Files & Azure Cosmos DB

Learning Hub Last Updated: Sep 16, 2026

Key Points, Definitions, Diagrams, Term Differences & Q&A

1. 25 Most Important Key Points

  • Azure Files is a fully managed cloud file share service that can be mounted concurrently from the cloud or on-premises.
  • Azure Files supports two access protocols: SMB (Server Message Block) and NFS (Network File System).
  • SMB file shares can be mounted on Windows, Linux, and macOS, and are accessible over the internet or a VPN/ExpressRoute connection.
  • NFS file shares require a Premium file share and are only accessible through a virtual network, not the public internet.
  • Azure Files offers two performance tiers: Standard (backed by HDD-class hardware) and Premium (backed by SSD, low-latency hardware).
  • Standard file shares can additionally be configured with Transaction Optimized, Hot, or Cool access tiers to balance cost and performance.
  • Azure Files supports redundancy options including LRS, ZRS, GRS, and GZRS to protect data against hardware and regional failures.
  • Azure File Sync lets an organization keep a local file server for performance while syncing data to an Azure file share in the cloud.
  • Azure File Sync is built from a Storage Sync Service, one or more Sync Groups, a cloud endpoint, and one or more server endpoints.
  • Cloud tiering in Azure File Sync keeps frequently used files cached on the local server and tiers infrequently used files to the cloud automatically.
  • Azure Files supports share snapshots, which capture a read-only, point-in-time version of a file share for backup or recovery.
  • Identity-based authentication for Azure Files can use on-premises Active Directory Domain Services or Microsoft Entra Domain Services instead of only a storage account key.
  • Azure Cosmos DB is Microsoft's globally distributed, multi-model NoSQL database service designed for low-latency, high-availability applications.
  • Azure Cosmos DB supports multiple APIs, including the API for NoSQL (Core), MongoDB, Cassandra, Gremlin, and Table.
  • Data in Azure Cosmos DB is organized into a hierarchy of Account, Database, Container, and Item.
  • A Cosmos DB container is automatically split into physical partitions, and the partition key determines how items are distributed across them.
  • Azure Cosmos DB offers five consistency levels: Strong, Bounded Staleness, Session, Consistent Prefix, and Eventual.
  • Session consistency is the default and most commonly used consistency level in Azure Cosmos DB applications.
  • Throughput in Azure Cosmos DB is measured in Request Units per second (RU/s), representing the cost of database operations.
  • Azure Cosmos DB provides three throughput modes: manual (provisioned) throughput, autoscale throughput, and serverless.
  • Serverless mode in Azure Cosmos DB charges only for the RUs consumed by requests, with no throughput to provision in advance.
  • Azure Cosmos DB can replicate data automatically across any number of Azure regions with a few clicks, with no application downtime.
  • Multi-region writes in Azure Cosmos DB allow applications to read and write to the nearest region, backed by a 99.999% availability SLA.
  • The Change Feed in Azure Cosmos DB is a persistent, ordered log of item changes that can trigger downstream processing, such as an Azure Function.
  • Both Azure Files and Azure Cosmos DB support Azure role-based access control (RBAC) alongside their own resource-level access mechanisms.

Figure 2: Azure File Sync keeps a local server endpoint in sync with a cloud endpoint through a Sync Group

2. 20 Definitions with Day-to-Day Examples

Azure Files

Definition: A fully managed cloud file share service that can be accessed using the industry-standard SMB and NFS protocols.

Day-to-Day Example: Like a shared network drive at the office, except it is hosted and managed entirely by Azure instead of an on-site server.

File Share

Definition: A single, top-level unit of storage inside a storage account that holds folders and files, similar to a network share.

Day-to-Day Example: Like one shared folder assigned to a specific team, sitting inside a larger cloud storage account.

SMB Protocol

Definition: Server Message Block, a network file-sharing protocol that lets Windows, Linux, and macOS clients mount Azure file shares as a network drive.

Day-to-Day Example: Like the standard front-door key that works for any employee, regardless of which computer they are using.

NFS Protocol

Definition: Network File System, a Linux-native file-sharing protocol supported on Premium Azure file shares over a virtual network.

Day-to-Day Example: Like a private side entrance that only staff already inside the building's network are able to use.

Azure File Sync

Definition: A service that synchronizes on-premises Windows Server file shares with an Azure file share, turning the local server into a fast local cache.

Day-to-Day Example: Like a courier who keeps a branch office's filing cabinet mirrored with the company's central archive.

Cloud Endpoint

Definition: The Azure file share side of a Sync Group, representing where data is stored centrally in the cloud.

Day-to-Day Example: Like the head office's master filing cabinet that every branch ultimately syncs back to.

Server Endpoint

Definition: A specific folder on a registered Windows Server that participates in a Sync Group and syncs with the cloud endpoint.

Day-to-Day Example: Like a branch office's local filing cabinet that mirrors whatever is in the head office's cabinet.

Cloud Tiering

Definition: An Azure File Sync feature that keeps frequently accessed files stored locally in full, while less-used files are represented as pointers to the cloud copy.

Day-to-Day Example: Like keeping this month's paperwork in the office and sending last year's archives to an off-site storage unit, with a note showing where to find them.

Share Snapshot

Definition: A read-only, point-in-time copy of an Azure file share used for backup and recovery of previous file versions.

Day-to-Day Example: Like photographing every page of a filing cabinet on a given day, so you can look back at exactly how it looked then.

Storage Redundancy

Definition: The replication strategy (LRS, ZRS, GRS, GZRS) that determines how many copies of file data Azure keeps, and where.

Day-to-Day Example: Like keeping duplicate copies of important documents in a second building or a second city, in case one location is damaged.

Azure Cosmos DB

Definition: Microsoft's globally distributed, multi-model NoSQL database service built for elastic scale and low-latency access.

Day-to-Day Example: Like a chain of identical warehouses in different countries, each holding the same up-to-date inventory so any nearby customer is served quickly.

Container (Cosmos DB)

Definition: The fundamental unit of scalability in Cosmos DB, holding a set of items that are automatically split across partitions.

Day-to-Day Example: Like a large shipping container that automatically gets divided into smaller crates as more goods arrive.

Item (Cosmos DB)

Definition: A single JSON document stored inside a Cosmos DB container, equivalent to a row in a relational table.

Day-to-Day Example: Like one customer's order form, filed inside the shipping container for that day's orders.

Partition Key

Definition: A property chosen from an item's data that is used to distribute and route items across a container's underlying physical partitions.

Day-to-Day Example: Like sorting mail into bins by postal code so that no single bin ever gets overwhelmed.

Request Unit (RU)

Definition: The currency that measures the compute, memory, and IOPS cost of a single request against Azure Cosmos DB.

Day-to-Day Example: Like a toll booth charging a different number of coins depending on how heavy or complex your vehicle's load is.

Consistency Level

Definition: A setting that defines the trade-off between data accuracy and read/write latency across a Cosmos DB account's distributed replicas.

Day-to-Day Example: Like choosing between reading today's newspaper the moment it's printed versus waiting for the officially confirmed evening edition.

Serverless (Cosmos DB)

Definition: A consumption-based throughput mode in which Cosmos DB charges only for the RUs actually consumed, with nothing provisioned in advance.

Day-to-Day Example: Like paying an electricity bill purely for what you used that month, instead of a fixed monthly subscription.

Autoscale Throughput

Definition: A provisioning mode that automatically scales a container's RU/s up or down within a set range based on real-time usage.

Day-to-Day Example: Like a store automatically opening extra checkout counters during a rush and closing them again once the crowd thins out.

Change Feed

Definition: An ordered, persistent log of every insert and update made to items in a Cosmos DB container, which downstream services can read.

Day-to-Day Example: Like a warehouse's shipping log that a notification system reads to alert the next department the moment new stock arrives.

Multi-Region Writes

Definition: A Cosmos DB capability that lets an application write to the region nearest to it, with changes replicated to every other configured region.

Day-to-Day Example: Like regional branch offices each accepting local customer orders directly, instead of every order having to travel to one head office first.

Figure 3: An Azure Cosmos DB container's items are distributed across partitions using the partition key

Figure 4: The five Azure Cosmos DB consistency levels, from strongest to most eventual

3. Differences Between Key Technical Terms (10)

1. SMB vs. NFS

FeatureSMBNFS
Platform supportWindows, Linux, macOSLinux and Linux-based clients only
AccessPublic internet, VPN, or ExpressRouteVirtual network only (no public endpoint)
Tier requirementStandard or Premium file sharesPremium file shares only
Typical useGeneral-purpose file sharing, lift-and-shift appsLinux workloads needing POSIX-style file semantics

2. Standard vs. Premium File Shares

FeatureStandardPremium
Storage mediaHDD-basedSSD-based
LatencyHigher, variableLow and consistent
Billing modelPay-as-you-go per GB usedProvisioned capacity billing
Best forGeneral file shares, dev/testHigh-performance workloads, databases, NFS

3. Azure Files vs. Azure File Sync

FeatureAzure FilesAzure File Sync
What it isThe cloud file share service itselfA synchronization service on top of Azure Files
Where data livesEntirely in the cloudBoth on-premises and in the cloud
Primary goalProvide a cloud-based SMB/NFS shareKeep an on-prem server and the cloud share in sync
Local cachingNot applicableYes, via cloud tiering

4. Azure Files vs. Azure Blob Storage

FeatureAzure FilesAzure Blob Storage
Access protocolSMB / NFS (file system semantics)REST/HTTP API (object storage)
Typical useShared drives, lift-and-shift file serversUnstructured data, backups, media, data lakes
Mount as a driveYesNo (without a gateway)

5. Manual Throughput vs. Autoscale vs. Serverless (Cosmos DB)

ModeManual ThroughputAutoscaleServerless
RU provisioningFixed RU/s set by adminScales automatically within a max RU/sNone — pay per request
Best forPredictable, steady workloadsVariable but frequent workloadsIntermittent or unpredictable workloads
BillingProvisioned RU/s, always billedBilled for highest RU/s used per hourBilled only for RUs consumed

6. Cosmos DB Consistency Levels Compared

LevelData FreshnessTypical Latency Impact
StrongAlways the latest committed writeHighest
Bounded StalenessLags by a fixed time/version windowHigh
SessionAlways consistent within the same sessionLow (default)
Consistent PrefixNever sees out-of-order writesLow
EventualMay briefly see stale dataLowest

7. Cosmos DB API for NoSQL vs. API for MongoDB

FeatureAPI for NoSQL (Core)API for MongoDB
Data modelNative JSON documentsMongoDB wire-protocol compatible documents
Query languageCosmos DB SQL-like syntaxMongoDB query language
Best forNew Cosmos DB-native applicationsMigrating existing MongoDB applications

8. Account vs. Database vs. Container (Cosmos DB Hierarchy)

LevelRepresentsExample
AccountThe top-level Cosmos DB resource and billing boundarycosmos-retailapp
DatabaseA logical grouping of containersSalesDB
ContainerThe unit of scalability holding itemsOrdersContainer

9. LRS vs. ZRS vs. GRS Redundancy

RedundancyCopiesProtects Against
LRS3 copies in one datacenterHardware failure only
ZRS3 copies across availability zonesDatacenter failure within a region
GRS6 copies across two regionsRegional outage or disaster

10. Cloud Endpoint vs. Server Endpoint

FeatureCloud EndpointServer Endpoint
LocationAzure file shareFolder on a registered server
RoleCentral, authoritative copyLocal, cached copy
Count per Sync GroupExactly oneOne or more

4. Theoretical Questions (15)

Q1. What is Azure Files, and which protocols does it support?

Answer: Azure Files is a fully managed cloud file share service accessible via the SMB protocol from virtually any OS, and via the NFS protocol from Linux clients on a virtual network.

Q2. What is the difference between the Standard and Premium performance tiers in Azure Files?

Answer: Standard file shares run on HDD-based hardware with pay-as-you-go billing, while Premium file shares run on SSD-based hardware with provisioned capacity billing for lower, more consistent latency.

Q3. What is Azure File Sync, and what problem does it solve?

Answer: Azure File Sync synchronizes an on-premises Windows Server share with an Azure file share, letting an organization keep the performance and compatibility of a local server while centralizing data in the cloud.

Q4. What are the components of an Azure File Sync topology?

Answer: A Storage Sync Service, one or more Sync Groups, exactly one cloud endpoint per Sync Group, and one or more server endpoints on registered servers.

Q5. What is cloud tiering, and why is it useful?

Answer: Cloud tiering keeps only frequently accessed files cached in full on the local server and tiers less-used files to the cloud, which frees local disk space while still presenting a full namespace to users.

Q6. Why does NFS support in Azure Files require a Premium file share and a virtual network?

Answer: NFS 4.1 has no built-in encryption or public endpoint support, so Microsoft only offers it on Premium file shares reachable through a private virtual network for security and performance.

Q7. What is Azure Cosmos DB, and what makes it different from a traditional relational database?

Answer: Azure Cosmos DB is a globally distributed, multi-model NoSQL database service that stores schema-flexible JSON documents and scales horizontally across partitions, unlike a relational database's fixed schema and vertical scaling model.

Q8. What is the resource hierarchy inside an Azure Cosmos DB account?

Answer: An Account contains one or more Databases, each Database contains one or more Containers, and each Container holds a set of Items (JSON documents).

Q9. What role does a partition key play in Azure Cosmos DB?

Answer: The partition key determines how a container's items are distributed across underlying physical partitions, which is central to how Cosmos DB achieves horizontal scale.

Q10. What are Request Units, and why do they matter?

Answer: Request Units (RUs) measure the compute, memory, and IOPS cost of a database operation, and they are the basis for how Cosmos DB throughput is provisioned and billed.

Q11. What are the five consistency levels in Azure Cosmos DB, from strongest to weakest?

Answer: Strong, Bounded Staleness, Session, Consistent Prefix, and Eventual, ordered from the most consistent (and highest latency) to the most available (and lowest latency).

Q12. Which consistency level is the default in Azure Cosmos DB, and why is it popular?

Answer: Session consistency is the default, because it guarantees a user always sees their own writes immediately while still offering low latency for most applications.

Q13. What is the difference between provisioned throughput and serverless mode in Cosmos DB?

Answer: Provisioned throughput (manual or autoscale) reserves a set or scalable amount of RU/s in advance and bills for it regardless of use, while serverless mode has no advance provisioning and bills only for RUs actually consumed.

Q14. What is the Change Feed in Azure Cosmos DB used for?

Answer: The Change Feed exposes an ordered log of inserts and updates to a container's items, which can trigger downstream processing such as an Azure Function for event-driven workflows.

Q15. How does Azure Cosmos DB achieve high availability across regions?

Answer: Azure Cosmos DB can automatically replicate data to any number of Azure regions with a few clicks, and with multi-region writes enabled it offers a 99.999% availability SLA with no application downtime during failover.

5. Scenario-Based Questions (8)

Q1. A company wants to retire an aging on-premises file server but still needs staff to map a network drive exactly as before. What Azure service fits best?

Answer: Azure Files fits best, since it can be mounted as an SMB share on Windows machines just like the old file server, with no change to how staff access it.

Q2. A media company has a Linux-based rendering farm that needs a shared file system with POSIX permissions, reachable only from its own virtual network. What should they use?

Answer: They should use an Azure Files Premium share with the NFS protocol, since NFS requires Premium performance and is only reachable over a virtual network, matching both requirements.

Q3. A regional office wants to keep its existing local file server for speed, but the head office wants everything backed up and centrally available in Azure. What should be configured?

Answer: They should deploy Azure File Sync, registering the local server with a Sync Group so its server endpoint stays in sync with a cloud endpoint in an Azure file share.

Q4. A branch server's local disk is nearly full, but most of the files on it are rarely opened. How can the team free up local space without deleting anything?

Answer: They should enable cloud tiering in Azure File Sync, so rarely used files are tiered to the cloud file share while staying visible and accessible from the local server.

Q5. A retail startup needs a database that can handle unpredictable traffic spikes during flash sales without paying for idle capacity the rest of the time. What Cosmos DB option fits?

Answer: Serverless mode fits best, since it charges only for the Request Units actually consumed, with nothing to provision or pay for during quiet periods.

Q6. A global gaming company wants players in Asia, Europe, and North America to all get fast local writes to the same leaderboard data. What Cosmos DB feature should they enable?

Answer: They should enable multi-region writes, so players in each region write to their nearest replica while Cosmos DB replicates the changes to every other configured region.

Q7. A financial application must never show a value that hasn't been fully committed everywhere, even if that means slightly higher latency. Which consistency level should they choose?

Answer: They should choose Strong consistency, since it guarantees every read reflects the most recently committed write across all replicas, at the cost of higher latency.

Q8. An e-commerce team wants new orders to immediately trigger an email notification through an Azure Function as soon as they're written to Cosmos DB. What feature enables this?

Answer: The Change Feed enables this, since it provides an ordered log of new and updated items that can trigger an Azure Function automatically for event-driven processing.