Microsoft Certified: Azure Developer Associate (AZ-204)Develop for Azure storageMedium
A developer is building a .NET application that needs to interact with Azure Blob Storage to upload and download files. The application should leverage the latest features and best practices for interacting with Azure Storage. Which NuGet package should the developer use to achieve this?
- AMicrosoft.WindowsAzure.Storage
- BAzure.Storage.Blobs
- CMicrosoft.Azure.Storage.Blob
- DWindowsAzure.Storage
Show answer & explanationAnswer & explanation
Correct answer: B. Azure.Storage.Blobs
The `Azure.Storage.Blobs` NuGet package is part of the Azure SDK for .NET (version 12.x and later), which represents the latest generation of client libraries designed for modern .NET applications and best practices for Azure Storage interaction.
Why the other options are wrong
- A. Microsoft.WindowsAzure.Storage is an older, deprecated package.
- C. Microsoft.Azure.Storage.Blob is also an older, deprecated package (Azure Storage Client Library for .NET v11).
- D. WindowsAzure.Storage is an older, deprecated package.
Azure.Storage.Blobs NuGet Package
The `Azure.Storage.Blobs` NuGet package is the official and recommended client library for interacting with Azure Blob Storage from .NET applications. It is part of the Azure SDK for .NET (version 12.x and later), designed for modern C# features and improved usability.
- Latest generation of Azure Storage client libraries.
- Follows Azure SDK design guidelines.
- Provides asynchronous APIs.
- Supports various authentication methods.
- Replaces older `WindowsAzure.Storage` and `Microsoft.Azure.Storage.Blob` packages.
Memory trick: Azure.Storage.Blobs is the newest, the rest are just old news.