QuestionQ179

VerifiedDevelop for Azure storage

HOTSPOT —

You are developing a solution that uses the Azure Storage Client library for .NET. The following code is used (line numbers are only for reference):

Question Image

For each of the following statements, select Yes if the statement is true. Otherwise, select No.

Yes or No
StatementsYesNo
The code creates an infinite lease
The code at line 06 always creates a new blob
The finally block releases the lease
Explanation

A null lease duration creates an infinite lease. Obtaining a block-blob reference does not create the blob. The finally block breaks any active source lease with a zero break period, making it available immediately.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!