Chapter 2
Design Data Storage Solutions
This chapter covers every Domain 2 objective from the official Microsoft Learn AZ-305 study guide (skills measured 17 April 2026). AZ-305 is a design exam: 46 of its 49 objectives begin with the word "Recommend".
You are not being asked how to click through a portal wizard. You are being asked, as the solutions architect for the company, to look at a set of business requirements, technical constraints, and trade-offs. Then recommend the right data solution, and be able to say why the near-miss alternatives are wrong.
Data is where architects most often fail the exam, because the wrong answer usually works. Azure SQL Database, Azure SQL Managed Instance, SQL Server on an Azure VM, Azure Database for PostgreSQL, Azure Cosmos DB, Azure Storage, Azure Data Lake Storage Gen2 — all of them store data. The exam tests whether you can tell them apart by workload shape: relational or not, transactional or analytical, steady or spiky, single-region or global, cheap or fast, and what happens when something is deleted, corrupted, or lost.
Read this chapter with the Well-Architected Framework in mind: every recommendation here is a trade-off between reliability, security, cost optimisation, operational excellence, and performance efficiency. There is no perfect data service. There is only the right fit for the requirements in front of you.
Objectives covered in this chapter
| # | Objective |
|---|---|
| 2.1 | Recommend a solution for storing relational data |
| 2.2 | Recommend a database service tier and compute tier |
| 2.3 # | Recommend a solution for database scalability Objective |
| 2.4 | Recommend a solution for data protection (relational data) |
| 2.5 | Recommend a solution for storing semi-structured data |
| 2.6 | Recommend a solution for storing unstructured data |
| 2.7 | Recommend a data storage solution to balance features, performance, and costs |
| 2.8 | Recommend a data solution for protection and durability |
| 2.9 | Recommend a solution for data integration |
| 2.10 | Recommend a solution for data analysis |
2.1 Recommend a solution for storing relational data
The company runs an online learning platform. Students enrol, pay, sit practice exams, and receive scores. That data is relational: students, orders, questions, attempts, and scores, joined together, updated in transactions, and queried with SQL.
The first design decision is which relational service holds it — because Azure offers four genuinely different answers, and the exam will make three of them look tempting.
Relational data is data organised into tables with rows and columns, related to each other by keys, and queried with SQL. It needs ACID transactions — atomicity, consistency, isolation, durability — so that, for example, a payment and the enrolment it pays for either both happen or neither does.
The four relational options
| Service | What it is | Choose it when |
|---|---|---|
| Azure SQL Database | Fully managed single databases or elastic pools on shared infrastructure | New cloud-native apps; single databases or many databases with spiky, unpredictable usage |
| Azure SQL Managed Instance | Fully managed SQL Server instance (near 100% compatibility with on-premises SQL Server) | Lift-and-shift of existing SQL Server workloads that need instance-level features (SQL Agent, cross-database queries, CLR, Service Broker) |
| SQL Server on Azure VMs | SQL Server you install and manage on an IaaS virtual machine | You need full control of the OS and SQL Server version, or features no PaaS service offers |
| Azure Database for PostgreSQL / MySQL (Flexible Server) | Fully managed open-source relational databases | The application is written for PostgreSQL or MySQL and must stay on that engine |
PaaS first, IaaS last. Azure SQL Database and Azure SQL Managed Instance are platform as a service: Microsoft patches, backs up, and keeps the engine highly available, and you design the schema and the tier. SQL Server on a VM gives you control, but you own patching, backups, high availability, and licensing. In a design exam, pick the VM only when a stated requirement cannot be met by a PaaS service — for example, a specific SQL Server version or an OS-level dependency. "We have always run it on a VM" is not a requirement.
SQL Database vs Managed Instance — the exam's favourite fork
The decision usually turns on one question: does the workload need instance-level features?
- • Azure SQL Database is a single database (or a pool of databases). It has no SQL Server Agent, no cross-database queries, no CLR, and no linked servers in the way an instance does. It is the right answer for a new application, a single database, or many small databases.
- • Azure SQL Managed Instance is an instance. It supports SQL Server Agent jobs, cross-database queries and transactions, database mail, CLR, and Service Broker, with near 100% compatibility with the latest SQL Server Database Engine. It is the right answer when the company migrates an existing SQL Server estate with minimal application and database changes, or when several databases must be managed and scaled together as one instance.
- Managed Instance needs a dedicated subnet in a virtual network; Azure SQL Database does not. That networking requirement is a real design constraint, and the exam uses it as a discriminator.
When a scenario says "migrate the existing on-premises SQL Server with minimal changes" and mentions SQL Agent jobs or cross-database queries, the answer is Azure SQL Managed Instance — not Azure SQL Database and not a VM. When the scenario says "build a new cloud-native application with a single database", the answer is Azure SQL Database. The exam loves to put both in the same question.
Open-source engines: PostgreSQL and MySQL
If the application is written for PostgreSQL or MySQL, do not redesign it onto SQL Server. Azure Database for PostgreSQL — Flexible Server and Azure Database for MySQL — Flexible Server are the managed answers.
Flexible Server is the deployment model to recommend for all new workloads. It gives granular control over maintenance windows, zone-redundant high availability, burstable compute for dev/test, and stop/start to save cost. The older Single Server model is retired — never recommend it.
Azure Database for MariaDB was retired on 19 September 2025. If a scenario mentions MariaDB, the correct recommendation is to migrate to Azure Database for MySQL Flexible Server.

Symptom–cause–fix: relational storage
| Symptom | Likely cause | Fix |
|---|---|---|
| Migration fails on SQL Agent jobs | Azure SQL Database has no SQL Agent | Recommend Azure SQL Managed Instance instead |
| Application cannot run cross-database joins | Single-database PaaS boundary | Managed Instance, or redesign the application to one database |
| Database costs are high for an idle dev database | Provisioned PaaS billed 24/7 | Serverless compute (SQL Database) or stop/start (PostgreSQL/MySQL Flexible Server) |
| Team proposes SQL Server on VMs for a new app | Habit, not a requirement | Challenge it: PaaS meets the requirements with less operational burden |
The company is migrating an on-premises SQL Server that runs nightly SQL Agent jobs, cross-database reports, and a CLR assembly. Which relational service do you recommend, and why not Azure SQL Database?
Answer: Answer: Azure SQL Managed Instance. It offers near 100% compatibility with SQL Server, including SQL Agent, cross-database queries, and CLR. Azure SQL Database is a single-database PaaS service without those instance-level features, so the workload would need rework.
2.2 Recommend a database service tier and compute tier
Choosing the service is only half the design. The other half is choosing the tier — how much performance, resilience, and money the database gets.
The exam tests this with scenarios that hand you a workload profile and ask which tier fits it. The trick is that tiers are defined by their trade-offs, not their names.
A service tier defines a database's performance, storage type, availability architecture, and price. A compute tier defines how compute is billed: provisioned (always on, fixed size) or serverless (scales automatically and pauses when idle). Purchasing models are vCore (buy vCores, memory, and storage separately) and DTU (buy a bundled unit of compute, memory, and I/O). Microsoft recommends the vCore model for new workloads.
Azure SQL Database vCore tiers
| Tier | Best for | Storage | Size limit | Notes |
|---|---|---|---|---|
| General Purpose | Most business workloads; budget-oriented | Remote premium storage | Up to 4 TB | Balanced compute and storage; one replica; zone redundancy available |
| Business Critical | High-transaction OLTP needing low-latency I/O | Local SSD | Up to 4 TB | Multiple isolated replicas; free readable secondary (read scale-out); fastest failover |
| Hyperscale | Very large or rapidly growing databases; heavy read scale-out | Decoupled page servers | Up to 128 TB | Compute and storage scale independently; up to 30 read-only named replicas; recommended tier for most new workloads |
The DTU model still exists for existing workloads, with Basic, Standard, and Premium tiers. Basic caps at 2 GB and is for the least demanding workloads. Standard is budget-oriented. Premium mirrors Business Critical with local SSD and read scale-out.
Do not recommend DTU for a new design — and remember that DTU has no serverless option and no Azure Hybrid Benefit.
Hyperscale is about size and scale-out, not speed. A common exam trap is recommending Hyperscale for a small, latency-sensitive OLTP workload. Hyperscale's strength is independent scaling of compute and storage, very large databases (up to 128 TB), and many read replicas. For a 50 GB OLTP database needing the lowest write latency, Business Critical is the answer — its local SSD and replica architecture exist for exactly that. Match the tier to the workload shape, not to the most impressive name.
Compute tiers: provisioned vs serverless
- • Provisioned compute bills every hour for the vCores you chose, whether the database is busy or idle. It is right for steady, predictable, production workloads.
- • Serverless compute (General Purpose and Hyperscale) automatically scales vCores within a range you set, and pauses after a period of inactivity, billing only for compute used. It is right for intermittent, unpredictable workloads — a dev/test database, or a reporting database at the company used only during business hours. Auto-pause means the first connection after a pause takes longer, so never recommend serverless where the first query must be instant.
PostgreSQL and MySQL Flexible Server compute tiers
| Tier | Best for |
|---|---|
| Burstable | Dev/test and low-concurrency workloads that do not need full CPU continuously; lowest cost |
| General Purpose | Most production workloads; balanced compute and memory |
| Memory Optimized | Performance-intensive workloads needing high memory per vCore |
Flexible Server can be stopped and started; compute billing stops when the server is stopped (a stopped server restarts automatically after seven days if not restarted sooner). Automatic backups give point-in-time restore for up to 35 days.
The exam's favourite cost trap: a development database that is used 8 hours a day, 5 days a week, on a provisioned tier. The correct recommendation is serverless with auto-pause (Azure SQL Database) or stop/start with a Burstable tier (PostgreSQL/MySQL Flexible Server) — not a smaller provisioned tier, which still bills 24/7. Always ask "when is this database actually used?" before choosing the compute tier.
The company has a 6 TB enrolment database growing 200 GB per month, with heavy reporting reads that must not slow down enrolments. Which Azure SQL Database tier do you recommend?
Answer: Answer: Hyperscale. General Purpose and Business Critical cap a single database at 4 TB, so the 6 TB database already exceeds them. Hyperscale scales to 128 TB and offers up to 30 read-only named replicas to offload reporting reads from the primary.
Walkthrough: Create an Azure SQL Database on the right tier, then restore it to a point in time
The company's enrolment database needs Hyperscale (see the CHECK YOURSELF box above). This walkthrough creates it on that tier, then restores it to a point before an accidental delete.
- In the Azure portal, select Create a resource, search for SQL Database, and select Create.
- Select the subscription, resource group, and server, name the database, then under Compute + storage select Configure and choose the Hyperscale service tier.
- Select Review + create, then Create. The database is created on Hyperscale with point-in-time restore available.
- To restore after an accidental delete, open the database, select Restore from the top menu, and select Point-in-time.
- Pick the date and time just before the delete, give the restored database a new name, and select Review + create, then Create. The restore creates a new database; the original is untouched.
Table 2.1 — SQL Database — Compute + storage blade
| Section | What to look at |
|---|---|
| Compute + storage | Hyperscale tier selected |
| Restore blade | Point-in-time selector; date and time picker; new database name field |


