Question 566 of 997
Develop for Azure storagehardMultiple ChoiceObjective-mapped

Quick Answer

Azure Table Storage is the correct choice because it is a NoSQL key-value store designed for high-volume structured data, making it ideal for azure table storage iot time series data scenarios. The PartitionKey (device ID) and RowKey (timestamp) enable efficient point queries by device ID and time range, while partition-scanned queries support aggregation like counting messages per device per hour. On the AZ-204 exam, this tests your ability to match storage solutions to access patterns—a common trap is choosing Cosmos DB for its aggregation features, but Table Storage is more cost-effective for millions of small 1-5 KB messages and requires no throughput provisioning. Remember the mnemonic “P-T-R” for PartitionKey, Timestamp, RowKey: the device ID partitions the data, and the timestamp orders it, giving you both fast lookups and range scans without overpaying.

AZ-204 Develop for Azure storage Practice Question

This AZ-204 practice question tests your understanding of develop for azure storage. Match the stated requirement to the specific cloud service, access model, or configuration option — many options are valid in isolation but not for this scenario. After answering, compare your reasoning against the explanation and wrong-answer breakdown below. Once you have made your selection, read the full explanation to reinforce the concept and understand why each distractor is designed to mislead on exam day.

You are designing a solution that requires storing millions of small (1-5 KB) messages from IoT devices. Each message has a unique device ID and timestamp. You need to support efficient point queries by device ID and time range, and also support aggregation queries (e.g., count of messages per device per hour). Which Azure storage solution should you use?

Question 1hardmultiple choice
Full question →

Answer choices

Why each option matters

Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.

Correct answer & explanation

Azure Table Storage

Azure Table Storage is the correct choice because it is a NoSQL key-value store optimized for storing large volumes of structured, non-relational data. It supports efficient point queries using the PartitionKey (device ID) and RowKey (timestamp), enabling fast retrieval by device ID and time range. Additionally, it allows aggregation queries like counting messages per device per hour via partition-scanned queries or client-side aggregation, and it is cost-effective for storing millions of small (1-5 KB) messages.

Key principle: Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • Azure Cosmos DB for NoSQL

    Why it's wrong here

    Cosmos DB is more expensive and feature-rich; Table Storage is simpler and sufficient for this scenario.

  • Azure Table Storage

    Why this is correct

    Table Storage supports efficient point queries and is cost-effective for small entities.

    Related concept

    Read the scenario before looking for a memorised answer.

  • Azure Queue Storage

    Why it's wrong here

    Queue Storage is for messaging, not for queryable storage.

  • Azure Blob Storage with JSON files

    Why it's wrong here

    Blob Storage is not optimized for small entities and point queries; it is better for large files.

Common exam traps

Common exam trap: answer the scenario, not the keyword

The trap here is that candidates often choose Azure Cosmos DB for NoSQL because of its query flexibility and indexing, overlooking the cost implications and the fact that Azure Table Storage provides sufficient query capabilities for simple key-value and range queries at a fraction of the cost.

Trap categories for this question

  • Scenario analysis trap

    Cosmos DB is more expensive and feature-rich; Table Storage is simpler and sufficient for this scenario.

Detailed technical explanation

How to think about this question

Azure Table Storage uses a schema-less design where each entity is identified by a PartitionKey and RowKey, forming a clustered index that enables O(1) lookups for exact matches and efficient range scans. For aggregation queries, you can leverage the Table Service REST API's $filter and $select parameters to count entities within a partition, or use Azure Functions with a timer trigger to batch-process hourly counts. A real-world scenario is ingesting telemetry from millions of sensors where each device sends a message every few seconds; Table Storage's low cost (per GB and per transaction) and high scalability (up to 20 TB per table) make it ideal for this pattern.

KKey Concepts to Remember

  • Read the scenario before looking for a memorised answer.
  • Find the constraint that changes the correct option.
  • Eliminate answers that are true in general but not in this case.

TExam Day Tips

  • Watch for words such as best, first, most likely and least administrative effort.
  • Review why wrong options are wrong, not only why the correct option is correct.

Key takeaway

Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option.

Real-world example

How this comes up in practice

A startup's cloud architect reviews their monthly bill and notices costs are higher than expected for a long-running batch job. Switching from on-demand instances to Reserved Instances — or using Spot/Preemptible VMs — can reduce compute costs by up to 72 %. Questions like this test whether you understand the tradeoffs between commitment, flexibility, and cost across cloud pricing models.

What to study next

Got this wrong? Here's your next step.

Identify which exam domain this question belongs to, review the core concept, then practise similar questions from the same domain.

Related practice questions

Related AZ-204 practice-question pages

Use these pages to review the topic behind this question. This is how one missed question becomes focused revision.

Practice this exam

Start a free AZ-204 practice session

Short sessions build daily habit. Longer sessions build exam-day stamina. Try a timed session to simulate real conditions.

FAQ

Questions learners often ask

What does this AZ-204 question test?

Develop for Azure storage — This question tests Develop for Azure storage — Read the scenario before looking for a memorised answer..

What is the correct answer to this question?

The correct answer is: Azure Table Storage — Azure Table Storage is the correct choice because it is a NoSQL key-value store optimized for storing large volumes of structured, non-relational data. It supports efficient point queries using the PartitionKey (device ID) and RowKey (timestamp), enabling fast retrieval by device ID and time range. Additionally, it allows aggregation queries like counting messages per device per hour via partition-scanned queries or client-side aggregation, and it is cost-effective for storing millions of small (1-5 KB) messages.

What should I do if I get this AZ-204 question wrong?

Identify which exam domain this question belongs to, review the core concept, then practise similar questions from the same domain.

What is the key concept behind this question?

Read the scenario before looking for a memorised answer.

About these practice questions

Courseiva creates original exam-style practice questions with explanations and wrong-answer analysis. It does not publish real exam questions, exam dumps, or protected exam content. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

Same concept, more angles

1 more ways this is tested on AZ-204

These questions test the same concept from different angles. Work through them to make sure you can recognise it however the exam phrases it.

Variation 1. You are developing an IoT solution that stores device metadata (device ID, location, firmware version, last seen timestamp) in Azure Table Storage. Each device has a unique DeviceId and a Timestamp. You need to design the PartitionKey and RowKey to optimize query performance for the following query: Retrieve all firmware versions for devices in a specific city that were last seen within the last 24 hours. The query must be efficient (partition scan minimized). Which key design is most appropriate?

medium
  • A.PartitionKey = City, RowKey = DeviceId_Timestamp (e.g., "device123_2023-10-01T12:00:00")
  • B.PartitionKey = City, RowKey = Inverted timestamp (e.g., DateTime.MaxValue.Ticks - Timestamp.Ticks)
  • C.PartitionKey = DeviceId, RowKey = Timestamp
  • D.PartitionKey = City, RowKey = DeviceId

Why B: Option B is correct because it uses City as the PartitionKey, ensuring all devices in the same city are in a single partition, and an inverted timestamp as the RowKey, which allows efficient range queries for the last 24 hours. Azure Table Storage sorts entities by RowKey within a partition, so querying for RowKey values greater than the inverted timestamp for 24 hours ago retrieves only the relevant rows without scanning the entire partition.

Last reviewed: Jun 24, 2026

Question Discussion

Share a tip, memory trick, or ask about the reasoning behind this question. Do not post real exam questions, leaked content, braindumps, or copyrighted exam material. Comments are moderated and may be removed without notice.

Loading comments…

Sign in to join the discussion.

This AZ-204 practice question is part of Courseiva's free Microsoft certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the AZ-204 exam.