Skip to content

AZ-104 · Domain 2: Implement and manage storage · 19% of the exam

Task 2.3: Configure Azure Files and Azure Blob Storage

File shares and blob containers, access tiers, soft delete and snapshots, lifecycle management rules, and blob versioning.

Study it

  • File shares and blob containers, snapshots, soft delete and versioning

    Lesson coming

  • Access tiers and blob lifecycle management

    Partly covered by: S3: Consistency, Classes, Lifecycle

Sample questions

Try each one before opening the answer. Every option is explained, with the Microsoft documentation page that proves it.

Question 1 · choose 1

An auditor needs a 2 GB blob that sits in the archive tier, and needs it within the hour. The blob should end up in the hot tier. What should you do?

  1. AChange the tier to hot with standard rehydrate priority
  2. BChange the tier to hot with high rehydrate priority
  3. CRead the blob directly from the archive tier with a SAS
  4. DDownload the blob with AzCopy, which reads archived data
Show the answer and why
  • AChange the tier to hot with standard rehydrate priority

    Incorrect

    Standard priority can take up to 15 hours for objects under 10 GB, which misses the deadline.

  • BChange the tier to hot with high rehydrate priority

    Correct

    High priority is processed ahead of standard requests and can finish in under an hour for objects under 10 GB.

  • CRead the blob directly from the archive tier with a SAS

    Incorrect

    Archived data is offline; a blob can't be read until it's rehydrated to an online tier.

  • DDownload the blob with AzCopy, which reads archived data

    Incorrect

    AzCopy can't read an offline blob either; the data must be rehydrated to an online tier before any download.

A blob in the archive tier is offline. Rehydrate it by changing its tier with Set Blob Tier or by copying it to an online tier, and set x-ms-rehydrate-priority to High when it must be back quickly.

Question 2 · choose 1

A storage account has this lifecycle rule (abridged): "filters": { "blobTypes": [ "blockBlob" ], "prefixMatch": [ "logs/" ] }, "actions": { "baseBlob": { "tierToCool": { "daysAfterModificationGreaterThan": 30 }, "delete": { "daysAfterModificationGreaterThan": 365 } } } What happens to a block blob logs/app.txt that was last modified 40 days ago?

  1. AIt's deleted, because the rule deletes blobs after 30 days
  2. BNothing yet, because the rule counts days since the blob was last read
  3. CIt stays in hot, because it was created more than 30 days ago
  4. DIt moves to cool now and is deleted 365 days after its last change
Show the answer and why
  • AIt's deleted, because the rule deletes blobs after 30 days

    Incorrect

    The delete action applies after 365 days; 30 days is the condition for moving the blob to the cool tier.

  • BNothing yet, because the rule counts days since the blob was last read

    Incorrect

    These conditions use the last-modified time, not the last access time, so reads don't matter.

  • CIt stays in hot, because it was created more than 30 days ago

    Incorrect

    The rule tests days since modification, not since creation; the blob's age doesn't block the move.

  • DIt moves to cool now and is deleted 365 days after its last change

    Correct

    Forty days since modification satisfies tierToCool, and the delete action applies after 365 days without modification.

Each action in baseBlob has its own condition. daysAfterModificationGreaterThan is measured from the last modification, so this blob qualifies for tierToCool now and for delete after 365 days. New or changed rules can take up to 24 hours to run.

Question 3 · choose 1

A developer deleted the whole container invoices yesterday. The account has blob soft delete enabled with 14 days of retention, and container soft delete disabled. What can you recover?

  1. AThe container and its blobs, through blob soft delete
  2. BThe container, through the Undelete Blob operation
  3. CNothing, since container soft delete was disabled
  4. DThe container, by creating a new one with the same name
Show the answer and why
  • AThe container and its blobs, through blob soft delete

    Incorrect

    Blob soft delete restores deleted blobs when their container still exists; it doesn't bring back a deleted container.

  • BThe container, through the Undelete Blob operation

    Incorrect

    Undelete Blob restores soft-deleted blobs, not containers, and the container is gone.

  • CNothing, since container soft delete was disabled

    Correct

    Container soft delete must have been enabled before the deletion to restore a container and its contents.

  • DThe container, by creating a new one with the same name

    Incorrect

    A new container with the same name is empty; it doesn't bring the deleted blobs back.

Container soft delete and blob soft delete protect different things. Only container soft delete, enabled before the deletion, can restore a deleted container; blob soft delete covers blobs, snapshots and versions in containers that still exist.

Question 4 · choose 1

A user overwrote a spreadsheet on an Azure file share mounted over SMB from Windows. The share has daily share snapshots. How should the user get yesterday's version back?

  1. ACopy the file from the Previous Versions tab in File Explorer
  2. BUndelete the share from the soft-deleted shares list
  3. CRestore the share's contents with point-in-time restore for the account
  4. DRehydrate the file from the archive tier