Azure CLI — the same steps:
az sql db create --resource-group rg-prod --server sql-prod --name enrolments --tier Hyperscale az sql db restore --resource-group rg-prod --server sql-prod --name enrolments --dest-name enrolments-restored --time "2026-11-07T09:22:00Z"
Expected output:
{
"edition": "Hyperscale",
"name": "enrolments-restored",
"resourceGroup": "rg-prod",
"status": "Online"
}
Why this, not that:
| Option | Cost | Scale | Security | Operations | Pick it when |
|---|---|---|---|---|---|
| General Purpose, provisioned | About $0.73 an hour for 4 vCores (Gen 5); storage extra | Up to 4 TB; one replica | Zone redundancy available | Cheapest production tier | Most business workloads, budget-oriented |
| Business Critical | About $1.46 an hour for 4 vCores | Up to 4 TB; local SSD, multiple replicas | Fastest failover; free readable secondary | Highest I/O, lowest latency | High-transaction OLTP needing low-latency I/O |
| Hyperscale (recommended here) | About $0.88 an hour for 4 vCores | Up to 128 TB; up to 30 read-only named replicas | Named replicas for read scale-out | Compute and storage scale independently | 6 TB and growing; reporting must not slow enrolments |
| General Purpose, serverless | About $0.63 per vCore-hour used; pauses when idle | Up to 4 TB; auto-pause | Same as General Purpose | First query after a pause is slower | Intermittent or dev/test use |
Worked cost example: Price it in the Azure pricing calculator under Azure SQL Database, vCore model, region Canada Central. At 4 vCores (Gen 5) running 730 hours a month, pay-as-you-go compute at time of writing (November 2026) is about $0.73064 × 730 ≈ $533.37 a month for General Purpose, $1.461288 × 730 ≈ $1,066.74 a month for Business Critical, and $0.876768 × 730 ≈ $640.04 a month for Hyperscale.
Storage is billed separately at the configured maximum size (32 GB is the default maximum, not a free allowance — what is included at no extra charge is backup storage up to the configured maximum data size).
The walkthrough's Hyperscale choice costs about $106.67 a month more than General Purpose, which is the price of the 128 TB ceiling and the 30 read replicas. Business Critical would cost about $426.70 a month more than Hyperscale ($533.37 more than General Purpose) for latency this workload does not need.
A serverless General Purpose database used at 4 vCores for 176 hours a month (8 hours a day, 22 days) and paused the rest would cost about 176 × 4 × $0.62611 ≈ $440.78 a month. What drives the bill is vCores × hours, not the tier name — right-size the vCores first. Practise the restore steps on the free offer as the walkthrough says, and remember the restored copy bills at normal rates until deleted.
Free tier: Hyperscale is a paid tier and bills from creation. Practise the restore steps on a General Purpose serverless database on the Azure SQL Database free offer instead — the restore steps are identical — and delete the test database when you are done. Note that point-in-time restore always creates a new database, and a restore cannot land on the free tier, so the restored copy is billed at normal rates until you delete it.
2.3 Recommend a solution for database scalability
A database that works at 1,000 students and falls over at 100,000 is a design failure. Scalability in Azure is not one technique — it is a small set of patterns. The exam tests whether you pick the right one for the bottleneck: too many writes, too many reads, too many databases, or too much data.
Scaling up (vertical scaling) means giving one database more vCores, memory, or storage. Scaling out (horizontal scaling) means spreading the load across more databases, replicas, or shards. Sharding splits one logical dataset across many physical databases by a shard key, so each database holds a slice of the data.
The scalability patterns
| Pattern | Solves | How it works in Azure |
|---|---|---|
| Scale up | A single database is under-powered | Increase vCores or move tier (e.g. General Purpose to Business Critical); Hyperscale separates compute and storage scaling |
| Read scale-out | Reporting and read queries overload the primary | Business Critical / Premium include a free readable secondary; Hyperscale named replicas (up to 30); Cosmos DB multi-region reads |
| Elastic pools | Many databases with unpredictable, spiky usage | Share a pool of vCores/DTUs across databases; each database draws what it needs, up to its cap |
| Sharding | One database's writes or data exceed any single database | Split by shard key (e.g. tenant, region); Azure SQL Database elastic database tools or Azure Database for PostgreSQL Flexible Server with Elastic Clusters (Citus extension) |
| Auto-scale throughput | Unpredictable request volume in Cosmos DB | Autoscale RU/s: set a maximum and Cosmos DB scales between 10% of the maximum and the maximum automatically |
| Caching | Repeated reads hit the database | Cache in front of the database (covered in Domain 4, but remember it as a scalability answer) |
The former "Hyperscale (Citus)" deployment option for PostgreSQL became Azure Cosmos DB for PostgreSQL in 2022, and that service is itself on a retirement path. For new distributed PostgreSQL workloads, Microsoft's current recommendation is Azure Database for PostgreSQL Flexible Server with Elastic Clusters (Citus extension) — do not recommend "Hyperscale (Citus)" as a current product name on the exam.
Elastic pools are the answer to "many databases, spiky usage". the company runs one database per corporate training customer. Each is quiet most of the day and spikes during exam windows — but never all at once. Buying provisioned vCores for each database's peak wastes money; buying for the average starves the spikes. An elastic pool buys one shared budget of resources and lets each database burst into it. The exam will describe exactly this shape — many databases, unpredictable peaks, low average — and the distractors will be "scale up each database" or "one huge database".
Cosmos DB scaling
Cosmos DB scales differently: throughput is bought in request units per second (RU/s), and data is split by a partition key across physical partitions. Each physical partition serves at most 10,000 RU/s and stores at most 50 GB. Each logical partition holds up to 20 GB.
Throughput can be provisioned manually (fixed RU/s, minimum 400 RU/s) or with autoscale (scales from 10% to 100% of the maximum you set).
The partition key is the most important design decision in Cosmos DB. A good key has high cardinality and spreads requests evenly. A bad key — for example, a status field with three values — creates a hot partition that throttles while the rest of the system sits idle. The partition key is fixed at container creation and cannot be changed without copying the data to a new container.
Exam trap: a Cosmos DB container throttles with 429 errors even though total provisioned RU/s looks generous. The cause is almost always a hot partition from a poor partition key, not a shortage of total RU/s. Adding RU/s does not fix a hot partition — fixing the key does. If the scenario says "one tenant generates 80% of the traffic", the answer is a better partition key (or a synthetic key), not more RU/s.

Symptom–cause–fix: scalability
| Symptom | Likely cause | Fix |
|---|---|---|
| Reads slow down writes on the primary | Analytical queries competing with OLTP | Read scale-out / Hyperscale named replicas |
| Many databases, each over-provisioned | Peaks never coincide | Elastic pool |
| Cosmos DB 429 errors on one partition key value | Hot partition | Redesign the partition key; consider a synthetic key |
| Database hits the 4 TB limit | Tier ceiling | Hyperscale (up to 128 TB) |
| Writes exceed a single database's throughput | Write bottleneck | Shard, or use Azure Database for PostgreSQL Flexible Server with Elastic Clusters (Citus extension) |
The company has 40 customer databases. Each averages 0.5 vCores but peaks at 4 vCores during exam weeks, and peaks never overlap. What do you recommend?
Answer: Answer: An elastic pool. Pooling shares the vCores across all 40 databases, so each can burst to its peak while the pool is sized for the combined average plus headroom. That is far cheaper than provisioning 4 vCores per database, and with no per-database starvation.
2.4 Recommend a solution for data protection (relational data)
Protection means two different things, and the exam tests whether you confuse them: protecting data from loss (backups and restore) and protecting data from the wrong people seeing it (encryption and access control). This section covers both for relational data; section 2.8 returns to protection and durability for all data types.
Point-in-time restore (PITR) restores a database to any second within its retention window, using automated full, differential, and transaction log backups. Long-term retention (LTR) keeps weekly, monthly, or yearly full backups in Blob storage for compliance. Transparent data encryption (TDE) encrypts data at rest; Always Encrypted encrypts sensitive columns so even database administrators cannot read the plaintext.
Backup and restore in Azure SQL
Azure SQL Database and Managed Instance take automated backups without you scheduling anything: full backups weekly, differential backups every 12–24 hours, and transaction log backups every 5–10 minutes. These enable PITR:
- • Retention: 7 days by default, configurable from 1 to 35 days (Basic tier caps at 7 days).
- • LTR: weekly, monthly, or yearly full backups retained for up to 10 years — the answer whenever a scenario mentions a multi-year compliance retention requirement.
- • Geo-restore: if backups are geo-redundant, a database can be restored in the paired region after a regional disaster. Geo-restore needs geo-redundant backup storage.
- • Deleted databases: PITR still works until the retention period expires after a database is deleted (restore to the deletion time on the same server). If the logical server is deleted, all of its databases and their PITR backups are deleted with it and cannot be restored from PITR; only databases with LTR backups configured can be restored to a different server.
For PostgreSQL and MySQL Flexible Server, automated backups also support PITR for up to 35 days.
High availability and disaster recovery for relational data
| Mechanism | What it does | When to recommend it |
|---|---|---|
| Zone redundancy | Replicas across availability zones in the same region | A zone failure must not take the database down |
| Active geo-replication | Up to four readable secondaries in other regions, manual failover | Read scale-out across regions; manual DR |
| Auto-failover groups | Automatic failover of a group of databases to a paired region, with one listener endpoint that always points at the primary | Automatic regional DR with minimal data loss; RPO under 5 seconds is typical |
| Hyperscale named replicas | Up to 30 read-only replicas | Read scale-out, not DR — replicas are in any region but failover is not automatic |
Backups protect against logical errors; replication protects against outages. PITR recovers from "someone deleted the wrong rows at 10:30" — you restore to 10:29. It does not keep the application running during a regional outage. Auto-failover groups keep the application running during a regional outage, but they replicate the bad delete too — they do not help you undo it. The exam will give you a scenario with an accidental deletion and tempt you with a failover group. The right answer is PITR. Conversely, a scenario demanding automatic recovery from a region failure wants a failover group, not a longer backup retention. Know which failure each mechanism survives.
Encryption and access control
- • TDE is on by default in Azure SQL Database and encrypts data at rest with a service-managed key. For control of the key, use a customer-managed key in Azure Key Vault.
- • Always Encrypted protects specific columns (credit card numbers, national IDs) end to end: the data is encrypted in the application before it reaches the database, so database administrators and even Microsoft operators cannot read it. Use it when the requirement is that privileged database users must not see the plaintext.
- • Dynamic data masking masks sensitive data in query results for non-privileged users — useful for support staff who need to see a record but not the full card number. It is not encryption; the stored data is unchanged.
- • Microsoft Entra authentication replaces SQL logins where possible, giving central identity, MFA, and Conditional Access. Least privilege applies: application accounts get only the permissions they need.
The exam loves the phrase "even database administrators must not be able to read the data". That phrase points at Always Encrypted — TDE does not satisfy it, because TDE decrypts data for anyone authorised to query it, including DBAs. If the scenario only says "encrypt data at rest", TDE is enough and is already on by default. Read the requirement literally.
Symptom–cause–fix: relational data protection
| Symptom | Likely cause | Fix |
|---|---|---|
| Accidental delete discovered 3 days later | No restore point within reach | PITR with retention comfortably above the detection lag (the 7-day default covers a 3-day-old delete; raise it if deletes are routinely discovered late); restore to a new database and verify before switching over |
| Compliance demands 7-year backup retention | PITR caps at 35 days | LTR policy (weekly/monthly/yearly, up to 10 years) |
| Regional outage takes the application down | No geo-replication | Auto-failover group to the paired region |
| DBA can read credit card numbers | TDE only | Always Encrypted on the card-number column |
| Support staff see full card numbers in queries | No masking | Dynamic data masking for non-privileged logins |
The company's finance team must keep monthly database backups for 7 years for audit, and a developer once deleted a term's enrolments by running a script against production. Which two features do you recommend?
Answer: Answer: Long-term retention (LTR) for the 7-year audit requirement — PITR caps at 35 days — and point-in-time restore for the accidental delete, restoring to a new database at a point just before the script ran.
2.5 Recommend a solution for storing semi-structured data
Not all data fits neatly into tables. The company stores student profiles, course content as JSON documents, clickstream events, and product catalogues that gain new attributes every term. Forcing those into rigid tables means endless schema migrations.
Semi-structured data keeps a flexible shape, and Azure's answer is usually Cosmos DB — but the exam wants you to know when it is not.
Semi-structured data has some organisation — fields, keys, and nesting — but no fixed schema enforced across all records. Examples: JSON documents, XML, key-value pairs, and graph data. A new field can appear in one document without changing every other document.
Azure Cosmos DB — the flagship
Azure Cosmos DB is a globally distributed, multi-model database service: one service, several APIs (NoSQL, MongoDB, Cassandra, Gremlin for graphs, Table). It is the default recommendation when the scenario needs any of these: global distribution with single-digit millisecond reads and writes, flexible JSON documents, massive scale, or multiple consistency choices.
- • Throughput: measured in request units per second (RU/s). A point read of a 1 KB item by its ID and partition key costs about 1 RU. Provisioned throughput is bought in steps of 100 RU/s with a minimum of 400 RU/s, or autoscale (10% to 100% of the maximum you set), or serverless (pay per RU consumed, single region only).
- • Partitioning: the partition key distributes data across logical partitions (up to 20 GB each) and physical partitions (up to 10,000 RU/s and 50 GB each). Choose a high-cardinality key with even distribution.
- • Consistency: five levels — Strong, Bounded Staleness, Session (the default, and the most widely used), Consistent Prefix, Eventual. Stronger consistency costs latency and throughput; weaker is faster and cheaper.
- • Change feed: a persistent record of changes to a container, in order, which feeds downstream processing, event-driven architectures, and synchronisation to other stores.
- • Time to live (TTL): items expire automatically after a period you set — ideal for session data, telemetry, and shopping carts that should not live forever.
The consistency level is a business decision, not a technical default. Strong consistency means every read sees the latest write everywhere — needed for a global inventory count where overselling is a real loss. Session consistency means a user always sees their own writes — enough for profiles, carts, and most applications, and it is the default for a reason. Eventual consistency is enough for "like" counters. The exam will describe a workload's tolerance for stale reads and ask for the level. Match the guarantee to the tolerance, and never pay for Strong when Session would do.
When Cosmos DB is the wrong answer
- • Azure Table Storage is the cheaper answer for simple key-value data with a partition key and row key, modest scale, and no need for global distribution, multiple APIs, or tunable consistency. A lookup table of course codes is Table Storage; a global student profile store with multi-region writes is Cosmos DB.
- • Azure Database for PostgreSQL with JSONB (or SQL Server with JSON) fits when the workload is mostly relational but some columns are flexible documents. Do not move an entire relational application to Cosmos DB just because one table is JSON.
- • Azure Cache for Redis is a cache, not a store — data there is expendable. (It appears in Domain 4; remember the distinction.)
| Service | Choose it when |
|---|---|
| Cosmos DB (NoSQL API) | Global distribution, flexible JSON, massive scale, tunable consistency, change feed |
| Cosmos DB (MongoDB API) | Existing MongoDB application to migrate with minimal changes |
| Cosmos DB (Gremlin API) | Graph data — relationships are the query (recommendations, fraud rings, knowledge graphs) |
| Cosmos DB (Cassandra API) | Existing Cassandra application to migrate |
| Azure Table Storage | Simple, cheap key-value lookups at moderate scale; no global distribution needed |
Table Storage high availability
Azure Table Storage does not have its own redundancy setting. Redundancy is chosen at the storage account level and applies to every service in that account — blobs, files, queues, and tables alike.
The same six options therefore cover Table Storage:
- • LRS — three copies in one datacentre. Survives disk, server, and rack failure. At least 11 nines durability.
- • ZRS — three copies synchronously across availability zones in the region. Survives a datacentre/zone loss. At least 12 nines.
- • GRS — LRS locally plus three asynchronous copies in the paired region. Survives a regional disaster. At least 16 nines.
- • GZRS — ZRS locally plus the geo-replicated copy. Survives a zone loss and a regional disaster.
- • RA-GRS and RA-GZRS — the read-access variants. Same as GRS/GZRS, plus a readable secondary endpoint so reads can continue during a regional outage.
Pick the option by the worst failure the table must survive. LRS for a lookup table that can be rebuilt. ZRS when a zone loss must not take the lookups down. GRS/GZRS when a regional disaster must not lose them.
Two limits to remember. Redundancy protects against hardware and site failure, not against deletion or corruption. Table Storage has no soft delete or versioning like Blob storage, so a deleted table is gone unless you have your own backup. And Table Storage has no access tiers, so there is no Hot/Cool/Archive tiering decision to make for it.
"Migrate our existing MongoDB application to Azure with minimal changes" is Cosmos DB with the API for MongoDB — not the NoSQL API, and not a MongoDB cluster on VMs. The API choice in Cosmos DB exists precisely so existing applications move without rewriting their data layer. Match the API to the application's existing driver.

