exam questions

Exam AZ-204 All Questions

View all questions & answers for the AZ-204 exam

Exam AZ-204 topic 3 question 32 discussion

Actual exam question from Microsoft's AZ-204
Question #: 32
Topic #: 3
[All AZ-204 Questions]

HOTSPOT -
An organization deploys a blob storage account. Users take multiple snapshots of the blob storage account over time.
You need to delete all snapshots of the blob storage account. You must not delete the blob storage account itself.
How should you complete the code segment? To answer, select the appropriate options in the answer area.
NOTE: Each correct selection is worth one point.
Hot Area:

Show Suggested Answer Hide Answer
Suggested Answer:
Box 1: delete_snapshots -
# Delete only the snapshot (blob itself is retained)
blob_client.delete_blob(delete_snapshots="only")

Box 2: only -
Reference:
https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/storage/azure-storage-blob/samples/blob_samples_common.py

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 2 years, 2 months ago
So, according to Microsoft a developer has to remember how the Microsoft guy chose to write in the .Net library and also how the python person thought and the unfortunate inconsistencies they built into these APIs?
upvoted 36 times
toysky731
1 year, 11 months ago
or you can retake the exam?
upvoted 4 times
bbq598
1 year, 11 months ago
haha I think you are right
upvoted 1 times
...
...
Jarynpl
1 year, 1 month ago
I've read somewhere that before starting an exam you select in which language you are programming. Based on that you will get customize language questions/answers.
upvoted 3 times
...
...
ElectricPants
Highly Voted 2 years, 2 months ago
The answer looks correct and the link proves it: Link to exact line with comment: https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/storage/azure-storage-blob/samples/blob_samples_common.py#L65
upvoted 18 times
...
bgbgvfvf
Most Recent 11 months, 2 weeks ago
I think given answer is correct.
upvoted 1 times
...
Pulk
1 year, 1 month ago
given answers are correct.
upvoted 1 times
...
Esward
1 year, 10 months ago
Given answers are correct https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/storage/azure-storage-blob/samples/blob_samples_common.py
upvoted 1 times
...
gvasilev
1 year, 11 months ago
Ah yes my favorite thing as developer - to remember what is something doing instead of google it.. lmao nice "exam" micro$oft
upvoted 5 times
...
Enigma___
2 years, 2 months ago
Correct Required if the blob has associated snapshots. Values include: "only": Deletes only the blobs snapshots. "include": Deletes the blob along with all snapshots. https://learn.microsoft.com/en-us/azure/developer/python/sdk/storage/azure-storage-blob/azure.storage.blob.containerclient?view=storage-py-v12
upvoted 4 times
...
LucasSomeone1
2 years, 2 months ago
Weird comments. When there is only 1 or 2 comments, everyone is saying examtopics is correct...
upvoted 5 times
...
kampatra
2 years, 2 months ago
Correct!
upvoted 2 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 ...