Bird
Raised Fist0
Azurecloud~10 mins

Storage redundancy (LRS, ZRS, GRS) in Azure - Step-by-Step Execution

Choose your learning style10 modes available
Process Flow - Storage redundancy (LRS, ZRS, GRS)
Start: Choose Redundancy Type
↓
Use LRS: Local Redundancy
↓
Use ZRS: Zone Redundancy
↓
Data replicated across zones
This flow shows how to pick storage redundancy: LRS keeps copies in one data center, ZRS spreads copies across zones in one region, and GRS replicates data to another region.
Execution Sample
Azure
CreateStorageAccount(redundancy="LRS")
CreateStorageAccount(redundancy="ZRS")
CreateStorageAccount(redundancy="GRS")
Creates storage accounts with different redundancy options to protect data.
Process Table
StepRedundancy TypeData LocationReplication ScopeResulting Data Copies
1LRSSingle data centerWithin one data center3 copies in same data center
2ZRSMultiple zones in one regionAcross zones in one region3 copies across zones
3GRSPrimary region + secondary regionAcross regions3 copies in primary + 3 copies in secondary
4End--Replication ensures data durability and availability
💡 Replication setup completes based on chosen redundancy type
Status Tracker
VariableStartAfter LRSAfter ZRSAfter GRS
Data Copies03 copies in one data center3 copies across zones3 copies primary + 3 copies secondary
Replication ScopeNoneWithin one data centerAcross zones in one regionAcross regions
Data LocationNoneSingle data centerMultiple zones in one regionPrimary + secondary region
Key Moments - 3 Insights
Why does LRS only keep copies in one data center?
LRS replicates data three times within the same data center to protect against hardware failures but not against data center-wide issues, as shown in step 1 of the execution_table.
How is ZRS different from LRS in terms of data location?
ZRS spreads copies across multiple zones in the same region to protect against zone failures, unlike LRS which keeps all copies in one data center (see step 2 in execution_table).
What extra protection does GRS provide compared to ZRS?
GRS replicates data to a secondary region far away, protecting against regional disasters, as shown in step 3 of the execution_table.
Visual Quiz - 3 Questions
Test your understanding
Look at the execution_table, how many copies does LRS keep and where?
A3 copies in primary and 3 in secondary region
B3 copies in one data center
C3 copies across zones
D1 copy only
💡 Hint
Check row 1 under 'Resulting Data Copies' in execution_table
At which step does data get replicated across regions?
AStep 1
BStep 2
CStep 3
DStep 4
💡 Hint
Look at 'Replication Scope' column in execution_table for cross-region replication
If you want to protect data from zone failures but keep it in one region, which redundancy should you choose?
AZRS
BLRS
CGRS
DNo redundancy
💡 Hint
Refer to 'Data Location' and 'Replication Scope' in execution_table step 2
Concept Snapshot
Storage redundancy protects data by making copies.
LRS: 3 copies in one data center.
ZRS: 3 copies across zones in one region.
GRS: 3 copies in primary + 3 in secondary region.
Choose based on needed protection level and cost.
Full Transcript
Storage redundancy means making copies of your data to keep it safe. Local Redundancy (LRS) keeps three copies in the same data center, protecting against hardware failure but not data center failure. Zone Redundancy (ZRS) spreads copies across different zones in one region, protecting against zone failures. Geo Redundancy (GRS) copies data to a different region, protecting against regional disasters. When creating a storage account, you pick one of these options based on how much protection you want. The execution table shows how many copies are made and where for each type. Variables like data copies and replication scope change depending on the redundancy chosen. Understanding these helps you pick the right option for your needs.

Practice

(1/5)
1. Which Azure storage redundancy option keeps copies of your data only within a single data center?
easy
A. Zone-Redundant Storage (ZRS)
B. Read-Access Geo-Redundant Storage (RA-GRS)
C. Geo-Redundant Storage (GRS)
D. Locally Redundant Storage (LRS)

Solution

  1. Step 1: Understand LRS scope

    LRS keeps three copies of data within a single data center to protect against hardware failures.
  2. Step 2: Compare with other options

    ZRS replicates data across zones, GRS replicates across regions, so they are broader than LRS.
  3. Final Answer:

    Locally Redundant Storage (LRS) -> Option D
  4. Quick Check:

    Single data center copies = LRS [OK]
