Data Protection in Azure Storage
Azure Storage has built-in features to protect your data from accidental deletion, corruption, or malicious activity. As an administrator, you’ll be expected to know which feature to enable for different protection needs.
Soft Delete
- When a blob, file share, or container is deleted, it’s retained for a recovery period instead of being permanently removed.
- You can configure the retention period (1–365 days).
- Allows “undelete” operations if someone deletes data by mistake.
Blob Versioning
- Automatically keeps previous versions of a blob whenever it’s modified or overwritten.
- Lets you roll back to an earlier version.
Immutability Policies (WORM)
- Write Once, Read Many (WORM) – ensures data cannot be modified or deleted for a fixed period.
- Two modes:
- Time-based retention: Data is locked for X days.
- Legal hold: Data is locked until explicitly released.
- Used in compliance scenarios (finance, healthcare, audits).
Replication Options
Replication ensures data is available and durable even if failures happen:
- LRS (Locally Redundant): 3 copies within a single datacenter.
- ZRS (Zone-Redundant): Replicated across 3 availability zones in the same region.
- GRS (Geo-Redundant): 6 copies — 3 local + 3 in paired region.
- RA-GRS (Read-Access Geo-Redundant): Same as GRS but allows read access to the secondary region.
Confusion Buster 🚨
Soft Delete vs Immutability
– Soft Delete = you can delete data, but you can restore it later.
– Immutability = you cannot delete or modify data at all until retention/hold expires.
Exam trick: If the requirement is “must not allow anyone to delete,” → Immutability. If it’s “accidental deletion protection,” → Soft Delete.
Simple Example
A finance team stores invoices in Blob Storage. To meet compliance, they enable immutability policies (7 years). Meanwhile, the dev team enables soft delete on their storage account so they can recover test files if accidentally removed.
Exam Tip
Always match the feature to the scenario: – “Recover accidentally deleted files” → Soft Delete.
– “Keep all versions of files for audit” → Blob Versioning.
– “Data cannot be deleted for 7 years” → Immutability Policy.
– “Secondary region access required during outage” → RA-GRS.
What to Expect in the Exam
- Direct Q: “Which feature protects against accidental deletion?” → Soft Delete.
- Scenario: “Compliance requires that invoices cannot be deleted for 5 years.” → Immutability Policy.
- Trick Q: “ZRS replicates across multiple regions.” (False, that’s GRS).