Courseiva
Develop for Azure storageeasyMultiple ChoiceObjective-mapped

AZ-204 Develop for Azure storage Practice Question

You are developing an application that stores user-uploaded profile pictures in Azure Blob Storage. Users frequently access these pictures for the first 7 days after upload, then rarely. To minimize costs, you need to automatically delete pictures that are older than 30 days. Which Azure Storage feature should you use to achieve this?

⚠ Common exam trap

Many candidates confuse soft delete (which retains deleted blobs) with automatic deletion, or think change feed or snapshots can trigger deletions, when only lifecycle management provides scheduled, rule-based expiration.

Answer choices

Why each option matters

Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.

Correct answer & explanation

Lifecycle management policy

Azure Blob Storage lifecycle management policies allow you to automatically tier or expire blobs based on age. By defining a rule that deletes blobs after 30 days from creation, you can remove old profile pictures without manual intervention, directly minimizing storage costs.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • Lifecycle management policy

    Why this is correct

    Azure Blob Storage lifecycle management policies enable defining rules to automatically transition blobs between access tiers or delete them after a specified period. These policies are configured at the storage account level, allowing users to set conditions based on blob age, last modified time, or creation time. For instance, a rule can be established to automatically delete profile pictures (blobs) that are older than 30 days, directly fulfilling the requirement for automated data retention and cleanup. This optimizes storage costs and ensures compliance with data retention policies.

  • Blob snapshots

    Why it's wrong here

    Blob snapshots create a read-only version of a blob at a specific point in time, primarily used for backup and recovery purposes. While snapshots preserve data, they are not designed to automate the deletion of the *original* blob or the snapshots themselves based on age without manual intervention or external automation. They capture a blob's state, but do not implement a lifecycle management strategy for the primary blob's retention or deletion.

  • Change feed

    Why it's wrong here

    The Azure Blob Storage change feed provides a durable, ordered, read-only log of all changes that occur to blobs within a storage account, such as creation, modification, or deletion. Its primary purpose is to enable event-driven architectures and data replication scenarios by allowing applications to consume these change events. However, the change feed itself is a *notification mechanism* and does not possess the capability to automatically initiate or enforce lifecycle actions, such as deleting blobs older than a certain age.

  • Soft delete

    Why it's wrong here

    Azure Blob Storage soft delete provides data protection by retaining deleted or overwritten blobs for a specified retention period, allowing for their recovery. When soft delete is enabled, a deleted blob transitions to a soft-deleted state rather than being permanently removed, protecting against accidental data loss. While it involves a retention period, its function is to *prevent* immediate permanent deletion, not to *automatically delete* blobs after a specific age as a proactive data lifecycle management strategy.

Quick reference

Azure Blob Storage Tier Comparison

TierStorage CostRetrieval CostLatencyUse Case
HotHighestLowestImmediateActive data, frequent reads
CoolLowerHigherImmediateData accessed < once / month
ColdLower stillHigherImmediateData accessed < once / quarter
ArchiveLowestHighest + rehydration delayHoursLong-term compliance retention

About these practice questions

Courseiva writes every AZ-204 question from scratch — 881 in total, each with an explanation and a wrong-answer breakdown. None are copied from real exams or dumps. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

JA

Written by Johnson Ajibi, MSc IT Security

Senior Network & Security Engineer · founder of Courseiva

This AZ-204 practice question is part of Courseiva's free Microsoft certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the AZ-204 exam.