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

CertStreak
Menu

Recommend a solution for storing semi-structured data

A worked example

Match

A logistics company stores semi-structured entity data in tables keyed by PartitionKey and RowKey. The company wants to control cost and complexity.

Design rule: choose Azure Table Storage unless a requirement can only be met by Azure Cosmos DB for Table.

WorkloadRequirements
ADevice registry read only by PartitionKey and RowKey. One region with an optional readable secondary meets availability goals. Peak load is modest.
BProduct catalog queries filter on the Category and Price properties and must use indexes instead of scanning the table.
CPlayers on five continents need local reads from replicas of the same table data in five chosen Azure regions.
DA high-volume ingestion workload requires dedicated provisioned throughput for each table while retaining the existing table data model and SDK operations.
EShipment status rows read by key only. Strong consistency in the primary region is sufficient, and no global distribution is needed.

Match each workload to the service you should recommend. Each service can be used once, more than once, or not at all.

  • Correct match: Azure Table Storage.

    Key-only lookups, modest throughput, and one region with an optional readable secondary fit Table Storage capabilities. The design rule therefore favors Table Storage.

  • Correct match: Azure Cosmos DB for Table.

    Table Storage indexes only PartitionKey and RowKey and scans for other filters. Cosmos DB for Table automatically indexes every property, so filters on Category and Price can use indexes.

  • Correct match: Azure Cosmos DB for Table.

    Cosmos DB for Table supports replication across multiple selected Azure regions. Table Storage offers a primary region and an optional readable secondary, which cannot meet the five-region requirement.

  • Correct match: Azure Cosmos DB for Table.

    Cosmos DB for Table offers dedicated provisioned throughput per table and shares Table Storage's data model and SDK operations. Table Storage's variable throughput model does not provide the requested dedicated provisioned throughput.

  • Correct match: Azure Table Storage.

    Table Storage provides strong consistency within its primary region and supports key lookups. No requirement needs Cosmos DB for Table, so the design rule keeps this workload on Table Storage.

Why

Azure Table Storage and Azure Cosmos DB for Table share a table data model and SDK operations. Cosmos DB for Table adds automatic property indexing, distribution across multiple selected regions, and dedicated provisioned throughput per table. Under the stated design rule, these requirements justify Cosmos DB for Table for workloads B, C, and D. Workloads A and E can use Table Storage.

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