AZ-305 Practice Set: Design data storage solutions
Practice Design data storage solutions for the Azure Solutions Architect – Expert (AZ-305) exam with the 5 questions below. It carries about 22.5% of the exam score. Every option is explained, so a wrong pick still teaches something.

Azure Solutions Architect – Expert (AZ-305) · Design data storage solutions · 5 questions with answers and explanations
🧭 What these questions look for
Data storage designs here balance consistency, scale, cost and effort. A scenario gives a read guarantee across regions, a database that has outgrown one server, a raw event stream to keep, or occasional queries over lake files. You recommend the service, tier or consistency level. Often more than one option works; the best one meets the requirement with the least code and no idle compute.
Tips for this set
• Translate each Cosmos DB read requirement into a consistency level: seeing your own writes, a maximum lag, and always the latest write are different guarantees.
• When the scenario says no code or no hosting, look for a built-in feature such as Event Hubs Capture and check which tier it needs.
• For occasional queries over files that are not loaded anywhere, prefer a serverless engine so that nothing is paid for between queries.
📊 This set at a glance
Exam: AZ-305 · 50 questions (estimate) · 100 minutes (estimate) · passing score 700
This set: 3 applied, 2 advanced · 2 scenario, 2 trade-off, 1 troubleshooting · 1 with more than one answer
Topics: Azure Cosmos DB, Azure Database for PostgreSQL flexible server, Azure Event Hubs, Azure Data Lake Storage, Azure Synapse Analytics
Question 1 of 5
A market data service uses Azure Cosmos DB with a single write region in West Europe and read regions on three other continents. Readers in every region must never be more than 10 minutes behind the writer and must see updates in order, but write latency must not depend on cross-continent round trips. Which consistency level should you recommend?
Show answer
✅ Answer: A
Difficulty: advanced · Topic: Azure Cosmos DB
Bounded staleness
With bounded staleness the lag between regions is always less than a configured amount: K versions of an item or a T time interval, whichever is reached first. Reads in a region return the newest data available there, within that bound, and in order.
• If a region falls further behind than the bound, Cosmos DB throttles writes for that partition until the lag is back inside the limit.
• For multi-region accounts the minimum bound is 100,000 writes or 300 seconds, so a 10-minute (600-second) bound is valid.
• Writes still commit to a local majority in the write region, so write latency does not include cross-region round trips.
When to use it
Learn describes bounded staleness as best for globally distributed apps with a single write region that want near-strong consistency across regions. In accounts with multiple write regions it is an anti-pattern.
Compare with strong
Strong commits each write in every region before acknowledging it; write latency becomes about twice the round-trip time between the two farthest regions plus 10 ms, and accounts spanning more than 8,000 km are blocked from strong by default.
Why each option works or fails
• ✓ A. Bounded staleness (correct): it puts a hard upper limit on how far behind any read region can be and preserves order, while writes are acknowledged after a local majority commit, so latency stays regional.
• ✗ B. Session: the guarantee is read-your-writes inside one client session. Readers who did not write the data have no bound on how stale their reads can be.
• ✗ C. Eventual with a PBS alert: the PBS metric only reports how often reads happen to be consistent; it does not enforce a limit, and eventual reads can even go backward in time.
• ✗ D. Strong: every write waits for all regions to commit, so write latency would include cross-continent round trips, which the requirement forbids; it is stronger than the 10-minute bound needs.
Question 2 of 5
A multitenant SaaS application on PostgreSQL has outgrown the largest single Azure Database for PostgreSQL flexible server. The company wants to stay on managed PostgreSQL and spread tenant data across several nodes, adding nodes as it grows. What should you recommend?
Show answer
✅ Answer: C
Difficulty: advanced · Topic: Azure Database for PostgreSQL flexible server
Scaling PostgreSQL out
A single flexible server scales up (more vCores, memory, storage) until the largest size. To go beyond one machine you need horizontal sharding.
Elastic clusters
Elastic clusters are a managed offering of the open-source Citus extension in Azure Database for PostgreSQL flexible server. Several flexible server nodes form one cluster in a shared-nothing architecture:
• Row-based sharding: a distributed table is split by a distribution column such as tenant_id.
• Schema-based sharding: each tenant's schema lives on one node, a natural fit for multitenant apps.
You scale out by adding nodes and rebalancing, which is an online operation. Queries are routed to one node or parallelized across nodes based on Citus metadata.
Why each option works or fails
• ✗ A. SQL Database Hyperscale: Hyperscale is the SQL Server engine; it doesn't speak the PostgreSQL protocol, so the application would need a full database migration and rewrite.
• ✗ B. Read replicas: replicas are read-only copies that receive changes asynchronously; they can't accept tenants' writes, so they don't spread the write workload or the data.
• ✓ C. Elastic clusters (correct): they keep the app on managed PostgreSQL while distributing tenant data across nodes by row or schema sharding, and new nodes can be added with online rebalancing as the tenant count grows.
• ✗ D. HA on one server: the HA standby is a failover copy that doesn't serve traffic, so the workload still runs on one node and the size limit remains.
Question 3 of 5
An app sends clickstream events to an Azure Event Hubs namespace in the Basic tier. The data team now needs every raw event stored in Azure Data Lake Storage for later batch processing, without writing or hosting any consumer code. Which two actions should you recommend? (Select TWO)
Show answer
✅ Answer: A, E
Difficulty: applied · Topic: Azure Event Hubs, Azure Data Lake Storage
Event Hubs Capture
Capture automatically writes the streaming data in an event hub to Blob Storage or Data Lake Storage, without code to write or run. It scales with the event hub's capacity.
• Files are written per partition in Apache Avro format when a time or size window is reached, whichever comes first. (The no-code editor in the portal can capture to Data Lake Storage in Parquet.)
• Tiers: Capture is available in Standard, Premium and Dedicated; the Basic tier does not support Capture.
• Destinations: nonpremium storage accounts that allow block blobs; Capture does not support premium storage accounts.
Hot and cold paths
Capture is the classic cold path: real-time consumers read the stream, while Capture keeps a complete raw copy for batch analytics.
Retention is not storage
Event Hubs deletes events after the configured retention period, so the hub is a buffer, not an archive.
Why each option works or fails
• ✓ A. Upgrade to Standard or higher (correct): Capture is not available in the Basic tier, so the namespace must move to Standard, Premium or Dedicated first.
• ✗ B. Azure Functions consumer: it would work, but it is exactly the custom code the team wants to avoid, and it must be hosted and monitored.
• ✗ C. Longer retention: events are still deleted when retention ends and are only readable through Event Hubs consumers, not stored as files in the lake.
• ✗ D. Premium block blob destination: Capture does not support premium storage accounts; it needs a nonpremium account that allows block blobs.
• ✓ E. Enable Capture to Data Lake Storage (correct): Capture writes every event to the lake automatically as Avro files, with no consumer code to write or host.
Question 4 of 5
A retailer is designing a shopping cart service on Azure Cosmos DB for NoSQL with one write region and two read regions. Each shopper must always see the items they just added to their own cart, while read latency, availability and RU cost should stay as close as possible to the weakest consistency level. Which default consistency level should you recommend?
Show answer
✅ Answer: D
Difficulty: applied · Topic: Azure Cosmos DB
The five consistency levels
Azure Cosmos DB offers five levels, from strongest to weakest: Strong, Bounded staleness, Session, Consistent prefix and Eventual. Stronger levels give fresher reads but cost more latency, availability or throughput.
What each level costs
• Strong and Bounded staleness read from two replicas (a local minority), so a read costs twice the RUs of the weaker levels. Strong also commits each write in every region, which adds cross-region round trips to write latency.
• Session, Consistent prefix and Eventual read from a single replica and commit writes to a local majority, with asynchronous replication to other regions.
Session in practice
After each write the client receives a session token. On the next read it sends the token, and Cosmos DB only answers from a replica that has caught up to that token. So the user who wrote the data always reads it back, while other users may see it a moment later. Learn calls session the most widely used level: its latency, availability and read throughput are comparable to eventual.
Why each option works or fails
• ✗ A. Strong: it does give the latest write, but every write waits for all regions to commit and every read costs double RUs, which is far more than the cart needs, since only the shopper's own writes matter.
• ✗ B. Eventual: a read can hit a lagging replica and return stale or missing data, so a shopper could add an item and not see it in the cart on the next page load.
• ✗ C. Bounded staleness: reads use two replicas and cost twice the RUs, and the guarantee is a maximum lag across regions, not that a client sees its own latest writes immediately.
• ✓ D. Session (correct): the session token guarantees read-your-writes and write-follows-reads for the shopper's own session, while reads still come from a single replica, so latency and RU cost match the weak levels.
Question 5 of 5
Analysts occasionally run ad hoc T-SQL queries over Parquet and CSV files in Azure Data Lake Storage. The company does not want to load the files into a database or pay for reserved compute between queries. What should you recommend?
Show answer
✅ Answer: A
Difficulty: applied · Topic: Azure Synapse Analytics, Azure Data Lake Storage
Serverless SQL pool in Azure Synapse
Every Synapse workspace includes a serverless SQL pool endpoint. It is a distributed query service over files in the data lake (Parquet, Delta Lake, delimited text such as CSV, JSON), Azure Cosmos DB or Dataverse.
• Data is queried in place with familiar T-SQL (OPENROWSET, external tables); nothing is loaded or copied.
• No infrastructure or clusters to set up.
• No charge for reserved resources: you pay for the data processed by the queries you run.
Typical uses: data discovery, a logical data warehouse over raw files, and T-SQL transformations in the lake.
Dedicated SQL pool
A dedicated SQL pool provisions compute (DWUs) and stores loaded data in distributed tables. It suits predictable, heavy warehouse workloads, and you pay for the provisioned compute while it runs.
Fabric note
Learn points new data warehouse projects toward Microsoft Fabric, but the Synapse serverless SQL pool remains the pay-per-query option in Synapse.
Why each option works or fails
• ✓ A. Serverless SQL pool (correct): analysts query Parquet and CSV files where they are with T-SQL, nothing is loaded, and the bill is based only on data processed by the queries that run.
• ✗ B. Dedicated SQL pool: it requires loading data into tables and charges for provisioned compute while it runs, which the company wants to avoid.
• ✗ C. Azure SQL Database serverless: auto-pause cuts idle compute, but the files would still have to be imported into the database first, which is the loading step to avoid.
• ✗ D. Azure Data Explorer cluster: data is ingested into the cluster's tables, and you pay for the provisioned cluster compute while it runs, even between the occasional queries.
🎯 What to remember
• Need a guaranteed maximum lag across regions with a single write region and regional write latency: bounded staleness with a K/T bound.
• To scale PostgreSQL beyond one server on Azure, shard it with elastic clusters (managed Citus) in Azure Database for PostgreSQL flexible server.
• Raw event stream to the data lake with no code: Event Hubs Capture, which needs the Standard tier or higher and a nonpremium storage destination.
• Users must see their own writes at weak-level cost: choose session consistency, the default most applications use.
• Occasional T-SQL over files in the lake, no loading and no idle cost: Synapse serverless SQL pool.
🔗 Keep practicing on this blog
• Can You Answer These 5 AZ-305 Questions on Design identity, governance, and monitoring solutions?
• All AZ-305 practice sets
• Every exam on this blog
📚 More AZ-305 practice
More AZ-305 questions: https://hyunhp.github.io/cert-bank/#exam=AZ-305
Study guide: https://hyunhp.github.io/cert-bank/study.html#exam=AZ-305
These are original practice questions, not real exam questions, and cert-bank is not affiliated with any certification vendor.
Original practice questions written for this blog, not exam dumps.
Comments
Post a Comment