Work with Azure Blob Storage Flashcards

1
Q

What are azure client libraries?

A
  • offer interface for making calls to AZ storage
  • latest version is 12.x
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What classes do the az client libraries include?

A
  • BlobServiceClient = represents SA
  • BlobContainerClient = represents specific container
  • BlobClient = represents specififc blob
  • AppendBlobClient = append blob
  • BlockBlocClient = block blob
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What packages container the classes used to work with blob storage data resources?

A
  • Azure.Storage.Blobs = primary classes that you can use to operate on the service, containers and blobs
  • Azure.Storage.Blobs.Specialised = classes that you can use to perform operations specific to a blob type such as block blobs
  • Azure.Storage,Blobs.Models = utility classes, enums etc
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is a client object?

A
  • Working with any AZ resource using the SDK starts with creating client object
  • you pass a URI referencing the endpoint to the client ctor
  • endpoint can be constructed manually or queried for at runtime
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What are system properties in blob containers?

A
  • exist on each blob storage resource
  • read, set or read only
  • some properties correspond to certain standard HTTP headers
  • client library for .NET maintains properties for you
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is user defined metadata for blob containers?

A
  • one or more name-value pairs that you specify for blob storage resource
  • can store additional values with the resource
  • for your own purposes only and do not affect how resource behaves
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What rules must metadata name/value pairs adhere to?

A
  • valid HTTP headers so should adhere to all restrictions governing headers
  • must be valid HTTP header names and valid C# identifiers
  • may contain only ASCII chars and should be treated as case-insensitive
  • can contain non ASCII chars if they are base64 or URL encoded
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

How can metadata headers be set on REST APIs?

A
  • Can be set on a request that creates a new container or blob resource or on a request that explicitly creates a property on an existing resource
  • total size of all pairs can be up to 8KB
  • can only be read or written to in full, no partial updates
  • GET/HEAD operation returns headers for specified container or blob
  • PUT sets metadata on resource, overwriting existing metadata and if its called without any headers on the request it clears all existing metadata on the resource
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What is the difference between standard HTTP properties and metadata?

A
  • metadata headers are named with prefix x-ms-meta- and a custom nameW
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What standard HTTP properties are supported on containers?

A
  • Etag
  • Last-modified
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What standard HTTP properties are supported on blobs?

A
  • Etag
  • Last-modified
  • content-length
  • content-type
    -content-MD5
  • content-encoding
  • content-language
    -cache-control
    -origin
    -range
How well did you know this?
1
Not at all
2
3
4
5
Perfectly