Azure Storage Ecosystem 8 Flashcards

1
Q

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

A

b) Create a storage account

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

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

A

b) To interact with the storage account and manage containers

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

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

A

b) To interact with a specific container and its blobs

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

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

a) To manage individual blobs

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

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

A

b) To upload a file to a blob

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

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

A

c) To list all blobs in a container

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

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

A

c) To download a blob to a stream

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

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

A

c) To add or retrieve metadata for a blob

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

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

A

c) To delete a blob if it exists

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

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

a) To create a new container

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

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

A

b) To list all containers in a storage account

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

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

A

b) To overwrite an existing blob if it exists

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

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

A

b) To read the file into memory before uploading

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

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

A

b) To read the file into a byte array

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

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

A

b) To create a new file on the local filesystem

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

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

A

b) To get the current working directory of the application

17
Q

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

A

b) To iterate through all blobs in a container

18
Q

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

A

b) To print the name and properties of each blob to the console

19
Q

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

A

b) To delete a container if it exists