0% found this document useful (0 votes)
95 views24 pages

Database Administration On Microsoft Azure - Step by Step Activity Guide

Uploaded by

Ajit W
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
95 views24 pages

Database Administration On Microsoft Azure - Step by Step Activity Guide

Uploaded by

Ajit W
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 24

Database Administration on Microsoft Azure : Step By Step Activity Guide https://k21academy.com/microsoft-azure/database-administrator/micros...

+1 530 264 8480 (tel:+15302648480)


[email protected] (mailto:[email protected])
Whatsapp (https://k21academy.com/whatsapp)

Cloud Training Program


Microsoft Certified Azure Database
Administrator Associate | DP 300 |
Step By Step Activity Guides (Hands-
On Labs)
June 26, 2021 by Meenal Sarda (https://k21academy.com/author/meenal-sarda/)

1857 views

This blog post covers Hands-On Labs that you must perform to learn Database Administration on
Microsoft Azure & clear the Azure Database Administrator Associate Certification
(https://k21academy.com/microsoft-azure/database-administrator/dp-300/).

This post helps you in Database Administration on Microsoft Azure journey with your self-paced learning as
well as for your team learning. There are 24 Hands-On Labs in this course.

1. Provision A SQL Server On An Azure Virtual Machine


2. Connect To SQL Server And Restore A Backup
3. Deploy A VM Using An ARM Template
4. Configure Resources Needed Prior To Creating A Database
5. Deploy An Azure SQL Database

1 of 24 04-08-2023, 09:54
Database Administration on Microsoft Azure : Step By Step Activity Guide https://k21academy.com/microsoft-azure/database-administrator/micros...

9. +1 530
Authorize Access
264 8480 To Azure SQL Database With Azure Active Directory
(tel:+15302648480)
[email protected] (mailto:[email protected])
10. Whatsapp
Enable Advanced Data Security And Data Classification
(https://k21academy.com/whatsapp)
11. Manage Access To Database Objects
12. Isolate CPU Problems
13. Use Query Store To Observe Blocking Problems
14. Detect And Correct Fragmentation Issues
15. Identify Issues With Database Design AdventureWorks2017
16. Isolate Problem Areas In Poorly Performing Queries In AdventureWorks2017
17. Use Query Store To Detect And Handle Regression In AdventureWorks2017
18. Use Query Hints To Impact Performance In AdventureWorks2017
19. Deploy An Azure Template From A QuickStart Template On GitHub
20. Configure Notifications Based On Performance Metrics
21. Deploy An Azure Automation Runbook (or elastic job) To Rebuild Indexes On An Azure
SQL Database
22. Create An Always-on Availability Group
23. Enable Geo-Replication For Azure SQL Database
24. Backup To URL And Restore from URL

So let’s understand the working of each of these labs in brief!!

Module 1- The Role of the Azure Database


Administrator
Lab Scenario: You are a database administrator for AdventureWorks. You need to create a test
environment for use in a proof of concept. The proof of concept will use SQL Server on an Azure Virtual
Machine and a backup of the AdventureWorksDW database. You need to set up the Virtual Machine,
restore the database, and query it to ensure it is available.

1.) Provision A SQL Server On An Azure Virtual Machine


The first lab of the Database Administration on Microsoft Azure course is to deploy a SQL Virtual Machine

2 of 24 04-08-2023, 09:54
Database Administration on Microsoft Azure : Step By Step Activity Guide https://k21academy.com/microsoft-azure/database-administrator/micros...

+1 530 264 8480 (tel:+15302648480)


[email protected] (mailto:[email protected])

2.) Connect To SQL Server And Restore A Backup


In this lab, you’ll create a Remote Desktop Protocol (RDP) connection to the SQL Virtual Machine created
in the previous lab, download the database backup file, restore the database in SQL Server using SQL
Server Management Studio (SSMS) and then perform some SQL queries to confirm the availability of the
AdventureWorks database.

3 of 24 04-08-2023, 09:54
Database Administration on Microsoft Azure : Step By Step Activity Guide https://k21academy.com/microsoft-azure/database-administrator/micros...

Lab Scenario: As a database administrator for AdventureWorks, you will set up a new SQL Database
+1 530 264 8480 (tel:+15302648480)
(https://k21academy.com/microsoft-azure/data-engineer/azure-sql-database-azure-data-engineer-
[email protected] (mailto:[email protected])
associate-dp-200-dp-201/), including a Virtual Network Endpoint to increase and simplify the security of the
Whatsapp (https://k21academy.com/whatsapp)
deployment. Azure Data Studio will be used to evaluate the use of a SQL Notebook for data querying and
results in retention. Finally, an Azure Database for PostgreSQL will be deployed to support additional data
system needs.

1.) Deploy A VM Using An ARM Template


ARM or Azure Resource Manager templates (https://k21academy.com/microsoft-azure/az-303/arm-
templates/) allow you to create and deploy an entire Azure infrastructure declaratively. The template is a
JSON file defining the infrastructure and configuration for your project. In the template, you specify the
resources to deploy and the properties for those resources.

In this lab, you will deploy a virtual machine using an ARM template.

4 of 24 04-08-2023, 09:54
Database Administration on Microsoft Azure : Step By Step Activity Guide https://k21academy.com/microsoft-azure/database-administrator/micros...

creating a resource group and a virtual network.


+1 530 264 8480 (tel:+15302648480)
[email protected] (mailto:[email protected])
Whatsapp (https://k21academy.com/whatsapp)

3.) Deploy An Azure SQL Database


Azure SQL Database is a fully managed platform as a service (PaaS) database engine that manages
database management functions like upgrading, patching, backups, and monitoring without user
involvement.

This exercise will guide you through the process of creating a SQL server, configuring the server, and finally
deploying it. Once the deployment is successful you will give permissions to other Azure services to access
the SQL server.

5 of 24 04-08-2023, 09:54
Database Administration on Microsoft Azure : Step By Step Activity Guide https://k21academy.com/microsoft-azure/database-administrator/micros...

+1 530 264 8480 (tel:+15302648480)


[email protected] (mailto:[email protected])
Whatsapp (https://k21academy.com/whatsapp)

4.) Register The Azure SQL Database Instance In Azure


Data Studio And Validate Connectivity
Azure Data Studio is a cross-platform database tool for professionals working with data and uses on-
premises and cloud data platforms on Windows, macOS, and Linux.

In this lab, you will register the SQL Database instance created in the previous lab in Azure Data Studio.
You can either download the Azure Data studio in your systems or launch it from the lab VM. After the

6 of 24 04-08-2023, 09:54
Database Administration on Microsoft Azure : Step By Step Activity Guide https://k21academy.com/microsoft-azure/database-administrator/micros...

+1 530 264 8480 (tel:+15302648480)


[email protected] (mailto:[email protected])
Whatsapp (https://k21academy.com/whatsapp)

5.) Deploy PostgreSQL Or MySQL Using A Client Tool To


Validate Connectivity
PostgreSQL is a powerful, open-source object-relational database system. This lab will guide you through
the steps of connecting to the PostgreSQL Database in Azure Data Studio. If you will using the lab VM then
the PostgreSQL extension is pre-installed with Azure Data Studio and you can perform a query to validate
the connection.

7 of 24 04-08-2023, 09:54
Database Administration on Microsoft Azure : Step By Step Activity Guide https://k21academy.com/microsoft-azure/database-administrator/micros...

+1 530 264 8480 (tel:+15302648480)


[email protected] (mailto:[email protected])
Whatsapp (https://k21academy.com/whatsapp)

Module 3- Implement A Secure Environment


Lab Scenario: You have been hired as a Senior Database Administrator to help ensure the security of the
database environment. These tasks will focus on Azure SQL Database.

1.) Configure A Server-Based Firewall Rule Using The


Azure Portal
In this lab, you will first add a client IP to the SQL server created previously which will allow you to connect
to your Azure SQL Database server using SQL Server Management Studio or any other client tools. After
configuring the Client IP, you will use this IP to connect to SSMS, import a data-tier application to import the
AdventureWorks.bacpac file. Once the file is successfully uploaded to SSMS you will create a contained
user in the AdventureWorks database.

8 of 24 04-08-2023, 09:54
Database Administration on Microsoft Azure : Step By Step Activity Guide https://k21academy.com/microsoft-azure/database-administrator/micros...

+1 530 264 8480 (tel:+15302648480)


[email protected] (mailto:[email protected])
Whatsapp (https://k21academy.com/whatsapp)

2.) Authorize Access To Azure SQL Database With Azure


Active Directory
In this lab, you will set Azure directory (https://k21academy.com/microsoft-azure/az-303/azure-active-
directory-azure-ad/) admin for your Azure SQL database created in the Azure portal. After setting the

9 of 24 04-08-2023, 09:54
Database Administration on Microsoft Azure : Step By Step Activity Guide https://k21academy.com/microsoft-azure/database-administrator/micros...

+1 530 264 8480 (tel:+15302648480)


[email protected] (mailto:[email protected])
Whatsapp (https://k21academy.com/whatsapp)

3.) Enable Advanced Data Security And Data


Classification
Microsoft SQL Azure has recently introduced Advanced Data Security (ADS) capability as a single pane to
help monitor and store your confidential data in a more secure way. In this lab, you will learn how to enable
ADS for your SQL server.

10 of 24 04-08-2023, 09:54
Database Administration on Microsoft Azure : Step By Step Activity Guide https://k21academy.com/microsoft-azure/database-administrator/micros...

4.) Manage Access


+1 530 264 8480 To Database Objects
(tel:+15302648480)
[email protected] (mailto:[email protected])
In this lab, you will manage
Whatsapp access to the database and its objects in the SQL Server Management Studio
(https://k21academy.com/whatsapp)
(SSMS) by creating different users in the AdventureWorks database, create a custom role and add the
users as member in that role, create a stored procedure, etc using the T-SQL commands.

Module 4- Monitor & Optimize Operational


Resources
Lab Scenario: You have been hired as a database administrator to identify performance-related issues and
provide viable solutions to resolve any issues found. You need to use the Azure portal as well as on-
premises tools to identify the performance issues and suggest methods to resolve them. The
AdventureWorks case study is referred to for this lab.

1.) Isolate CPU Problems


This lab focuses on reviewing and identifying the CPU utilization of high-performing queries in the Azure
SQL database.

11 of 24 04-08-2023, 09:54
Database Administration on Microsoft Azure : Step By Step Activity Guide https://k21academy.com/microsoft-azure/database-administrator/micros...

+1 530 264 8480 (tel:+15302648480)


[email protected] (mailto:[email protected])
Whatsapp (https://k21academy.com/whatsapp)

3.) Detect And Correct Fragmentation Issues


this lab will take you through the steps to identify and remove the fragmentation in a specified table of the
AdventureWorks database.

Module 5- Optimize Query Performance


1.) Identify Issues With Database Design
AdventureWorks2017
Being a System Administrator it is your job to identify issues within the database by executing queries in
SSMS and observe the execution plan that is generated when the query is run. In the AdventureWorks2017
database, you will come across An Implicit Conversion warning, so now it is your task to identify ways to
fix this warning by identifying the column which is generating this issue and then modify the code
accordingly.

