Question 673 of 997
Develop for Azure storagemediumMultiple ChoiceObjective-mapped

AZ-204 Practice Question: Blob lifecycle management for automatic tiering…

This AZ-204 practice question tests your understanding of develop for azure storage. Match the stated requirement to the specific cloud service, access model, or configuration option — many options are valid in isolation but not for this scenario. A key principle to apply: blob Storage lifecycle management policy. Once you have made your selection, read the full explanation to reinforce the concept and understand why each distractor is designed to mislead on exam day.

Audit logs are written daily as block blobs to an Azure Storage account. Logs older than 90 days must move to Cool tier automatically; logs older than 365 days must be deleted. The developer wants to implement this with no custom code and no recurring jobs. What is the correct solution?

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

Create a lifecycle management policy with two rules: tier to Cool after 90 days and delete after 365 days

Azure Blob Storage lifecycle management policies allow you to automate tier transitions and deletions based on blob age, without any custom code or recurring jobs. By defining a rule to tier blobs to Cool after 90 days and another rule to delete blobs after 365 days, the developer meets all requirements with a fully managed, no-code solution.

Key principle: Blob Storage lifecycle management policy

Answer analysis

Option-by-option breakdown

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

  • Create a lifecycle management policy with two rules: tier to Cool after 90 days and delete after 365 days

    Why this is correct

    Lifecycle management policies are evaluated nightly by Azure. The two rules (tier after 90 days, delete after 365 days) are declared in JSON and applied to blobs matching the prefix filter. No code is required — the storage service acts on them automatically.

    Related concept

    Blob Storage lifecycle management policy

  • Write an Azure Function with a Timer trigger that lists all blobs, checks last-modified dates, and tiers or deletes them via the SDK

    Why it's wrong here

    This approach works but introduces unnecessary complexity — custom code, a Function App, and trigger configuration to maintain. Lifecycle management policies accomplish exactly this without any code.

  • Enable Blob versioning and set a version retention policy of 365 days

    Why it's wrong here

    Blob versioning retains deleted or overwritten versions for a retention period. It does not move blobs between tiers based on age, and it does not delete blobs after 365 days based on their creation time.

  • Configure a Logic App with a Recurrence trigger to enumerate and process blobs weekly

    Why it's wrong here

    Like the Function approach, this requires external orchestration and custom logic. Lifecycle management is the native, zero-code alternative that runs on the storage service itself.

Common exam traps

Common exam trap: answer the scenario, not the keyword

The trap here is that candidates may overlook the 'no custom code and no recurring jobs' constraint and choose a serverless compute option (Azure Function or Logic App) instead of the built-in lifecycle management policy, which is the only fully managed, no-code solution.

Detailed technical explanation

How to think about this question

Lifecycle management policies in Azure Storage are evaluated once per day and apply to both block blobs and append blobs. The policy uses the `lastModifiedTime` or `creationTime` (for append blobs) to calculate age, and actions like `tierToCool` and `delete` are executed asynchronously. A common real-world scenario is managing audit logs where compliance requires automated tiering and deletion without manual intervention or compute costs.

KKey Concepts to Remember

  • Blob Storage lifecycle management policy
  • Cool tier
  • automatic tiering
  • cost optimization

TExam Day Tips

  • Watch for words such as best, first, most likely and least administrative effort.
  • Review why wrong options are wrong, not only why the correct option is correct.

Key takeaway

Blob Storage lifecycle management policy

Real-world example

How this comes up in practice

A media company stores terabytes of video archives that are accessed once a year for audit purposes. Moving these objects to a cold storage tier (Azure Archive, S3 Glacier, or Google Nearline) costs a fraction of hot storage. Questions like this test whether you understand storage tiers, access frequency tradeoffs, and retrieval latency requirements.

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

What to study next

Got this wrong? Here's your next step.

Review blob Storage lifecycle management policy, then practise related AZ-204 questions on the same topic to reinforce the concept.

Related practice questions

Related AZ-204 practice-question pages

Use these pages to review the topic behind this question. This is how one missed question becomes focused revision.

Practice this exam

Start a free AZ-204 practice session

Short sessions build daily habit. Longer sessions build exam-day stamina. Try a timed session to simulate real conditions.

FAQ

Questions learners often ask

What does this AZ-204 question test?

Develop for Azure storage — This question tests Develop for Azure storage — Blob Storage lifecycle management policy.

What is the correct answer to this question?

The correct answer is: Create a lifecycle management policy with two rules: tier to Cool after 90 days and delete after 365 days — Azure Blob Storage lifecycle management policies allow you to automate tier transitions and deletions based on blob age, without any custom code or recurring jobs. By defining a rule to tier blobs to Cool after 90 days and another rule to delete blobs after 365 days, the developer meets all requirements with a fully managed, no-code solution.

What should I do if I get this AZ-204 question wrong?

Review blob Storage lifecycle management policy, then practise related AZ-204 questions on the same topic to reinforce the concept.

What is the key concept behind this question?

Blob Storage lifecycle management policy

About these practice questions

Courseiva creates original exam-style practice questions with explanations and wrong-answer analysis. It does not publish real exam questions, exam dumps, or protected exam content. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

Keep practising

More AZ-204 practice questions

Last reviewed: Jun 11, 2026

Question Discussion

Share a tip, memory trick, or ask about the reasoning behind this question. Do not post real exam questions, leaked content, braindumps, or copyrighted exam material. Comments are moderated and may be removed without notice.

Loading comments…

Sign in to join the discussion.

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.