exam questions

Exam AZ-305 All Questions

View all questions & answers for the AZ-305 exam

Exam AZ-305 topic 2 question 38 discussion

Actual exam question from Microsoft's AZ-305
Question #: 38
Topic #: 2
[All AZ-305 Questions]

You have an app named App1 that uses an Azure Blob Storage container named app1data.

App1 uploads a cumulative transaction log file named File1.txt to a block blob in app1data once every hour. File1.txt only stores transaction data from the current day.

You need to ensure that you can restore the last uploaded version of File1.txt from any day for up to 30 days after the file was overwritten. The solution must minimize storage space.

What should you include in the solution?

  • A. container soft delete
  • B. blob snapshots
  • C. blob soft delete
  • D. blob versioning
Show Suggested Answer Hide Answer
Suggested Answer: D 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
[Removed]
Highly Voted 1 year, 1 month ago
Selected Answer: D
I believe the given answer is correct. The key here is that File1.txt is changed every hour. Theoretically, you can do this with B as well but you need to configure a given time when the snapshot is taken. With blob versioning, you have access to 24 versions, and you can restore for example a version that took place 6 hours ago as opposed to when the blob snapshot took place (you will only have a single version, the one that the snapshot captured at the moment it was taken). For this reason I would go with D.
upvoted 10 times
c_h_r_i_s_
4 months, 2 weeks ago
"Microsoft recommends maintaining fewer than 1000 versions per blob" https://learn.microsoft.com/en-us/azure/storage/blobs/versioning-overview
upvoted 1 times
...
[Removed]
1 year, 1 month ago
https://learn.microsoft.com/en-us/azure/storage/blobs/snapshots-overview Note Blob versioning offers a superior way to maintain previous versions of a blob. For more information, see Blob versioning. https://learn.microsoft.com/en-us/azure/storage/blobs/versioning-overview
upvoted 2 times
[Removed]
1 year, 1 month ago
I was debating whether to go with Blob Snapshots in the end because our requirement is that we only need one version of the file, so we can schedule a snapshot to take place let's say right before midnight, and it would work just fine. However, there's some administrative overhead to do so. https://learn.microsoft.com/en-us/azure/storage/blobs/snapshots-manage-dotnet https://learn.microsoft.com/en-us/azure/storage/blobs/snapshots-overview To automate the snapshot creation process, you can use Azure Logic Apps or Azure Functions.
upvoted 1 times
[Removed]
1 year, 1 month ago
I will, however, stick with Blob Versioning, even Microsoft suggests this is a better way. And to minimise the costs you can simply use lifecycle policies to delete old versions.
upvoted 6 times
prshntdxt7
11 months, 2 weeks ago
Yep, seems all right.
upvoted 1 times
...
...
...
...
...
mta_outlook
Highly Voted 1 year ago
Selected Answer: D
Couldn't be more obvious to me. Versioning. File is uploaded every hour and we need to make sure we can restore the last upload. Snapshots are daily, a restore after 11pm would mean you'd miss out on the last 23 uploads. Question is pants but the answer is still clear.
upvoted 7 times
...
[Removed]
Most Recent 3 months, 3 weeks ago
Selected Answer: D
D is correct
upvoted 1 times
...
Paputzback
4 months ago
What happens after midnight when file1 gets deleted in order to be reset to empty in order to store transaction data for the current day only? There is not indication that policies will be created to store a snaphot in cheaper tier after the last change of the day. It seems like it would be a hassle to dig through the changes to get the last version of the file for a particular day.
upvoted 1 times
...
Rybsonldz
5 months, 2 weeks ago
I believe option D. Also, spoke to chat about it in comparison of minimize storage space: Why Blob Versioning Minimizes Storage: Versioning only stores a copy when the blob is modified, unlike snapshots which can be more space-intensive due to frequent captures. Retention policies can be configured with versioning to automatically delete older versions (e.g., after 30 days), helping to control storage space over time. Conclusion: Blob Versioning is the better choice for minimizing storage space, as it optimizes storage by only keeping changes between versions and can automatically prune older versions according to a defined retention period. This makes it more storage-efficient compared to snapshots. So, blob versioning remains the best solution for this scenario, as it balances the need for version recovery and storage efficiency.
upvoted 3 times
...
Rod_DA
6 months, 4 weeks ago
Selected Answer: B
with blob snapshot we can fulfill the requirement of keeping the last version of the file of a particular day while minimizing storage space.
upvoted 1 times
...
23169fd
8 months, 1 week ago
Selected Answer: D
D. Blob Versioning Justification: Blob Versioning: Automatically keeps previous versions of an object when it is overwritten, enabling you to restore any version within the retention period. Storage Efficiency: Only stores the changes, minimizing the additional storage required.
upvoted 2 times
...
arnitjoe
10 months, 1 week ago
Selected Answer: D
Solution must minimize storage space... Versioning for sure. Snapshots every hour would cause a lot of administrative load to manage storage space consumption.
upvoted 2 times
...
jayaj
10 months, 3 weeks ago
It says "cumulative transaction log file named File1.txt " means last file updated will have all the changes happened every hour. Taking snapshot of the last updated file at midnight will suffice the requirement. Answer B
upvoted 3 times
...
SDiwan
1 year ago
I feel B is thr right answer. Reasons: We need only the last updated version for each day, so taking snapshot of a day at midnight would be sufficient. Secondly, we need to minimise storage space. versioning will make 24 versions for each day. Lifecycle mgmt rules can easily delete the snapshot after 30 days.
upvoted 1 times
xRiot007
11 months, 3 weeks ago
No. The file is updated hourly, so the last updated version is also hourly. You need to restore the last upload, which is hourly, not daily. Storage is minimized by keeping daily data available.
upvoted 2 times
...
...
TJ001
1 year, 1 month ago
I will go with blob-versioning for the reason that version optimizes storage by additionally storing the delta and not the entire data as in case of snapshots
upvoted 2 times
...
TonySuccess
1 year, 1 month ago
Storage space: Blob versioning and daily snapshots both consume storage space, but blob versioning might consume more space if there are frequent changes to the blob. Daily snapshots only create one copy of the blob per day, while blob versioning creates a new version every time the blob is modified or deleted. Therefore, blob versioning might be more suitable for blobs that are rarely changed, while daily snapshots might be more suitable for blobs that are frequently changed. It is a very circumstantial question, I do not feel that enough information is provided. Copilot suggests Versioning would be the best option, but it is a terrible question.
upvoted 2 times
...
Muffay
1 year, 1 month ago
Selected Answer: B
I will vote for B here, as the requirement is to minimize storage costs and also states it is only needed to archive the *last uploaded version* of the day. I am not aware of a native solution to schedule those snapshots, but worst case we could use scheduled Azure Functions for that.
upvoted 5 times
...
mns0173
1 year, 1 month ago
Versioning will store all 24 cumulative files daily. Instead we can do daily snapshots at the end of a day as it has cumulative data for the whole day. It will add administrative overhead, but reduce storage usage.
upvoted 4 times
mtc9
1 year ago
Versioning will store 24*delta content of file which is comparable stirage to daily snapshot
upvoted 3 times
...
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago