Azure storage accounts Flashcards

1
Q

What is a storage account?

A

a unique namespace for your Azure Storage data that’s accessible from anywhere in the world over HTTP or HTTPS

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

What are the benefits of holding data in a storage account?

A

Data in this account is secure, highly available, durable, and massively scalable.

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

When you create your storage account, you’ll start by picking the storage account type. The type of account determines the storage services and redundancy options and has an impact on the use cases.

List out the redundancy options

A
  • Locally redundant storage (LRS)
  • Geo-redundant storage (GRS)
  • Read-access geo-redundant storage (RA-GRS)
  • Zone-redundant storage (ZRS)
  • Geo-zone-redundant storage (GZRS)
  • Read-access geo-zone-redundant storage (RA-GZRS)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

List the different types of storage accounts

A
  • Standard general-purpose v2
  • Premium block blobs
  • Premium file shares
  • Premium page blobs
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What are the supported services, redundancy options and use cases for:
Standard storage account type

A

Services:
Blob Storage (including Data Lake Storage), Queue Storage, Table Storage, and Azure Files

Redundancy options:
LRS, GRS, RA-GRS, ZRS, GZRS, RA-GZRS

Use cases:
It is recommended for most scenarios using Azure Storage. Use the premium file shares account type if you want support for the network file system (NFS) in Azure Files.

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

What are the supported services, redundancy options and use cases for:
Premium block blobs storage account type

A

Services:
Blob Storage (including Data Lake Storage)

Redundancy options:
LRS, ZRS

Use cases:
for block blobs and append blobs. Recommended for scenarios with high transaction rates, smaller objects, or requiring consistently low storage latency.

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

What are the supported services, redundancy options and use cases for:
Premium file shares storage account type

A

Services:
Azure Files

Redundancy options:
LRS, ZRS

Use cases:
Recommended for enterprise or high-performance scale applications. Use this account type if you want a storage account that supports both Server Message Block (SMB) and NFS file shares.

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

What are the supported services, redundancy options and use cases for:
Premium page blobs storage account type

A

Services:
Page Blobs only

Redundancy options:
LRS

Use cases:
Page Blobs

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

What forms the storage endpoints for your storage accounts?

A

The combination of the account name and the Azure Storage service endpoint forms the endpoints for your storage account.

One of the benefits of using an Azure Storage Account is having a unique namespace in Azure for your data. To do this, every storage account in Azure must have a unique-in-Azure account name.

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

When naming your storage account, keep these rules in mind:

A
  • Storage account names must be between 3 and 24 characters in length and may contain numbers and lowercase letters only.
  • Your storage account name must be unique within Azure.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

The endpoint format for Azure storage accounts is shown below:

https://<storage-account-name>.\_\_\_\_.core.windows.net</storage-account-name>

Fill in the blanks for each storage service after the storage account name

A

Blob Storage
https://<storage-account-name>.blob.core.windows.net</storage-account-name>

Data Lake Storage Gen2
https://<storage-account-name>.dfs.core.windows.net</storage-account-name>

Azure Files
https://<storage-account-name>.file.core.windows.net</storage-account-name>

Queue Storage
https://<storage-account-name>.queue.core.windows.net</storage-account-name>

Table Storage
https://<storage-account-name>.table.core.windows.net</storage-account-name>

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

What is the purpose of storage redundancy?

A

Redundancy ensures that your storage account meets its availability and durability targets even in the face of failures.

Azure Storage always stores multiple copies of your data so that it’s protected from planned and unplanned events such as transient hardware failures, network or power outages, and natural disasters.

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

When deciding which redundancy option is best for your scenario, consider the tradeoffs between lower costs and higher availability. The factors that help determine which redundancy option you should choose include:

A
  • How your data is replicated in the primary region.
  • Whether your data is replicated to a second region that is geographically distant to the primary region, to protect against regional disasters.
  • Whether your application requires read access to the replicated data in the secondary region if the primary region becomes unavailable.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Describe Redundancy in the primary region

A

Data in an Azure Storage account is always replicated three times in the primary region. Azure Storage offers two options for how your data is replicated in the primary region, locally redundant storage (LRS) and zone-redundant storage (ZRS).

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

Describe Locally redundant storage

A

Locally redundant storage (LRS) replicates your data three times within a single data centre in the primary region. LRS provides at least 11 nines of durability (99.999999999%) of objects over a given year.

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

What are the use cases and downsides of LRS?

A

LRS protects your data against server rack and drive failures. However, if a disaster such as fire or flooding occurs within the data centre, all replicas of a storage account using LRS may be lost or unrecoverable. To mitigate this risk, Microsoft recommends using zone-redundant storage (ZRS), geo-redundant storage (GRS), or geo-zone-redundant storage (GZRS).

LRS is the lowest-cost redundancy option and offers the least durability compared to other options.

17
Q

Describe Zone redundant storage

A

For Availability Zone-enabled Regions, zone-redundant storage (ZRS) replicates your Azure Storage data synchronously across three Azure availability zones in the primary region. ZRS offers durability for Azure Storage data objects of at least 12 nines (99.9999999999%) over a given year.

18
Q

when should you use ZRS and why?

A

Microsoft recommends using ZRS in the primary region for scenarios that require high availability. ZRS is also recommended for restricting replication of data within a country or region to meet data governance requirements.

With ZRS, your data is still accessible for both read and write operations even if a zone becomes unavailable. No remounting of Azure file shares from the connected clients is required. If a zone becomes unavailable, Azure undertakes networking updates, such as DNS repointing. These updates may affect your application if you access data before the updates have completed.