The company needs a global store for student profiles and shopping carts, with single-digit millisecond reads, users in three regions, and each user must always see their own latest updates. Which service and consistency level?
Answer: Answer: Azure Cosmos DB with Session consistency — the default. Session guarantees read-your-own-writes within a session, which is exactly the requirement, at lower latency and cost than Strong.
2.6 Recommend a solution for storing unstructured data
Unstructured data has no usable internal structure for a database to query: video lessons, PDFs, images, backups, logs, and raw files. The company's video library is the obvious example — terabytes of files that are stored, streamed, and occasionally retrieved, never joined or transacted. The answer is Azure Storage, and the design is in the details: which service, which tier, which redundancy.
Unstructured data is data without a predefined model — files, images, video, audio, and raw text. It is stored as objects (blobs) or files, addressed by name, and retrieved whole, rather than queried by fields. Blob storage holds objects in containers; Azure Files exposes SMB/NFS file shares; Azure Data Lake Storage Gen2 adds a hierarchical namespace to Blob storage for analytics.
Blob storage: tiers and types
- • Block blobs hold files such as videos, images, and documents — the default for unstructured data. Append blobs are for append-only data such as logs. Page blobs back virtual machine disks.
- • Access tiers trade storage cost against access cost:
- • Hot — frequently accessed; highest storage cost, lowest access cost.
- • Cool — infrequently accessed, stored at least 30 days; lower storage cost, higher access cost.
- • Cold — rarely accessed, stored at least 90 days; lower still.
- • Archive — offline, stored at least 180 days, lowest storage cost, highest retrieval cost, and takes hours to rehydrate. Data cannot be read directly from Archive.
- • Lifecycle management automates tiering: a rule moves blobs from Hot to Cool after 30 days without access, then to Archive after 180 days, and deletes them after a retention period. This is the cost answer for any scenario with ageing data.
Redundancy: what survives what
| Option | Copies | Durability (designed, per year) | Survives |
|---|---|---|---|
| LRS (locally redundant) | 3 in one datacentre | At least 11 nines (99.999999999%) | Disk, server, rack failure |
| ZRS (zone-redundant) | 3 across availability zones | At least 12 nines | Loss of a datacentre/zone |
| GRS (geo-redundant) | 3 locally + 3 in a paired region | At least 16 nines | Regional disaster (after failover) |
| GZRS (geo-zone-redundant) | ZRS locally + 3 in a paired region | At least 16 nines | Zone loss and regional disaster |
| RA-GRS / RA-GZRS | As GRS/GZRS, plus a readable secondary endpoint | As GRS/GZRS | Same, with read access to the secondary |
Two traps: the Archive tier is only supported on LRS, GRS, and RA-GRS accounts — never on ZRS, GZRS, or RA-GZRS. And redundancy protects against hardware and site failure, not against deletion or corruption — that is what soft delete, versioning, and backups are for.
Azure Files and Data Lake Storage Gen2
- • Azure Files is for lift-and-shift of file shares: applications that need SMB or NFS access to shared files. It offers Premium (SSD), Transaction Optimized, Hot, and Cool file tiers in newer accounts (there is no Archive tier for Azure Files — Archive is a Blob storage tier only), and it is the answer when the requirement says "shared file access" rather than "object storage".
- • Azure Data Lake Storage Gen2 is Blob storage with a hierarchical namespace enabled — real folders, atomic directory operations, and POSIX-style access control lists. It is the answer for big-data analytics landing zones, because analytics engines (Synapse, Databricks, Spark) work far better against a hierarchical file system than against flat blob names. If the scenario says "data lake" or "analytics over files", recommend ADLS Gen2, not plain Blob storage.
Tier by access pattern, not by age alone. A video watched daily belongs in Hot even if it is two years old. A compliance archive nobody reads belongs in Archive even if it was written yesterday. The exam's cost questions always describe how often data is read, and the tier follows the read frequency: daily = Hot, monthly = Cool, quarterly or less = Cold, almost never = Archive. Lifecycle management then enforces the policy automatically, so nobody has to remember to move anything.
When a scenario demands both "zone redundancy" and "archive tier", stop: that combination is impossible. Archive is not supported on ZRS or GZRS accounts. The correct recommendation is either to drop the zone requirement (use GRS with Archive) or to keep zone redundancy and use Cool or Cold instead of Archive. The exam includes impossible combinations deliberately — spotting them is the test.
The company keeps 5 years of recorded lessons. Recent lessons are watched daily; lessons older than 90 days are watched a few times a year; lessons older than 2 years are kept only for compliance. What do you recommend?
Answer: Answer: Blob storage with lifecycle management: Hot for recent lessons, Cool after 30 days, Cold after 90 days, Archive after 2 years. Use GRS (not ZRS) so the Archive tier is supported and a regional disaster is survivable.
Walkthrough: Configure storage redundancy, soft delete, and an immutability policy
The company's video library needs GRS (so Archive is supported), soft delete for human error, and immutability for the compliance copies. This walkthrough configures all three on one storage account.
- In the Azure portal, open the storage account and select Redundancy under Settings. Select Geo-redundant storage (GRS) and select Save. (Zone redundancy cannot be combined with the Archive tier.)
- Select Data protection under Settings. Turn on Blob soft delete and set the retention period, turn on Container soft delete, and turn on Blob versioning.
- Open the container holding the compliance copies, select Access Policy, and under Immutable blob storage select Add policy. Choose a time-based retention policy, set the retention period, and save it. Blobs in the container can no longer be deleted or modified until the period expires.
- Open Lifecycle management under Settings and add a rule that moves blobs from Hot to Cool after 30 days, to Cold after 90 days, and to Archive after 2 years.
Table 2.2 — Storage account — redundancy and data protection
| Section | What to look at |
|---|---|
| Redundancy blade | Geo-redundant storage selected |
| Data protection blade | Blob soft delete enabled; Versioning enabled |
| Container access policy | Time-based retention immutability policy |


