You are on page 1of 107

Exam DP-900: Microsoft Azure Data

Click to edit Master title


Fundamentals style
Course

Sebastian Velasco
Tim Warner
Click to edit Master title style
• Based in Nashville, TN, US
• Central time zone
• Ex-Microsoft
• MCT, Ex-MVP
• Twitter: @TechTrainerTim
• Badge:
TechTrainerTim.com
Session 1 of 2 Agenda
Click to edit Master title style
• Introduction
• Core Data Concepts
• Non-Relational Data
• Relational Data (start)
• Batch processing
• Stream processing
Session 2 of 2 Agenda
Click to edit Master title style
• Content catch-up
• Relational Data (finish)
• Data Analytics
• Exam DP-900 strategy
Course Expectations
Click to edit Master title style
• We'll learn by doing – at least 70 percent demo
• Real-world approach
• Please review the recordings…several times!
• 10-minute break at midpoint
• I’m here to answer your questions – take advantage of
this
• Use the Q&A panel
Session Recordings
Click to edit Master title style
Session Recordings
Click to edit Master title style
Mobile Browser: learning.oreilly.com
Click to edit Master title style
O'Reilly Mobile App
Click to edit Master title style
Microsoft Certification Tiers
Click to edit Master title style
Azure Data Fundamentals
Click to edit Master title style

DP-900
DP-900 Changes: August 4, 2022
Click to edit Master title style
Azure Data Engineer Associate
Click to edit Master title style

DP-203
DP-203
Data Engineering on Microsoft
Azure

Data Engineering on Microsoft Azure

1-year validity period


Azure Data Scientist Associate
Click to edit Master title style

DP-100
Azure Data Analyst Associate
Click to edit Master title style
DA-100
Azure Cosmos DB Developer
Click to edit Master title style

DP-420
Tim'stoCertification
Click edit Master Study Model
title style

Conceptual
Hands-on experience
understanding

Practice exam review


Thank you!
Click to edit Master title style

• Course materials: timw.info/dp900


• Twitter: @TechTrainerTim
• Work: timw.info/ps
• Web: TechTrainerTim.com
Click to edit Master title style

Core Data Concepts


Data Types
Click to edit Master title style

Structured Semi-structured Unstructured


Table
Data Formats - JSON
Click to edit Master title style
Data Workload Types
Click to edit Master title style
Online Transactional Processing (OLTP) Online Analytical Processing (OLAP)

Customer
CustomerID CustomerName CustomerPhone

Orders
OrderID CustomerID OrderDate

Data is periodically loaded,


aggregated and stored in a cube
Data is stored one transaction at a
time
Data Processing Types
Click to edit Master title style
Batch

Streaming
Data Analytics
Click to edit Master title style
On-premises data
SQL Server, Oracle, Data ingestion Data storage Data processing Data visualization
fileshares, SAP

Cloud data
Azure, AWS, GCP

SaaS data
Salesforce, Dynamics
Query Tools
Click to edit Master title style
• Azure Portal
• Azure Storage Explorer
• Azure Data Studio
• Visual Studio Code
• SQL Server Management Studio
• PowerShell
• Azure CLI
• MySQL Workbench
Click to edit Master title style

Non-Relational Data
Non-Relational Data Characteristics
Click to edit Master title style
## Customer 1 ID: 1
Name: Mark Hanson
Telephone: [ Home: 1-999-9999999, Business: 1-888-8888888, Cell: 1-777- 7777777 ]
Address: [ Home: 121 Main Street, Some City, NY, 10110,
Business: 87 Big Building, Some City, NY, 10111 ]
## Customer 2 ID: 2
Title: Mr
Name: Jeff Hay
Telephone: [ Home: 0044-1999-333333, Mobile: 0044-17545-444444 ]
Address: [ UK: 86 High Street, Some Town, A County, GL8888, UK,
US: 777 7th Street, Another City, CA, 90111 ]

Non-relational collections can have:

