TECHNOLOGY & CERTIFICATION EDITORIAL

Microsoft AZ-104: Blob and Files Lifecycle

A lifecycle rule that moves yesterday’s files to a lower-cost tier does not protect them against an accidental overwrite, and a replica does not necessarily preserve the deleted content. Azure Blob versioning, blob or container soft delete, Azure Files snapshots and lifecycle policies solve different failures. For Microsoft AZ-104 storage operations, the useful starting point is the question an application owner will ask after an incident: can we recover the missing object, restore an earlier version, or make old data cheaper without breaking retrieval? Choose the specific recovery or lifecycle mechanism only after identifying that outcome and how long the organization can tolerate a restore.

The strongest way to study this area is to think in terms of data states. Is the data hot and frequently accessed, cool and retained for longer periods, archival and rarely read, soft-deleted, snapshotted or versioned? Each state changes cost, access behavior and recovery options. Administrators need to know what the workload needs before applying a policy.

Tiering should follow the access pattern

Azure Blob Storage tiers are designed around different access frequencies and retention expectations. Frequently accessed data belongs in a tier optimized for regular reads and writes. Data that is kept but accessed less often can move to cooler tiers, while long-lived archival data may justify a tier with lower storage cost and higher retrieval friction.

The mistake is treating the lowest storage price as automatically cheapest. Retrieval charges, minimum-retention considerations, transaction patterns and operational latency can make an aggressively cooled design more expensive or less usable. A backup index that is read every day behaves differently from compliance data that might not be opened for years.

AZ-104 scenarios usually give clues through access frequency, recovery time and retention. A compliance archive that can be retrieved after a delay may suit a different tier from a report that an application must open within minutes. Calculate the storage charge alongside access and retrieval charges, minimum-retention effects and the operational delay of rehydration where applicable. A tier is only cost-effective if the workload can tolerate its access behavior.

Lifecycle policies automate predictable data movement

Blob lifecycle management policies can evaluate objects against rules and take actions as blobs age or match selected conditions. That allows an administrator to automate movement to cooler tiers or deletion instead of relying on manual cleanup. Automation is particularly valuable for large accounts because human review does not scale to millions of objects.

A good lifecycle policy reflects a business lifecycle. Logs may remain readily available for a short investigation window, move to cheaper storage after active troubleshooting ends and eventually be deleted after the required retention period. Media or analytics data may follow a completely different curve.

Lifecycle rules need to be tested carefully because deletion is an operationally significant action. If soft delete is enabled, a lifecycle deletion can place the blob into a soft-deleted state for the configured retention period rather than making it immediately unrecoverable. That interaction is useful, but administrators should not treat soft delete as a substitute for a deliberate retention strategy.

Soft delete protects against accidental deletion

Soft delete creates a recovery window after a blob, container or file share is deleted, depending on the feature being used. This helps with human mistakes and some automated failures because the deleted object remains recoverable during the retention period.

The retention duration should reflect the organization’s ability to notice a problem. A very short window may expire before a weekly process detects missing data. A very long window increases retained capacity and may conflict with data-deletion requirements. The administrator has to balance recoverability, cost and policy obligations.

Soft delete also changes the mental model of deletion. A user may believe an object is gone while Azure still retains a recoverable version. That can be a benefit for operations but needs to be understood in environments where deletion has legal or privacy significance.

Versioning and snapshots solve different recovery problems

Blob versioning can preserve previous states when a blob changes, providing a history that can be used to recover earlier content. Snapshots create point-in-time read-only representations. Azure Files snapshots similarly provide point-in-time recovery for file-share data. The mechanisms are related by purpose but should not be treated as identical features.

The recovery question is: what kind of mistake are you trying to survive? If a user overwrites a blob with the wrong content, a previous version can be useful. If a file share needs point-in-time recovery, snapshots can provide a consistent historical state. If the entire workload must be protected against broader failures, backup or replication services may be more appropriate.

Using every protection feature at once is not automatically better. Each retained copy consumes storage and adds management complexity. Design recovery around realistic failure modes and required recovery points.

Azure Files requires attention to share-level behavior

Azure Files provides managed file shares that can be accessed through familiar file protocols, but its operational model differs from object storage. Administrators create shares, set quotas and identity or network access, and may use snapshots and soft delete to protect data.

File workloads often include applications that expect directories, file locking and path semantics. Blob workloads are object-oriented and typically interact through APIs. That distinction matters when choosing the service as well as when planning recovery. Moving a workload between the two is not simply a matter of changing the endpoint.

For exam scenarios, pay attention to the language. A requirement for SMB-style shared files points toward Azure Files. A large object repository, lifecycle tiering or application object storage points toward Blob Storage. Once the service is identified, apply the correct lifecycle and protection controls.