12 of 24 04-08-2023, 09:54
Database Administration on Microsoft Azure : Step By Step Activity Guide https://k21academy.com/microsoft-azure/database-administrator/micros...

+1 530 264 8480 (tel:+15302648480)


[email protected] (mailto:[email protected])
Whatsapp (https://k21academy.com/whatsapp)

2.) Isolate Problem Areas In Poorly Performing Queries In


AdventureWorks2017
In this lab, you will run a query to generate the actual execution plan in the result pane and then evaluate
and resolve performance problems from given execution plans like key lookup, etc.

13 of 24 04-08-2023, 09:54
Database Administration on Microsoft Azure : Step By Step Activity Guide https://k21academy.com/microsoft-azure/database-administrator/micros...

resource-consuming queries to identify poor performance, and implement a better execution plan.
+1 530 264 8480 (tel:+15302648480)
[email protected] (mailto:[email protected])
Whatsapp (https://k21academy.com/whatsapp)

4.) Use Query Hints To Impact Performance In


AdventureWorks2017
Query hints specify whether the indicated hints are being used in the scope of a query or not. They affect
operators like Insert, delete, select, update and merge in the statement.

The tasks performed in this lab are: Run a workload, update the query to use a parameterized stored
procedure and use a Query Hint and apply query hint for a value, and re-execute.

