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

CertStreak
Menu

Estimate workload cost requirements

A worked example

Yes or no

A team is estimating the monthly cost of a new container in a single-region Azure Cosmos DB for NoSQL account. The account's default consistency level is Strong, and requests use the default.

  • At peak, the application performs 1,500 point reads per second, each reading a price-list item of about 1 KB by its ID and partition key.
  • The team measured the create charge by inserting the five smallest products in the catalog, which are about 0.5 KB each. Most writes at peak will be for the largest products, which are about 8 KB each.
  • The container will use autoscale throughput. It is expected to hold about 400 GB of combined data and index storage.

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

StatementYesNo
At peak, the point reads alone should be estimated at about 1,500 RU/s.

A point read of a 1-KB item costs about 1 RU only under session, consistent prefix or eventual consistency. Strong consistency doubles the read charge. At about 2 RU per read, 1,500 reads per second come to about 3,000 RU/s. The same statement would be true under session consistency.

Correct
The team should measure create charges on a sample that reflects the mix of product sizes written at peak.

Write charges rise with item size. A charge measured on the smallest products underestimates a workload dominated by the largest ones, and here most peak writes are for 8-KB products.

Correct
Even if the workload estimate comes to 3,000 RU/s, the team should budget for an autoscale max of at least 4,000 RU/s once the container holds 400 GB.

The minimum autoscale max RU/s is the largest of three values: 1,000 RU/s, current storage in GB × 10 RU/s, and the highest RU/s ever provisioned ÷ 10. With 400 GB, the storage term alone is 4,000 RU/s. With manual throughput, the storage term would be only 400 RU/s (1 RU/s per GB).

Correct
Why

The 1-RU anchor for a 1-KB point read applies to session, consistent prefix and eventual consistency. Strong consistency doubles the read charge, so the reads need about 3,000 RU/s, not 1,500 RU/s. Charges should be measured on a representative sample, because write cost rises with item size and a charge taken from the smallest items underestimates a workload dominated by large items. For autoscale, the minimum max RU/s includes a storage term of 10 RU/s per GB. At 400 GB, the configured autoscale maximum must be at least 4,000 RU/s regardless of the request-based estimate.

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