All exams← All Azure Data Fundamentals (DP-900) notes

Relational data on Azure: Azure Data Fundamentals (DP-900) revision notes

Revision notes

Relational data on Azure

Relational data lives in tables made of rows and columns, with a fixed schema defined before you load data. Tables link together using primary keys (unique row identifier) and foreign keys (a reference to another table's primary key), and you query them with SQL. Azure gives you several ways to run relational workloads, each trading off control against management effort.

The main services

  • Azure SQL Database: a fully managed PaaS database, one database (or elastic pool of databases) per app, built on the SQL Server engine, always patched to the latest version.
  • Azure SQL Managed Instance: near-100% SQL Server engine compatibility, good for lift-and-shift migrations that need cross-database queries, SQL Agent, or linked servers.
  • SQL Server on Azure VMs: full IaaS control, you manage the OS and SQL Server yourself; pick this when you need OS-level access or unsupported features.
  • Azure Database for PostgreSQL and Azure Database for MySQL: managed open-source relational engines, same PaaS convenience as SQL Database but for open-source workloads.
  • Azure SQL Edge: a small-footprint SQL engine for IoT and edge devices, supports time-series and streaming data close to the source.

Deployment and purchasing models

  • DTU (Database Transaction Unit) model: bundles compute, memory and storage into one blended metric, simplest for predictable small workloads.
  • vCore model: lets you scale compute and storage independently, and lets you use Azure Hybrid Benefit to reuse existing SQL Server licences for a discount.
  • Serverless compute tier: auto-scales and can auto-pause during inactivity, billed per second of actual use, ideal for spiky or intermittent workloads.
  • Elastic pools: share resources across many databases with unpredictable usage patterns, cheaper than provisioning each database for peak load.

Resilience and access

  • Built-in automated backups with point-in-time restore, retained for 7-35 days depending on tier, extendable with long-term retention.
  • Active geo-replication and auto-failover groups give readable secondary copies in other regions for disaster recovery.
  • Access is via SQL authentication or Microsoft Entra ID authentication; connections are secured with firewall rules and private endpoints.

Common mistakes to avoid

  • Don't confuse Managed Instance (near-full SQL Server compatibility, instance-scoped features) with SQL Database (single/pooled database scope, some SQL Server features unsupported).
  • Don't assume normalisation always wins - it reduces redundancy but can mean more joins and slower reads for reporting workloads.
  • Remember elastic pools are for many databases with variable, non-simultaneous peaks, not for a single large database.
  • Serverless is about auto-scaling and auto-pausing compute, not about removing the database server concept entirely.

Key facts

Flashcards

What uniquely identifies each row in a relational table?
A primary key.
tap to reveal
What does a foreign key do?
References the primary key of another table to create a relationship between tables.
tap to reveal
Which Azure relational service offers near-100% SQL Server engine compatibility for lift-and-shift migrations?
Azure SQL Managed Instance.
tap to reveal
Which Azure option gives you full IaaS control over the OS and SQL Server?
SQL Server on Azure Virtual Machines.
tap to reveal
What are the two Azure SQL purchasing models?
DTU (blended compute/memory/storage unit) and vCore (independently scalable compute and storage).
tap to reveal
What does Azure Hybrid Benefit let you do?
Reuse your existing on-premises SQL Server licences on Azure SQL for a cost discount, under the vCore model.
tap to reveal
What is the serverless compute tier for Azure SQL Database known for?
Auto-scaling and auto-pausing compute during inactivity, billed per second of actual use.
tap to reveal
When should you use an elastic pool?
When you have many databases with unpredictable, non-simultaneous usage spikes, to share resources cost-effectively.
tap to reveal
What backup feature lets you restore a database to an earlier moment?
Point-in-time restore, from automated backups typically retained 7-35 days.
tap to reveal
What provides cross-region disaster recovery with readable secondary databases for Azure SQL?
Active geo-replication and auto-failover groups.
tap to reveal
Which two Azure PaaS services host open-source relational engines?
Azure Database for PostgreSQL and Azure Database for MySQL.
tap to reveal
What is Azure SQL Edge designed for?
A lightweight SQL engine for IoT and edge devices, supporting time-series and streaming data close to the source.
tap to reveal
What two authentication methods secure access to Azure SQL Database?
SQL authentication and Microsoft Entra ID authentication.
tap to reveal
True or false: normalisation always improves query performance.
False - it reduces redundancy but can require more joins, which may slow down reporting-style reads.
tap to reveal
Practice questions

Relational data on Azure: 5 practice questions

Q1. In a relational database, what uniquely identifies each row in a table?
  • A.  A view
  • B.  An index
  • C.  A primary key
  • D.  A foreign key
Show answer & explanation
✓ Answer: C. A primary key
A primary key is a column (or set of columns) whose values uniquely identify every row in a table, and it cannot contain NULLs. A foreign key instead references a primary key in another table to establish a relationship. Indexes speed up lookups but do not by themselves enforce row uniqueness.
Q2. Which term describes the process of organizing tables to reduce data redundancy and improve data integrity?
  • A.  Replication
  • B.  Partitioning
  • C.  Indexing
  • D.  Normalization
Show answer & explanation
✓ Answer: D. Normalization
Normalization splits data into related tables and applies rules (normal forms) so each fact is stored once, minimizing redundancy and update anomalies. Indexing speeds up queries, partitioning splits large tables for manageability, and replication copies data between servers - none of these address redundancy design.
Q3. Which SQL statement category is used to retrieve rows from a table without changing any data?
  • A.  DCL
  • B.  DML SELECT (DQL)
  • C.  DDL
  • D.  TCL
Show answer & explanation
✓ Answer: B. DML SELECT (DQL)
SELECT statements read data and are sometimes classed separately as Data Query Language (DQL), though many treat it as part of DML. DDL (CREATE, ALTER, DROP) defines schema objects, DCL (GRANT, REVOKE) manages permissions, and TCL (COMMIT, ROLLBACK) controls transactions.
Q4. A company wants a fully managed relational database service on Azure that requires the least administrative overhead for patching and backups, while supporting a single database with predictable performance. Which service best fits this need?
  • A.  Azure Table Storage
  • B.  SQL Server on an Azure Virtual Machine
  • C.  Azure SQL Database
  • D.  Azure Synapse Analytics dedicated SQL pool
Show answer & explanation
✓ Answer: C. Azure SQL Database
Azure SQL Database is a fully managed platform-as-a-service (PaaS) offering where Microsoft handles patching, backups, and high availability automatically. SQL Server on a VM is infrastructure-as-a-service and still requires the customer to manage the OS and SQL Server updates. Synapse dedicated SQL pools target large-scale analytics, not general OLTP workloads.
Q5. A retail company has many small, lightly used databases with unpredictable, spiky usage patterns and wants to share compute resources cost-effectively across them. Which Azure SQL Database feature is designed for this scenario?
  • A.  Read replica
  • B.  Hyperscale service tier
  • C.  Elastic pool
  • D.  Geo-restore
Show answer & explanation
✓ Answer: C. Elastic pool
Elastic pools let multiple Azure SQL databases share a set pool of resources (DTUs or vCores), which is cost-effective when individual databases have unpredictable or infrequent peaks. Hyperscale targets very large single databases needing fast scale-out storage, not resource sharing across many small databases.
Test yourself
See the Azure Data Fundamentals (DP-900) page

More Azure Data Fundamentals (DP-900) topics