Redundancy protects infrastructure failure, not every data mistake

Storage redundancy replicates data to protect against hardware or location failures. It does not automatically protect against an authorized user deleting or corrupting data, because that logical change can replicate too. This is why redundancy, soft delete, versioning, snapshots and backup are separate tools.

Storage lifecycle and resilience are often confused because both appear to protect important files. A locally redundant account may remain highly durable when a disk fails, yet every replica can reflect an accidental deletion. Conversely, a soft-deleted blob might be recoverable while its application is still unavailable during a regional incident. Storage redundancy and transfer choices defines the distinct failure boundaries and why read-access geo-replication, versioning and a suitable backup policy should be evaluated independently.

A resilient design layers controls around different failure modes. Redundancy addresses infrastructure availability. Soft delete and versions address accidental logical change. Backups can provide longer-lived recovery points. Access control reduces the chance of unauthorized change in the first place.

A practical recovery test exposes the distinction. Delete a disposable test blob, confirm the configured soft-delete window permits a restore, then overwrite a separate blob and verify that the earlier content is recoverable through version history if versioning was enabled. Neither test proves that the entire application can fail over to another region. Record what each mechanism actually restored and how long the recovery took.

Object replication has its own purpose

Object replication can asynchronously copy block blobs between storage accounts. It can support distribution, data processing patterns and selected resilience requirements, but it should not be confused with version history or traditional backup. A replicated deletion or application error can still be an operational concern depending on configuration and workflow.

The key design question is whether the requirement is to maintain an additional copy in another account or region, to recover older states, or to provide a durable backup history. Those are different goals. AZ-104 questions become easier when the required recovery behavior is identified before the Azure feature is selected.

Administrators also need to consider access, encryption and lifecycle configuration on both source and destination. Replication does not eliminate the governance responsibilities of the receiving account.

Lifecycle rules need operational ownership

Automated data management can quietly create large effects. A lifecycle rule written with an overly broad prefix or age condition may transition or delete more data than intended. Changes should therefore be reviewed, tested against representative data and monitored after deployment.

Cost analysis is also continuous. A rule that made sense when access was rare may become inefficient after an application changes. Conversely, data that was assumed to be active may age into a pattern that is better served by cooler storage. Good administrators revisit the policy instead of assuming the first design is permanent.

Every lifecycle rule should identify the owning workload, affected prefix or filter, action and review date. If an application changes its access pattern, the rule must be reassessed: an old object may suddenly become active again, and a deletion action may outlive the business reason for keeping that data. Verify representative objects after changing automation instead of assuming a successful policy save means the retention outcome is correct.

Study lifecycle as a chain of decisions

Begin with the service: Blob Storage or Azure Files. Identify the expected access pattern and choose the appropriate performance and access characteristics. Decide which accidental changes must be recoverable and enable the relevant protection feature. Add lifecycle automation only when the retention and transition rules are clear. Finally, validate that redundancy and backup choices address the failures that matter to the workload.

This approach is more durable than memorizing a list of checkboxes. It lets you reason through unfamiliar exam scenarios and, more importantly, mirrors how storage should be administered in a real Azure environment.

Recovery features need a retention model, not just switches

Soft delete, snapshots and versioning are most useful when the organization knows how long recovery history should remain available and who is responsible for using it. A feature enabled with an arbitrary retention value may create either too little protection or unnecessary cost. Administrators should tie retention to operational detection time, business requirements and any legal obligations that govern how long data must be preserved.

An administrator should practice the precise recovery action demanded by the incident. Recovering a prior document version, restoring an Azure Files snapshot and failing over a regional workload are different operations with different authority, cost and recovery-time assumptions. The restore and failover procedures in Azure Backup and Site Recovery provide the broader recovery context. Before implementing an automated lifecycle rule, test a representative object that will move between tiers and verify that authorized clients can still use it at the expected time. A rule that saves storage cost but blocks time-sensitive processing may be operationally wrong.

Recovery history also changes how cleanup should be measured. Deleting an active blob does not always remove all billable data immediately when versions, snapshots or soft-deleted copies remain. Cost investigations therefore need to include retained historical states rather than only the current object count.

An administrator should be able to demonstrate each expected outcome separately: recover a deleted object, retrieve a prior version after overwrite, and move aging data to a cheaper tier without breaking the application. Those tests expose the difference between recoverability, history and cost management. Enabling every retention feature without measuring its purpose can inflate storage bills while still leaving a critical recovery path untested.

Back to Insights
Explore what matters. Knowledge that goes beyond the exam.
Explore ExamTopics