Launch price: every exam for $29.99 a year, for the first 300 buyers. See the price

CertStreak
Menu

Evaluating and configuring appropriate throughput

A worked example

Yes or no

An Azure Cosmos DB for NoSQL account has only one Azure region, which is its write region. Its orders container currently uses standard (manual) throughput of 10,000 RU/s.

The team is considering switching orders to autoscale with a maximum of 10,000 RU/s. Measurements of total RU consumption across all physical partitions over a typical day show the following:

  • For 16 hours, peak consumed throughput in each hour is 10,000 RU/s.
  • For the other 8 hours, the container receives no requests.

Compare throughput charges only. Ignore storage costs and any reserved-capacity discounts.

For each of the following statements, select Yes if the statement is true. Otherwise, select No.

StatementYesNo
With autoscale, each of the 8 idle hours is billed at 1,000 RU/s.

Autoscale billing has a floor of 10% of the configured maximum, even when the container is idle. With a 10,000 RU/s maximum, each idle hour is billed at 1,000 RU/s, not at zero.

Correct
For this traffic pattern, autoscale with a 10,000 RU/s maximum has a lower daily throughput cost than standard throughput of 10,000 RU/s.

Autoscale bills 16 × 10,000 + 8 × 1,000 = 168,000 RU/s-hours. In a single-write-region account these are charged at 1.5 times the standard rate, which equals 252,000 standard RU/s-hours. Standard throughput costs 24 × 10,000 = 240,000 RU/s-hours. The average billable hourly throughput is 7,000 RU/s, which is 70% of the manual value and above the roughly 66% break-even point, so standard throughput is cheaper.

Correct
If the account were configured with multiple write regions, autoscale and standard throughput would be billed at the same rate per 100 RU/s.

The source specifies a 1.5-times autoscale price multiplier for single-write-region accounts. For multi-write accounts, both throughput models use the same price for each 100 RU/s.

Correct
Why

Autoscale billing uses the highest throughput reached in each hour, and it never goes below 10% of the maximum. In a single-write-region account, autoscale is charged at 1.5 times the standard rate per 100 RU/s. Here the busy hours plus the 1,000 RU/s idle floor give an average billable throughput of 70% of the manual value, so autoscale costs more than standard throughput. With multiple write regions, the two models have the same rate per 100 RU/s.

Practise this topic until it's automatic.

Ten questions a day, every answer explained, and misses that come back until you beat them.

Start free