Multiple entities in the same collection or container Have a different, Are often defined by labeling each field with the
with different fields non-tabular schema name it represents
CAP Theorem
Click to edit Master title style
Azure Blob Storage
Click to edit Master title style
Block blobs Page blobs Append blobs
Has a maximum size of 4.7TB Can hold up to 8TB of data The maximum size is just over
195GB
Best for storing large, discrete, Is organized as a collection of
binary objects that changes fixed sized-512 byte pages Is a block blob that is used to
infrequently optimize append operations
Used to implement virtual disk
Each individual block can store storage for virtual machines Each individual block can store
up to 100MB of data up to 4MB of data
A block blob can contain up to
50000 blocks
Azure Table Storage
Click to edit Master title style
Key Value
(Customer ID) (Customer Data)

C1 AAAAA BBB 101 Block Street YY 999 888

C2 MM NN 21 A Street 5 B Avenue

C3 DDD EEE FFF 111 222 66 C Road


Azure Cosmos DB
Click to edit Master title style

Scalability Performance Availability Programming


model
Cosmos DB APIs
Click to edit Master title style
SQL API Table API MongoDB API Cassandra API Gremlin API
• Supports SQL- • Compatible • Compatible • Compatible • A graph
like query with Azure with MongoDB with Cassandra database
language Table Storage
Cosmos DB SQL API
Click to edit Master title style
Aggregation Function Basics SQL API examples
COUNT( <fields_to_count> ) SELECT COUNT(*) FROM Products p
SUM( <numeric_fields> )
SELECT SUM(p.quantity) FROM Products p
AVG( <numeric_fields> )
MAX( <numeric_fields> ) WHERE p.expired = 0
MIN( <numeric_fields> ) SELECT AVG(p.price) AS ‘Average Price’
FROM Products p

SELECT p1.ID, p.Name, p1.Description,


p1.Price FROM Products p1
WHERE p1.Price = (SELECT MIN(p2.Price) FROM
Product p2)
Click to edit Master title style

Relational Data
I Relational Database Use Cases
Click to edit Master title style
d
e
IoT:
Although typically considered for non-relational, the data from IoT devices could be structured and consistent

n Online transaction processing:


For example order systems that perform many small transactional updates
t
Data warehousing:
i Large amounts of data can be imported from multiple sources and structured to enable high-performance
queries

f
y
Relational Database Tables
Click to edit Master title style
Customers
CustomerID CustomerName CustomerPhone Data is stored in a table
100 Muisto Linna XXX-XXX-XXXX
101 Noam Maoz XXX-XXX-XXXX
Table consists of rows and columns
102 Vanja Matkovic XXX-XXX-XXXX
103 Qamar Mounir XXX-XXX-XXXX
104 Zhenis Omar XXX-XXX-XXXX All rows have same # of columns
105 Claude Paulet XXX-XXX-XXXX
106 Alex Pettersen XXX-XXX-XXXX
Each column is defined by a datatype
107 Francis Ribeiro XXX-XXX-XXXX
ACID Principle
Click to edit Master title style
Normalization
Click to edit Master title style
Customers Orders
CustomerID CustomerName CustomerPhone OrderID CustomerName CustomerPhone
100 Muisto Linna XXX-XXX-XXXX AD100 Noam Maoz XXX-XXX-XXXX
101 Noam Maoz XXX-XXX-XXXX AD101 Noam Maoz XXX-XXX-XXXX
102 Vanja Matkovic XXX-XXX-XXXX AD102 Noam Maoz XXX-XXX-XXXX
103 Qamar Mounir XXX-XXX-XXXX AX103 Qamar Mounir XXX-XXX-XXXX
104 Zhenis Omar XXX-XXX-XXXX AS104 Qamar Mounir XXX-XXX-XXXX
105 Claude Paulet XXX-XXX-XXXX AR105 Claude Paulet XXX-XXX-XXXX
106 Alex Pettersen XXX-XXX-XXXX MK106 Muisto Linna XXX-XXX-XXXX

