AZ-104 Ebook Snippet Microsoft Azure Administrator PDF
AZ-104 Ebook Snippet Microsoft Azure Administrator PDF
AZURE
CERTIFIED
AZ-104
Microsoft Azure
Administrator
TABLE OF CONTENTS
INTRODUCTION 5
AZ-104 MICROSOFT AZURE ADMINISTRATOR EXAM OVERVIEW 6
Exam Details 6
Exam Domains 8
Exam Scoring System 9
Exam Benefit 10
AZ-104 MICROSOFT AZURE ADMINISTRATOR EXAM - STUDY GUIDE AND TIPS 11
Study Materials 11
Azure Services to Focus On 12
Validate Your Knowledge 13
Final Remarks 18
CLOUD COMPUTING CONCEPTS 19
Cloud Service Models 19
Platform as a service (PaaS) 20
Software as a service (SaaS) 20
Serverless Computing 20
Cloud Architecture Models 21
Public Cloud 21
Private Cloud 21
Hybrid Cloud 22
AZURE BASICS 23
Azure Overview 23
Advantages of Azure Cloud Computing 23
Azure Global Infrastructure 24
Azure Security and Compliance 25
Azure Pricing 25
Azure Well-Architected Framework - Five Pillars 27
Best Practices when Architecting in the Cloud 27
THE DIFFERENT AZURE SERVICES 28
DEEP DIVE 29
Azure Virtual Machines 29
Components of a Virtual Machine 29
Types of Virtual Machines 30
Virtual Machine Disks 31
Payment options for Virtual Machines 34
Availability Options for Virtual Machines 35
https://portal.tutorialsdojo.com/ 1
Tutorials Dojo Study Guide - AZ-104 Microsoft Azure Administrator
by Jon Bonso and Gerome Pagatpatan
https://portal.tutorialsdojo.com/ 2
Tutorials Dojo Study Guide - AZ-104 Microsoft Azure Administrator
by Jon Bonso and Gerome Pagatpatan
https://portal.tutorialsdojo.com/ 3
Tutorials Dojo Study Guide - AZ-104 Microsoft Azure Administrator
by Jon Bonso and Gerome Pagatpatan
https://portal.tutorialsdojo.com/ 4
Tutorials Dojo Study Guide - AZ-104 Microsoft Azure Administrator
by Jon Bonso and Gerome Pagatpatan
INTRODUCTION
With the rapid advancement of technology, enterprises are adopting newer technologies that will help
their businesses transform and grow. Microsoft Azure is one of the emerging technologies that you can
leverage in this age since a lot of companies are shifting their existing infrastructures in the cloud. Unlike
the traditional setup, cloud computing allows you to obtain resources on-demand with just one click on
their platform, including the servers, storage, databases, networking, analytics, artificial intelligence, and
a lot more.
Microsoft Azure offers a range of cloud services, depending on your business needs. These services are
continuously upgrading, and new features are being added every year to deliver customer satisfaction.
Since Azure's resources and services are too vast, the Microsoft Azure Certification program offers
different certification paths that will help aspiring candidates and IT professionals validate their skills
and knowledge to maximize the solutions created in the cloud.
Microsoft Azure is the second biggest cloud service provider in the market next to AWS, and a lot of
companies are now adopting a multicloud strategy, which makes it all the more beneficial for IT
professionals like you to expand your skill set and learn multiple cloud technologies. Learning is a lot
more fun if you merge it with various cloud services. It will be an exciting and enjoyable journey for you,
and the first step is to become AZ-104 Microsoft Azure Administrator certified. This eBook will help
familiarize yourself with the basic cloud concepts as well as the core services of Microsoft Azure, which
are the building blocks that will help you pass the exam and make a successful career shift to cloud
computing.
Note: We took extra care to come up with these study guides and cheat sheets, however, this is meant to
be just a supplementary resource when preparing for the exam. We highly recommend working on
hands-on sessions and practice exams to further expand your knowledge and improve your test-taking
skills.
https://portal.tutorialsdojo.com/ 5
Tutorials Dojo Study Guide - AZ-104 Microsoft Azure Administrator
by Jon Bonso and Gerome Pagatpatan
● The three cloud computing service models are IaaS, PaaS, and SaaS.
● You can also use serverless computing to eliminate the need to manage infrastructure.
● The shared responsibility model determines the security tasks that are handled by the cloud
provider and handled by the customer.
○ Azure is responsible for protecting the infrastructure such as hosts, network, and
data center.
○ The customer is responsible for protecting their data, endpoints, account, and
access management.
● IaaS, PaaS, and SaaS have different levels of managed services:
https://portal.tutorialsdojo.com/ 19
Tutorials Dojo Study Guide - AZ-104 Microsoft Azure Administrator
by Jon Bonso and Gerome Pagatpatan
Serverless Computing
https://portal.tutorialsdojo.com/ 20
Tutorials Dojo Study Guide - AZ-104 Microsoft Azure Administrator
by Jon Bonso and Gerome Pagatpatan
Public Cloud
● Focus on maintaining your applications without having to worry about purchasing, managing, or
maintaining the hardware on which it runs.
● You can use multiple public cloud providers of varying scale.
Advantages Disadvantages
You are not responsible for the updates You don’t own the hardware or services
and maintenance of the hardware. and you also can’t manage them as
you may want to.
Private Cloud
Advantages Disadvantages
You have control (and responsibility) To scale, you must buy, install, and set
over security. up new hardware.
https://portal.tutorialsdojo.com/ 21
Tutorials Dojo Study Guide - AZ-104 Microsoft Azure Administrator
by Jon Bonso and Gerome Pagatpatan
Hybrid Cloud
● Data and applications can move between private and public clouds.
● When there is a spike in demand in your private cloud, you can “burst through” to the public cloud
for additional computing resources.
Advantages Disadvantages
https://portal.tutorialsdojo.com/ 22
Tutorials Dojo Study Guide - AZ-104 Microsoft Azure Administrator
by Jon Bonso and Gerome Pagatpatan
DEEP DIVE
1. When creating a virtual machine, you always start off by choosing a subscription and resource
group. A subscription is a container where you can provision Azure resources. Before you can
deploy resources, you also need to create a new resource group. This is a logical group to organize
and manage all your resources in your subscription.
2. After you have chosen the resource group, you configure the availability option of your virtual
machine. You can choose between the availability zone, availability set or no infrastructure
redundancy option. The option you selected here would determine the availability and resiliency of
your applications.
3. The image of your virtual machine contains the OS, settings, and other applications that you will use
in your server. In the Azure Marketplace, you can choose between images provided by Microsoft or
your own custom image
4. Once you have chosen the image of your virtual machine, select the type and size of your virtual
machine. This will determine the physical properties of your instance, such as vCPUs, RAM, disks,
and more.
5. During the creation of your virtual machine, you can also specify whether you'd like to launch it in a
spot instance or use another instance billing type (pay as you go or reserved).
6. To access your virtual machine, you will need to use a key pair. It is generated after you launch your
virtual machine. Make sure to secure your copy of your public key. Once you delete your public key,
you wouldn't be able to directly access your instance.
7. After you have configured the basic settings, you need to add storage for your virtual machine. The
disks that can be added are the operating system disk, data disk, and temporary disk. Encryption for
your disks is automatically configured.
8. You also need to configure which virtual network the virtual machine should be launched in. And
the network security group will serve as a firewall to your servers. It contains rules that allow or
deny network traffic coming to or from your firewall.
https://portal.tutorialsdojo.com/ 29
Tutorials Dojo Study Guide - AZ-104 Microsoft Azure Administrator
by Jon Bonso and Gerome Pagatpatan
9. When you have configured the network settings of your virtual machines, you can also enable
monitoring, auto-shutdown, and backup in the management options.
10. In the advanced configuration option of your virtual machine, you can add extensions for
post-deployment configuration, custom and user data to execute certain commands while the
instance is being provisioned, and proximity placement group to enable you to group your resources
closer in the same region.
11. Lastly, you can add tags to easily identify and classify your resources.
12. Once you have reviewed the configuration of your instance, proceed with the launch. Wait for your
virtual machine to finish preparing itself, and you should be able to connect to it if there aren’t any
issues.
13. If you are having difficulties connecting to a virtual machine, you can try redeploying the VM to
move it to a new node in the Azure infrastructure. Don’t worry, all of the existing configurations in
the resource will still be there after completing the redeployment.
1. General Purpose - provides a balanced CPU-to-memory ratio. This instance is ideal for testing,
development, and low to medium-traffic web servers. The B-series have burstable performance that
allows the VM to use the build-up credits when the application requires higher CPU performance.
2. Compute Optimized - designed to have a high CPU-to-memory ratio. Instances belonging to this
family are well suited for medium-traffic web servers, network appliances, batch processes,
analytics, application, and gaming servers.
3. Memory Optimized - offers a high memory-to-CPU ratio. Ideal for relational database servers,
medium to large caches, and in-memory analytics.
4. Storage Optimized - provides high disk throughput and IO. This VM size is ideal for SQL, NoSQL
databases, big data, data warehousing, and large transactional databases.
6. High-performance compute - the HPC VM size is the most powerful and fastest CPU with high
throughput network interfaces. It is optimized for fluid dynamics, explicit and implicit finite element
analysis, weather modeling, seismic processing, reservoir simulation, and RTL simulation.
https://portal.tutorialsdojo.com/ 30
Tutorials Dojo Study Guide - AZ-104 Microsoft Azure Administrator
by Jon Bonso and Gerome Pagatpatan
The disks of a virtual machine are block-level storage volumes. This storage is managed by Azure and
mainly used for Azure VMs. With managed disks, all you have to do is specify the type and size of the
disk and provision it.
2. Data disk - this disk is also managed by Azure, and you can store your application data or any other
data that you need to keep. Before you use a data disk, there are two options that you can select:
a. Create and attach a new disk - you have the option to create the new disk from a snapshot,
storage blob, or an empty disk.
b. Attach an existing disk - allows you to add the disks you’ve already created. It’s also
important to know that the number of data disks that you can attach will depend on the size
of your VM.
3. Temporary disk - provides you short-term storage to store pages and swap files. Take note that the
data on this disk may be lost when you redeploy a VM or during a maintenance event. Also, to
configure a server-side encryption on this disk, you need to enable encryption at host.
https://portal.tutorialsdojo.com/ 31
Tutorials Dojo Study Guide - AZ-104 Microsoft Azure Administrator
by Jon Bonso and Gerome Pagatpatan
It’s also very important to understand how you can secure your data inside your virtual machine disks.
Let’s now take a look at disk encryption, Azure managed disks supports three types of encryption:
1. Server Side Encryption (SSE) - the data stored on managed disks are automatically encrypted at
rest by default when persisting it to the cloud.
a. Platform-managed keys - the keys are managed by Azure. The data, images, and snapshots
written to an existing managed disks are automatically encrypted-at-rest.
b. Customer-managed keys - since you are providing your own keys, you also manage the level
of encryption on each managed disk. To manage your own keys, you can use Azure Key
Vault. This service enables you to import your own RSA keys or generate a new ones.
2. Azure Disk Encryption (ADE) - provides volume encryption on both OS and data disks of Azure VMs.
The encryption for Windows is done using BitLocker. On the other hand, the encryption for Linux is
done using DM-Crypt.
https://portal.tutorialsdojo.com/ 32
Tutorials Dojo Study Guide - AZ-104 Microsoft Azure Administrator
by Jon Bonso and Gerome Pagatpatan
3. Encryption at host - this type of encryption is different from SSE. The encryption of data is provided
by the server hosting your virtual machine and the encrypted data flows into the Azure Storage
service.
Encryption ✓ - - - - Unhe
at rest with althy
PMK
Encryption ✓ - - - ✓ Unhe
at rest with althy
CMK
Encryption ✓ ✓ ✓ ✓ ✓ Unhe
at Host althy
Note:
● The encrypted data flows are between Compute and Storage service.
● The disk encryption status is labeled by Azure Security Center.
When creating a copy of your managed disks, there are comparisons between images and snapshots.
As discussed earlier in data disks, snapshots allow you to create a point in time recovery. But how is it
different from images?
https://portal.tutorialsdojo.com/ 33
Tutorials Dojo Study Guide - AZ-104 Microsoft Azure Administrator
by Jon Bonso and Gerome Pagatpatan
To conclude the comparison, a snapshot is only aware of the disk that it contains. For scenarios that
require the coordination of multiple disks, like striping, snapshot wouldn’t be able to meet this
requirement. Therefore, this is where you would want to use custom images.
When talking about how the virtual machine handles unexpected disk traffic, Azure offers a feature
called bursting. This will grant the virtual machine and disk the ability to boost the IOPS and MB/s
performance for a period of time. In other words, it will allow you to get more use out of your disk and
also helps you avoid upgrading the disk just to accommodate traffic spikes. The bursting on virtual
machines and disks are independent from one another. So if you need to burst the disk performance,
you don't need to burst the virtual machine. Bursting is enabled by default for both virtual machine and
disk.
Azure provides you with a variety of options to pay for compute capacity. Here are the following payment
options:
1. Pay as you go - you are billed on a per-second basis. You can start or stop anytime, and you only
pay for what you use. This payment option is ideal for users who prefer flexibility or have
unpredictable workloads that cannot be interrupted.
2. Reserved Instance - you get up to 72 percent price savings compared to pay-as-you-go, but in
return, you need to pay the upfront cost and be committed for one or three years in a specified
region. There are three options to scope a reservation:
a. Single resource group - the reservation discount applies solely to the corresponding
resources in the resource group you've chosen. Keep in mind that discounts will not be
applied if the resource group is moved or deleted.
b. Single subscription - the reservation discount applies only to the corresponding resources
in the subscription you've selected.
c. Shared - the reservation discount is applied to the corresponding resources in eligible
subscriptions within the billing context. If the subscription is moved to a different billing
https://portal.tutorialsdojo.com/ 34
Tutorials Dojo Study Guide - AZ-104 Microsoft Azure Administrator
by Jon Bonso and Gerome Pagatpatan
context, the discounts no longer apply to that subscription but will continue to apply to the
remaining subscriptions in the billing context.
i. The billing context for Enterprise Agreement customers is enrollment. In an
enrollment, the reservation shared scope contains multiple Active Directory tenants.
ii. The billing scope for Microsoft Customer Agreement customers is billing profile.
iii. The billing scope for individual subscriptions with pay-as-you-go rates is all eligible
subscriptions.
After purchasing a reservation, you can always update the scope. Go to the reservation, click
Configuration, and then rescope the reservation. Rescoping a reservation won't change the
reservation term.
3. Spot - save up to 90 percent when you purchase unused compute capacity. This is only ideal for
workloads that can tolerate interruptions. Discounts may vary based on:
a. Region
b. Virtual machine type
c. Compute capacity
Since Azure Spot Virtual Machines are unused capacity, at any point in time, Azure infrastructure can
evict Spot VMs with 30 seconds notice. Eviction is based on the capacity or the max price you've set.
When creating a Spot VMs, you can set the eviction policy to Deallocate (default) or Delete.
The Deallocate policy moves your virtual machine to the stopped-deallocated state, allowing you to
redeploy it later. However, there is no assurance that the allocation will be successful. Your quota will be
depleted by the deallocated VMs, and you will be charged for the underlying disks.
If you want your virtual machines to be deleted when it is evicted, you can set the eviction policy to
Delete. The underlying disks are also deleted, so you won't be charged for the storage. In the portal, you
can look up the eviction rates by size in a certain region. Go to View pricing history and compare prices
in nearby regions to see a table or graph of pricing for a specific size.
There are two ways to manage the availability and resiliency of your applications in a virtual machine:
1. Availability zones - to protect your resources from an entire data center failure, you need to deploy
the VMs to a minimum of three Availability Zones to ensure resiliency. Azure services that support
Availability Zones are classified into two types:
a. Zonal services - resources are pinned to a specific Availability Zone.
Examples: Virtual machines, Managed disks, Standard IP addresses
b. Zone-redundant services - replicate resources automatically across Availability Zones to
protect from single points of failure.
https://portal.tutorialsdojo.com/ 35
Tutorials Dojo Study Guide - AZ-104 Microsoft Azure Administrator
by Jon Bonso and Gerome Pagatpatan
When you need to improve the performance of your applications and also provide redundancy, you
should scale your resources horizontally. Horizontal scaling means you are adding more servers to the
system. By doing this, the workload will be distributed across multiple resources and accommodate the
increasing demand. Take note that this type of scaling is different from vertical scaling. When you say
scale vertically, you are increasing or decreasing the resources of a single server instead of adding new
servers to the system.
The horizontal scaling service in Azure is called virtual machine scale sets. A VM scale set allows you to
create and manage a group of load-balanced VMs. Since the workload is distributed, if one VM fails, you
can still continue to access your application through other VMs with minimal interruption. You can also
distribute VMs in a scale set within a single data center or across various data centers. This service
supports both layer 4 basic traffic distribution and layer 7 advanced traffic distribution and TLS
termination.
https://portal.tutorialsdojo.com/ 36
Tutorials Dojo Study Guide - AZ-104 Microsoft Azure Administrator
by Jon Bonso and Gerome Pagatpatan
● You can associate virtual machine scale sets with a load balancer. This will allow you to distribute
virtual machines across Availability Zones. By implementing this practice, you can make your
application redundant and highly available.
● Lastly, virtual machine scale sets allow you to scale hundreds or even thousands of virtual
machines.
Now that we know scale sets can be associated with load balancers, this will help us implement one of
the best practices on architecting in the cloud by evenly distributing the virtual machines across
different Availability Zones. The main reason why you need to configure it with a load balancer is to give
you high availability. An application that can run continuously even if one of the virtual machines fails.
Aside from distributing the load across AZs, one of the added benefits is you can use Load Balancer
health probes for more robust health checks.
When associating scale sets with a load balancer, you have two options:
1. Azure Application Gateway - is an HTTP/HTTPs web traffic load balancer that has the capability to
do the following: URL-based routing, SSL termination, session persistence, and web application
firewall.
2. Azure Load Balancer - a TCP/UDP network traffic load balancer that supports port forwarding and
outbound flows.
After going through load balancing, let’s now talk about the scaling policy and how it works. A scaling
policy can determine when a virtual machine should be added or removed to meet the current capacity
requirements of your application. When you create a virtual machine scale set, you would see this
configuration in the portal.
https://portal.tutorialsdojo.com/ 37
Tutorials Dojo Study Guide - AZ-104 Microsoft Azure Administrator
by Jon Bonso and Gerome Pagatpatan
These configurations can only be seen if you select the custom scaling policy option. The first thing that
you can set is the number of instances. But let’s focus on the remaining two options, the scaling out and
the scaling in. Scale out is when you need to add virtual machines to the scale set to increase the
current capacity. In order to scale out, you should input certain values on the following fields:
● CPU threshold - is the CPU usage percentage threshold on when to trigger the scale out rule.
● Duration in minutes - is the amount of time that the autoscale will check the threshold again.
● Number of instances to increase by - this will determine how many virtual machines should be
added when the scale out rule is triggered.
On the other hand, the scale in rule is when should the scale sets remove a virtual machine in order to
decrease the capacity. Unlike scale out, you only need to input two values in the scale in fields. After you
create a virtual machine scale set, you will see a lot of options available that you can configure in the
scaling policy.
https://portal.tutorialsdojo.com/ 38
Tutorials Dojo Study Guide - AZ-104 Microsoft Azure Administrator
by Jon Bonso and Gerome Pagatpatan
As seen in the image above, you can still configure other options in order to meet certain requirements
on when to scale your virtual machines. Here are the options that you can customize:
1. Metric Name - allows you to set the metric that will be collected to your virtual machine. Some of
the metrics that you can choose from are:
○ Percentage CPU
https://portal.tutorialsdojo.com/ 39
Tutorials Dojo Study Guide - AZ-104 Microsoft Azure Administrator
by Jon Bonso and Gerome Pagatpatan
○ Network In or Out
○ Disk Read or Write Bytes
○ Disk Read or Write Operations/Sec
○ CPU Credits Consumed or Remaining
2. Aggregates - it is how you want to collect the data. For example, TimeAggregation = “Sum” will
aggregate the sampled metrics by taking the sum. The methods that you can select from are:
○ Average
○ Minimum
○ Maximum
○ Sum
○ Last
○ Count
3. Operators - this will determine when to trigger scale action.
○ Greater than
○ Greater than or equal to
○ Less than
○ Less than or equal to
○ Equal to
○ Not equal to
4. Actions - what should the scaling policy do after it is triggered.
○ Increase count by
○ Increase percent by
○ Increase count to
○ Decrease count by
○ Decrease percent by
○ Decrease count to
If you want to collect more information based on different metrics, you need to install the following:
● App Insights - when you want to collect application metrics such as page load performance and
session counts, you can install app insights in your application, and it will monitor your app and
send telemetry to Azure.
● Azure Diagnostic Extension - when you want detailed Host-based metrics, you can install this
extension. This agent will run inside your virtual machine. It will monitor and save performance
metrics to an Azure storage service to collect more detailed information.
https://portal.tutorialsdojo.com/ 40
Tutorials Dojo Study Guide - AZ-104 Microsoft Azure Administrator
by Jon Bonso and Gerome Pagatpatan
There are also other options that you can configure when creating a virtual machine scale set:
1. Scale-In Policy - allows you to specify the order in which virtual machines are deleted during a
scale-in operation. The options that you can select from are:
a. Default
■ Balance across availability zones and fault domains
■ Deletes the VM with the highest instance ID
b. Newest VM
■ Balance across availability zones
■ Deletes the newest created virtual machine
c. Oldest VM
■ Balance across availability zones
■ Deletes the oldest created virtual machine
2. Update Policy - allows you to set how you can upgrade your virtual machines to the latest scale set
model.
a. Automatic - upgrades will start immediately in random order.
b. Manual - the existing virtual machines must be manually upgraded.
c. Rolling - upgrades are rolled out in batches with the option to pause.
3. Automatic OS Upgrades - by enabling this option, the upgrades on the OS disk will be done
automatically for all virtual machines.
4. Health Monitoring - helps you determine if your resources are healthy or unhealthy. There are two
modes that you can select:
a. Application Health Extension - pings an HTTP/HTTPs request with a specific path and
returns an HTTP status.
b. Load Balancer Probe - checks are done through TCP/UDP or HTTP/HTTPs requests. You
can only select this option if you have an associated load balancer.
5. Automatic Repair Policy - automatically replace unhealthy virtual machines with a new one.
6. Allocation Policy - allows you to scale beyond 100 instances (default).
https://portal.tutorialsdojo.com/ 41