DP-900 Cheatsheet
Microsoft Azure Data Fundamentals
Download free PDFDescribe core data concepts (25–30%)
Data shapes and schemas
- **Structured data** follows a defined schema, commonly a table of rows and typed columns. A row represents an entity instance; a column represents an attribute.
- **Semi-structured data** carries field names or tags while allowing variable structure. JSON objects contain name/value pairs; arrays contain ordered values. XML uses nested elements and attributes.
- **Unstructured data** includes images, audio, video and free text. Metadata can describe a file without imposing a tabular schema on its contents.
- **Schema on write** validates structure before storage. **Schema on read** interprets stored data during analysis; it still requires a meaningful structure for the operation.
Common file formats
- **CSV** represents tabular records using delimiters and optional headers. Column types and relationships usually come from external rules rather than the file itself.
- **JSON** and **XML** support nested, self-describing records. **YAML** expresses structured values using readable indentation and mappings; **HTML** primarily describes web content.
- **Parquet** stores typed data by column with compression, helping analytical queries read selected columns efficiently. **Avro** uses a schema with row-oriented binary records.
Transactions, analytics and processing
- **OLTP** supports frequent, short transactions such as purchases, inventory updates and account transfers. It prioritizes correct concurrent operations and fast access to individual records.
- **OLAP** supports read-heavy exploration and aggregation across many records, often historical data from several systems. Reporting should avoid overloading operational databases.
- **Batch processing** handles a bounded collection on a schedule or trigger. Results arrive after collection and processing; overnight sales consolidation is a typical example.
- **Stream processing** handles incoming events continuously with low latency. Sensor telemetry and mobile events can feed rolling time-window calculations and timely alerts.
ACID transaction guarantees
- **Atomicity** means all operations in a transaction commit together or roll back together. A transfer must debit and credit as one unit.
- **Consistency** preserves declared integrity rules, moving the database from one valid state to another. It differs from consistency models used for distributed replicas.
- **Isolation** controls how concurrent transactions observe each other's work. The isolation level determines which intermediate changes or other concurrency effects a reader can see.
- **Durability** preserves committed changes through failures and restarts. ACID describes transaction guarantees; application retries still need protection against duplicate business operations.
Analytics questions and data roles
- **Descriptive** analytics summarizes what happened; **diagnostic** analytics investigates why. **Predictive** analytics estimates likely outcomes; **prescriptive** analytics recommends actions toward an objective.
- **Cognitive AI** interprets inputs such as speech, images and language. Recognizing content differs from summarizing historical metrics or recommending business actions.
- A **database administrator** manages security, availability, performance, backups and recovery. A **data engineer** builds ingestion, transformation pipelines and analytical data stores.
- A **data analyst** models and explores data, creates visualizations and communicates insights. A **data scientist** develops and evaluates statistical or machine learning models.
Identify considerations for relational data on Azure (20–25%)
Tables, keys and relationships
- A **relational database** organizes data into tables with defined columns and data types. SQL queries and constraints connect and protect the data.
- A **primary key** uniquely identifies each row and cannot contain null values. A **composite key** uses multiple columns together.
- A **foreign key** references a candidate key in another or the same table. Referential integrity prevents invalid references; a nullable foreign key can represent an optional relationship.
- **One-to-many** relationships link one parent to several children. A **junction table** represents many-to-many relationships using foreign keys to both entities.
Normalization and denormalization
- **Normalization** separates related entities to reduce redundant facts and insertion, update and deletion anomalies. Related data may require joins; normalization does not guarantee faster queries.
- **First normal form** removes repeating groups and uses atomic field values. **Second normal form** removes dependencies on only part of a composite candidate key.
- **Third normal form** removes transitive dependencies between non-key attributes. Store a department's details with the department, then reference it from employee records.
- **Denormalization** deliberately combines or repeats data to simplify reads, often for analytics. It trades fewer joins for more storage and additional consistency work during updates.
Views, procedures and indexes
- A **table** stores rows. A regular **view** exposes a reusable query as a virtual table, including joins or calculated columns; it does not normally store separate result rows.
- A **stored procedure** packages executable database operations and can accept parameters. A **scalar function** returns a single value for its inputs.
- An **index** speeds suitable searches at the cost of storage and write maintenance. The optimizer chooses an access path; simply having an index does not guarantee its use.
- A **clustered index** organizes table rows by its key; a table has at most one. **Nonclustered indexes** keep separate keys and row locators; multiple are possible.
- A **primary key** is a logical constraint and need not be clustered. An **INDEX table hint** can influence SQL Server's access path, but requires careful performance justification.
SQL statement families
- **DDL** defines objects: **CREATE** adds an object, **ALTER** changes its definition and **DROP** removes it. Altering a view changes its query definition.
- **DML** works with data: **INSERT** adds rows, **UPDATE** changes rows and **DELETE** removes rows. **MERGE** applies conditional changes using source and target data.
- **SELECT** retrieves data; it is often grouped with DML or called data query language. **DCL** manages access using **GRANT**, **REVOKE** and **DENY**.
- **DELETE** can filter rows with WHERE; **TRUNCATE TABLE** removes all rows while retaining the table definition. **DROP TABLE** removes the table itself.
Reading and combining data
- **SELECT** chooses columns or expressions; **FROM** identifies the source; **WHERE** filters rows. In dbo.Products, dbo is the schema and Products is the object name.
- **JOIN ... ON** combines related rows using a matching condition. **INNER JOIN** returns matches; **LEFT JOIN** also preserves unmatched left rows with null right-side values.
- **GROUP BY** creates groups for aggregates such as **SUM**, **AVG**, **COUNT**, **MIN** and **MAX**. **HAVING** filters groups; **ORDER BY** sorts output.
- **UNION** stacks compatible query results and removes duplicates; **UNION ALL** keeps them. **AS** assigns an alias. **UPDATE Products SET Quantity = 270 WHERE ProductID = 1** changes matching rows.
Azure relational service selection
- **Azure SQL Database** is database-focused PaaS. Microsoft manages infrastructure, patching, automatic backups and built-in availability; customers manage data, permissions and workload tuning.
- An **elastic pool** shares resources among several SQL databases with varying demand. **Serverless** compute for a single database scales within configured limits and can auto-pause in supported configurations; storage charges continue.
- **Azure SQL Managed Instance** offers broad SQL Server compatibility with managed maintenance. It supports instance-oriented features such as SQL Agent, native cross-database operations, Database Mail and Service Broker.
- **SQL Server on Azure VMs** is IaaS with OS and engine control. Customers retain more responsibility for configuration, patching, backup and availability design.
- **Azure Database for PostgreSQL** and **Azure Database for MySQL** provide managed relational engines. **PaaS** manages the platform; **IaaS** exposes VMs; **SaaS** delivers a finished application.
SQL access, protection and operations
- A SQL connection needs **network reachability**, valid authentication and database permissions. A changed client public IP can invalidate an IP firewall rule; **SELECT** permission authorizes table reads.
- **Microsoft Entra ID** supports identity-based sign-in and MFA for supported user flows. **SQL authentication** uses database credentials; Azure resource roles alone do not grant table access.
- **Private Link** provides a private endpoint in a virtual network. Configure DNS and public-access settings with it; creating an endpoint alone does not remove every public access path.
- **TDE** encrypts database files at rest. **Always Encrypted** protects selected columns with keys controlled outside the engine. **Microsoft Defender for SQL** helps detect threats and assess vulnerabilities.
- Eligible **read-only replicas** offload reporting from transaction processing. Backups provide recovery history; replica availability and regional disaster recovery serve separate needs.
SQL tools and repeatable deployment
- **SSMS** provides SQL administration and query tools. **SSDT** supports database projects and offline schema development in Visual Studio. **pgAdmin** and **MySQL Workbench** target their respective engines.
- **sqlcmd** executes T-SQL from the command line. **bcp** transfers bulk data between SQL Server and files. **Azure CLI** and **PowerShell** manage Azure resources.
- **SQL notebooks** combine narrative, queries and results. **Azure Data Studio** is retired; **Visual Studio Code with the MSSQL extension** provides supported SQL editing and notebook capabilities.
- **ARM templates** declaratively define Azure resources and dependencies in JSON for repeatable deployments. Infrastructure deployment differs from SQL statements that define database objects or manipulate rows.
Describe considerations for working with non-relational data on Azure (15–20%)
Match the non-relational model
- **Key/value stores** retrieve a value using a unique key, fitting sessions, preferences and shopping carts. An **in-memory cache** reduces repeated reads but needs expiration and invalidation rules.
- **Document stores** keep an entity's nested attributes together in a flexible document. **Column-family stores** organize rows into column families and can support sparse, variable attributes.
- **Graph databases** persist nodes and edges, with optional properties and direction. They suit relationship traversal, such as dependencies among network devices or social connections.
- **Time-series data** records values with timestamps, such as temperature readings. **Object storage** holds files plus metadata and an identifier; it suits media and large binary content.
- **NoSQL** does not mean no schema, no indexes or no transactions. Guarantees depend on the engine and operation scope; column-family databases differ from columnar analytical file formats.
Cosmos DB APIs and distribution
- **Azure Cosmos DB** supports partitioned, low-latency operational data with configurable throughput, consistency and regional distribution. Availability zones improve resilience within a supported region; multiple regions address regional failures.
- **API for NoSQL** stores JSON items and uses SQL-style queries. **MongoDB** uses the document model, BSON and MongoDB query syntax; **Gremlin** represents property graphs.
- **Table** supports key/value entities; **Cassandra** supports a wide-column model and CQL. Choose the API for the data model and application protocol when creating the account.
- For the **NoSQL API**, an account contains databases, containers and items. A container's **partition key** groups items into logical partitions; choose values that distribute storage and traffic evenly.
- Provisioned **throughput** can be dedicated to a container or shared at database level and is measured in **RU/s**. Container indexing policies control indexed paths; avoid hot partitions.
- **Consistency levels** range from strong through bounded staleness, session and consistent prefix to eventual. Multi-region writes are a separate capability; transactions within a logical partition can provide ACID guarantees.
Blob storage and access tiers
- **Blob Storage** organizes objects as storage account, container and blob. **Block blobs** suit files, **append blobs** suit append-oriented logs and **page blobs** support random-access page writes.
- **Hot** favors frequent reads; **Cool** and **Cold** reduce capacity cost for less frequent access with higher access costs. These are online tiers; Cool does not require rehydration.
- **Archive** is offline storage for rarely retrieved data. Reading archived content requires **rehydration** to an online tier, so retrieval takes substantially longer than online access.
- A **lifecycle management policy** can move eligible blobs to lower-cost tiers or delete them based on rules. Retention requirements and minimum storage periods affect the cost decision.
- **Change feed** records blob changes for downstream processing, including cache synchronization logic. **Snapshots** capture a point-in-time state; **versioning** retains versions; **soft delete** protects against accidental deletion.
Files, tables and hierarchical storage
- **Azure Files** supplies managed SMB or NFS shares. Applications can use a mapped drive or mount point; **Azure File Sync** caches supported shares on Windows Server.
- **Azure Table storage** is a schemaless key/value service inside a storage account. The combination of **PartitionKey** and **RowKey** uniquely identifies an entity; Timestamp is not its identity.
- Create the **storage account** before a Table storage table. A blob container and a file share are different resources and do not replace a table.
- **ADLS Gen2** adds a **hierarchical namespace** to Blob Storage: account, container or filesystem, directories and files. Directory operations suit large-scale analytics.
- **Azure RBAC** grants supported data access at broader resource scopes; **POSIX-like ACLs** control directory and file access. File-level ACLs and Azure role assignments are distinct mechanisms.
Storage redundancy boundaries
- **LRS** keeps replicas in one location within the primary region. **ZRS** replicates across availability zones in that region; neither by itself supplies a copy in another region.
- **GRS** combines local replication with asynchronous replication to a secondary region. **GZRS** combines zone redundancy in the primary region with a geo-replicated secondary copy.
- **RA-GRS** and **RA-GZRS** allow reads from the secondary endpoint before failover. Asynchronous geo-replication can lag, so redundancy does not guarantee zero data loss or replace backups.
Describe an analytics workload on Azure (25–30%)
Warehouse, lake and lakehouse
- A **data warehouse** integrates curated historical data from multiple sources for complex queries and reporting. A **data mart** focuses that analytical data on a subject or department.
- A **data lake** stores files in varied formats, including raw structured, semi-structured and unstructured data. A **lakehouse** combines lake storage with table management and analytical querying.
- **Delta Lake** adds a transaction log to data files, enabling ACID table operations and schema enforcement. It is a table format and storage layer, rather than a Spark runtime.
- A **modern analytical platform** can combine batch and streaming ingestion, scalable storage, transformations and serving layers. Separate operational processing from expensive analytical queries.
Facts, dimensions and semantic models
- A **fact table** records events at a defined grain, with measures and dimension keys. A **dimension table** describes entities such as products, customers or dates for filtering and grouping.
- A **star schema** connects facts directly to denormalized dimensions. A **snowflake schema** normalizes dimensions into related tables, adding joins and reducing repeated dimension attributes.
- A **semantic model** supplies business relationships, hierarchies and calculations. **Measures** calculate results in a filter context; hierarchies support drill-down from year to quarter to month.
ETL, ELT and Data Factory
- **ETL** extracts source data, transforms it before loading and writes prepared results to a target. **ELT** loads first, then transforms using the destination platform's compute.
- Transformations include cleaning, deduplication, validation, filtering, joins and aggregation. **Azure Data Factory** and **Synapse pipelines** orchestrate movement and processing across connected services.
- A **linked service** defines connection details. A **dataset** describes the data used by an activity. A **pipeline** groups activities; a **trigger** starts execution on a schedule or event.
- **Copy activity** moves data; **mapping data flows** transform it. **Control activities** such as Lookup, ForEach and If Condition coordinate decisions and execution.
- An **integration runtime** supplies data movement, activity dispatch or transformation infrastructure. **Self-hosted IR** connects supported private sources; **Azure-SSIS IR** executes SSIS packages.
SQL, Spark and analytical platforms
- **Azure Synapse Analytics** combines data integration, SQL analytics and Spark. A **dedicated SQL pool** provisions warehouse compute; a **serverless SQL pool** queries supported external files on demand.
- **MPP** splits work across compute nodes for parallel execution. Dedicated SQL pool compute can scale independently of storage and can pause while retained data continues to incur storage charges.
- **PolyBase** uses external tables to access supported external data with T-SQL. External querying differs from first loading all source data into warehouse tables.
- **Apache Spark** distributes data processing across a cluster. Azure Databricks, Synapse Spark pools and Spark-based HDInsight clusters support Spark workloads and interactive notebooks.
- **Azure Databricks** supports data engineering and analytics with Spark and Delta Lake. Connectors can read or write sources such as SQL databases, Cosmos DB, Event Hubs and lake files.
- **Microsoft Fabric** brings data integration, engineering, warehousing, real-time analytics and Power BI into a unified analytics platform. Its **OneLake** provides shared analytical storage.
Streaming, telemetry and HTAP
- **Event Hubs** ingests high-volume event streams; **IoT Hub** adds device connectivity and management. Ingestion receives events; a processing engine calculates results from them.
- **Azure Stream Analytics** uses a SQL-based language for streaming queries, joins and time windows. Spark Structured Streaming supports programmable stream processing and micro-batch execution.
- **Azure Data Explorer** analyzes logs, telemetry and time-series events with **Kusto Query Language (KQL)**. KQL is also associated with Synapse Data Explorer scenarios.
- **HTAP** combines transactional and analytical uses of operational data. **Synapse Link for Cosmos DB** exposes supported analytical data separately, reducing the need to run heavy analytics on the transaction store.
Power BI authoring and delivery
- **Power BI Desktop** supports data connection, Power Query preparation, modeling and interactive report authoring. The **Power BI service** hosts content, workspaces, sharing, refresh and dashboards.
- A **report** has one or more pages with filters, cross-highlighting and drill-down. A **dashboard** is a single service canvas with tiles that can summarize multiple reports or models.
- Dashboard tiles can include pinned visuals, live report pages and added text or media. A **dataflow** prepares reusable data; a **semantic model** supports reports and calculations.
- **Paginated reports** provide precise, multipage layouts for printing and exporting complete detail. **Power BI Report Builder** authors them; interactive reports favor exploration.
Choose the visual for the question
- **Line charts** reveal trends over time; **bar or column charts** compare categories. **Cards** show a headline value; **KPIs** compare performance with a target.
- **Treemaps** use nested rectangles for hierarchical proportions. **Scatter charts** compare two numeric measures; bubble size can encode another measure. **Pie charts** show a simple part-to-whole relationship.
- **Waterfall charts** explain increases and decreases in a running total. **Ribbon charts** show category rank changes; **funnel charts** show progression through stages.
- The **Key influencers visual** highlights factors associated with an outcome; a **decomposition tree** explores a measure across dimensions. Visual patterns reveal associations and outliers, but do not alone prove causation.