Azure CLI — the same steps:
az storage account create --name stredundancydemo --resource-group rg-prod --location canadacentral --sku Standard_GRS --kind StorageV2 az storage blob service-properties delete-policy update --account-name stredundancydemo --enable true --days-retained 30 az storage account blob-service-properties update --account-name stredundancydemo --resource-group rg-prod --enable-versioning true --enable-container-delete-retention true --container-delete-retention-days 30 az storage container immutability-policy create --account-name stredundancydemo --container-name <compliance-container-name> --period 30 az storage account management-policy create --account-name stredundancydemo --resource-group rg-prod --policy @lifecycle-policy.json
The lifecycle rule itself lives in lifecycle-policy.json, with exactly these contents — one rule moving blobs from Hot to Cool after 30 days, to Cold after 90 days, and to Archive after 2 years (730 days). The rule applies to all block blobs in the account:
{
"rules": [
{
"enabled": true,
"name": "tier-video-library",
"type": "Lifecycle",
"definition": {
"actions": {
"baseBlob": {
"tierToCool": { "daysAfterModificationGreaterThan": 30 },
"tierToCold": { "daysAfterModificationGreaterThan": 90 },
"tierToArchive": { "daysAfterModificationGreaterThan": 730 }
}
},
"filters": { "blobTypes": ["blockBlob"] }
}
}
]
}
The immutability period (30 days above) is an example — set the retention period the compliance requirement demands.
Expected output:
{
"deleteRetentionPolicy": { "days": 30, "enabled": true },
"isVersioningEnabled": true
}
Why this, not that:
| Option | Cost | Scale | Security | Operations | Pick it when |
|---|---|---|---|---|---|
| LRS | Cheapest; Hot $0.02 per GB per month | 3 copies in one datacentre | Survives disk, server, and rack failure only | — | Dev/test, or data backed up elsewhere |
| ZRS | Hot $0.025 per GB per month | 3 copies across availability zones | Survives a datacentre loss | Archive tier not supported | Zone survival needed, no Archive tier |
| GRS (recommended) | Hot $0.04 per GB per month; Archive $0.0042 | 3 + 3 copies in the paired region | Survives a regional disaster | Failover needed to read the secondary | Archive tier plus regional survival (this walkthrough) |
| RA-GRS | Hot $0.05 per GB per month | As GRS, plus a readable secondary | Same as GRS, with reads during an outage | Secondary endpoint always readable | Reads must continue during a regional outage |
Worked cost example: Price it in the Azure pricing calculator under Storage / Block Blob Storage, region Canada Central. Take the 10 TB (10,240 GB) video library. All of it in Hot GRS costs 10,240 × $0.04 = $409.60 a month.
With the walkthrough's lifecycle rule — 1 TB kept Hot, 9 TB moved to Archive — the bill is 1,024 × $0.04 = $40.96 plus 9,216 × $0.0042 = $38.71, about $79.67 a month, at time of writing (November 2026).
Retrieving from Archive costs $0.022 per GB in Canada Central. (Microsoft's pricing page shows $0.02 per GB without a region — the $0.022 figure is the Canada Central rate.) Retrieval takes hours to rehydrate, so Archive is for data almost never read.
What drives the bill is the tier mix and the redundancy multiplier (GRS is about twice LRS — exactly 2× at the first tier: $0.04 vs $0.02). The lifecycle rule, not a smaller account, is what saves the $329.93 a month.
Free tier: A storage account bills for the data stored and the redundancy chosen. Practise with the free account's 5 GB of standard storage (LRS) — the soft-delete, versioning, and immutability steps are identical — and delete the test data when you are done.
2.7 Recommend a data storage solution to balance features, performance, and costs
No exam scenario says "money is no object" or "performance does not matter". Every real design balances the three, and this objective is where the exam tests your judgement across everything in this chapter. The method is always the same: rank the requirements, find the cheapest option that meets the binding requirement, and do not pay for features nobody asked for.
Balancing features, performance, and costs means choosing the lowest-cost design that still meets every stated functional and non-functional requirement — availability, latency, scale, durability, and compliance — and explicitly trading away what is not required. Reserved capacity (1- or 3-year commitments) and Azure Hybrid Benefit (reusing existing SQL Server licences) are the two biggest cost levers for steady-state database workloads.
The cost levers, in order of impact
| Lever | Saves money when |
|---|---|
| Right-size the tier | The workload's real peaks are far below the provisioned tier (measure DTU/vCore and RU usage before upsizing) |
| Serverless / stop-start / Burstable | The database is idle much of the time (dev/test, business-hours workloads) |
| Elastic pools | Many databases with non-overlapping peaks |
| Autoscale RU/s | Cosmos DB traffic is spiky — autoscale bills for the highest usage each hour, not the maximum all day |
| Blob access tiers + lifecycle management | Data ages and is read less often |
| Reserved capacity | Steady-state production workloads with a 1- or 3-year horizon (SQL Database, Cosmos DB, storage) |
| Azure Hybrid Benefit | The organisation already owns SQL Server licences with Software Assurance |
| Zone vs geo redundancy | The requirement is zone survival, not regional survival — GRS costs more than ZRS, which costs more than LRS |
A worked balancing example
The company's analytics database is queried 8 hours a day by analysts, holds 800 GB, and must survive a zone failure but not a regional disaster. The wrong design is a provisioned Business Critical database with GRS. Business Critical is for high-transaction OLTP, not analytics, and GRS pays for regional survival nobody required.
The balanced design is a General Purpose serverless database with zone redundancy. Serverless pauses overnight, General Purpose is the budget tier, and zone redundancy covers the stated availability requirement. The savings come from removing three things nobody asked for, not from a cleverer product.
The binding requirement decides; everything else is negotiable. In every balancing scenario, one requirement is the constraint that actually determines the choice. A 4 TB limit forces Hyperscale. A global write requirement forces Cosmos DB multi-region writes. A 7-year retention forces LTR. A "DBAs must not read card data" requirement forces Always Encrypted. Find the binding requirement first, satisfy it, then choose the cheapest option that does. If two options both satisfy it, the cheaper one wins — and the exam will punish the expensive one.
Watch for requirements that sound expensive but are cheap to satisfy, and vice versa. "Data must survive a datacentre failure" is satisfied by ZRS — a modest premium over LRS. "Data must survive a regional disaster" needs GRS/GZRS and a failover story, which costs far more. "Database must be available 99.99%" is a tier and redundancy question; "99.999%" may force Business Critical or multi-region design. Read the nines.
Symptom–cause–fix: cost and performance balance
| Symptom | Likely cause | Fix |
|---|---|---|
| Storage bill keeps growing | Everything stays in Hot | Lifecycle management to Cool/Cold/Archive |
| Database billed 24/7 but used 8/5 | Provisioned compute for an intermittent workload | Serverless with auto-pause, or stop/start |
| Cosmos DB bill spikes monthly | Manual RU/s set for the peak, all month | Autoscale RU/s |
| Steady production database is expensive | Pay-as-you-go with no commitment | Reserved capacity (1 or 3 years) |
| Paying for SQL licences twice | Licences not applied | Azure Hybrid Benefit on vCore SQL Database or Managed Instance |
The company's dev database runs 9-to-5 on weekdays, holds 20 GB, and needs no high availability. Which compute and tier choices keep cost lowest while meeting the requirements?
Answer: Answer: Azure SQL Database, General Purpose, serverless compute with auto-pause. It scales to zero outside working hours, General Purpose is the budget tier, and no zone redundancy or Business Critical features are needed for a dev database.
2.8 Recommend a data solution for protection and durability
Section 2.4 covered protection for relational data. This objective is broader: protection and durability across all data — blobs, files, Cosmos DB, and the platform itself. The exam tests whether you can build a coherent protection story: redundancy for hardware failure, soft delete and versioning for human error, backup for disaster, and immutability for compliance.
Durability is the probability that stored data survives over a year (expressed in "nines"). Protection is the set of mechanisms that preserve data against deletion, corruption, ransomware, and disaster: redundancy, soft delete, versioning, snapshots, backup, and immutability policies. Immutability means data cannot be modified or deleted until its retention period expires — even by an administrator.
The protection stack for unstructured data
| Mechanism | Protects against | Key facts |
|---|---|---|
| Redundancy (LRS/ZRS/GRS/GZRS) | Hardware, zone, and regional failure | 11 nines (LRS) to 16 nines (GRS/GZRS); does NOT protect against deletion |
| Soft delete (Blob) | Accidental deletion or overwrite | Deleted blobs are recoverable for a retention period you set (up to 365 days); also covers container soft delete |
| Blob versioning | Accidental overwrite | Every write creates a new version; earlier versions remain restorable |
| Snapshots | Point-in-time capture before a risky change | Manual or automated; restore individual blobs |
| Azure Backup (Recovery Services vault) | Loss of files, VMs, and databases | Policy-driven, with retention up to years; immutable vaults protect backups from deletion |
| Immutable storage (time-based retention / legal hold) | Deletion, tampering, ransomware | Blobs cannot be deleted or modified until the policy expires; legal hold is indefinite until removed |
| Object replication | Regional availability of blobs | Asynchronous copy of blobs to another region; does not replace backup |
Cosmos DB backup modes
- • Periodic backup (the default for existing accounts): backups at an interval you configure (minimum 1 hour) with retention up to a month; restores are requested through Azure support and restore to a new account.
- • Continuous backup: enables self-service point-in-time restore to any timestamp within a 7-day or 30-day tier (a 35-day tier also exists). Continuous backup does not consume provisioned RU/s. Use it when the requirement is self-service restore to a precise point in time. You can migrate from periodic to continuous, but not back.
- Note the limit: continuous backup supports the APIs for NoSQL, MongoDB, Gremlin, and Table — not Cassandra.
Putting the stack together
For the company's video library the coherent design is:
- GRS for durability across regions.
- Blob versioning and soft delete for human error.
- Lifecycle management for cost.
- Immutable storage with a time-based retention policy for the compliance copies that must not be altered.
GRS (not GZRS) is the redundancy that fits this library. The lifecycle rule moves old lessons to the Archive tier, and Archive is supported on LRS, GRS, and RA-GRS accounts — never on ZRS, GZRS, or RA-GZRS (§2.6). If the library ever needed zone survival as well, the Archive step would have to go (Cool or Cold instead) or the zone requirement would have to be dropped.
Each layer covers a failure the others do not. Redundancy does not stop a delete, soft delete does not stop a regional disaster, and neither stops a malicious administrator — immutability does.
Redundancy is not backup, and backup is not immutability. This is the single most tested idea in data protection. Redundancy keeps copies of the current state — if the current state is deleted or encrypted by ransomware, every copy reflects the damage. Backup keeps earlier states you can return to. Immutability guarantees that even a compromised administrator account cannot destroy the protected copies. When a scenario says "protect against accidental deletion", the answer involves soft delete, versioning, or backup — never redundancy alone. When it says "protect against ransomware", the answer involves immutable backups or immutable storage.
The exam's protection questions are usually decided by the threat in the scenario. Accidental deletion → soft delete / versioning / PITR. Hardware failure → redundancy. Regional disaster → geo-redundancy / failover groups / geo-restore. Malicious deletion or ransomware → immutable storage or immutable vault. Compliance retention → LTR, immutable storage, or Archive. Name the threat first, then pick the mechanism that counters it.

A company administrator's credentials are compromised and the attacker deletes blobs in the video archive. Which mechanism ensures the compliance copies survive?
Answer: Answer: Immutable Blob storage with a time-based retention policy (or legal hold). Soft delete would help against accidental deletion, but an attacker with sufficient access could purge soft-deleted blobs; immutability blocks deletion and modification entirely until the retention period expires.
Walkthrough: Enable Cosmos DB continuous backup and restore to a point in time
The company needs self-service restore of its Cosmos DB account to any point in the last 7 days. This walkthrough switches the account to continuous backup and picks the 7-day tier — the default, and the free one, because it carries no backup-storage charge.
- In the Azure portal, open the Cosmos DB account and select Backup & Restore under Settings.
- Under Backup policy, select Continuous. Select the 7-day tier from the tier list (it is the default; the 30-day and 35-day tiers are paid alternatives for a longer restore window) and select Save. The account now keeps a continuous backup, and restores are self-service. A restore timestamp must fall
after continuous backup was enabled. A restore to a point before that has no backup to restore from.
- To restore after an accidental bulk delete, select Point in Time Restore under Backup & Restore, select the account, and pick the date and time just before the delete.
- Select a target account for the restore (a restore always creates a new account) and select Restore. The data is restored as it was at the chosen point.
Table 2.3 — Cosmos DB — Backup and Restore blade
| Section | What to look at |
|---|---|
| Backup policy | Continuous; tier list: 7, 30, 35 days; 7-day tier selected |
| Point in Time Restore blade | Date and time picker; target account field |

Azure CLI — the same steps:
Migrating from periodic to continuous backup is one-way and cannot be reversed. The 35-day tier needs the cosmosdb-preview extension when you switch tiers from the CLI; the 7-day tier used below does not.
az cosmosdb update --name <cosmos-account-name> --resource-group rg-prod --backup-policy-type Continuous --continuous-tier Continuous7Days az cosmosdb restore --account-name <cosmos-account-name> --target-database-account-name <restored-account-name> --restore-timestamp "2026-11-07T14:00:00Z" --resource-group rg-prod --location canadacentral
Expected output:
{
"backupPolicy": {
"continuousModeProperties": { "tier": "Continuous7Days" },
"type": "Continuous"
},
"name": "<cosmos-account-name>",
"provisioningState": "Succeeded"
}
Why this, not that:
| Option | Cost | Scale | Security | Operations | Pick it when |
|---|---|---|---|---|---|
| Continuous, 7-day tier | No backup-storage charge | Self-service restore to any point in 7 days | Restore $0.165 per GB per restore | One-way switch from periodic | Dev/test, or a discovery window under a week (this walkthrough) |
| Continuous, 30-day tier | $0.22 per GB per month per region | Self-service restore to any point in 30 days | Restore $0.165 per GB per restore | Same, longer window | Self-service restore for a month |
| Continuous, 35-day tier | $0.22 per GB per month per region (same rate) | Self-service restore to any point in 35 days | Restore $0.165 per GB per restore | Switch from CLI in preview (needs co smosdb-preview extension) | Five extra days beyond 30 are needed |
| Periodic (default) | First two copies free; extra copies $0.108 per GB per month (LRS; ZRS $0.135, GRS $0.21, RA-GRS $0.217) | Restore via a support request, to a new account | Backups at most hourly | No self-service point-in-time restore | Legacy accounts where a restore can wait for support |
Worked cost example: Price it in the Azure pricing calculator under Azure Cosmos DB, backup storage, region Canada Central. Continuous backup storage at the 30-day tier is $0.22 per GB per month per region; the 7-day tier used in this walkthrough carries no backup-storage charge, at time of writing (November 2026).
For a 100 GB account in one region, the 7-day tier costs $0 for backup storage; the 30-day tier would cost 100 × $0.22 = $22.00 a month if you need a month of restore window. A restore of that 100 GB costs 100 × $0.165 = $16.50 each time it runs, on any tier.
Total for this walkthrough's resources at 100 GB: $0 a month for backup storage on the 7-day tier, plus $16.50 per restore. (On the 30-day tier it would be $22.00 a month, plus $16.50 per restore.) What drives the bill is data size × number of regions — a second region doubles the backup-storage charge. The Cosmos DB free tier (1,000 RU/s and 25 GB) covers practice, as the walkthrough notes.
Free tier: Cosmos DB has a free tier (1,000 RU/s and 25 GB free). The 30- and 35-day continuous backup tiers are charged for backup storage; the 7-day tier carries no backup-storage charge, so practise on the free tier with the 7-day tier.
2.9 Recommend a solution for data integration
Data integration is moving data — and transforming it — between systems, on a schedule or in real time, without losing it or corrupting it. The company must move enrolment data from the transactional database into the analytics store every night, ingest clickstream events as they happen, and keep the CRM and the
learning platform in sync.
The exam tests which integration service fits each movement pattern.
Data integration is the movement and transformation of data between sources and destinations. ETL (extract, transform, load) transforms data before loading it. ELT (extract, load, transform) loads raw data first and transforms it in the destination, which suits cloud-scale analytics. Change data capture (CDC) streams row-level inserts, updates, and deletes from a source as they happen. Orchestration schedules, monitors, and retries pipeline runs.
The integration services
| Service | Best for | Notes |
|---|---|---|
| Azure Data Factory (ADF) | Orchestrated batch ETL/ELT across 90+ connectors; mapping data flows for visual transformation | Serverless; pipelines, activities, triggers, integration runtimes (including self-hosted for on-premises sources) |
| Synapse Pipelines | Integration inside a Synapse workspace | Same pipeline engine as ADF; choose it when the analytics work already lives in Synapse |
| Azure Databricks | Code-based Spark transformation at scale; Delta Lake | Choose it when transformation needs Spark, notebooks, or machine learning |
| Azure Data Lake Storage Gen2 | The landing zone all of the above write to | Hierarchical namespace; raw/curated zones in a medallion (bronze/silver/gold) architecture |
| Azure Event Hubs | High-throughput event ingestion (millions of events/sec) | Stream intake; pair with Stream Analytics or Databricks for processing |
| Azure Stream Analytics | Real-time SQL-like queries over streams | Low-code stream processing with windows and aggregations |
| Azure Logic Apps / Functions | Lightweight, event-triggered integration | Logic Apps for connector-based workflows; Functions for code that runs on events |
| Azure Data Migration Service / Azure Migrate | One-off migration, not ongoing integration | Covered in Domain 4; do not confuse migration tooling with a standing pipeline |
| Microsoft Fabric Data Factory | Integration inside Fabric, writing to OneLake | The newer SaaS option; Synapse and standalone ADF remain supported |
Batch vs streaming — the deciding question
- • Batch (ADF/Synapse pipelines): the data can wait minutes or hours; the load is scheduled or triggered; transformations are heavy. Nightly enrolment loads are batch.
- • Streaming (Event Hubs + Stream Analytics/Databricks): the data must be acted on in seconds; clickstream, telemetry, and fraud signals are streaming.
- • Change data capture: the source is a database and the destination must track every change — use CDC (for example, ADF's CDC capabilities or Debezium-style capture into Event Hubs) rather than re-copying whole tables nightly.
Integration is not storage, and storage is not integration. A common exam mistake is recommending a storage service (ADLS Gen2) when the question asks how data moves, or recommending Data Factory when the question asks where data lands. A complete design names both: "ADF pipelines copy nightly from Azure SQL Database into ADLS Gen2 (raw zone), Databricks transforms it into Delta Lake (curated zone), and Synapse serverless SQL exposes it to Power BI." Each service does one job; the architecture is the combination.
When a scenario says "on-premises SQL Server data must be copied nightly into Azure" the answer is Azure Data Factory with a self-hosted integration runtime — the runtime is the component that reaches inside the corporate network without opening inbound ports. The exam uses "on-premises source" as a deliberate trigger for the self-hosted integration runtime.
The company needs to ingest 50,000 clickstream events per second from its website, detect sessions in real time, and land the results in the data lake for later analysis. Which services do you recommend?
Answer: Answer: Azure Event Hubs for high-throughput ingestion, Azure Stream Analytics (or Databricks Structured Streaming) for real-time session detection, landing results in Azure Data Lake Storage Gen2. Batch ADF pipelines would add minutes of delay the scenario does not allow.
2.10 Recommend a solution for data analysis
Analysis is the reason the data exists: answering questions about it. The design decision is which analytical engine fits the data's shape, size, and latency — and whether the data must move at all before it can be queried.
Analytical processing (OLAP) aggregates large volumes of historical data for reporting and decision-making — the opposite of transactional processing (OLTP), which handles many small reads and writes. A data warehouse stores curated, structured data optimised for analytical queries. A data lakehouse combines lake storage with warehouse features (ACID transactions, schema enforcement, time travel) through formats such as Delta Lake. HTAP (hybrid transactional/analytical processing) runs analytics on live operational data without an ETL copy.
The analysis options
| Service | Best for | Notes |
|---|---|---|
| Synapse dedicated SQL pool | Enterprise data warehouse; large, predictable analytical workloads | Formerly SQL Data Warehouse; provisioned, MPP architecture; pause when idle to save cost |
| Synapse serverless SQL pool | Ad-hoc queries over files in the lake, with no infrastructure | Query Parquet/CSV/JSON in ADLS Gen2 directly with T-SQL; pay per TB processed |
| Synapse Spark pool | Big-data processing, notebooks, machine learning prep | Apache Spark as a service inside Synapse |
| Azure Databricks | Spark analytics, Delta Lake lakehouse, ML | The strongest choice for lakehouse and ML workloads; Unity Catalog for governance |
| Microsoft Fabric | Unified SaaS analytics (Data Factory, Data Engineering, Data Warehouse, Power BI) on OneLake | OneLake is built on ADLS Gen2; the modern default for new greenfield analytics |
| Azure Cosmos DB + Synapse Link | Near-real-time analytics over live Cosmos DB data | HTAP: analytical store is a separate, automatically synchronised column store; no ETL, no RU impact |
| Power BI | Visualisation and self-service BI over any of the above | The consumption layer, not the store — do not recommend Power BI as the place data lives |
Choosing between them
- • Data already in the lake, queried occasionally: Synapse serverless SQL — nothing to load, nothing to provision.
- • Large, regular reporting with strict SLAs: Synapse dedicated SQL pool (or Fabric Warehouse).
- • Lakehouse with ACID, time travel, and ML: Azure Databricks with Delta Lake.
- • Analytics over live operational data without ETL: Synapse Link for Cosmos DB (or Fabric mirroring for SQL).
- • Greenfield, unified governance, least infrastructure: Microsoft Fabric with OneLake.
Move the compute to the data, not the data to the compute. The cheapest analytical design is the one that queries data where it already sits: serverless SQL over the lake, Synapse Link over Cosmos DB, or a lakehouse on Delta Lake. Every ETL copy adds latency, cost, and a failure mode. The exam rewards designs that avoid unnecessary movement. If the question says "analyse the data without affecting operational performance and without building an ETL pipeline", the answer is Synapse Link, not a nightly ADF copy into a warehouse.
The exam distinguishes dedicated and serverless SQL pools by one word: predictable. A dedicated pool is provisioned for large, predictable, SLA-bound reporting. A serverless pool is for ad-hoc, exploratory queries over lake files. If the scenario says "analysts run occasional ad-hoc queries against Parquet files in the lake", serverless is the answer — provisioning a dedicated pool for it wastes money and is the wrong recommendation.
Symptom–cause–fix: analysis
| Symptom | Likely cause | Fix |
|---|---|---|
| Analytical queries slow down the checkout database | OLAP running on OLTP | Synapse Link, read replicas, or a separate warehouse |
| Analysts wait days for data | Nightly batch ETL is the only path | Synapse Link / streaming ingestion for near-real-time |
| Ad-hoc queries need a warehouse provisioned first | Wrong engine for exploration | Synapse serverless SQL over ADLS Gen2 |
| Lake files cannot be updated or rolled back | Raw Parquet has no transactions | Delta Lake (Databricks) for ACID and time travel |
The company's analysts need to run ad-hoc T-SQL queries over Parquet files already stored in Azure Data Lake Storage Gen2, with no data loading and no provisioned infrastructure. Which service do you recommend?
Answer: Answer: Azure Synapse Analytics serverless SQL pool. It queries files in place in the lake with T-SQL and bills per TB processed, with nothing to provision or load.
Hands-on lab 2 — Store the enrolment data and protect the video library
Scenario
The company's enrolment database and its video library live in two different worlds. The enrolment database is a small relational database with spiky traffic. It is busy at the start of each course and silent overnight. The team keeps over-provisioning it because they are afraid of the bill.
The video library is unstructured blob storage holding course videos. Some of them are compliance copies that must never be changed or deleted early.
You are the solutions architect. In this lab you will create an Azure SQL Database on the serverless compute tier with the free limit, so it auto-pauses when idle. You will also create a storage account for the video library with blob soft delete, container soft delete, and versioning, so a deleted video can be recovered.
This is the hands-on version of Chapter 2. Pick the tier from the workload pattern, and protect unstructured data with the storage-native stack.
Serverless is a compute tier for a single Azure SQL Database. It scales compute up and down with demand, bills per second of compute used, and automatically pauses the database after a period of inactivity. While paused, only storage is billed. It is the right tier for intermittent, unpredictable workloads, and the wrong tier for a database that is busy all day.
Objectives covered
This lab maps to the Chapter 2 exam objectives in the official AZ-305 study guide (skills measured 17 April 2026):
| Objective | What you practise in this lab |
|---|---|
| Recommend a solution for storing relational data | Creating an Azure SQL Database (single database) for the enrolment workload |
| Recommend a database service tier and compute tier | Choosing General Purpose serverless with auto-pause, and the free limit, from the workload pattern |
| Recommend a solution for database scalability | Seeing how serverless scales vCores automatically instead of provisioning for the peak |
| Recommend a solution for data protection | Using built-in point-in-time restore thinking for SQL, and soft delete plus versioning for blobs |
| Recommend a solution for storing unstructured data | Creating Blob Storage for the video library |
| Recommend a data storage solution to balance features, performance, and costs | Comparing what the free limit covers against what a provisioned tier would cost |
| Recommend a data solution for protection and durability | Enabling the blob protection stack: soft delete, container soft delete, versioning |
Prerequisites
- A free Azure account (or Azure free trial credits). Nothing in this lab needs a paid tier.
- The Azure CLI installed, or Azure Cloud Shell in the portal (Cloud Shell already has the Azure CLI installed). Sign in first with
az login. - A resource group for this lab: rg-lab2. All resources go in it, so one delete at the end removes everything.
- A strong password for the SQL logical server administrator. Never reuse a real password.
Names must be unique. The SQL logical server name and the storage account name are globally unique across Azure. Storage account names are lowercase letters and numbers only, 3–24 characters. Replace <unique> with a short string of your own, for example your initials plus a number (for example sql-lab2-hs7 and stcclab2hs7).
Steps
- Create the resource group. In the portal, search for Resource groups, select Create, name it
rg-lab2, pick a region near you (for example Canada Central), and select Review + create, then Create. Or with the CLI:
az group create --name rg-lab2 --location canadacentral
- Create the SQL logical server. In the portal, search for SQL databases, select Create, choose
rg-lab2, and under Server select Create new. Name the serversql-lab2-<unique>, set the admin login tosqladmin, set a strong password, and select OK. Or with the CLI:
az sql server create --name sql-lab2-<unique> --resource-group rg-lab2 --location canadacentral --admin-user sqladmin --admin-password "ChangeMe-Str0ng-Password!"
- Allow your own computer through the server firewall. In the portal, open the server, select Networking, and under Firewall rules add a rule for your public IP address (the portal offers to add your current client IP). Or with the CLI, replacing
<your-ip>with your public IP address in both places:
az sql server firewall-rule create --resource-group rg-lab2 --server sql-lab2-<unique> --name AllowMyIP --start-ip-address <your-ip> --end-ip-address <your-ip>
The firewall rule is server-level, not database-level, and Azure SQL denies all connections by default. If your connection is refused after the database is created, the firewall rule — not the database tier — is the first thing to check.
- Create the enrolment database on the serverless free limit. In the portal, on the Create SQL Database blade, set the database name to
enrolments, and under Compute + storage select Configure database. Choose General Purpose, Serverless as the compute tier, and tick Use free limit with Auto-pause the database until next month as the behaviour when the free limit is reached. Select Apply, then Review + create, then Create. Or with the CLI:
az sql db create --resource-group rg-lab2 --server sql-lab2-<unique> --name enrolments --edition GeneralPurpose --family Gen5 --capacity 2 --compute-model Serverless --use-free-limit true --free-limit-exhaustion-behavior AutoPause
The free limit gives you 100,000 vCore-seconds, 32 GB of data, and 32 GB of backup storage free per month, per database, for the lifetime of the subscription. When the monthly free compute allowance runs out, the database auto-pauses until the next month instead of billing you. That is the behaviour you selected, and it is the whole point of the free limit.
- Confirm the database is serverless and will auto-pause. Run:
az sql db show --resource-group rg-lab2 --server sql-lab2-<unique> --name enrolments
--query "{name:name, sku:sku, status:status}" -o table
The SKU should show a General Purpose serverless service objective. Leave the database alone for 15 minutes and it pauses by itself on the free limit. The auto-pause delay is fixed at 15 minutes for free-limit databases and cannot be changed.
- Create the storage account for the video library. In the portal, search for Storage accounts, select Create, choose
rg-lab2, name itstcclab2<unique>(lowercase, no hyphens), pick the same region, set Performance to Standard and Redundancy to Locally-redundant storage (LRS), and select Review + create, then Create. Or with the CLI:
az storage account create --name stcclab2<unique> --resource-group rg-lab2 --location canadacentral --sku Standard_LRS --kind StorageV2
LRS is the cheapest redundancy and the right choice for a lab. The videos are replaceable course content, and geo-redundancy would cost more for protection this workload does not need.
Before you use --auth-mode login in steps 8–9, give yourself the data-plane role those commands need. With --auth-mode login, blob operations need an explicit data role. Even a subscription Owner gets an authorization error without it. Assign Storage Blob Data Contributor to yourself, scoped to the storage account:
az role assignment create --role "Storage Blob Data Contributor" --assignee-object-id $(az ad signed-in-user show --query id -o tsv) --scope $(az storage account show --name stcclab2<unique> --resource-group rg-lab2 --query id -o tsv)
Role assignments can take a few minutes to propagate — if a blob command fails with an authorization error, wait a few minutes and try again.
- Turn on the blob protection stack. In the portal, open the storage account, select Data protection, and enable soft delete for blobs (7 days), soft delete for containers (7 days), and blob versioning. Or with the CLI:
az storage account blob-service-properties update --account-name stcclab2<unique> --resource-group rg-lab2 --enable-delete-retention true --delete-retention-days 7 --enable-container-delete-retention true --container-delete-retention-days 7 --enable-versioning true
- Create a container and upload a video file. In the portal, open the storage account, select Containers, select Add container, name it
videos, and select Create. Then open the container and upload any small file (a text file namedwelcome.txtis enough for the lab — the protection behaviour is identical for a video). Or with the CLI:
az storage container create --name videos --account-name stcclab2<unique> echo "the company course video placeholder" > welcome.txt az storage blob upload --account-name stcclab2<unique> --container-name videos --name welcome.txt --file welcome.txt --auth-mode login
- Prove soft delete works: delete the blob, then bring it back. Delete the blob, then list it including soft-deleted blobs and versions:
az storage blob delete --account-name stcclab2<unique> --container-name videos --name
welcome.txt --auth-mode login
az storage blob list --account-name stcclab2<unique> --container-name videos
--include-deleted --include-versions --auth-mode login --query "[].{name:name,
version:versionId, current:isCurrentVersion, deleted:deleted}" -o table
The blob is still listed, marked deleted. Because versioning is on (step 7), the restore path is to copy the previous version back. az storage blob undelete is only for accounts with versioning disabled. Take the newest version ID from the list above and copy it into a live blob:
VERSION_ID=$(az storage blob list --account-name stcclab2<unique> --container-name videos --include-deleted --include-versions --auth-mode login --query "sort_by([], &versionId)[-1].versionId" -o tsv) az storage blob copy start --account-name stcclab2<unique> --destination-container videos --destination-blob welcome.txt --source-uri "https://stcclab2<unique>.blob.core.windows.net/videos/welcome. txt?versionId=$VERSION_ID" --auth-mode login
Open the videos container in the portal and confirm welcome.txt is back. That round trip — delete, see it retained, restore it — is the whole point of soft delete. It is what you would show an auditor.
- Set an immutability policy on the compliance container. Create a second container named
compliance-copies. Open it, select Access policy, and add a time-based retention immutability policy of 7 days. Or with the CLI:
az storage container create --name compliance-copies --account-name stcclab2<unique> az storage container immutability-policy create --account-name stcclab2<unique> --container-name compliance-copies --period 7
The policy means blobs in this container cannot be deleted or changed until the retention period ends. That is why you use a short 7-day period in a lab. It is also why you must never put a file here you still need to delete during the lab.
Expected result
You have a serverless Azure SQL Database (enrolments) on the free limit that auto-pauses when idle, behind a firewall rule that admits only your IP. You also have a storage account whose blob protection stack you have proven end to end: you deleted a blob and restored it. It also has a compliance container with a time-based immutability policy.
Screenshot — capture this: the SQL database Overview blade showing the General Purpose serverless pricing tier and the free limit; and the storage account Data protection blade showing blob soft delete, container soft delete, and versioning all enabled, with the videos container listing the restored welcome.txt.
Lab evidence: capture your own screenshot of the finished result — the database overview showing the serverless tier, and the Data protection blade with all three protections enabled — and keep it as proof you completed the lab.
A month later the enrolment database is paused and nobody can connect, even though the free limit should have reset. What do you check first? Answer: whether the free limit was exhausted and the exhaustion behaviour is set to AutoPause. The database stays paused until the next calendar month. If the team needs it back sooner, the fix is to change the exhaustion behaviour to BillOverUsage, which is a deliberate, billable choice, not a free one. That switch is one-way — you cannot switch back to AutoPause afterwards.
Cost alert
| Resource created | Cost |
|---|---|
Resource group rg-lab2 | Free — a resource group is a container, not a billable resource. |
SQL logical server sql-lab2-<unique> | Free — a logical server is a container for databases, not a billable resource. |
SQL Database enrolments (General Purpose serverless, free limit) | Free — 100,000 vCore-seconds, 32 GB of data, and 32 GB of backup storage per month, for the lifetime of the subscription. Auto-pauses instead of billing when the limit is reached. |
Storage account stcclab2<unique> (Standard LRS) | A few cents — LRS hot storage is billed per GB stored, and the lab stores one small file. |
| Blob soft delete, container soft delete, versioning | No separate charge — retained soft-deleted blobs and versions consume storage at the normal per-GB rate, which is pennies for one small file. |
Immutability policy on compliance-copies | Free — the policy itself is not billed; the blobs it protects are billed as normal storage. |
Clean up — delete everything when you finish. Deleting the resource group deletes the server, the database, and the storage account. Do it the same day you finish the lab. The database is free, but the storage account keeps billing pennies per GB for as long as it exists. The immutability policy on compliance-copies would block deletion of any blob placed under it until its 7-day retention ends. No blob is placed under the policy in this lab, so deleting the whole resource group works and removes the container with it.
az group delete --name rg-lab2 --yes --no-wait
In the portal: open Resource groups, select rg-lab2, select Delete resource group, type the name to confirm, and select Delete. Check the group is gone before you close the portal.
Worked cost estimate
All figures below are at time of writing (November 2026), in US dollars, for the Canada Central region. They come from the Azure SQL Database pricing page, the Azure Blob Storage pricing page, and the Azure pricing calculator. Prices change by region and over time, so run the same steps in the calculator before you quote a price to anyone.
Worked example: you run the lab in one day, then delete rg-lab2 the same day. Usage assumptions: the enrolments database is awake for about 1 hour in total and stays inside the free limit; the storage account holds one small file (welcome.txt, well under 0.01 GB) plus its soft-deleted copy and one version; nothing is placed in the compliance-copies container.
Pricing Calculator steps:
- Add Azure SQL Database, deployment type Single database, service tier General Purpose, compute tier Serverless, region Canada Central, and tick Use free limit. Enter 1 hour of compute and 0.01 GB of data.
- Add Storage Accounts, kind StorageV2, performance Standard, redundancy LRS, region Canada Central, and enter 0.01 GB of Hot tier blob storage with 10 write operations and 10 read operations.
- There is no line to add for blob soft delete, container soft delete, versioning, or the immutability policy: none of them has a separate charge. Retained soft-deleted blobs and versions are billed as ordinary storage at the per-GB rate above.
- Read the monthly total. Because the database is on the free limit with AutoPause behaviour, the calculator should show $0.00 for it.
| Resource | Tier | Monthly cost |
|---|---|---|
Resource group rg-lab2 | - | $0.00 |
SQL logical server sql-lab2-<unique> | - | $0.00 |
SQL Database enrolments | General Purpose serverless, free limit | $0.00 (inside 100,000 vCore-seconds, 32 GB of data, and 32 GB of backup storage per month, per database, for the lifetime of the subscription) |
Storage account stcclab2<unique> | Standard LRS, Hot tier | $0.00 (0.01 GB at $0.02 per GB per month = $0.0002; write operations are $0.05 per 10,000 and read operations $0.004 per 10,000) |
| Blob soft delete, container soft delete, versioning | - | $0.00 (no separate charge; retained copies bill as storage at the rate above) |
Immutability policy on compliance-copies | - | $0.00 (the policy itself is not billed) |
| Total | $0.00 per month |
What drives the bill: for the database, the driver is compute time awake, not data size. The free limit covers 100,000 vCore-seconds a month. That works out to roughly 40–55 hours awake at the 0.5-vCore minimum size, depending on memory normalisation. Plan on about 40 hours, so a lab database that pauses after 15 idle minutes never gets near it.
For storage, the driver is gigabytes stored, so the bill grows with the video library, not with the number of files.
What would make it jump: on the database, exhausting the free limit and having the exhaustion behaviour set to BillOverUsage instead of AutoPause. Serverless compute above the free limit bills at about $0.62611 per vCore-hour, so a database left awake all month at the minimum size costs roughly $229 a month (0.5 vCores × 730 hours × $0.62611/vCore-hour). That switch is one-way, you cannot switch back to AutoPause afterwards.
On storage, the jump comes from volume and tier. 10 GB of real course videos would cost about $0.20 a month in the Hot tier and about $0.11 a month in the Cool tier ($0.011 per GB). But the Cool tier charges more per read and bills for 30 days even if you delete the blob early, so moving rarely-watched videos to Cool saves money only if you leave them there.
Try it further Scenario: the video library is growing, and the team wants the oldest course videos stored as cheaply as possible without making them unreadable. In this challenge you move welcome.txt to the Cool tier, upload a second file straight into the Cool tier, and then move the first file back to Hot. That way you practise tier changes in both directions and see the early-deletion rule in action. Do not use the Archive tier here: an archived blob is offline and takes up to 15 hours to rehydrate. 1. Upload a second small file, so you have two blobs to work with:
echo "the company archived course video placeholder" > archived.txt az storage blob upload --account-name stcclab2<unique> --container-name videos --name archived.txt --file archived.txt --auth-mode login
- Move
welcome.txtfrom Hot to Cool:
az storage blob set-tier --account-name stcclab2<unique> --container-name videos --name welcome.txt --tier Cool --auth-mode login
- Upload a third file directly into the Cool tier, so you see the tier can be set at upload time as well as after:
echo "the company cool tier video placeholder" > cool-only.txt az storage blob upload --account-name stcclab2<unique> --container-name videos --name cool-only.txt --file cool-only.txt --tier Cool --auth-mode login
- In the portal, open the storage account, open the
videoscontainer, and open each blob's Properties blade. Check the Access tier shown forwelcome.txtandcool-only.txt(Cool) and forarchived.txt(Hot). 5. Movewelcome.txtback to Hot, so it is back on the Hot storage rate while you finish the lab. Moving it back does not avoid the Cool early-deletion charge — the remaining days of the 30-day minimum are still billed, because the charge attaches to the time the blob spent in Cool, not to where it ends up:
az storage blob set-tier --account-name stcclab2<unique> --container-name videos --name welcome.txt --tier Hot --auth-mode login
- Re-check the Properties blade for
welcome.txtand confirm the access tier now reads Hot. Expected result:welcome.txtandcool-only.txtshow access tier Cool in step 4,archived.txtshows Hot, and after step 5welcome.txtshows Hot again. The file contents are unchanged throughout. Changing a tier moves the data, it does not rewrite it. Screenshot — capture this: thevideoscontainer listing with the three blobs, and the Properties blade ofcool-only.txtshowing access tier Cool.
Lab evidence: capture your own screenshot of the blob Properties blade showing the Cool tier, and keep it with the Lab 2 evidence. A tier change you cannot show is only a command you ran. Cost note: moving a blob between tiers is a billed write operation (pennies at lab scale, not zero). Moving welcome.txt back to Hot does not avoid the Cool early-deletion charge. The remaining days of the 30-day minimum are still billed; the move only changes the storage rate going forward. The storage charge changes to the Cool rate ($0.011 per GB per month) for as long as a blob sits in Cool, and a blob deleted from Cool before 30 days is still billed for 30 days. No new resource is created. Delete rg-lab2 as in the Lab 2 cleanup when you finish.
Case study 2 — One identity, one student record
The company has grown by acquisition and by accident. Students have three different logins: one for the storefront, one for the practice-exam system, and one for the video platform. Staff have two: an on-premises Active Directory account and a separate cloud login for the content tools.
The student record is worse. The same student exists in four places: the on-premises SQL Server, a spreadsheet the support team keeps, the practice-exam database, and the email marketing list. The four copies disagree about who has paid, who has passed, and who is entitled to a refund.
The company has decided to fix identity and data together. Fixing one without the other leaves the same mess in a new place. The goal is one login per person, one student record, and a reporting platform the business can trust.
The design below covers identity, governance, and monitoring as well as data storage. At the company the two problems are one problem: nobody can say who a student is, or which copy of their record is true.
Business requirements
- One login per person. Every student signs in once and reaches the storefront, the practice exams, and the video platform. Every member of staff signs in once and reaches the back-office tools.
- Stop the duplicate records. There must be one authoritative student record. Support staff must never again have to decide which of four copies is true.
- Pass the audit. An external auditor must be able to prove, for any student record change, who made it, when, and from where - for at least 180 days after the change.
- Keep the migration safe. The on-premises SQL Server holds seven years of enrolment and payment history. Nothing may be lost in the move, and the old system must keep running until the new one is proven.
- Report on the business, not on the database. The leadership team wants weekly reports on enrolments, pass rates, and revenue without asking an engineer to write a query each time.
- Grow to 200,000 students. The platform has 45,000 monthly active students today and expects 200,000 within two years. Identity and data must scale without another rebuild.
- Control who can do what. Only the finance team may issue refunds. Only content editors may publish courses. Administrators must not hold standing access to production data.
- Keep the monthly bill under $1,500. The combined identity, data, and reporting bill must stay under $1,500 a month in a normal month.
Technical requirements and constraints
- Existing systems: on-premises SQL Server 2019 (420 GB) running nightly SQL Agent jobs, cross-database reports, and a CLR assembly; on-premises Active Directory with 40 staff accounts; a practice-exam system that writes semi-structured attempt data as JSON documents.
- Data shapes: enrolments, orders, and payments are relational and transactional; practice-exam attempts are semi-structured JSON; video files and exported reports are unstructured; clickstream and learning analytics are append-only event data.
- Retention: audit logs must be queryable for 180 days; financial records must be retained for 7 years; raw clickstream data is useful for 90 days and then only as aggregates.
- Latency: a student signing in must not wait more than a few seconds; practice-exam attempts must be written and acknowledged in under a second.
- Residency: student records and payment data stay in Canada Central. Analytics copies may be processed in Canada Central only.
- Skills: the team has one database administrator who knows SQL Server well, one identity administrator, and no data engineer. The design must not need a Spark specialist to keep it running.
- Integration: the email marketing platform must receive a nightly feed of new and changed students, and the finance system must receive a daily feed of payments.
- Availability: the student record must be available during exam weeks with no single point of failure in one datacentre.
Recommended architecture Identity and governance
Workforce identity - Microsoft Entra ID P2 for the 40 staff. Staff sign in once with Entra ID, with phishing-resistant multi-factor authentication enforced by Conditional Access. P2 is chosen over P1 because two requirements need it. The first is Privileged Identity Management (PIM) for just-in-time administrator access (business requirement 7: administrators must not hold standing access to production data). The second is Identity Protection for risk-based sign-in policies. P1 has Conditional Access and dynamic groups, but it does not have PIM or risk-based Conditional Access. So P1 cannot meet requirement 7.
External identity - Microsoft Entra External ID for students. Students are external users, not employees, so they sign in through External ID. It bills per monthly active user and keeps student identities out of the staff directory. The first 50,000 monthly active users are free each month, which covers today's 45,000 student MAU at no cost. When the student base grows past 50,000, the paid MAU rate applies above the free allowance. So the identity bill grows with real usage, rather than with a per-seat licence for every registered student who may never return.
Authorisation - role-based access control plus attribute-based conditions. Finance staff get a custom role that can issue refunds and nothing else. Content editors get a role that can publish courses and cannot touch payments. Standing administrator access is removed entirely. Administrators activate a role through PIM for a maximum of 8 hours (the default activation limit; configurable from 1 to 24 hours), with approval and with the activation recorded. Secrets, certificates, and connection strings live in Azure Key Vault (Standard tier). Applications read them with managed identities, so no credential is ever stored in code or in a spreadsheet.
Governance - management groups, subscriptions, and tagging. One management group for the company, with a production subscription and a non-production subscription underneath it. Resource groups are split by workload (identity, student record, analytics), and every resource carries tags for owner, environment, and cost centre. Azure Policy enforces the tagging and blocks the creation of resources outside Canada Central. That is how the residency requirement (technical constraint 5) is enforced, rather than merely documented.
Privileged Identity Management (PIM) is the Entra ID capability that turns administrator roles into just-in-time access: a role is activated for a limited time, with approval and an audit record, instead of being permanently assigned. It is the design answer whenever a requirement says administrators must not hold standing access.
Logging and monitoring
Entra ID sign-in logs and audit logs are routed to a Log Analytics workspace. Entra ID only retains sign-in logs for 30 days on P1/P2, and the audit requirement is 180 days. The workspace retention for the sign-in and audit tables is set to 180 days.
Resource logs from SQL Managed Instance, Cosmos DB, and Key Vault are collected through diagnostic settings. Resource logs are not collected until diagnostic settings are enabled, and assuming otherwise is the most common logging design error in this domain.
Alert rules fire on failed sign-in spikes, PIM activations outside business hours, and Key Vault access from unusual locations. Audit data older than 180 days is exported to Blob Storage in the Cool tier for the 7-year financial retention. A workspace is for querying, and a storage account is for cheap long-term archive.
Relational data - Azure SQL Managed Instance
The on-premises SQL Server migrates to Azure SQL Managed Instance, General Purpose tier, 4 vCores. This is the one decision the existing estate forces. The database runs nightly SQL Agent jobs, cross-database reports, and a CLR assembly, and those are instance-level features.
Azure SQL Database is a single-database service with no SQL Agent, no cross-database queries, and no CLR. So migrating to it would mean rewriting the jobs and the reports.
SQL Server on a VM would preserve everything, but the team would keep owning patching, backups, and high availability for a workload that a managed instance runs for them. Managed Instance gives near 100% compatibility with SQL Server, so the migration is a lift-and-shift with minimal application and database changes. It needs a dedicated subnet in a virtual network - a real design constraint the network plan must include.
Point-in-time restore is configured to 35 days, and a long-term retention policy keeps weekly backups for 7 years to meet the financial retention requirement. Zone redundancy is enabled so the student record survives a datacentre failure (technical constraint 8).
When a scenario says "migrate the existing on-premises SQL Server with minimal changes" and mentions SQL Agent jobs or cross-database queries, the answer is Azure SQL Managed Instance - not Azure SQL Database and not a VM. When the scenario says "build a new cloud-native application with a single database", the answer is Azure SQL Database. The exam loves to put both in the same question.
Semi-structured and unstructured data
Practice-exam attempts -> Azure Cosmos DB for NoSQL, serverless. Attempts are JSON documents keyed by student ID, written in bursts during exam weeks and read back by student and by exam. Serverless billing (per million request units consumed) fits a workload that is idle most of the month and violent for three weeks. Provisioned throughput would bill for capacity the system does not use most of the time. The partition key is the student ID, so one student's attempts live in one logical partition and queries by student stay cheap.
Video files and exported reports -> Azure Blob Storage with Data Lake Storage Gen2. Video is unstructured data and belongs in Blob Storage (Hot tier for current courses, Cool tier for older ones). The analytics copy of the student record and the clickstream land in the same storage account with the hierarchical namespace enabled. That is Data Lake Storage Gen2. So the same files can be queried by the analytics engine without being copied again.
Clickstream and learning events -> append-only JSON files in the data lake. Event data is never updated, only appended, so a relational table would add cost and locking for no benefit. Files are written in Parquet format, partitioned by date. So a query for one week of events reads one week's files and not the whole history.
Data integration
Azure Data Factory is the integration service. One pipeline copies the on-premises SQL Server data into Managed Instance for the migration, using a self-hosted integration runtime in the office network. After the migration, nightly pipelines move new and changed students to the email marketing platform and daily payments to the finance system (technical constraint 7). Mapping data flows are deliberately not used. The transformations are simple copies and lookups, and data flows run on Spark clusters with an 8-vCore minimum. That would add cost and a skill the team does not have (technical constraint 6). Azure Data Factory orchestrates; it does not need to be the transformation engine for work this simple.
Data analysis
Azure Synapse Analytics, serverless SQL pool, queries the Parquet files in the data lake directly with T-SQL. There is no dedicated SQL pool and no provisioned cluster. The reporting workload is weekly, not continuous, and serverless SQL bills $5.50 per terabyte of data processed with nothing billed when idle. The leadership team's weekly enrolment, pass-rate, and revenue reports run as saved serverless queries over the lake, and the results are published to the reporting tool. A dedicated pool would bill per DWU-hour around the clock for a workload that runs a few hours a week.
One student record - how it is actually enforced. The Managed Instance database is the system of record. Data Factory is the only writer that moves student data between systems, and every feed carries the student ID from Managed Instance as the key. The spreadsheet is retired on the day the migration is proven, not before, and the email marketing list becomes a read-only copy fed nightly from Managed Instance. A record is authoritative because exactly one system can create it and exactly one pipeline can copy it, not because a policy says so.


The company's auditors need to prove who changed a student record 150 days ago. Entra ID keeps sign-in logs for 30 days on P1/P2. What is missing? Answer: The logs must be routed out of Entra ID into a Log Analytics workspace (or a storage account) before they expire, because Entra ID retention is fixed and cannot be extended in place. Set the workspace retention to at least 180 days for the sign-in and audit tables.
Why this design (and what was rejected)
- Azure SQL Database for the migrated SQL Server - rejected. The workload needs SQL Agent jobs, cross-database queries, and a CLR assembly. Azure SQL Database has none of those instance-level features, so the migration would become a rewrite of jobs and reports. Managed Instance is the minimal-change answer.
- SQL Server on Azure VMs - rejected. A VM preserves everything, but the team would keep patching the OS and SQL Server, managing backups, and building high availability by hand. The only reason to choose a VM is a requirement PaaS cannot meet, and Managed Instance meets every requirement here.
- One directory for staff and students - rejected. Putting 45,000 students in the staff directory mixes two populations with different lifecycles, different authentication requirements, and different billing. Students are external users; Entra External ID is the service built for them, and it is free up to 50,000 MAU.
- Entra ID P1 instead of P2 - rejected. P1 is cheaper ($6 instead of $9 per user per month) and has Conditional Access, but it does not have Privileged Identity Management or Identity Protection. Business requirement 7 (no standing administrator access) cannot be met without PIM, so P1 fails a stated requirement. Saving $3 per user per month on 40 users is $120 a month; failing the access-control requirement is not a saving.
- A dedicated Synapse SQL pool for weekly reporting - rejected. A dedicated pool bills per DWU-hour continuously, including the six days a week nobody runs a report. The reporting workload is a few hours a week over Parquet files, so serverless SQL at $5.50 per terabyte processed costs a few dollars a month and nothing when idle. A dedicated pool is the right answer for continuous, heavy analytics; this is not that workload.
Cost estimate
All figures are Canada Central list prices, pay-as-you-go, at time of writing (November 2026), using a 730-hour month. Use the Azure Pricing Calculator with these inputs before committing, because prices vary by region and change over time.
Step 1 - Identity: the per-user and per-MAU lines.
| Resource | Pricing Calculator input | Monthly cost |
|---|---|---|
| Microsoft Entra ID P2 | 40 staff x $9 per user per month (annual commitment) — 2026 list price; Microsoft's own Entra pricing page did not render dollar prices in the November 2026 verification session, so this rests on seven independent 2026 sources, unanimous at P1 $6 / P2 $9 | $360.00 |
| Microsoft Entra External ID Resource | 45,000 student MAU, inside the free first 50,000 MAU each month Pricing Calculator input | $0.00 Monthly cost |
| Identity subtotal | $360.00 |
Two notes on this table. First, P1 would cost 40 x $6 = $240 a month, but it cannot meet the PIM requirement, so the $120 difference is not available to save. Second, when student MAU grows past 50,000, the paid MAU rate applies above the free allowance. At 200,000 students that becomes a real line, and it must be modelled in the Pricing Calculator before the growth is committed to.
Step 2 - Data: the database and storage lines.
| Resource | Pricing Calculator input | Monthly cost |
|---|---|---|
| Azure SQL Managed Instance, General Purpose, 4 vCores, zone-redundant | 4 vCores, Gen5, licence included, pay-as-you-go — Azure Retail Prices API, Canada Central, November 2026: $0.730644/hour base + $0.438388/hour zone redundancy = $1.169032/hour × 730 hours | $853.39 |
| Managed Instance storage above the included 32 GB | 388 GB extra at $0.253/GB/month — the 420 GB database minus the 32 GB included free per instance (Microsoft Learn, Azure SQL Managed Instance FAQ: "First 32 GB are free of charge"). Azure Retail Prices API, Canada Central ("SQL Managed Instance General Purpose - Storage", meter "General Purpose Zone Redundancy Data Stored"). This design enables zone redundancy, so its data storage bills at the zone-redundant rate: $0.253/GB/month is exactly twice the non-redundant rate ($0.1265/GB/month, meter "General Purpose Data Stored"), matching Microsoft's zone-redundancy pricing model of a 100% upcharge on the storage part of the price | $98.16 |
| Cosmos DB, serverless | About 100 million RUs a month at $0.275 per million RUs — Azure Retail Prices API, Canada Central ("Azure Cosmos DB serverless", meter "1M RUs", $0.275 per 1M RUs) | $27.50 |
| Blob Storage / Data Lake Storage Gen2 | Hot 1,000 GB at $0.02/GB = $20.00; Cool 3,000 GB at $0.011/GB = $33.00 — Azure Retail Prices API, Canada Central first tier, November 2026 | $53.00 |
| Data subtotal | $1,032.05 |
The Managed Instance figure is priced from the Azure Retail Prices API (https://prices.azure.com/api/retail/prices, queried 7 November 2026, Canada Central). It is SQL Managed Instance, General Purpose, Gen5, 4 vCores, pay-as-you-go, licence included: $0.730644/hour, plus $0.438388/hour for zone redundancy, which this design enables. That gives $1.169032/hour × 730 hours = $853.39 a month.
The price depends on hardware series and on zone redundancy. Without zone redundancy the same Gen5 instance is $533.37 a month from the same API, and Premium Series hardware prices differently
again. That is why published third-party estimates for this configuration ranged from about $440 to about $861. Confirm the exact figure for the chosen hardware series in the Pricing Calculator before committing.
Managed Instance storage is priced from the same API. Because this instance is zone-redundant, storage bills at the zone-redundant rate: "SQL Managed Instance General Purpose - Storage", meter "General Purpose Zone Redundancy Data Stored", $0.253/GB/month in Canada Central (exactly twice the non-redundant $0.1265/GB/month, meter "General Purpose Data Stored"). So 388 GB above the included 32 GB is $98.16 a month. Cosmos DB serverless is priced from the same API: "Azure Cosmos DB serverless", meter "1M RUs", $0.275 per million RUs, so about 100 million RUs a month is $27.50.
Step 3 - Integration, analysis, and monitoring.
| Resource | Assumption and maths | Monthly cost |
|---|---|---|
| Azure Data Factory | 50,000 activity runs a month at $1 per 1,000 runs = $50; 40 DIU-hours of data movement at $0.25/DIU-hour = $10 | $60.00 |
| Synapse Analytics, serverless SQL pool | 4 TB of data processed a month at $5.50/TB — Azure Retail Prices API, Canada Central, November 2026 ("Azure Synapse Analytics Serverless SQL Pool", meter "Standard Data Processed", $5.50 per TB) | $22.00 |
| Log Analytics workspace | 15 GB ingested; first 5 GB free; 10 GB at $2.30/GB | $23.00 |
| Key Vault, Standard | Estimated operations, well under 1M/month at $0.03 per 10,000 | about $1.00 |
| Integration and monitoring subtotal | $106.00 |
Step 4 - Add it up.
Identity $360 + data $1,032.05 + integration and monitoring $106 = $1,498.05 a month. That is inside the $1,500 budget in business requirement 8, with about $2 of headroom ($1.95) — far thinner than the $16 previously stated, so any price movement or usage growth above the stated assumptions can push it over budget.
What drives the bill. The Managed Instance is more than half the total (about $952 of $1,498 — $853.39 compute plus $98.16 storage). It bills per vCore per hour, 24 hours a day, with the SQL licence included. The second driver is Entra ID P2 at $360.
Everything else - Cosmos DB serverless, Data Factory, Synapse serverless, Blob Storage, Log Analytics - is usage-based and together costs about $187. The practical consequence is that the two levers that matter are the Managed Instance size (drop to 4 vCores is already the plan; Azure Hybrid Benefit would cut the licence portion by about 40% if the company holds SQL Server licences with Software Assurance) and the P2 headcount (only staff who need PIM and Identity Protection need P2; other staff can stay on P1 at $6).
Free-tier / first-year position. The first 12 months are cheaper, but only by the value of the free allowances. The Azure SQL Managed Instance free offer gives one General Purpose instance with 720 vCore hours a month and 64 GB of storage free for 12 months. 720 vCore hours covers a 4-vCore instance for about 180 hours a month, so it is a part-time free allowance, not a full month. Entra External ID is free inside 50,000 MAU, and the first 5 GB of Log Analytics ingestion is free each month.
At this design's rates the free offer is worth about $210 a month of Managed Instance compute only (720 vCore-hours × $0.292258 per vCore-hour, the zone-redundant rate — the saving is 180 instance-hours × $1.169032/hour = about $210.43). Storage is still billed in the free month, so no storage saving is counted in the free-offer value.
External ID and the first 5 GB of Log Analytics ingestion are already $0 in the $1,498.05 total, so they add nothing further. A realistic first-year monthly bill is about $1,288 ($1,287.62), rising to the full $1,498.05 when the free offer expires and the instance runs full-time. That step-up must be in the budget from day one, not discovered in month 13.
The free offer also has limits that matter for this design. It does not support failover groups or long-term retention (LTR), and the instance is deleted if it is not upgraded within 30 days of the 12-month expiry. So the case-study Managed Instance, which specifies LTR of 7 years and zone redundancy, cannot run on the free offer. The first-year figure above is a billing allowance against the paid design, not a free-tier deployment of it.
Follow-up questions
The company is migrating an on-premises SQL Server that runs nightly SQL Agent jobs, cross-database reports, and a CLR assembly, with minimal application changes. Which relational service should the architect recommend?
A) Azure SQL Database, General Purpose tier B) Azure SQL Managed Instance, General Purpose tier C) SQL Server on Azure VMs, using the existing licences D) Azure Database for PostgreSQL, Flexible Server SQL Agent, cross-database queries, and CLR, so the workload migrates with minimal changes - exactly what the requirement asks for. A is wrong because Azure SQL Database is a single-database PaaS service with no SQL Agent, no cross-database queries, and no CLR; the jobs and reports would have to be rewritten. C is wrong because a VM would preserve everything but leaves the team owning patching, backups, and high availability, and the exam's rule is PaaS first - a VM is chosen only when a requirement cannot be met by PaaS, and Managed Instance meets them all. D is wrong because the application is written for SQL Server, not PostgreSQL; changing engine would be a rewrite, not a migration.
Correct answer: B Explanation: Managed Instance offers near 100% compatibility with SQL Server, including
An auditor asks the company to prove who changed a student's payment record 150 days ago, and from where. Entra ID sign-in logs are visible for only 30 days. Which design meets the audit requirement?
A) Raise the Entra ID retention setting to 180 days in the Entra admin centre B) Route Entra ID audit and sign-in logs to a Log Analytics workspace with 180-day retention for those tables C) Enable Azure Policy to block changes to student records D) Move the payment records to Cosmos DB, which retains history automatically place, so the logs must be routed out before they expire; a Log Analytics workspace with 180-day retention on the audit and sign-in tables keeps them queryable for the whole period the auditor needs. A is wrong because there is no retention setting in Entra ID that extends sign-in logs to 180 days - the limit is a property of the service tier. C is wrong because blocking changes does not create an audit trail of the changes that do happen; it prevents work rather than recording it. D is wrong because Cosmos DB does not retain a queryable 180-day history of who changed a record and from where; that is a logging design question, not a database choice.
Correct answer: B Explanation: Entra ID retention is fixed at 30 days on P1/P2 and cannot be extended in
The company's administrators currently hold permanent Global Administrator roles. The business requires that no administrator holds standing access to production data. Which solution meets that requirement?
A) Move all administrators to Entra ID P1 and require multi-factor authentication B) Use Privileged Identity Management so administrators activate roles just-in-time, with approval and an audit record C) Give administrators a second account used only for production access D) Store the administrator credentials in Key Vault and rotate them monthly a limited time (here a maximum of 8 hours — the default; the activation limit is configurable from 1 to 24 hours), with approval and a full audit record, so no administrator holds standing access - which is precisely what the requirement states. A is wrong because P1 does not include PIM at all, and multi-factor authentication proves who signed in, not whether they hold standing access. C is wrong because a second account with permanent production access is still standing access, just under a different username. D is wrong because rotating credentials does not remove standing access either; a rotated permanent credential is still permanent access.
Correct answer: B Explanation: PIM turns administrator roles into just-in-time access: the role is activated for
The leadership team wants weekly reports on enrolments, pass rates, and revenue. The reporting queries run a few hours a week over Parquet files in the data lake, and the team has no Spark specialist. Which analysis solution fits best?
A) A dedicated Synapse SQL pool, running continuously B) A Synapse serverless SQL pool, querying the Parquet files directly C) A mapping data flow in Azure Data Factory, running on a Spark cluster D) A SQL Server on an Azure VM, with the Parquet files imported nightly bills $5.50 per terabyte of data processed, and bills nothing when idle - the right shape for a workload that runs a few hours a week and needs no Spark skills. A is wrong because a dedicated pool bills per DWU-hour around the clock, including the six days a week nobody runs a report. C is wrong because mapping data flows run on Spark clusters with an 8-vCore minimum, which adds cost and needs the Spark skills the team does not have, for transformations this workload does not need. D is wrong because it adds a VM to own and a nightly import job for data that can already be queried where it sits.
Correct answer: B Explanation: A serverless SQL pool queries Parquet files in the lake directly with T-SQL,
Chapter 2 addendum — Data storage
Common mistakes and exam traps — Data storage
- Recommending Azure SQL Database for a workload that needs instance-level features. The exam describes a migration with SQL Server Agent jobs, cross-database queries, or CLR assemblies and offers Azure SQL Database as the "fully managed" answer. Azure SQL Database is a single-database service with no SQL Agent and no cross-database queries. So the workload would need rework. The correct principle is to recommend Azure SQL Managed Instance whenever the scenario mentions instance-level features or minimal-change lift-and-shift.
- Recommending Hyperscale for a small, latency-sensitive OLTP workload. The exam offers Hyperscale as the most impressive tier for a 50 GB database that needs the lowest write latency. Hyperscale's strength is independent scaling of compute and storage, databases up to 128 TB, and many read replicas. It is not the lowest latency. The correct principle is to match the tier to the workload shape. Business Critical, with local SSD and multiple isolated replicas, is the answer for latency-sensitive OLTP.
- Putting a dev database that runs 8 hours a day on a provisioned tier. The exam describes a database used 9-to-5 on weekdays and offers a smaller provisioned tier as the cost saving. A smaller provisioned tier still bills 24/7. So it saves little. The correct principle is to ask "when is this database actually used?" first. Use serverless compute with auto-pause for Azure SQL Database, or stop/start with a Burstable tier for PostgreSQL/MySQL Flexible Server.
- Using a failover group to undo an accidental delete. The exam describes rows deleted by mistake and offers an auto-failover group as the recovery. A failover group replicates the delete to the secondary just as faithfully as it replicates good writes. So it cannot undo it. The correct principle is to match the mechanism to the failure: point-in-time restore recovers from a bad change, while a failover group recovers from a regional outage.
- Assuming point-in-time restore covers a multi-year retention requirement. The exam says backups must be kept for 7 years for audit and offers point-in-time restore with a long retention. PITR retention caps at 35 days (7 days on Basic). So it cannot reach back years. The correct principle is that PITR is for recent mistakes, while long-term retention (LTR) keeps weekly, monthly, or yearly full backups for up to 10 years.
- Combining zone redundancy with the Archive tier in one storage account. The exam asks for a storage account that is both zone-redundant and uses the Archive tier, and both options look reasonable on their own. The combination is impossible. The Archive tier is only supported on LRS, GRS, and RA-GRS accounts, never on ZRS, GZRS, or RA-GZRS. The correct principle is to spot impossible combinations: drop the zone requirement (use GRS with Archive) or keep zone redundancy and use Cool or Cold instead of Archive.
- Treating geo-redundant storage as protection against deletion. The exam describes blobs deleted by a compromised account and offers GRS as the recovery. GRS replicates the deletion to the secondary region within minutes. So the copy is gone in both regions. The correct principle is that redundancy protects against hardware and site failure, not against deletion: recovery from deletion needs soft delete, versioning, or a vaulted backup.
- Fixing Cosmos DB 429 errors by adding more RU/s. The exam shows a container throttling even though total provisioned RU/s looks generous, and offers a bigger RU/s setting as the fix. Throughput is spread evenly across physical partitions. So one hot partition from a poor partition key (for example, a status field with three values) throttles while the rest of the system sits idle. The correct principle is to fix the partition key — a high-cardinality key with even distribution, or a synthetic key — because adding RU/s does not fix a hot partition.
- Paying for Strong consistency when Session would do. The exam describes a global user-profile store where each user must see their own latest updates, and offers Strong consistency as the "safest" answer. Strong consistency gives an RPO of 0 but costs the most latency and throughput. It is not even supported with multi-region writes. The correct principle is to match the guarantee to the tolerance: Session consistency (the default) guarantees read-your-own-writes and is enough for profiles, carts, and most applications.
- Answering "even database administrators must not read the data" with TDE. The exam uses that exact phrase and offers transparent data encryption as the answer. TDE encrypts data at rest and is on by default. But it decrypts data for anyone authorised to query it — including DBAs. The correct principle is to read the requirement literally. Hiding plaintext from privileged database users needs Always Encrypted on the sensitive columns. The data is encrypted in the application before it ever reaches the database.
Architect's decision checklist — Data storage
Use this checklist on exam day. If you cannot answer an item from the scenario, the scenario probably has not given you that fact — and the exam is testing whether you notice it is missing.
| Check | Why it matters |
|---|---|
| [ ] Relational engine: which one does the application already use? | PostgreSQL/MySQL stays on Flexible Server; SQL Server with instance features goes to Managed Instance; a new single database goes to Azure SQL Database. |
| [ ] Instance features: SQL Agent, cross-database queries, CLR? | Any "yes" rules out Azure SQL Database and points at Managed Instance (or a VM). |
| [ ] Tier: what is the binding requirement? | A 4 TB limit forces Hyperscale; lowest write latency forces Business Critical; a budget workload fits General Purpose. |
| [ ] Compute: when is the database actually used? | Steady production = provisioned; intermittent or business-hours = serverless with auto-pause or stop/start. |
| [ ] Scale pattern: reads, writes, many databases, or too much data? | Read overload = read scale-out; spiky many databases = elastic pool; write or size ceiling = sharding or Hyperscale. |
| [ ] Partition key: high cardinality and even spread? | A low-cardinality key creates a hot partition that throttles at 429 no matter how much RU/s you buy; the key cannot be changed without a new container. |
| [ ] Consistency: what staleness can the workload tolerate? | Strong = zero staleness at the highest cost; Session = read-your-own-writes (the usual answer); Eventual = counters and likes. |
| [ ] Protection: which failure are you surviving? | Accidental change = PITR; regional outage = failover group or geo-restore; deletion or ransomware = soft delete, versioning, immutability, or vaulted backup. |
| [ ] Retention: does it cover the discovery delay? | PITR caps at 35 days; a bad change discovered after 40 days needs LTR, and compliance years need LTR too. |
| [ ] Storage tier: how often is the data read? | Daily = Hot; monthly = Cool; quarterly or less = Cold; almost never = Archive — and Archive cannot sit on a ZRS account. |
| [ ] Integration: batch, streaming, or change capture? | Nightly loads = Data Factory pipelines; seconds matter = Event Hubs plus Stream Analytics; every row change = CDC, not a nightly full copy. |
| [ ] Analysis: where does the data already sit? | Ad-hoc queries over lake files = serverless SQL pool; predictable reporting = dedicated pool; analytics on live operational data without ETL = Synapse Link. |
End-of-chapter check questions (multiple choice)
Answer these before moving on. The answer key follows. Each question has one correct answer.
The company is migrating an on-premises SQL Server that uses SQL Server Agent jobs and cross-database queries, with minimal application changes. Which service should you recommend?
A) Azure SQL Database, General Purpose tier B) Azure SQL Managed Instance, General Purpose tier C) SQL Server on Azure VMs, using the existing licences D) Azure Database for PostgreSQL, Flexible Server
A 6 TB database grows steadily and needs read replicas for reporting. Which Azure SQL Database service tier fits?
A) General Purpose B) Business Critical C) Hyperscale D) DTU Basic
The company has 40 customer databases with non-overlapping usage peaks. What scalability pattern should you recommend?
A) Scale up each database to its peak B) An elastic pool C) One huge database for all customers D) Read replicas on every database
A developer deleted rows three days ago. Which feature recovers them, and why not an auto-failover group?
A) An auto-failover group — it keeps a copy from before the delete B) Point-in-time restore (PITR) within the retention window — it recovers to a moment before the delete, while a failover group replicates the delete C) Long-term retention (LTR) — it keeps weekly backups for 7 years D) Geo-redundant storage (GRS) — the secondary region still has the rows
A global application needs flexible JSON documents, multi-region writes, and each user must see their own writes. Which service and consistency level?
A) Azure Cosmos DB with Strong consistency B) Azure Cosmos DB with Session consistency C) Azure Table Storage with Strong consistency D) Azure Cosmos DB with Eventual consistency
Archived compliance data must be readable only after a rehydration that takes hours, and storage cost must be minimal. Which access tier?
A) Hot B) Cool C) Cold D) Archive
A zone-redundant storage account is proposed with the Archive tier. What is wrong with this design?
A) Nothing — the combination works B) Archive is not supported on ZRS (or GZRS) accounts — only LRS, GRS, and RA-GRS support Archive; use GRS with Archive, or ZRS with Cool/Cold C) ZRS supports Archive but GRS does not D) Archive requires Premium storage
A Cosmos DB account needs self-service restore to any point in the last 30 days. Which backup mode?
A) Periodic backup B) Continuous backup, 7-day tier C) Continuous backup, 30-day tier D) Blob snapshots
On-premises SQL Server data must be copied nightly into Azure. Which integration service and component?
A) Azure Data Factory with a self-hosted integration runtime B) Synapse Link for Cosmos DB C) Azure Event Hubs with Stream Analytics D) Azure Logic Apps on its own
Analysts need ad-hoc queries over Parquet files in the lake without loading data. Which service?
A) A Synapse dedicated SQL pool, running continuously B) A Synapse serverless SQL pool C) Azure Databricks with a permanently running cluster D) An Azure Data Factory mapping data flow
Answer key
Chapter 2 addendum — based on the official Microsoft AZ-305 exam objectives (skills measured April 17, 2026). Unofficial study material — not affiliated with or endorsed by Microsoft.
Want the full Microsoft Azure Solutions Architect Expert (AZ-305) package?
This guide is free to read. Get the downloadable PDF guidebook plus the full 700-question AZ-305 practice exam with 3 months of online access.
Get AZ-305 Full Access — $10