Courseiva
Develop for Azure storagehardMultiple ChoiceObjective-mapped

AZ-204 Develop for Azure storage Practice Question

Exhibit

Refer to the exhibit. The following is an Azure PowerShell script output:

PS Az> Get-AzStorageBlob -Container 'mycontainer' -Blob 'data.txt' | Select-Object Name, BlobType, AccessTier, LastModified

Name      BlobType   AccessTier   LastModified
----      --------   ----------   ------------
data.txt  BlockBlob  Archive      2025-12-01 10:00:00Z

You have a blob as shown in the exhibit. You need to read the content of this blob. What must you do first?

⚠ Common exam trap

It's easy for candidates to assume a storage account key or a direct download cmdlet can access any blob, but Azure enforces the archive tier's offline state, requiring explicit rehydration before any read operation.

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

Set the access tier of the blob to Hot or Cool using Set-AzStorageBlobTier.

The blob in the exhibit is an archived blob, which is offline and cannot be read directly. You must first rehydrate it by setting its access tier to Hot or Cool using Set-AzStorageBlobTier, which initiates an asynchronous copy from the archive tier to an online tier. Only after rehydration completes can you read the blob content.

Answer analysis

Option-by-option breakdown

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

  • Convert the blob to an AppendBlob type.

    Why it's wrong here

    Converting a blob to an AppendBlob type is not a valid operation in Azure Blob Storage. Blob types (Block, Page, Append) are fundamental characteristics defined at the time of blob creation and cannot be changed in-place after the blob has been created. To change a blob's type, one would typically need to read the data from the existing blob and then write it to a *new* blob of the desired type, which is irrelevant to making an archived blob readable.

  • Use the Get-AzStorageBlobContent cmdlet to download the blob directly.

    Why it's wrong here

    The Get-AzStorageBlobContent cmdlet is designed to download blob content directly. However, blobs residing in the Archive access tier are considered "offline" and are not immediately available for direct read operations, including downloads. Attempting to use this cmdlet on an archived blob without prior rehydration will result in an error, as the data must first be moved to an online tier like Hot or Cool to become accessible.

  • Set the access tier of the blob to Hot or Cool using Set-AzStorageBlobTier.

    Why this is correct

    Setting the access tier of the blob to Hot or Cool using Set-AzStorageBlobTier is the correct approach because blobs in the Archive tier are offline and not directly readable. This operation initiates a "rehydration" process, moving the blob's data from the low-cost, high-latency Archive tier to a more accessible tier. Once rehydration completes, which can take several hours depending on priority, the blob becomes online and its content can be read.

  • Use the storage account key to access the blob.

    Why it's wrong here

    While a storage account key provides the necessary authentication and authorization credentials to interact with Azure Storage services, it does not resolve the underlying issue of a blob's access tier. The problem is that the blob itself is in the Archive tier, meaning its content is not immediately available for reading, regardless of the authentication method used. The storage account key grants access to the service, but the blob's state prevents direct data retrieval.

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.