Show the answer and why
  • ACopy the file from the Previous Versions tab in File Explorer

    Correct

    Share snapshots appear as previous versions on Windows, and single files can be copied back from them.

  • BUndelete the share from the soft-deleted shares list

    Incorrect

    Share soft delete recovers a deleted share; the share here wasn't deleted, a file inside it was changed.

  • CRestore the share's contents with point-in-time restore for the account

    Incorrect

    Point-in-time restore applies to block blobs, not to files in Azure Files.

  • DRehydrate the file from the archive tier

    Incorrect

    Azure Files has no archive tier; rehydration applies to archived blobs.

A share snapshot is a read-only, incremental, point-in-time copy of a share, and files can be restored individually. On Windows, SMB share snapshots show up on the Previous Versions tab; a share can hold up to 200 snapshots.

Question 5 · choose 1

Compliance asks that deleted blobs stay recoverable for 120 days. Can blob soft delete do this?

  1. AYes, but by restoring with point-in-time restore
  2. BNo, the longest retention is 30 days
  3. CNo, the longest retention is 90 days
  4. DYes, retention can be set from 1 to 365 days
Show the answer and why
  • AYes, but by restoring with point-in-time restore

    Incorrect

    Soft delete retention is set directly on blob soft delete.

  • BNo, the longest retention is 30 days

    Incorrect

    Thirty days is well inside the range; the maximum is 365 days.

  • CNo, the longest retention is 90 days

    Incorrect

    The maximum is longer than 90 days.

  • DYes, retention can be set from 1 to 365 days

    Correct

    Blob soft delete keeps deleted data for the period you set, between 1 and 365 days.

Blob soft delete takes a retention period between 1 and 365 days, and you can change it at any time.

Question 6 · choose 1

Lawyers need the blobs in a container kept unchanged until a lawsuit ends, and nobody knows when that will be. Which immutability policy fits?

  1. AA time-based retention policy of ten years
  2. BA ReadOnly lock on the storage account
  3. CA legal hold on the container
  4. DBlob soft delete with 365 days of retention
Show the answer and why
  • AA time-based retention policy of ten years

    Incorrect

    A fixed period doesn't match an unknown end date and can't be shortened once locked.

  • BA ReadOnly lock on the storage account

    Incorrect

    Locks protect the account's settings, not the data in it.

  • CA legal hold on the container

    Correct

    A legal hold keeps data immutable until the hold is explicitly cleared.

  • DBlob soft delete with 365 days of retention

    Incorrect

    Soft delete allows deletes and only keeps a recoverable copy for a time.

Time-based retention keeps data immutable for a set interval; a legal hold keeps it immutable until it's removed, which suits an open-ended case.

Question 7 · choose 1

A team plans to move 60 TiB of project files into a single Azure file share. Is one share big enough?

  1. ANo, a share holds at most 5 TiB
  2. BYes, provided the share uses the NFS protocol
  3. CYes, a share can grow to 100 TiB or more
  4. DNo, the data must be split across blob containers
Show the answer and why
  • ANo, a share holds at most 5 TiB

    Incorrect

    Shares scale well past 5 TiB: to 100 TiB or 256 TiB per share, depending on the billing model.

  • BYes, provided the share uses the NFS protocol

    Incorrect

    The size limit depends on the billing model, not on the protocol.

  • CYes, a share can grow to 100 TiB or more

    Correct

    Pay-as-you-go and provisioned v1 shares reach 100 TiB, and provisioned v2 shares 256 TiB.

  • DNo, the data must be split across blob containers

    Incorrect

    Splitting isn't needed; the share size limit is higher.

An Azure file share scales to 100 TiB on the pay-as-you-go and provisioned v1 billing models, and to 256 TiB on provisioned v2 (which file shares created as Microsoft.FileShares resources also use), so a 60 TiB share fits either way.

Question 8 · choose 1

An archived blob must be readable in the hot tier for a month-long audit, and the archived original must stay in archive afterwards without being moved back. What should you do?

  1. ARead the archived blob with a SAS that grants read permission
  2. BSet the blob's tier to hot, then back to archive after the audit
  3. CChange the account's default tier to hot
  4. DCopy the blob to a new blob in the hot tier
Show the answer and why
  • ARead the archived blob with a SAS that grants read permission

    Incorrect

    Permissions don't help; an archived blob is offline until it's rehydrated.

  • BSet the blob's tier to hot, then back to archive after the audit

    Incorrect

    Changing the tier moves the original out of archive, and moving it back starts a new archive period.

  • CChange the account's default tier to hot

    Incorrect

    Explicitly archived blobs keep their tier; the default doesn't apply to them.

  • DCopy the blob to a new blob in the hot tier

    Correct

    Copy Blob creates an online copy and leaves the source blob unchanged in the archive tier.

Archived blobs can be rehydrated by changing their tier or by copying them to an online tier. Copy Blob is recommended for most scenarios because the original stays in archive.

Practise domain 2 →Practise all domains →