Azure Storage Flashcards
Focused on flash cards for Azure Storage
What types of storage is available in Azure?
- (LRS) Locally redundant storage (Single DC)
- (ZRS) Zone redundant storage (Multiple DC in the region)
- (GRS) Geo-redundant storage (Multiple DC in region + secondary DC)
- (RA-GRS) Read access geo-redundant storage
- (RA-GZRS) Read access geo-zone -redundant storage
When you provision storage what types of storage do you get?
- File share (SMB)
- Table storage
- Queues
- Containers (Object/BLOB)
What is container storage?
This is object/blob storage and is used for unstructured data.
What is Azure file share storage?
SMB and NFS
I need to provide file share for 10 Linux servers, as Azure only supports SMB storage, do I need to provide a highly available Linux NFS server to act as a file share?
No, Azure supports NFS natively as part of Azure storage (File share NFS).
What are the available accesstiers for blob storage?
- Hot for frequent access
- Cold for data not accessed often
- Archive for data thet can tolerate retrieval latency of several hours
Can I have a two storage accounts called keith01?
No the storage account name has to be unique
Explain LRS?
Local redundant storage
Explan how LRS data is replicated?
LRS is replicated 3 time in a single data center in a region
Explain ZRS?
Zone redundant storage
Explain how ZRS is replicated?
ZRS is replicated 3 time with in a single region
How may 9 of durability has blob storage in azure?
11 x 9s
Explain GRS?
Global resundant storage
Explain how GRS is replicated?
Data is replicate 3 time with in a region to 3 data centers and to a secondary data center called secondary.
When using GRS can I get accesss to the secondary region copy of the data?
No, it is used ny MS if these is a issues with primary copys to restore form. There is a option to use RGRS and this way you can access the secondary copy fro read lonely access
What is RGRS?
Same as GRS but with the ability to read the secondary copy of the data in the secondary region.
What is an access tier?
It is the type opf storage,
Hot
Cold
Archive
What is a preformanc tier?
Preformance tier allows you to select the performance of the storage to suit your application,
- Premium: optimized for high transaction rates and single-digit consistent storage latency
- Standard: optimized for high capacity and high throughput
I need single digit latency and consistances storage, what opetion do i have for Azure storage?
Premium: optimized for high transaction rates and single-digit consistent storage latency
I require object storage, but do not require single digit latency, what is my bets option?
Standard: optimized for high capacity and high throughput
List AccountKind’s available in Azure Storage?
3 storage accont types,
- General purpus v2
- General purups v1
- Blob sorage
Can I have table storage in blob storage account type?
No only block storage
Has general purpus v1 got storage tiers?
No, they do not have hot, cold or archive access tiers.
When would i used general purpus v1 storage ?
To support clasic azure service manager, but this is all starting to be retired. General purpose v2 has all the same functionality of v1 with all the additions. Latest features will be applied to v2 only.
What is the container access levels available?
- No public read access: The container and its blobs can be accessed only with an authorized request. This option is the default for all new containers.
- Public read access for blobs only: Blobs within the container can be read by anonymous request, but container data is not available anonymously. Anonymous clients cannot enumerate the blobs within the container.
- Public read access for container and its blobs: Container and blob data can be read by anonymous request, except for container permission settings and container metadata. Clients can enumerate blobs within the container by anonymous request, but cannot enumerate containers within the storage account.
I wnat to write to a blob, how cna i ensure n o one else writes to the blob at the same time?
You can acquire a lease, you can renew, change or break lease using the lease ID.
Can a container have only one type of data tier?
No, data tier is set per blob/objetc.
How cna i make a file public available using azure storage?
You can upload the file to a container,. make the file publically available and the file is accessible over the web.
When writing to blob storage, what options do you have?
- block blob
- append blob
- page blob
Explain block blob?
Block blobs are optimized for uploading large amounts of data efficiently. Block blobs are comprised of blocks, each of which is identified by a block ID. A block blob can include up to 50,000 blocks. Each block in a block blob can be a different size, up to the maximum size permitted for the service version in use. To create or modify a block blob, write a set of blocks via the Put Block operation and then commit the blocks to a blob with the Put Block List operation.
Explain append blob?
An append blob is comprised of blocks and is optimized for append operations. When you modify an append blob, blocks are added to the end of the blob only, via the Append Block operation. Updating or deleting of existing blocks is not supported. Unlike a block blob, an append blob does not expose its block IDs.
Explain page blob?
Page blobs are a collection of 512-byte pages optimized for random read and write operations. To create a page blob, you initialize the page blob and specify the maximum size the page blob will grow. To add or update the contents of a page blob, you write a page or pages by specifying an offset and a range that align to 512-byte page boundaries. A write to a page blob can overwrite just one page, some pages, or up to 4 MiB of the page blob. Writes to page blobs happen in-place and are immediately committed to the blob. The maximum size for a page blob is 8 TiB.
I need to add styatic content for my web site, what Iare my options?
You cna use Azure storage and there is a option in side menu to enable static content hosting, you select the same of the index file and also create a folder called $web to place your content in.
What is a the storgae preformance tier?
It defines the preformance of the storage,
Standared : Is backed by magnetic drives
Prenium : Is backed by SSD
When would you used Standared preformance tier?
When you need general purpus storage and lowe sustained transactions.
When would you used Prenium preformance tier?
When you need sustained higher numbers of transactions. Can only be used with VM, you would use them for Databases for example
I wnat to use GRS with Prenium storage for a database, how do I set this up?
You cant, prenium storage is only supported using LRS (local storage)
Can I use append blobs with prenium storage?
No, you cna only use page blobs with premium storage.
Can you change the preformance tier after the storage account is created?
No
When I set the access tier on a container what am i doing?
You are only setting the default, when it comes to writing the blob you can overide the access tier.
I need to ensure my container blobs are not altered for a time period, a legal hold?
Azure storage has ‘imutable blob storage’ as part of access policy. This enables you to set a time frame where the objects in the blob can not ba altered.
I need to ensure my container blobs are not altered for a time period or for ever?
Azure storage has ‘imutable blob storage’ as part of access policy. This enables you to set a time frame where the objects in the blob can not ba altered. This can be until legal host is removedwith legal host or time based
What is an access policy?
There are two types of access policies
- Time based (for a period)
- Legal hold (until legal hold is removed)
What are the options for securing a storage account?
- Access keys
- Account SAS
- Service SAS
What is a access key?
Access keys are automaticaly created when the storage account is created and you use this key with REST API to access the container. You get two access kleys by default.
What privelages do you get with access keys?
You get root level access to the storage account the key is belong to.
Are access keys recomended?
No, b ecause they give you root level access to the storage account, breaks the best practice of least preveladge.