You have an Azure Storage account named storage1. You need to allow containers to be created but prevent them from being deleted in storage1. What should you do?
Choose an answer
Tap an option to check your answer.
Correct answer: Create a delete lock for storage1..
Why this is the answer
Creating a delete lock for storage1 prevents anyone from deleting the storage account itself or any resources within it, including containers. This fulfills the requirement to prevent container deletion while still allowing container creation. A ReadOnly lock would prevent any modifications, including creating new containers, which is not desired. Enabling container soft delete or blob soft delete allows for recovery of deleted items but does not prevent the initial deletion operation from occurring. The requirement is to prevent deletion, not just to recover from it.
Pass your exam — without the endless answer hunt
Get every verified question and explanation for this exam in one place, and save hours of prep. 1,000+ certifications · 20+ languages · free to start.
Pass your exam faster → No card needed