Skip to main content
← Blog

Compared · AZ-104 · AZ-900

Azure LRS vs ZRS vs GRS vs GZRS

Four letters to remember and two questions to ask: is the data spread across zones in the primary region, and is it copied to a second region? The RA- prefix adds a third: can you read that copy?

Published

The short answer: LRS keeps your copies in one datacenter, so it survives a failed disk, server or rack but not the loss of that datacenter. ZRS copies data synchronously across three or more availability zones in one region, so it keeps serving reads and writes if a zone fails. GRS is LRS in the primary region plus an asynchronous copy in the paired secondary region. GZRS is ZRS in the primary region plus that same secondary copy. Neither GRS nor GZRS lets you read the secondary until a failover, unless you choose the read-access versions, RA-GRS or RA-GZRS. Microsoft recommends ZRS in the primary region for high availability and GZRS (or RA-GZRS) when you also need protection from a regional disaster.

The four options side by side

LRSZRSGRS / RA-GRSGZRS / RA-GZRS
Primary regionOne datacenterThree or more zones, synchronousLRSZRS
Secondary regionNoneNonePaired region, asynchronous, LRS therePaired region, asynchronous, LRS there
Durability per year (at least)11 nines12 nines16 nines16 nines
Survives a datacenter or zone lossNoYes, still writableData survives; writes need a failoverYes, still writable
Survives a regional outageNoNoYes, after failoverYes, after failover
Read the secondary without failoverNoNoOnly with RA-GRSOnly with RA-GZRS
Read availability (hot tier, at least)99.9%99.9%99.9% GRS, 99.99% RA-GRS99.9% GZRS, 99.99% RA-GZRS

Durability, availability and outage behaviour are from Microsoft's Azure Storage redundancy page; cool, cold and archive tiers have lower availability targets. The redundancy setting applies to the whole storage account, so every blob container, file share, queue and table in it gets the same option.

Redundancy inside the primary region: LRS and ZRS

LRS is the cheapest option. Microsoft's disaster recovery guide describes it as three copies within a single datacenter, protecting against drive, server and rack failures. A fire or flood in that datacenter could lose every replica, and a temporary event there can make them all unavailable at once. Microsoft suggests LRS for data you can easily reconstruct, or when governance rules require data to stay in one region.

ZRS writes synchronously to three or more availability zones, each a separate location with its own power, cooling and networking. A write only succeeds once it is on the replicas across zones. If a zone goes down, the account stays readable and writable; Azure repoints DNS behind the scenes, so applications should retry transient errors. ZRS is also Microsoft's recommendation for Azure Files, because clients don't need to remount shares after a zone failure.

Copying to a second region: GRS and GZRS

Both geo options copy data asynchronously to a secondary region hundreds of miles away. You don't choose that region: it is the pair of the primary region you picked, and it can't be changed. In the secondary region, data is always kept with LRS. The only difference between GRS and GZRS is what happens in the primary region: LRS for GRS, ZRS for GZRS. That is why GZRS survives a zone failure without any failover, while GRS may not.

Because replication is asynchronous, the secondary lags slightly. The storage account's Last Sync Time property tells you the most recent point that is safely in the secondary; writes after it may be lost in a failover. Microsoft calls that gap the RPO for the account (more on the idea in RTO vs RPO).

The read-access versions: RA-GRS and RA-GZRS

With plain GRS or GZRS, the secondary copy exists but nobody can read it until the account fails over. The RA- variants expose it all the time through a secondary endpoint: the account name with -secondary appended, for example myaccount-secondary.blob.core.windows.net, using the same access keys. An application can fall back to reading from it during a primary outage, or read from it routinely. Azure Files doesn't support the RA- options.

What a failover actually does

Microsoft's disaster recovery guide lists three kinds of failover for geo-redundant accounts. A customer-managed planned failover swaps the primary and secondary while both are healthy, for DR testing, without data loss, and keeps geo-redundancy. A customer-managed unplanned failover is for when the primary endpoints are down: the secondary becomes primary, the copy in the old primary is deleted, and the account becomes LRS in the new region until you re-enable geo-redundancy (which costs re-replication time and money). A Microsoft-managed failover covers a whole region in extreme circumstances; Microsoft says not to rely on it in your plans.

When to use which

  • Re-creatable data, or data that must not leave one region, lowest cost: LRS.
  • Must stay readable and writable through a zone failure, no second region needed: ZRS.
  • Must survive losing the whole region, can wait for a failover: GRS, or GZRS if you also want zone resilience.
  • Must keep reading during a regional outage without waiting for failover: RA-GRS, or RA-GZRS for maximum availability.
  • Azure Files that needs geo-redundancy: GRS or GZRS; read access to the secondary isn't available for file shares.

Exam traps

  • GRS doesn't mean readable. The secondary copy of a GRS or GZRS account can't be read until a failover. If the scenario needs reads from the other region at any time, the answer has RA- in front.
  • GRS isn't zone-redundant. In the primary region GRS is LRS. "Survive a zone failure" plus "survive a regional outage" is GZRS, not GRS.
  • "Minimum option that meets it." If only zone resilience is required, ZRS beats the geo options. Overshooting is a wrong answer when the question asks for the minimum or cheapest.
  • After an unplanned failover you are on LRS. Geo-redundancy has to be re-enabled; a GZRS account also comes back as LRS (and as ZRS only after failing back).
  • Choosing the secondary region. You can't; it is the primary region's pair.
  • Redundancy isn't backup. Deletions and overwrites are applied to every replica. Soft delete and backups protect against those; no redundancy option does.