14 of 24 04-08-2023, 09:54
Database Administration on Microsoft Azure : Step By Step Activity Guide https://k21academy.com/microsoft-azure/database-administrator/micros...

+1 530 264 8480 (tel:+15302648480)


[email protected] (mailto:[email protected])
Whatsapp (https://k21academy.com/whatsapp)

Module 6: Automation Of Tasks


Lab Scenario: You have been hired as a Senior Data Engineer to help automate database administration
operations. This automation is to help ensure that the databases for AdventureWorks continue to operate at
peak performance as well as provide methods for alerting based on certain criteria. AdventureWorks
utilizes SQL Server in both IaaS and PaaS offerings.

1.) Deploy An Azure Template From A Quickstart Template


On GitHub
Transparent Database Encryption or TDE is also known as encrypting data at rest encrypts SQL Server,
Azure SQL Database, and Azure Synapse Analytics data files.

You will provision a SQL database with transparent database encryption from an Azure quickstart template
in this lab.

15 of 24 04-08-2023, 09:54
Database Administration on Microsoft Azure : Step By Step Activity Guide https://k21academy.com/microsoft-azure/database-administrator/micros...

+1 530 264 8480 (tel:+15302648480)


[email protected] (mailto:[email protected])
Whatsapp (https://k21academy.com/whatsapp)

2.) Configure Notifications Based On Performance Metrics