19
Q

Describe Redundancy in a secondary region

A

For applications requiring high durability, you can choose to additionally copy the data in your storage account to a secondary region that is hundreds of miles away from the primary region. If the data in your storage account is copied to a secondary region, then your data is durable even in the event of a catastrophic failure that prevents the data in the primary region from being recovered.

By default, data in the secondary region isn’t available for read or write access unless there’s a failover to the secondary region. If the primary region becomes unavailable, you can choose to fail over to the secondary region. After the failover has completed, the secondary region becomes the primary region, and you can again read and write data.

20
Q

Do you have much choice on your secondary region?

A

When you create a storage account, you select the primary region for the account. The paired secondary region is based on Azure Region Pairs, and can’t be changed.

21
Q

Azure Storage offers two options for copying your data to a secondary region. these are:

A

geo-redundant storage (GRS) and geo-zone-redundant storage (GZRS). GRS is similar to running LRS in two regions, and GZRS is similar to running ZRS in the primary region and LRS in the secondary region.

22
Q

Describe Geo-redundant storage

A

GRS copies your data synchronously three times within a single physical location in the primary region using LRS. It then copies your data asynchronously to a single physical location in the secondary region (the region pair) using LRS. GRS offers durability for Azure Storage data objects of at least 16 nines (99.99999999999999%) over a given year.

23
Q

Describe Geo-zone-redundant storage

A

GZRS combines the high availability provided by redundancy across availability zones with protection from regional outages provided by geo-replication. Data in a GZRS storage account is copied across three Azure availability zones in the primary region (similar to ZRS) and is also replicated to a secondary geographic region, using LRS, for protection from regional disasters. Microsoft recommends using GZRS for applications requiring maximum consistency, durability, and availability, excellent performance, and resilience for disaster recovery.

GZRS is designed to provide at least 16 nines (99.99999999999999%) of durability of objects over a given year.

24
Q

Describe Read access to data in the secondary region

A

Geo-redundant storage (with GRS or GZRS) replicates your data to another physical location in the secondary region to protect against regional outages. However, that data is available to be read only if the customer or Microsoft initiates a failover from the primary to secondary region. However, if you enable read access to the secondary region, your data is always available, even when the primary region is running optimally. For read access to the secondary region, enable read-access geo-redundant storage (RA-GRS) or read-access geo-zone-redundant storage (RA-GZRS).

25
Q

Can data ever be lost if there is a failover to the secondary region?

A

Because data is replicated to the secondary region asynchronously, a failure that affects the primary region may result in data loss if the primary region can’t be recovered. The interval between the most recent writes to the primary region and the last write to the secondary region is known as the recovery point objective (RPO). The RPO indicates the point in time to which data can be recovered. Azure Storage typically has an RPO of less than 15 minutes, although there’s currently no SLA on how long it takes to replicate data to the secondary region.

26
Q

The Azure Storage platform includes the following data services:

A

-Azure Blobs: A massively scalable object store for text and binary data. Also includes support for big data analytics through Data Lake Storage Gen2.
-Azure Files: Managed file shares for cloud or on-premises deployments.
-Azure Queues: A messaging store for reliable messaging between application components.
-Azure Disks: Block-level storage volumes for Azure VMs.
-Azure Tables: NoSQL table option for structured, non-relational data.

27
Q

Benefits of Azure Storage

A

-Durable and highly available: Redundancy ensures that your data is safe if transient hardware failures occur. You can also opt to replicate data across data centers or geographical regions. Data replicated in this way remains highly available if an unexpected outage occurs.

-Secure. All data written to an Azure storage account is encrypted by the service. Azure Storage provides you with fine-grained control over who has access to your data.

-Scalable. Azure Storage is designed to be massively scalable to meet the data storage and performance needs of today’s applications.

-Managed. Azure handles hardware maintenance, updates, and critical issues for you.

-Accessible. Data in Azure Storage is accessible from anywhere in the world over HTTP or HTTPS. Microsoft provides client libraries for Azure Storage in a variety of languages, including .NET, Java, Node.js, Python, PHP, Ruby, Go, and others, as well as a mature REST API. Azure Storage supports scripting in Azure PowerShell or Azure CLI. And the Azure portal and Azure Storage Explorer offer easy visual solutions for working with your data.

28
Q

What are Azure blobs?

A

Azure Blob storage is an object storage solution for the cloud. It can store massive amounts of data, such as text or binary data. Azure Blob storage is unstructured, meaning that there are no restrictions on the kinds of data it can hold. Blob storage can manage thousands of simultaneous uploads, massive amounts of video data, constantly growing log files, and can be reached from anywhere with an internet connection.

Blobs aren’t limited to common file formats. A blob could contain gigabytes of binary data streamed from a scientific instrument, an encrypted message for another application, or data in a custom format for an app you’re developing. One advantage of blob storage over disk storage is that it doesn’t require developers to think about or manage disks. Data is uploaded as blobs, and Azure takes care of the physical storage needs.

29
Q

Blob storage is ideal for?

A

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

30
Q

How do we access blob storage?

A

Objects in blob storage can be accessed from anywhere in the world via HTTP or HTTPS. Users or client applications can access blobs via URLs, the Azure Storage REST API, Azure PowerShell, Azure CLI, or an Azure Storage client library. The storage client libraries are available for multiple languages, including .NET, Java, Node.js, Python, PHP, and Ruby.

31
Q
A