DP-201 Exam QuestionsBrowse all questions from this exam

DP-201 Exam - Question 157


HOTSPOT -

You have an Azure Data Lake Storage Gen2 account named account1 that stores logs as shown in the following table.

Exam DP-201 Question 157

You do not expect that the logs will be accessed during the retention periods.

You need to recommend a solution for account1 that meets the following requirements:

✑ Automatically deletes the logs at the end of each retention period

✑ Minimizes storage costs

What should you include in the recommendation? To answer, select the appropriate options in the answer area.

NOTE: Each correct selection is worth one point.

Hot Area:

Exam DP-201 Question 157
Show Answer
Correct Answer:
Exam DP-201 Question 157

Box 1: Store the infrastructure in the Cool access tier and the application logs in the Archive access tier.

Cool - Optimized for storing data that is infrequently accessed and stored for at least 30 days.

Archive - Optimized for storing data that is rarely accessed and stored for at least 180 days with flexible latency requirements, on the order of hours.

Box 2: Azure Blob storage lifecycle management rules

Blob storage lifecycle management offers a rich, rule-based policy that you can use to transition your data to the best access tier and to expire data at the end of its lifecycle.

Reference:

https://docs.microsoft.com/en-us/azure/storage/blobs/storage-blob-storage-tiers

Discussion

6 comments
Sign in to comment
H_S
Mar 16, 2021

Box one is wrong; You do not expect that the logs will be accessed during the retention periods.==>archive for both

captainbee
Jul 7, 2021

Wrong. You can't store files in Archive unless they've been around for at least 180 days.

ramelas
Dec 5, 2021

wrong, not a requirement but a best practice. where is the link to prove your statement?

ramelas
Dec 5, 2021

wrong, not a requirement but a best practice. where is the link to prove your statement?

saifone
May 5, 2021

Infra logs should be kept in Cool tier as it's only 60 days retention period, there's Early deletion charge otherwise "Any blob that is moved into the cool tier (GPv2 accounts only) is subject to a cool early deletion period of 30 days. Any blob that is moved into the archive tier is subject to an archive early deletion period of 180 days. This charge is prorated." https://docs.microsoft.com/en-us/azure/storage/blobs/storage-blob-storage-tiers?tabs=azure-portal

Needium
Mar 17, 2021

Clearly archive for both set of logs since they are not expected to be assessed.

111222333
May 25, 2021

I believe the "Azure Blob storage lifecycle management rules" are just for Azure Blob Storage, not for Data Lake. Data Lake has a new option from July 2020 "Azure Data Lake Storage lifecycle management". With these provided options, I would go for Data Factory pipeline (with delete activity). https://azure.microsoft.com/en-us/updates/lifecycle-management-for-azure-data-lake-storage-is-now-generally-available/ https://azure.microsoft.com/it-it/blog/clean-up-files-by-built-in-delete-activity-in-azure-data-factory/

hosan
Aug 22, 2021

What is the correct answer finally ? Lot of comments confuse actually.

Larrave
Dec 6, 2021

Answer should be correct. We want to minimize costs, but we also do get a penalty if we delete data before the retention period. "Data must remain in the Archive tier for at least 180 days or be subject to an early deletion charge. For example, if a blob is moved to the Archive tier and then deleted or moved to the Hot tier after 45 days, you'll be charged an early deletion fee equivalent to 135 (180 minus 45) days of storing that blob in the Archive tier." https://docs.microsoft.com/en-us/azure/storage/blobs/access-tiers-overview Therefore infrastructure has to be cool as there the penalty period is 30 days, while archive 180 days.