{"id":3966,"date":"2026-10-11T18:43:37","date_gmt":"2026-10-11T18:43:37","guid":{"rendered":"https:\/\/www.examtopics.info\/blog\/az-104-blob-lifecycle-soft-delete\/"},"modified":"2026-10-13T18:09:31","modified_gmt":"2026-10-13T18:09:31","slug":"az-104-blob-lifecycle-soft-delete","status":"publish","type":"post","link":"https:\/\/www.examtopics.info\/blog\/az-104-blob-lifecycle-soft-delete\/","title":{"rendered":"Microsoft AZ-104: Blob Recovery and Lifecycle Rules"},"content":{"rendered":"<p>A developer overwrites a configuration blob, a lifecycle rule moves an object into an unexpected tier and an operator deletes an entire container. The application may report all three as missing data, but the recovery path depends on the operation and which Azure Storage protection features were enabled beforehand. Blob versioning can preserve previous contents; blob and container soft delete address supported deletion events; lifecycle management changes object storage class or removes items according to rules. Start by identifying the deleted or modified object, the storage account&#8217;s current protection settings and the recovery-point requirements before running a restoration command.<\/p>\n<p>The right starting question is which object must be restored after which operation. Protection against a deleted blob is different from protection against a deleted storage account. <a href=\"https:\/\/www.examtopics.info\/blog\/microsoft-az-104-azure-storage-redundancy-lrs-zrs-grs-gzrs\/\">Regional redundancy<\/a> handles physical availability, while versioning and soft delete address particular logical data-loss events. Neither replaces a tested independent recovery strategy where the workload requires one.<\/p>\n<h2>Separate current blobs, snapshots and versions<\/h2>\n<p>A block blob has an active state, and a version-enabled account can retain previous versions when data changes. A snapshot is a point-in-time copy created under a different mechanism. When diagnosing an overwrite, determine whether the account had versioning, snapshots or backup coverage at the time of the write. Configuring protection now cannot recreate previous content that was never retained.<\/p>\n<p>Blob versioning makes recovery from accidental replacement easier, but every additional version consumes storage and can affect cost. Consider how frequently an application writes and whether the old version is genuinely useful after six months. Build retention around business recovery needs instead of preserving every intermediate object indefinitely.<\/p>\n<p>Picture a nightly export written to the same blob name every day. On Monday the object contains correct balances; on Tuesday a bug overwrites it with invalid values; on Wednesday an operator deletes it. Three different recovery mechanisms may apply. Versioning preserves eligible past blob versions, soft delete can retain a deleted current object for its retention period, and snapshots are explicitly captured states. The administrator should identify which state existed at each time and restore the correct version rather than simply undeleting the newest corrupt representation. Document version IDs, timestamps, storage-account configuration and a checksum of the correct file.<\/p>\n<h2>Understand the actual effect of blob soft delete<\/h2>\n<p>Blob soft delete retains deleted blobs, snapshots or versions for a specified retention period. It supports recovery during that window; after expiry, recovery under that mechanism is no longer available. Soft delete does not automatically protect against storage-account deletion, and restoring a container requires container soft delete or another suitable protection method. Microsoft documents these distinctions in the Blob Storage recovery guidance.<\/p>\n<p>A common mistake appears when versioning is enabled: deleting the current blob turns the current version into a prior version, and recovery may require promoting that version. An undelete operation can recover soft-deleted versions without recreating the current version automatically. Test the exact deletion sequence used by your application rather than trusting a single generic recovery demonstration.<\/p>\n<p>Retention begins as a configuration decision with cost and compliance consequences. A 14-day soft-delete policy does not imply that a deleted object is immortal for two weeks in every circumstance; assess the storage feature, access method and any additional version\/snapshot behavior. Extend recovery with backup or immutability when an attacker could alter account settings or when the required retention exceeds ordinary soft-delete settings. Run a controlled exercise in a disposable container, wait for relevant operations to complete, and verify both listing the recoverable object and reading its recovered contents. Avoid assuming every portal button exposes every version history feature.<\/p>\n<h2>Give containers their own recovery design<\/h2>\n<p>Deleting a whole container is not the same operation as deleting one blob within it. Container soft delete protects the container under its own retention configuration. A storage account with only blob soft delete can still lose a container in an unexpected way. Before announcing that a repository is recoverable, enumerate the scopes and types of deletion the chosen protections actually cover.<\/p>\n<p>For a team using separate containers for legal records and temporary exports, the retention requirements may also differ. Apply account-level capabilities carefully and consider separate accounts when security, lifecycle or recovery needs diverge materially. A single flat setting across unrelated workloads can be simpler administratively but wrong for both cost and resilience.<\/p>\n<h2>Design lifecycle rules without deleting useful evidence<\/h2>\n<p>Azure Blob lifecycle management can move eligible objects between supported access tiers or delete them when configured conditions are met. Filters can use names and blob index tags where supported. Think through current versions, previous versions and snapshots separately: a rule that deletes a current object at an age threshold may interact with soft-delete retention, while retained old versions can continue costing money.<\/p>\n<p>Consider reports retained for regulatory review for seven years. A rule that looks attractive because it moves old data to cooler tiers must be checked against retrieval latency, minimum storage duration charges, legal holds and immutability requirements. Do not create a delete action simply to reduce cost without written authorization from the data owner. Measure predicted and actual lifecycle effects on a test set before applying production rules.<\/p>\n<p>A lifecycle policy for incoming telemetry might move objects to a cooler tier after 30 days and delete them after 365 days. Before enabling it, confirm whether investigators need instant access to a 180-day-old log and whether the deletion timetable includes legally held data. Filter by prefix or supported blob-index tags so transaction evidence is treated differently from scratch output. Run the policy on a known disposable object set and compare what was eligible, what moved, and what remained. A silent tier transition that breaks a downstream daily query is an availability failure even if the storage bill decreases.<\/p>\n<h2>Choose access tiers with retrieval behavior in mind<\/h2>\n<p>Hot, cool, cold and archive storage tiers differ in access characteristics, region and feature support, and cost tradeoffs that change over time. Archive is an offline tier that requires rehydration before an object can be read normally; it is not a cheap version of hot storage with identical access semantics. Some transitions and early-deletion charges matter for short-lived data.<\/p>\n<p>When a help desk promises a ten-minute restoration, storing the only recoverable copy in a tier requiring longer rehydration may violate the business requirement. Model how many objects must be retrieved, from where, in what time, and with which permissions. A classification label alone cannot predict this. Test a representative object with the planned account type and regional options.<\/p>\n<p>Rehydration changes operational expectations. Imagine that a finance analyst requests archived records during an urgent audit. A blob stored in an offline archive tier may need a rehydration operation whose duration does not satisfy a ten-minute service request. Record the tier, retrieval priority and expected data access path before promoting archive as the lowest-cost option. The same data can be cheap to retain but expensive to read at high volume. Estimate both stored-gigabyte costs and retrieval\/transaction effects, including minimum-duration charges and the way redundancy choices constrain available tiers.<\/p>\n<h2>Network and permission checks remain part of restoration<\/h2>\n<p>A blob may exist in a recoverable version yet remain inaccessible to an operator. Data-plane RBAC, storage-account firewall settings, <a href=\"https:\/\/www.examtopics.info\/blog\/microsoft-az-104-azure-private-endpoints-and-private-dns\/\">private endpoint DNS<\/a> and key-based access restrictions can all affect the tool used for recovery. Distinguish &#8216;there is no version&#8217; from &#8216;you lack permission to list versions&#8217; before concluding that recovery is impossible.<\/p>\n<p>For a storage account reached through a private endpoint, a portal administrative session can see resource settings while a workstation cannot reach the blob data endpoint. Test recovery from the same network path and identity type the operations team will actually use. Capture a successful restoration record and remove temporary access promptly.<\/p>\n<h2>Test a deletion incident and verify the outcome<\/h2>\n<p>Create disposable blobs, enable the selected protections, overwrite a file and delete another. Observe the version and deleted-object inventories. Restore each using the appropriate operation, then verify a checksum or meaningful application-level record rather than merely checking that a name reappeared. Next, delete and restore a disposable container if the account supports the configured container soft-delete behavior.<\/p>\n<p>Record which feature saved each object and the limits of recovery. A disciplined lab should include one intentionally unprotected case to reveal where no Azure feature can conjure missing data. That lesson is central to AZ-104 administration: backups, redundancy, lifecycle policy and logical recovery all address different risks.<\/p>\n<p>A reliable recovery rehearsal creates a small JSON file with a known hash, overwrites it with different bytes, deletes the current blob and then performs the planned restoration. The operator must produce a recovered file matching the original hash and demonstrate that the correct RBAC principal could perform the recovery over the permitted network path. Repeat with a deleted container to validate container-level protection. This tests three questions separately: did historical data survive, could the authorized user find it, and did the application accept it after restore? A successful listing operation alone answers none of them completely.<\/p>\n<h2>Keep an auditable protection configuration<\/h2>\n<p>Production teams need to know who changed retention periods, who initiated lifecycle deletes, and how rollback will be tested. Make those settings subject to resource change control and regular review. When a legal or security team introduces immutability requirements, verify whether existing protection can be changed and which operations are intentionally restricted.<\/p>\n<p>An annual disaster-recovery exercise that only confirms the virtual machine boots misses a whole class of blob-level loss. Add recoverable-object scenarios and show the business owner the restored content and elapsed time. The result should be evidence of recovery capability, not a reassuring diagram.<\/p>\n<p>Treat lifecycle and recovery policy changes as high-impact configuration updates. A policy review should include affected prefixes and tags, earliest scheduled deletion, expected tiers and the security controls that could block or permit restoration. Keep evidence of the old and new configuration and designate an owner who can halt accidental mass deletion. If immutable retention is enabled, explain which deletions and modifications cannot be rolled back immediately. This is particularly important when a storage account hosts both disposable exports and regulated records, because one broad policy may be wrong for both datasets.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Design Azure Blob lifecycle policies, versioning, soft delete and recovery using the exact object and failure that need protection.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8,11],"tags":[],"class_list":["post-3966","post","type-post","status-publish","format-standard","hentry","category-certifications","category-cloud-computing"],"_links":{"self":[{"href":"https:\/\/www.examtopics.info\/blog\/wp-json\/wp\/v2\/posts\/3966","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.examtopics.info\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.examtopics.info\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.examtopics.info\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.examtopics.info\/blog\/wp-json\/wp\/v2\/comments?post=3966"}],"version-history":[{"count":3,"href":"https:\/\/www.examtopics.info\/blog\/wp-json\/wp\/v2\/posts\/3966\/revisions"}],"predecessor-version":[{"id":4698,"href":"https:\/\/www.examtopics.info\/blog\/wp-json\/wp\/v2\/posts\/3966\/revisions\/4698"}],"wp:attachment":[{"href":"https:\/\/www.examtopics.info\/blog\/wp-json\/wp\/v2\/media?parent=3966"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.examtopics.info\/blog\/wp-json\/wp\/v2\/categories?post=3966"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.examtopics.info\/blog\/wp-json\/wp\/v2\/tags?post=3966"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}