Develop solutions that use Blob storage Flashcards

1
Q

Blob storage is designed for

A

Serving images or documents directly to a browser.
Storing files for distributed access.
Streaming video and audio.
Writing to log files.
Storing data for backup and restore, disaster recovery, and archiving.
Storing data for analysis by an on-premises or Azure-hosted service.

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

Access tiers for block blob data

A

Hot access tier
Cool access tier
Cold access tier
Archive tier

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

Hot access tier

A

The Hot access tier, which is optimized for frequent access of objects in the storage account. The Hot tier has the highest storage costs, but the lowest access costs. New storage accounts are created in the hot tier by default.

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

Cool access tier

A

The Cool access tier, which is optimized for storing large amounts of data that is infrequently accessed and stored for a minimum of 30 days. The Cool tier has lower storage costs and higher access costs compared to the Hot tier.

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

Cold access tier

A

The Cold access tier, which is optimized for storing data that is infrequently accessed and stored for a minimum of 90 days. The cold tier has lower storage costs and higher access costs compared to the cool tier.

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

Archive tier

A

The Archive tier, which is available only for individual block blobs. The archive tier is optimized for data that can tolerate several hours of retrieval latency and remains in the Archive tier for a minimum 180 days. The archive tier is the most cost-effective option for storing data, but accessing that data is more expensive than accessing data in the hot or cool tiers.

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

Blob storage offers three types of resources:

A

The storage account.
A container in the storage account
A blob in a container

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

the default endpoint for Blob storage is:

A

http://mystorageaccount.blob.core.windows.net

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

rules when naming a container:

A

Container names can be between 3 and 63 characters long.
Container names must start with a letter or number, and can contain only lowercase letters, numbers, and the dash (-) character.
Two or more consecutive dash characters aren’t permitted in container names.

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

The URI for a container is similar to:

A

https://myaccount.blob.core.windows.net/mycontainer

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

Blobs - Azure Storage supports three types of blobs:

A

Block blobs store text and binary data. Block blobs are made up of blocks of data that can be managed individually. Block blobs can store up to about 190.7 TiB.

Append blobs are made up of blocks like block blobs, but are optimized for append operations. Append blobs are ideal for scenarios such as logging data from virtual machines.

Page blobs store random access files up to 8 TB in size. Page blobs store virtual hard drive (VHD) files and serve as disks for Azure virtual machines.

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

The URI for a blob is similar to:

A

https://myaccount.blob.core.windows.net/mycontainer/myblob

or

https://myaccount.blob.core.windows.net/mycontainer/myvirtualdirectory/myblob

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

data lifecycle management policy

A

Transition blobs from cool to hot immediately when accessed, to optimize for performance.

Transition current versions of a blob, previous versions of a blob, or blob snapshots to a cooler storage tier if these objects aren’t accessed or modified for a period of time, to optimize for cost.

Delete current versions of a blob, previous versions of a blob, or blob snapshots at the end of their lifecycles.

Apply rules to an entire storage account, to select containers, or to a subset of blobs using name prefixes or blob index tags as filters.

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

Rule filters

A

blobTypes - An array of predefined enum values.
prefixMatch - An array of strings for prefixes to be match. Each rule can define up to 10 prefixes. A prefix string must start with a container name.
blobIndexMatch - An array of dictionary values consisting of blob index tag key and value conditions to be matched. Each rule can define up to 10 blob index tag condition.

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

Rule actions

A

tierToCool
tierToCold
enableAutoTierToHotFromCool
tierToArchive
delete

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

If you define more than one action on the same blob

A

If you define more than one action on the same blob, lifecycle management applies the least expensive action to the blob. For example, action delete is cheaper than action tierToArchive. Action tierToArchive is cheaper than action tierToCool.

17
Q

Action run condition

A

daysAfterModificationGreaterThan
daysAfterCreationGreaterThan (snapshot)
daysAfterLastAccessTimeGreaterThan
daysAfterLastTierChangeGreaterThan (only for moving to Archive tier)

18
Q

You can add, edit, or remove Blob storage lifecycle policies by using any of the following methods:

A

Azure portal
Azure PowerShell
Azure CLI
REST APIs

19
Q

There are two options for rehydrating a blob that is stored in the archive tier:

A

Copy an archived blob to an online tier: You can rehydrate an archived blob by copying it to a new blob in the hot or cool tier with the Copy Blob or Copy Blob from URL operation. Microsoft recommends this option for most scenarios.

Change a blob’s access tier to an online tier: You can rehydrate an archived blob to hot or cool by changing its tier using the Set Blob Tier operation.

20
Q

Rehydration priority

A

Standard priority: The rehydration request is processed in the order it was received and might take up to 15 hours.
High priority: The rehydration request is prioritized over standard priority requests and might complete in under one hour for objects under 10 GB in size.

21
Q

To check the rehydration priority while the rehydration operation is underway

A

call Get Blob Properties to return the value of the x-ms-rehydrate-priority header. The rehydration priority property returns either Standard or High.

22
Q

packages contain the classes used to work with Blob Storage data resources:

A

Azure.Storage.Blobs: Contains the primary classes (client objects) that you can use to operate on the service, containers, and blobs.
Azure.Storage.Blobs.Specialized: Contains classes that you can use to perform operations specific to a blob type, such as block blobs.
Azure.Storage.Blobs.Models: All other utility classes, structures, and enumeration types.

23
Q

Create a client object

A

BlobServiceClient: Represents the client used to interact with the entire Azure Blob Storage account, allowing operations like listing containers or configuring account-level settings.

BlobContainerClient: Represents the client for a specific container within an Azure Blob Storage account, allowing operations like uploading, listing, or managing blobs within that container.

BlobClient: Represents the client for interacting with an individual blob in a container, enabling operations like uploading, downloading, or deleting that specific blob.

24
Q

The standard HTTP headers supported on blobs include:

A

ETag
Last-Modified
Content-Length
Content-Type
Content-MD5
Content-Encoding
Content-Language
Cache-Control
Origin
Range

25
Q
A