Lesson 4 of 5 Unstructured Data Solutions

Balancing Storage Features, Performance and Cost

This lesson gives a sequence for reasoning through a storage design.

Learning outcomes

After completing this lesson, you will be able to:

  • Apply a decision sequence to a storage requirement.
  • Explain when premium storage can cost less.
  • Compare storage authorization methods.

A decision sequence

Storage decisions interact, so it helps to make them in a fixed order. First, identify how the application reaches its data, which determines the service. Second, establish durability and availability requirements, which determine redundancy. Third, determine the performance needed, which determines standard or premium. Finally, examine access frequency, which determines the access tier. Selecting a tier first can lead to a dead end: Archive, for example, rules out ZRS.

  1. Access method

    Object API, SMB or NFS, or a block device selects the service.

  2. Durability and availability

    The failures the data must survive select the redundancy option.

  3. Performance

    Latency and transaction needs select standard or premium.

  4. Access pattern

    How often data is read selects the access tier and lifecycle policy.

The following diagram follows the reasoning sequence from a workload's requirements to a storage account type.

Reasoning step by step through storage for millions of 4 KB sensor writes an hour. An object API points to Blob Storage; data that can be regenerated upstream needs no regional copy, so LRS or ZRS suffices; and many small, latency-sensitive writes make transaction cost dominant, which favours a premium block blob account.
The scenario is illustrative.

Standard or premium performance

Premium storage uses SSDs and charges more for capacity, but it has much lower latency, and its transaction costs can be lower. Transaction-heavy workloads with many small objects can actually cost less on premium block blobs than on standard, because the savings on transactions outweigh the higher storage price. An architect should therefore calculate both sides of the bill, and not assume that premium is always more expensive.

Cost models should include all charges: capacity, transactions, data retrieval, geo-replication traffic and egress. A lower capacity price in Archive may be undone by rehydration fees if the data is read frequently.

True or false

Premium is not always dearer

Exam skills 2.2.3

Check the cost reasoning behind standard and premium storage.

Log in to try this activity Interactive activities are free with an account.

Securing access to storage

Requests to storage can be authorized in several ways. Microsoft Entra ID with Azure RBAC is the recommended method, as it has no shared secret to leak, and is the method to pair with managed identities. Shared access signatures (SAS) grant limited, time-bound access to specific resources. A user delegation SAS is signed with Microsoft Entra credentials, and is more secure than one signed with an account key. Account keys give full access, and should be disabled where possible through the setting that disallows shared key authorization.

Network access should be limited too. Private endpoints give a storage account a private IP address in a virtual network, and public network access can be disabled. Service endpoints are a simpler alternative for traffic from within a virtual network, but Microsoft recommends private endpoints. Anonymous blob access should be disallowed at account level unless a public website needs it.

Scenario questions

Authorizing storage requests

Exam skills 2.2.3

Choose the most secure way to authorize access in each case.

Log in to try this activity Interactive activities are free with an account.

Revoking shared access signatures

A SAS cannot be withdrawn on its own once it has been issued, so the design must decide in advance how it would be revoked. The method depends on how the SAS is signed.

  • A service SAS can be bound to a stored access policy on a container, file share, queue or table. The policy holds the start time, expiry and permissions, so changing or deleting the policy changes or revokes every SAS bound to it. Each container, share, queue or table can hold up to five stored access policies.
  • A user delegation SAS is revoked by revoking the user delegation keys of the account, or by removing the role assignment of the identity that requested the key. Stored access policies do not apply to it, and it is valid for at most seven days.
  • An account SAS, or a service SAS without a stored access policy, can be revoked only by rotating the account key that signed it, which also breaks every other client that uses that key.

Stored access policies support only a service SAS, not an account SAS or a user delegation SAS. A requirement to issue SAS tokens to partners and to revoke them individually without rotating keys therefore points to a service SAS with a stored access policy, or, where Microsoft Entra credentials are available, to a short-lived user delegation SAS.

Sort into groups

How is this SAS revoked?

Exam skills 2.2.3

Decide how each kind of shared access signature is revoked.

Log in to try this activity Interactive activities are free with an account.

Further cost levers

Several additional features reduce cost. Reserved capacity for Blob Storage and Azure Files gives a discount for a one-year or three-year commitment. Lifecycle rules can delete old versions and snapshots, which can quietly grow. Avoiding unnecessary geo-redundancy is also significant: GZRS costs considerably more than LRS, so non-critical, reproducible data such as temporary processing output can usually use cheaper redundancy.

A worked cost comparison

An example shows why capacity price alone misleads. Suppose a workload stores 10 TB and reads every object once a day. In the Hot tier, capacity costs the most but reads are cheap. In the Archive tier, capacity is very cheap, but each read needs rehydration and a retrieval charge, so a daily read of all objects would quickly cost far more than Hot, and would also fail on time. Conversely, 10 TB read once a year is far cheaper in Archive, even after the occasional retrieval charge.

The break-even point depends on current prices, which change, so a real design should use the Azure pricing calculator with estimates of capacity, transactions and retrieval volume. What the exam tests is the reasoning: tier by how often data is read, and include minimum retention periods, since moving a blob out of Archive after 30 days still incurs charges for the remaining 150 days.

Reservations, redundancy and hidden costs

Beyond tiers, several smaller decisions affect the bill. Data transfer between regions is charged, so a design that places compute in one region and storage in another pays for each read, as well as adding latency. GRS and GZRS charge for replicating writes, so a write-heavy, reproducible dataset may not justify them. Snapshots, old blob versions and soft-deleted data all count as stored capacity, and they often explain an unexpectedly large bill.

Monitoring supports these decisions. Azure Storage insights shows capacity and transactions, and blob inventory reports what exists by tier, age and size, which helps a team to choose lifecycle rules from evidence. Microsoft Cost Management then shows the result of a change, so that a storage design can be reviewed and refined over time rather than decided once.

Worked example

Reasoning through a storage design

An IoT company stores sensor readings as 4 KB blobs, with millions of writes each hour. Data is analysed for seven days, then kept for two years, seldom read. It can be regenerated from an upstream system in an emergency. Analytics need low latency. What storage design should you recommend?

Following the sequence, an object API points to Blob Storage. As data can be regenerated, regional protection is unnecessary, so LRS or ZRS is sufficient. Millions of small writes require low latency, and they make transaction cost dominant, so a premium block blob account is the likely choice for the hot data.

After seven days, older blobs should be copied to a standard general-purpose v2 account in the Cool or Cold tier, because premium accounts do not offer access tiers. A standard account in Hot would have higher transaction costs for this write pattern, and GZRS would pay for protection that the data does not need.

Check yourself

Why decide on redundancy before the access tier?

Show answer

Redundancy can limit the tiers available: Archive, for example, is unavailable on ZRS and GZRS accounts.

Exam Tips

Remember for the exam

  • Decide in order: access method, redundancy, performance, access tier.
  • Premium block blobs can be cheaper for transaction-heavy workloads.
  • Prefer Microsoft Entra authorization; a user delegation SAS is safer than an account key SAS.
  • Consider retrieval and egress charges as well as capacity.