Exam AZ-104 All QuestionsBrowse all questions from this exam
Question 224

HOTSPOT

-

You have an Azure Storage account named storage1 that contains two containers named container1 and container2. Blob versioning is enabled for both containers.

You periodically take blob snapshots of critical blobs.

You create the following lifecycle management policy.

For each of the following statements, select Yes if the statement is true. Otherwise, select No.

NOTE: Each correct selection is worth one point.

    Correct Answer:

Discussion
Batiste2023

Correct, YNN. Y - See section tierToCool N - rule1 only applies to container1, not container2, see section prefixMatch N - This one is a bit complicated. Rehydrated files (that were in the archive tier first and then returned to hot or cool) wouldn't necessarily be archived after 30 days - as there's a condition that the last tier change must be at least 7 days ago. (I'll leave it open how these files became archived in the first place, before 30 days after creation...)

dlouky

I think it should be NNN.... the first is N for the same reason that the second is N

Alscoran

I agree. There is nothing in the first question to say that the action was taken on container 1.

AmigosForever

How that no? Just look for the prefixmatch in the last block

WeepingMaplte

First is No. Missing subtype "snapshot": { }, https://learn.microsoft.com/en-us/azure/templates/microsoft.storage/2021-02-01/storageaccounts/managementpolicies?tabs=json&pivots=deployment-language-arm-template#quickstart-templates https://learn.microsoft.com/en-us/answers/questions/1282997/azure-blob-storage-life-cycle-management-not-worki

clg003

NNN There is no snapshot section. Only a version section. So there is no policy defgined for any snapshot not matter which containter its in. The is no policy for container 2 since this one is filtered for only container 1. Hard No. Rehydrated version keep their original creation date and the current rules still apply so if anything it will be less than 30 days.

93d821b

I think its NNN. 1. The Lifecycle management only applies to container 1. It says nothing about container. Thus, when this says "A blob snapshot" its talking about 1 and 2. So no, because container 2 doesn't have a lifecycle policy. 2. No, because container 2 doesn't have a lifecycle policy. 3. No, same as #1. I checked and there is no automatic blob movement w/o a lifecycle management policy.

mkhlszf

Answer should be NNN 1st N - The rule applies to "container1/". The field has 2 rules: a.This field is case sensitive b.There are no wilcards, those are assumed to already exist so "container1/" = "ANYTHINGHEREcontainer1" and "/container1" = "container1ANYTHINGHERE" A snapshot from a container has the same name of the container with an append at the end e.g "container1?snapshot=2011-03-09T01:42:34.9360000Z" so container1/ does not include the snapshot. 2nd N- The scope of the rule only includes container1 3rd N- You dont know when or how the rehydration happened, so you cant be 100% certain it will be archived after 30 days; if it was copied sure, if it happened to be changed to it 5 dasy ago, no. If your job depended on it, would you say yes?

tashakori

Correct

ceazyongo

NNN This rule is for version files only, there is no rule definition for baseBlob or snapshot files, see below code. Also MS says "Changing a blob's tier doesn't affect its last modified time.", so we can have a version file for 31 days old, and rehydrated 6 days ago, this file will not be archived. https://learn.microsoft.com/en-us/azure/storage/blobs/archive-rehydrate-overview rules: [ { definition: { actions: { baseBlob: { ... } snapshot: { ... } version: { ... } }

Ahkhan

Yes, no no. DaysAfterLastTierGreaterThan is equivalent to skip archiving for x number of days after a blob has been rehyderated.

PrepaCertif

I would say YNY 1. Question is singular, it apply at least to snapshot on blobs container1 2. rule1 only applies to container1, not container2, see section prefixMatch 3. Complicated DaysAfterLastTierChangeGreaterThan Property is only applicable for tierToArchive actions So a rehydrated blob is a new blob and 30 days property apply, so YES https://learn.microsoft.com/en-us/dotnet/api/microsoft.azure.management.storage.models.dateaftercreation.daysafterlasttierchangegreaterthan?view=azure-dotnet-legacy https://learn.microsoft.com/en-us/azure/storage/blobs/archive-rehydrate-overview

moret12

I agree with YNY. What is more, for 3rd statement Microsoft recommends to copy archived blob to new blob: "Copy an archived blob to an online tier: You can rehydrate an archived blob by copying it to a new blob in the hot or cool tier with the Copy Blob operation. Microsoft recommends this option for most scenarios." - https://learn.microsoft.com/en-us/azure/storage/blobs/archive-rehydrate-overview It means that this rehydrated version will trigger tierToArchive after 30 days after creation

pcman

Your explanation is not complete: "There are two options for rehydrating a blob that is stored in the archive tier: * Copy an archived blob to an online tier: You can rehydrate an archived blob by copying it to a new blob in the hot or cool tier with the Copy Blob operation. Microsoft recommends this option for most scenarios. * Change an archived blob's access tier to an online tier: You can rehydrate an archived blob to the hot or cool tier by changing its tier using the Set Blob Tier operation." It means that there is another option where you only change the tier. It will not create a new file. I vote "N" for number 3.

Alscoran

Where does it say the snapshot is in Container 1 ? It could be in either, couldn't it ? And therefore, 1 should be N

ggogel

I agree with YNY. However, the first and third questions don't state the container name, which is weird.

Forkbeard

'Question is singular' --> as a non-native speaker this is an excellent example of a subtlety that I would miss. "A blob snapshot" can mean either "any blob snapshot" (answer would be No) or "at least one blob snapshot" (answer would be Yes). Are there any native speakers who would like to comment on this?

a6bd45e

Incorrect - NNN N - there is no section defining what to do with snapshots (only versions) N - rule is defined for prefix container1 N - agree with rest of comments.

LovelyGroovey

This is what I think. - A blob snapshot automatically moves to the Cool access tier after 15 days. Yes, a blob snapshot automatically moves to the Cool access tier after 15 days according to the provided lifecycle management policy. This policy ensures efficient management of blob snapshots by transitioning them to cooler storage tiers over time. ¯ A blob version in container2 automatically moves to the Archive access tier after 30 days. No, The provided lifecycle management policy does not explicitly state that a blob version in container2 automatically moves to the Archive access tier after 30 days. ¯ A rehydrated version automatically moves to the Archive access tier after 30 days. No, the provided lifecycle management policy does not specify that a rehydrated version automatically moves to the Archive access tier after 30 days.

JRH00

NNY is correct

23169fd

Since snapshots are versions of blobs and the policy includes versioning, this statement is true.

rdeleonp95

NNN "A lifecycle management policy will not delete the current version of a blob until any previous versions or snapshots associated with that blob have been deleted. If blobs in your storage account have previous versions or snapshots, then you must include previous versions and snapshots when you specify a delete action as part of the policy" I guess that this is what Microsoft want to test you if there is not part or section marked as snapshot will be not applied the policy https://learn.microsoft.com/en-us/azure/storage/blobs/lifecycle-management-overview#:~:text=3%20A%20lifecycle,of%20the%20policy.

lexxone

YES NO NO