Practice questions from our bank

Two AZ-104 questions and one AZ-900 question. Try each before opening the answer.

  1. Question 1 · AZ-104 · Implement and manage storage

    A storage account must remain available for both reads and writes even if an entire Azure datacenter (one zone) in the primary region fails, but cross-region replication is not required. Which redundancy option is the minimum that meets this?

    • AZone-redundant storage (ZRS)
    • BLocally redundant storage (LRS)
    • CGeo-redundant storage (GRS)
    • DRead-access geo-redundant storage (RA-GRS)
    Show answer and explanation

    Answer: A) Zone-redundant storage (ZRS)

    • AZRS synchronously replicates across three availability zones in the primary region, so a single-zone failure doesn't interrupt read or write access.
    • BLRS keeps all three copies in one datacenter, so a zone/datacenter failure takes the data offline.
    • CGRS does protect against regional loss but the secondary is read-only unless you fail over, and within the primary region it's still LRS — a single-zone failure can disrupt it. It's also more than required.
    • DSame primary-region limitation as GRS plus extra cross-region capability that isn't needed here.
  2. Question 2 · AZ-900 · Describe Azure Architecture and Services

    A company's storage account uses geo-redundant storage (GRS). Its developers want an application to query the replicated copy of the data in the paired secondary region at any time, including while the primary region is healthy, without first starting an account failover. Which redundancy option should the account be changed to?

    • AGeo-zone-redundant storage (GZRS)
    • BRead-access geo-redundant storage (RA-GRS)
    • CZone-redundant storage (ZRS)
    • DLocally redundant storage (LRS)
    Show answer and explanation

    Answer: B) Read-access geo-redundant storage (RA-GRS)

    With GRS or GZRS, the secondary region can't be accessed until a failover happens. RA-GRS (or RA-GZRS) adds read access to the secondary region at any time through a secondary endpoint.

    • AGZRS changes how data is replicated in the primary region (across availability zones) and still copies it to the secondary region. Without the read-access variant, though, the secondary copy can't be read or written unless a failover happens.
    • BRA-GRS replicates data to the secondary region the same way GRS does and also exposes a read-only secondary endpoint (accountname-secondary). The application can read from it at any time, even while the primary region is healthy.
    • CZRS copies data across availability zones within the primary region only. It doesn't keep a copy in a secondary region, so there's nothing in the paired region to query.
    • DLRS keeps all of its copies in a single datacenter in the primary region. It has no secondary-region copy, so it doesn't meet the requirement.
  3. Question 3 · AZ-104 · Implement and manage storage

    The primary region of a GRS general-purpose v2 storage account is unavailable, and an administrator starts a customer-managed (unplanned) failover. When the failover completes, what redundancy configuration does the account have?

    • ALRS in the new primary region, until geo-redundancy is re-enabled
    • BGRS, with the original primary becoming the new secondary region
    • CZRS across the availability zones of the new primary region
    • DRA-GRS, with read access enabled on the old primary endpoint
    Show answer and explanation

    Answer: A) LRS in the new primary region, until geo-redundancy is re-enabled

    A customer-managed unplanned failover converts the account to LRS in the new primary region, and geo-redundancy must be re-enabled manually. A planned failover is different: it keeps the account geo-redundant by swapping the primary and secondary regions.

    • ACorrect. An unplanned failover converts the account to locally redundant storage in the new primary region and deletes the copy in the original primary. Geo-redundancy is lost until the administrator reconfigures GRS or RA-GRS, which incurs re-replication charges.
    • BIncorrect. This describes a customer-managed planned failover, which keeps geo-redundancy by swapping the regions. An unplanned failover loses geo-redundancy.
    • CIncorrect. After an unplanned failover of a GRS account, the result is LRS, not ZRS. The documentation shows ZRS only as the failback state of an account that was originally GZRS.
    • DIncorrect. The data in the original primary region is deleted during an unplanned failover. No geo-redundant or read-access secondary exists until geo-redundancy is re-enabled.

Where this comes up on the exams

AZ-900 asks you to describe the redundancy options as part of Azure storage services. AZ-104 goes further in its storage domain: choosing an option for a requirement, changing it, and what happens during a failover.

Related Azure comparison: Azure RBAC vs Microsoft Entra roles. AWS readers will find the same zone-versus-region thinking in S3 storage classes compared.

Sources

Facts checked against Microsoft Learn on November 14, 2026.

Frequently asked questions

What is the difference between LRS and ZRS?

LRS keeps copies in a single datacenter and protects against drive, server and rack failures. ZRS copies data synchronously across three or more availability zones in the region, so the account stays readable and writable if a zone fails.

What is the difference between GRS and GZRS?

Both copy data asynchronously to the paired secondary region and keep it there with LRS. GRS uses LRS in the primary region; GZRS uses ZRS in the primary region, so it also survives a zone failure without failing over.

Can I read data from the secondary region with GRS?

Not until a failover. To read the secondary at any time, use RA-GRS or RA-GZRS, which expose a secondary endpoint with -secondary appended to the account name.

What happens to redundancy after an unplanned storage account failover?

The secondary becomes the primary, the copy in the original primary region is deleted, and the account is converted to LRS. You must re-enable geo-redundancy, which re-replicates the data at extra cost.

Which Azure Storage redundancy option is the most durable?

GRS and GZRS (and their RA- versions) are designed for at least 16 nines of durability per year, compared with 12 nines for ZRS and 11 nines for LRS.