Here you will create a new alert rule for the SQL database deployed in the previous lab, attach an action
group to notify the team when the threshold value is reached.

16 of 24 04-08-2023, 09:54
Database Administration on Microsoft Azure : Step By Step Activity Guide https://k21academy.com/microsoft-azure/database-administrator/micros...

+1 530 264 8480 (tel:+15302648480)


[email protected] (mailto:[email protected])
Whatsapp (https://k21academy.com/whatsapp)

3.) Deploy An Azure Automation Runbook (Or Elastic Job)


To Rebuild Indexes On An Azure SQL Database
Azure Automation delivers a cloud-based automation and configuration service that supports consistent
management across your Azure and non-Azure environments. It gives you complete control during
deployment, operations, and decommissioning of workloads and resources.

17 of 24 04-08-2023, 09:54
Database Administration on Microsoft Azure : Step By Step Activity Guide https://k21academy.com/microsoft-azure/database-administrator/micros...

+1 530 264 8480 (tel:+15302648480)


[email protected] (mailto:[email protected])
Whatsapp (https://k21academy.com/whatsapp)

Module 7: Plan and Implement a High


Availability and Disaster Recovery
Environment
1.) Create An Always On Availability Group
Always On availability groups feature is a high-availability and disaster-recovery solution that provides an

18 of 24 04-08-2023, 09:54
Database Administration on Microsoft Azure : Step By Step Activity Guide https://k21academy.com/microsoft-azure/database-administrator/micros...

+1 530 264 8480 (tel:+15302648480)


[email protected] (mailto:[email protected])
Whatsapp (https://k21academy.com/whatsapp)

2.) Enable Geo-Replication For Azure SQL Database


Here you will enable geo-replication for the Azure SQL database which you created in Module 3 of this
course. Once the database is secondary i.e., the geo-replication is enabled you will perform a forced
failover.

19 of 24 04-08-2023, 09:54
Database Administration on Microsoft Azure : Step By Step Activity Guide https://k21academy.com/microsoft-azure/database-administrator/micros...

+1 530 264 8480 (tel:+15302648480)


[email protected] (mailto:[email protected])
Whatsapp (https://k21academy.com/whatsapp)

3.) Backup To URL And Restore From URL


In this lab, you will first configure backup to URL, once the functionality is configured, you can generate a
backup file as a blob in Azure and then again restore it.

20 of 24 04-08-2023, 09:54
Database Administration on Microsoft Azure : Step By Step Activity Guide https://k21academy.com/microsoft-azure/database-administrator/micros...

+1 530 264 8480 (tel:+15302648480)


