Chapter 2 · AZ-204: Developing Solutions for Microsoft Azure Develop for Azure Storage

Azure Blob Storage – Access Tiers, Lifecycle and Leases

20 practice questions · 5 marks weightage

Practice questions

  1. Question 1Q-C673B8

    A compliance application stores audit blobs that are rarely accessed. The organization must retain them for seven years and can wait several hours when a blob needs to be read. Which Azure Blob Storage access tier is most appropriate?

    1. A.Hot
    2. B.Cool
    3. C.Cold
    4. D.Archive
    See the answer and solution
  2. Question 2Q-34289F

    A storage account contains block blobs under the logs/ prefix. The requirement is to move each blob to Cool after 30 days since its last modification, move it to Archive after 90 days, and delete it after 365 days. Which lifecycle management policy action configuration satisfies the requirement?

    1. A.{"baseBlob":{"tierToCool":{"daysAfterModificationGreaterThan":30},"tierToArchive":{"daysAfterModificationGreaterThan":90},"delete":{"daysAfterModificationGreaterThan":365}}}
    2. B.{"baseBlob":{"tierToCool":{"daysAfterModificationGreaterThan":90},"tierToArchive":{"daysAfterModificationGreaterThan":30},"delete":{"daysAfterModificationGreaterThan":365}}}
    3. C.{"baseBlob":{"tierToCool":{"daysAfterModificationGreaterThan":30},"tierToArchive":{"daysAfterModificationGreaterThan":365},"delete":{"daysAfterModificationGreaterThan":90}}}
    4. D.{"baseBlob":{"tierToCool":{"daysAfterModificationGreaterThan":30},"tierToArchive":{"daysAfterModificationGreaterThan":90}}}
    See the answer and solution
  3. Question 3Q-F27155

    A .NET application acquires a 30-second lease on an existing block blob and receives leaseId. Another client must not update or delete the blob while the lease is active. Which code correctly uploads new content while honoring the lease?

    1. A.await blobClient.UploadAsync(BinaryData.FromString("new content"), new BlobUploadOptions { Conditions = new BlobRequestConditions { LeaseId = leaseId } });
    2. B.await blobClient.UploadAsync(BinaryData.FromString("new content"), new BlobUploadOptions { AccessTier = AccessTier.Cool });
    3. C.await blobClient.SetAccessTierAsync(AccessTier.Cool);
    4. D.await blobClient.DeleteAsync(); await blobClient.UploadAsync(BinaryData.FromString("new content"));
    See the answer and solution
  4. Question 4Q-BC7CDC

    A customer-support application must download a blob within seconds, but the blob is currently stored in the Archive tier. What should the application or administrator do before the blob can be read?

    1. A.Rehydrate the blob to the Hot or Cool tier
    2. B.Acquire a lease on the blob
    3. C.Enable blob versioning
    4. D.Change the blob's content type
    See the answer and solution
  5. Question 5Q-EA87A5

    A storage account must move blobs to the Cool tier after they have not been accessed for 14 days. The lifecycle policy should use the time since the last read rather than the time since modification. Which configuration is required?

    1. A.Enable blob access time tracking and use daysAfterLastAccessTimeGreaterThan in the lifecycle rule
    2. B.Enable blob versioning and use daysAfterModificationGreaterThan in the lifecycle rule
    3. C.Enable soft delete and use daysAfterCreationGreaterThan in the lifecycle rule
    4. D.Enable change feed and use daysAfterModificationGreaterThan in the lifecycle rule
    See the answer and solution

15 more questions on Azure Blob Storage – Access Tiers, Lifecycle and Leases

Sign up free to practise the full chapter. Questions you get wrong come back until you've mastered them.

Start practising free

Free to start · No credit card needed