Azure Storage Ecosystem 8 Flashcards
What is the first step in working with Azure Storage using the .NET SDK?
a) Create a container
b) Create a storage account
c) Upload a blob
d) Download a blob
b) Create a storage account
What is the purpose of the BlobServiceClient class in the Azure Storage SDK?
a) To manage individual blobs
b) To interact with the storage account and manage containers
c) To upload files to a container
d) To delete blobs
b) To interact with the storage account and manage containers
What is the purpose of the BlobContainerClient class in the Azure Storage SDK?
a) To manage individual blobs
b) To interact with a specific container and its blobs
c) To upload files to a container
d) To delete blobs
b) To interact with a specific container and its blobs
What is the purpose of the BlobClient class in the Azure Storage SDK?
a) To manage individual blobs
b) To interact with a specific container and its blobs
c) To upload files to a container
d) To delete blobs
a) To manage individual blobs
What is the purpose of the Upload method in the Azure Storage SDK?
a) To create a new container
b) To upload a file to a blob
c) To list all blobs in a container
d) To delete a blob
b) To upload a file to a blob
What is the purpose of the GetBlobs method in the Azure Storage SDK?
a) To create a new container
b) To upload a file to a blob
c) To list all blobs in a container
d) To delete a blob
c) To list all blobs in a container
What is the purpose of the DownloadTo method in the Azure Storage SDK?
a) To create a new container
b) To upload a file to a blob
c) To download a blob to a stream
d) To delete a blob
c) To download a blob to a stream
What is the purpose of the Metadata property in the Azure Storage SDK?
a) To create a new container
b) To upload a file to a blob
c) To add or retrieve metadata for a blob
d) To delete a blob
c) To add or retrieve metadata for a blob
What is the purpose of the DeleteIfExists method in the Azure Storage SDK?
a) To create a new container
b) To upload a file to a blob
c) To delete a blob if it exists
d) To list all blobs in a container
c) To delete a blob if it exists
What is the purpose of the CreateBlobContainer method in the Azure Storage SDK?
a) To create a new container
b) To upload a file to a blob
c) To delete a blob
d) To list all blobs in a container
a) To create a new container
What is the purpose of the GetBlobContainers method in the Azure Storage SDK?
a) To create a new container
b) To list all containers in a storage account
c) To upload a file to a blob
d) To delete a blob
b) To list all containers in a storage account
What is the purpose of the overwrite parameter in the Upload method of the Azure Storage SDK?
a) To create a new container
b) To overwrite an existing blob if it exists
c) To list all blobs in a container
d) To delete a blob
b) To overwrite an existing blob if it exists
What is the purpose of the MemoryStream class in the context of uploading a blob?
a) To create a new container
b) To read the file into memory before uploading
c) To list all blobs in a container
d) To delete a blob
b) To read the file into memory before uploading
What is the purpose of the File.ReadAllBytes method in the context of uploading a blob?
a) To create a new container
b) To read the file into a byte array
c) To list all blobs in a container
d) To delete a blob
b) To read the file into a byte array
What is the purpose of the File.Create method in the context of downloading a blob?
a) To create a new container
b) To create a new file on the local filesystem
c) To list all blobs in a container
d) To delete a blob
b) To create a new file on the local filesystem
What is the purpose of the Environment.CurrentDirectory property in the context of downloading a blob?
a) To create a new container
b) To get the current working directory of the application
c) To list all blobs in a container
d) To delete a blob
b) To get the current working directory of the application
What is the purpose of the foreach loop in the context of listing blobs?
a) To create a new container
b) To iterate through all blobs in a container
c) To upload a file to a blob
d) To delete a blob
b) To iterate through all blobs in a container
What is the purpose of the Console.WriteLine method in the context of listing blobs?
a) To create a new container
b) To print the name and properties of each blob to the console
c) To upload a file to a blob
d) To delete a blob
b) To print the name and properties of each blob to the console
What is the purpose of the DeleteIfExists method in the context of deleting a container?
a) To create a new container
b) To delete a container if it exists
c) To upload a file to a blob
d) To list all blobs in a container
b) To delete a container if it exists