[email protected] (mailto:[email protected])
Whatsapp (https://k21academy.com/whatsapp)

Related/References
Azure Data Science And Data Engineering Certifications: DP-900 vs DP-100 vs DP-200/DP-201
(https://k21academy.com/microsoft-azure/azure-data-science-and-data-engineering-certifications-
dp-900-vs-dp-100-vs-dp-200-dp-201/)
Exam DP-300: Microsoft Azure Database Administrator Associate (https://k21academy.com
/microsoft-azure/database-administrator/dp-300/)
Exam DP-203: Data Engineering on Microsoft Azure (https://k21academy.com/microsoft-
azure/dp-200/data-engineering-on-microsoft-azure/)

Next Task For You


We will cover all the exam objectives, 24 Hands-On Labs, and practice tests in our Azure Database
Administrator training program. If you want to begin your journey towards becoming a Microsoft Certified:
Azure Database Administrator Associate by checking our FREE CLASS (https://k21academy.com
/microsoft-azure-database-training-free-class/?utm_source=blog_content_upgrade&utm_medium=referral&
utm_campaign=dp30002_june21).

21 of 24 04-08-2023, 09:54
Database Administration on Microsoft Azure : Step By Step Activity Guide https://k21academy.com/microsoft-azure/database-administrator/micros...

+1 530 264 8480 (tel:+15302648480)


[email protected] (mailto:[email protected])
Whatsapp (https://k21academy.com/whatsapp)

Site Map Courses


Get in
Home Certified Kubernetes
touch with
(https://k21academy.com/) Administrator (CKA) us
(/)
Courses (/courses/) (https://k21academy.com 8 Magnolia Pl,
"Learn Cloud From Experts" Harrow HA2 6DS,
Blog /kubernetes
United Kingdom
(https://k21academy.com /?utm_source=website& Phone:
/blog/) utm_medium=referral& US: +1 530 264
(https://www.facebook.com 8480 (tel:
/k21academy/) Partner with Us utm_campaign=kubernete +15302648480)
(https://k21academy.com s_footer) Email:
(https://twitter.com/affiliate/) Azure Administrator
contact@k21acade

/k21academy) Careers [AZ-104]


my.com
(mailto:contact@k21
academy.com)
(https://k21academy.com (https://k21academy.com
(https://www.linkedin.com
/company/k21academy)
/careers/) /az104-microsoft-azure-

Contact Us admin-training
(https://www.instagram.com
(https://k21academy.com /?utm_source=website&
/k21academy/) /contact-us/) utm_medium=referral&

Terms and Conditions utm_campaign=az104_fo


(https://www.youtube.com
(https://k21academy.com oter)
/k21academy)
/terms-and-conditions/) Azure Solutions Architect

Privacy Policy [AZ-305]

(https://k21academy.com (https://k21academy.com

/privacy-policy/) /az300-microsoft-azure-

22 of 24 04-08-2023, 09:54
Database Administration on Microsoft Azure : Step By Step Activity Guide https://k21academy.com/microsoft-azure/database-administrator/micros...

solutions-architect-
+1 530 264 8480 (tel:+15302648480)
[email protected] (mailto:[email protected])
technologies-training
Whatsapp (https://k21academy.com/whatsapp)
/?utm_source=website&

utm_medium=referral&

utm_campaign=az303_fo

oter)

AWS Solutions Architect

[SAA-C03]

(https://k21academy.com

/saa-c02-aws-certified-

solutions-architect-

associate-training

/?utm_source=website&

utm_medium=referral&

utm_campaign=awssa_fo

oter)

Azure Data Engineer

[DP-203]

(https://k21academy.com

/microsoft-azure-data-

engineer-training

/?utm_source=website&

utm_medium=referral&

utm_campaign=dp203_fo

oter)

Oracle Integration Cloud

(https://k21academy.com

/integration-cloud-services

/?utm_source=website&

utm_medium=referral&

23 of 24 04-08-2023, 09:54
Database Administration on Microsoft Azure : Step By Step Activity Guide https://k21academy.com/microsoft-azure/database-administrator/micros...

utm_campaign=oic_footer
+1 530 264 8480 (tel:+15302648480)
[email protected] (mailto:[email protected])
) Whatsapp (https://k21academy.com/whatsapp)
Oracle DBA To Cloud

DBA [1Z0-1093]

(https://k21academy.com

/dba-to-oracle-cloud-dba-

training

/?utm_source=website&

utm_medium=referral&

utm_campaign=clouddba_

footer)

Copyrights © 2012-2023, K21Academy. All Rights Reserved

24 of 24 04-08-2023, 09:54

You might also like