Hint: LRS = copies inside one data center only [OK]
Common Mistakes:
  • Confusing ZRS with LRS because both mention redundancy
  • Thinking GRS is inside one data center
  • Mixing RA-GRS with LRS
2. Which redundancy option is correctly written in Azure Storage configuration syntax?
easy
A. "redundancy": "ZRS"
B. "redundancy": "LZR"
C. "redundancy": "GRZ"
D. "redundancy": "RAGRS"

Solution

  1. Step 1: Identify valid redundancy codes

    Azure uses LRS, ZRS, GRS, and RA-GRS as standard redundancy codes.
  2. Step 2: Check each option

    "redundancy": "ZRS" uses "ZRS" which is valid. Others have incorrect or invalid codes.
  3. Final Answer:

    "redundancy": "ZRS" -> Option A
  4. Quick Check:

    Valid Azure redundancy code = ZRS [OK]
Hint: Use exact Azure codes: LRS, ZRS, GRS, RA-GRS [OK]
Common Mistakes:
  • Typos in redundancy codes like LZR or GRZ
  • Using unsupported codes
  • Confusing RA-GRS abbreviation
3. If you configure Azure Storage with redundancy: "GRS", what happens when the primary region fails?
medium
A. Data is available only if zones in the primary region are healthy
B. Data is lost because copies are only in one data center
C. Data is available from a secondary region copy
D. Data is immediately deleted from all regions

Solution

  1. Step 1: Understand GRS behavior

    GRS replicates data asynchronously to a secondary region for disaster recovery.
  2. Step 2: Effect of primary region failure

    If the primary region fails, data can be accessed from the secondary region copy.
  3. Final Answer:

    Data is available from a secondary region copy -> Option C
  4. Quick Check:

    GRS = secondary region copy available [OK]
Hint: GRS keeps copies in another region for failover [OK]
Common Mistakes:
  • Thinking GRS only copies inside one data center
  • Confusing zone redundancy with region redundancy
  • Assuming data is lost on primary failure
4. You set Azure Storage redundancy to "ZRS" but notice data is not replicated across zones. What is the likely cause?
medium
A. You must enable GRS for zone replication
B. ZRS is not supported in the selected region
C. LRS setting overrides ZRS automatically
D. Data replication only happens manually with ZRS

Solution

  1. Step 1: Check ZRS regional support

    ZRS requires the region to support availability zones; some regions do not support ZRS.
  2. Step 2: Understand replication behavior

    If the region lacks zone support, ZRS cannot replicate across zones, causing no zone replication.
  3. Final Answer:

    ZRS is not supported in the selected region -> Option B
  4. Quick Check:

    ZRS needs region with zones [OK]
Hint: ZRS needs region with zones enabled [OK]
Common Mistakes:
  • Confusing GRS with ZRS replication
  • Assuming LRS overrides ZRS
  • Thinking ZRS replication is manual
5. A company wants to minimize cost but needs protection against data center failure and regional disaster. Which Azure storage redundancy option should they choose?
hard
A. Geo-Redundant Storage (GRS)
B. Zone-Redundant Storage (ZRS)
C. Read-Access Geo-Redundant Storage (RA-GRS)
D. Locally Redundant Storage (LRS)

Solution

  1. Step 1: Analyze protection needs

    Protection against data center failure requires zone or local redundancy; regional disaster needs geo-redundancy.
  2. Step 2: Balance cost and protection

    LRS is cheapest but no regional protection; ZRS protects zones but not regions; GRS protects regions at moderate cost; RA-GRS adds read access but costs more.
  3. Final Answer:

    Geo-Redundant Storage (GRS) -> Option A
  4. Quick Check:

    Regional disaster + cost balance = GRS [OK]
Hint: GRS balances cost and regional disaster protection [OK]
Common Mistakes:
  • Choosing LRS which lacks regional protection
  • Picking RA-GRS which costs more than needed
  • Assuming ZRS protects against regional disasters
Recommended

Ready to prove it?

Pass the test and this pattern moves unknown strong while earning +1 Grip toward your certificate.

10 questions~5 mineasy hard