AZ-305 Design data storage solutions Practice Question
AdventureWorks is a global retailer with a cloud-native architecture. They have a microservices application deployed on Azure Kubernetes Service (AKS). Each microservice needs to store its own data. The data requirements vary: (1) Shopping cart service: key-value data with high write throughput and low latency, data can be lost if not critical; (2) Order service: transactional data with strong consistency and ACID compliance; (3) Product catalog service: semi-structured product data that supports complex queries and is globally distributed for low-latency reads. The solution must use Azure PaaS services and minimize operational overhead. You need to design the data storage for each microservice. What should you recommend?
⚠ Common exam trap
Many exam-takers assume Azure Cosmos DB can handle all workloads due to its multi-model nature, overlooking that it lacks native ACID compliance for transactional data and is overkill for simple key-value stores, while also forgetting that Azure Cache for Redis is a PaaS service suitable for high-throughput, loss-tolerant scenarios.
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 Cache for Redis for shopping cart, Azure SQL Database for orders, Azure Cosmos DB for product catalog.
Azure Cache for Redis provides a high-throughput, low-latency key-value store ideal for the shopping cart service where data loss is acceptable. Azure SQL Database offers full ACID compliance and strong consistency required for transactional order data. Azure Cosmos DB supports semi-structured data with global distribution and complex querying via its SQL API, meeting the product catalog's needs while minimizing operational overhead as a fully managed PaaS service.
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 all three services.
Why it's wrong here
While Azure Cosmos DB is a globally distributed, multi-model NoSQL database that offers low-latency reads and tunable consistency, it is not the best fit for every service. Order processing demands strong ACID transactions across multiple rows and tables, but Cosmos DB's transactional guarantees are limited to single-partition operations or stored procedures, and multi-partition transactions are not equivalent to a relational engine. For the shopping cart, Cosmos DB adds unnecessary cost and complexity compared to an in-memory cache, and its per-request latency, while low, is still not sub-millisecond like Redis. Therefore, using Cosmos DB for all three sacrifices transactional integrity and over-allocates a globally distributed store where a simpler, faster cache is appropriate.
- ✗
Azure Table Storage for shopping cart, Azure SQL Database for orders, Azure Cosmos DB for product catalog.
Why it's wrong here
Azure Table Storage is a durable NoSQL key-value store, but it is designed for cold or warm structured data rather than ultra-low-latency hot-path workloads. Shopping cart operations are high-frequency, write-heavy, and latency-sensitive; Table Storage typically incurs 5-10 ms predictable latency, and it lacks the in-memory data structures, TTL-based expiration, and session-caching features that Azure Cache for Redis provides. While assigning Azure SQL Database and Azure Cosmos DB for the other two services is reasonable, the shopping cart component would be the bottleneck, causing a sluggish checkout experience under load. Thus, the combination works only if the cart is small-scale or latency is not a strict requirement.
- ✓
Azure Cache for Redis for shopping cart, Azure SQL Database for orders, Azure Cosmos DB for product catalog.
Why this is correct
This combination correctly applies the polyglot persistence pattern to match each workload's access requirements. Azure Cache for Redis is an in-memory data store with sub-millisecond latency and built-in TTL, making it ideal for a transient, write-heavy shopping cart that must survive user sessions but not act as a durable system of record. Azure SQL Database provides full ACID compliance, relational integrity, and rich indexing, which are mandatory for order processing because every order transaction must be atomic and isolated. Azure Cosmos DB's flexible document model, tunable consistency levels, and global distribution allow a product catalog to be cached at edge regions and served with low latency while accommodating evolving product attributes. Together they address latency, consistency, and scalability where each technology is strongest.
- ✗
Azure SQL Database for all three services.
Why it's wrong here
Using Azure SQL Database for all three services would force a relational schema onto a shopping cart workload that is best modeled as a simple key-value store, causing unnecessary overhead for each add/update/delete. Azure SQL Database's performance is strong, but it does not offer the sub-millisecond, in-memory caching latencies that a high-write cart requires, and scaling it for that purpose is cost-inefficient. For the product catalog, a relational schema struggles with schema evolution and global distribution—features like multi-region writes are not native, and changing product attributes requires expensive schema migrations. While orders are a perfect fit for SQL, the cart and catalog requirements are better served by non-relational, distributed data stores.
Go deeper
Related to this question
About these practice questions
One of 795 original AZ-305 practice questions on Courseiva, each with a full explanation and wrong-answer analysis — not exam dumps or protected exam content. Learn why practice questions differ from exam dumps →
JA
Written by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
This AZ-305 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-305 exam.