Data is normalized to:


Reduce storage Avoid data duplication Improve data quality
Table Relationships
Click to edit Master title style
Customers Orders
CustomerID CustomerName CustomerPhone OrderID CustomerID SalesPersonID
100 Muisto Linna XXX-XXX-XXXX AD100 101 200
101 Noam Maoz XXX-XXX-XXXX AD101 101 200
102 Vanja Matkovic XXX-XXX-XXXX AD102 101 200
103 Qamar Mounir XXX-XXX-XXXX AX103 103 201
104 Zhenis Omar XXX-XXX-XXXX AS104 103 201
105 Claude Paulet XXX-XXX-XXXX AR105 105 200
106 Alex Pettersen XXX-XXX-XXXX MK106 105 201

In a normalized database schema:


Primary Keys and Foreign keys are used to define No data duplication exists (other than key values in 3rd Data is retrieved by joining tables together
relationships Normal Form (3NF) in a query
Indexes
Click to edit Master title style
Customers IDX-CustomerRegion
CustomerID CustomerName CustomerPhone CustomerID Region
100 Muisto Linna XXX-XXX-XXXX 100 France
101 Noam Maoz XXX-XXX-XXXX 101 Brazil
102 Vanja Matkovic XXX-XXX-XXXX 102 Croatia
103 Qamar Mounir XXX-XXX-XXXX 103 Jordan
104 Zhenis Omar XXX-XXX-XXXX 104 Spain
105 Claude Paulet XXX-XXX-XXXX 105 France
106 Alex Pettersen XXX-XXX-XXXX 106 USA

An index:
Reduces the amount of data pages that need to be Data is retrieved by joining tables together
Optimizes search queries for faster data retrieval
read to retrieve the data in a SQL Statement in a query
Views
Click to edit Master title style
Customers Orders Create the definition of a
view:
CustomerID CustomerName CustomerPhone OrderID CustomerID SalesPersonID CREATE VIEW
vw_customerorders AS
100 Muisto Linna XXX-XXX-XXXX AD100 101 200 SELECT
101 Noam Maoz XXX-XXX-XXXX AD101 101 200 Customers.CustomerID,
Customers.CustomerName,
102 Vanja Matkovic XXX-XXX-XXXX AD102 101 200 Orders.OrderID FROM
Customers JOIN Orders on
AX103 103 201 Customers.CustomerID =
103 Qamar Mounir XXX-XXX-XXXX Orders.CustomerID
AS104 103 201
104 Zhenis Omar XXX-XXX-XXXX Retrieve the orders placed
AR105 105 200 by customer 102 using the
105 Claude Paulet XXX-XXX-XXXX MK106 105 201 view:
SELECT CustomerName,
106 Alex Pettersen XXX-XXX-XXXX DB205 100 205 OrderID from
vw_customerorders WHERE
CustomerID=102
A view is a virtual table based on the result set of query:
Views are created to simplify the query Combine relational data into a single pane view
SQL Statement Categories
Click to edit Master title style
DML DDL DCL
Data Manipulation Language Data Definition Language Data Control Language
Used to query and manipulate Used to define database Used to manage security
data objects permissions
SELECT, INSERT, UPDATE, CREATE, ALTER, DROP, GRANT, REVOKE, DENY
DELETE RENAME
SQL DML Statements
Click to edit Master title style
Statement Description
SELECT Select/read from a table
INSERT Insert new rows in a table
UPDATE Edit/Update existing rows in a table
DELETE Delete existing rows in a table
SELECT Statement
Click to edit Master title style
SELECT EmployeeId, YEAR(OrderDate) AS OrderYear
FROM Sales.Orders
WHERE CustomerId = 71
GROUP BY EmployeeId, YEAR(OrderDate)
HAVING COUNT(*) > 1
ORDER BY EmployeeId, OrderYear;
INSERT Statement
Click to edit Master title style
The INSERT ... VALUES statement inserts a new row
INSERT INTO Sales.OrderDetails
(orderid, productid, unitprice, qty, discount)
VALUES (10255,39,18,2,0.05);

Table and row constructors add multirow capability to INSERT ... VALUES
INSERT INTO Sales.OrderDetails
(orderid, productid, unitprice, qty, discount)

VALUES
(10256,39,18,2,0.05),
(10258,39,18,5,0.10);
SQL DML Statements
Click to edit Master title style
Statement Description
CREATE Create a new object in the database, such as a table or a view
Modify the structure of an object. For instance, altering a table to add a new
ALTER
column.
DROP Remove an object from the database.
RENAME Rename an existing object.
CREATE Statement
Click to edit Master title style
CREATE TABLE Mytable
(Mycolumn1 int NOT NULL PRIMARY KEY, Mycolumn2 VARCHAR(50) NOT
NULL , Mycolumn2 VARCHAR(10) NOT NULL
Click to edit Master title style

Data Analytics
Data Processing
Click to edit Master title style

Data
processing
Functions Cognitive Services

Raw
Data

Databricks Other tools


Cleaned and
transformed data
Data Analytics - Types
Click to edit Master title style
Data Lake
Click to edit Master title style
Data Warehouse Star Schema
Click to edit Master title style
Data Warehouse Snowflake Schema
Click to edit Master title style
ETL
Click to edit Master title style
Transform

Basic filtering and


transformations
Extract Load

Discard sensitive data

Azure Data Factory

Azure Stream Analytics


ELT
Click to edit Master title style
Load Transform

Complex
processing
Extract
Azure Synapse
Click to edit Master title style

PolyBase
Azure Synapse SQL Pool
Click to edit Master title style
ADLS Gen 2
Click to edit Master title style
A repository of data Organises data into Supports POSIX and It is compatible with
for your Modern Data directories for RBAC permissions Hadoop Distributed
Warehouse improved file access File System

Store
Azure Data Lake Storage
High performance data lake available in
all 54 Azure regions
Azure Databricks
Click to edit Master title style
Azure Data Factory
Click to edit Master title style
Power BI
Click to edit Master title style
Power BI Terminology
Click to edit Master title style
Power BI Terminology
Click to edit Master title style
Click to edit Master title style

Exam DP-900
Item Types
Click to edit Master title style
Click to edit Master title style
You need to move an Azure VM to another hardware
host.

Solution: You redeploy the VM.

Does this solution meet the goal?

a. Yes
b.No
Click to edit Master title style
Click to edit Master title style
Click to edit Master title style

Microsoft Online Testing


Microsoft Online Testing Process
Click to edit Master title style

timw.info/online
Microsoft Online Testing Process
Click to edit Master title style
Microsoft Online Testing Process
Click to edit Master title style
Microsoft Online Testing Process
Click to edit Master title style
Microsoft Online Testing Process
Click to edit Master title style
Microsoft Online Testing Process
Click to edit Master title style
Microsoft Online Testing Process
Click to edit Master title style
Microsoft Online Testing Process
Click to edit Master title style
Click to edit Master title style
Click to edit Master title style
Click to edit Master title style
Click to edit Master title style
Click to edit Master title style
Click to edit Master title style
Click to edit Master title style
Click to edit Master title style
Click to edit Master title style
Click to edit Master title style
Click to edit Master title style
Click to edit Master title style
Click to edit Master title style
Click to edit Master title style
Click to edit Master title style
Click to edit Master title style
Click to edit Master title style
Click to edit Master title style
Click to edit Master title style
Click to edit Master title style
Click to edit Master title style
Click to edit Master title style
Click to edit Master title style
Click to edit Master title style
Click to edit Master title style
Click to edit Master title style
Click to edit Master title style
Click to edit Master title style
Click to edit Master title style
Click to edit Master title style

You might also like