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
- Question 1Q-C673B8See the answer and solution
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?
- A.Hot
- B.Cool
- C.Cold
- D.Archive
- Question 2Q-34289FSee the answer and solution
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?
- A.{"baseBlob":{"tierToCool":{"daysAfterModificationGreaterThan":30},"tierToArchive":{"daysAfterModificationGreaterThan":90},"delete":{"daysAfterModificationGreaterThan":365}}}
- B.{"baseBlob":{"tierToCool":{"daysAfterModificationGreaterThan":90},"tierToArchive":{"daysAfterModificationGreaterThan":30},"delete":{"daysAfterModificationGreaterThan":365}}}
- C.{"baseBlob":{"tierToCool":{"daysAfterModificationGreaterThan":30},"tierToArchive":{"daysAfterModificationGreaterThan":365},"delete":{"daysAfterModificationGreaterThan":90}}}
- D.{"baseBlob":{"tierToCool":{"daysAfterModificationGreaterThan":30},"tierToArchive":{"daysAfterModificationGreaterThan":90}}}
- Question 3Q-F27155See the answer and solution
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?
- A.await blobClient.UploadAsync(BinaryData.FromString("new content"), new BlobUploadOptions { Conditions = new BlobRequestConditions { LeaseId = leaseId } });
- B.await blobClient.UploadAsync(BinaryData.FromString("new content"), new BlobUploadOptions { AccessTier = AccessTier.Cool });
- C.await blobClient.SetAccessTierAsync(AccessTier.Cool);
- D.await blobClient.DeleteAsync(); await blobClient.UploadAsync(BinaryData.FromString("new content"));
- Question 4Q-BC7CDCSee the answer and solution
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?
- A.Rehydrate the blob to the Hot or Cool tier
- B.Acquire a lease on the blob
- C.Enable blob versioning
- D.Change the blob's content type
- Question 5Q-EA87A5See the answer and solution
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?
- A.Enable blob access time tracking and use daysAfterLastAccessTimeGreaterThan in the lifecycle rule
- B.Enable blob versioning and use daysAfterModificationGreaterThan in the lifecycle rule
- C.Enable soft delete and use daysAfterCreationGreaterThan in the lifecycle rule
- D.Enable change feed and use daysAfterModificationGreaterThan in the lifecycle rule
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 freeFree to start · No credit card needed