You are developing a .NET application using the Azure.Storage.Blobs SDK. You need to copy a blob from a source URI to a destination container using the following code:
csharp
// destinationClient is a BlobClient pointing to the target blob path
// sourceUri is the Uri of the source blob
await destinationClient._______(sourceUri);
Which method should you use to fill the blank to initiate the copy operation asynchronously?
- AUploadAsync
- StartCopyFromUriAsyncAnswer
- CAcquireLeaseAsync
- DGetPropertiesAsync
Answer
StartCopyFromUriAsync is the correct method to asynchronously copy a blob from a source URI.
The method StartCopyFromUriAsync is correct because it is the standard method in the Azure.Storage.Blobs SDK (BlobClient class) designed to start copy operations from a source URI asynchronously.
Step-by-Step Solution
Key Concept
Asynchronous blob copying using the Azure.Storage.Blobs .NET SDK
Estimated Time:45s