AZ-104 en
AZ-104 en
Xcerts Certifications
Sales@Xcerts.com | http://Xcerts.com
Microsoft
AZ-104
Microsoft Azure
Administrator (beta)
AZ-104
QUESTION: 1
Note: This question is part of a series of questions that present the same scenario. Each
question in the series contains a unique solution that might meet the stated goals. Some
question sets might have more than one correct solution, while others might not have a correct
solution.
After you answer a question in this section, you will NOT be able to return to it. As a result,
these questions will not appear in the review screen.
You have an Azure subscription that contains the following users in an Azure Active Directory
tenant named contoso.onmicrosoft.com:
A. Yes
B. No
Answer(s): A
Explanation:
Only a global administrator can add users to this tenant.
Reference:
https://docs.microsoft.com/en-us/azure/devops/organizations/accounts/add-users-to-azure-ad
QUESTION: 2
Note: This question is part of a series of questions that present the same scenario. Each
question in the series contains a unique solution that might meet the stated goals. Some
question sets might have more than one correct solution, while others might not have a correct
solution.
After you answer a question in this section, you will NOT be able to return to it. As a result,
these questions will not appear in the review screen.
You have an Azure subscription that contains the following users in an Azure Active Directory
tenant named contoso.onmicrosoft.com:
https://xcerts.com 2
AZ-104
A. Yes
B. No
Answer(s): B
Explanation:
Only a global administrator can add users to this tenant.
Reference:
https://docs.microsoft.com/en-us/azure/devops/organizations/accounts/add-users-to-azure-ad
QUESTION: 3
Note: This question is part of a series of questions that present the same scenario. Each
question in the series contains a unique solution that might meet the stated goals. Some
question sets might have more than one correct solution, while others might not have a correct
solution.
After you answer a question in this section, you will NOT be able to return to it. As a result,
these questions will not appear in the review screen.
You have an Azure subscription that contains the following users in an Azure Active Directory
tenant named contoso.onmicrosoft.com:
https://xcerts.com 3
AZ-104
A. Yes
B. No
Answer(s): B
Explanation:
Only a global administrator can add users to this tenant.
Reference:
https://docs.microsoft.com/en-us/azure/devops/organizations/accounts/add-users-to-azure-ad
QUESTION: 4
HOTSPOT
You have an Azure subscription named Subscription1 that contains a resource group named
RG1. In RG1, you create an internal load balancer named LB1 and a public load balancer
named LB2.
You need to ensure that an administrator named Admin1 can manage LB1 and LB2. The
solution must follow the principle of least privilege.
Which role should you assign to Admin1 for each task? To answer, select the appropriate
options in the answer area.
Exhibit A:
Exhibit B:
https://xcerts.com 4
AZ-104
Answer(s): A
Explanation:
The Network Contributor role lets you manage networks, but not access them.
Reference:
https://docs.microsoft.com/en-us/azure/role-based-access-control/built-in-roles
QUESTION: 5
You have an Azure subscription that contains an Azure Active Directory (Azure AD) tenant
named contoso.com and an Azure Kubernetes Service (AKS) cluster named AKS1.
An administrator reports that she is unable to grant access to AKS1 to the users in
contoso.com. You need to ensure that access to AKS1 can be granted to the contoso.com
users.
What should you do first?
Answer(s): B
Reference:
https://kubernetes.io/docs/reference/access-authn-authz/authentication/
QUESTION: 6
https://xcerts.com 5
AZ-104
You have a Microsoft 365 tenant and an Azure Active Directory (Azure AD) tenant named
contoso.com.
You plan to grant three users named User1, User2, and User3 access to a temporary Microsoft
SharePoint document library named Library1.
You need to create groups for the users. The solution must ensure that the groups are deleted
automatically after 180 days.
Which two groups should you create? Each correct answer presents a complete solution.
NOTE: Each correct selection is worth one point.
Answer(s): A, C
Explanation:
You can set expiration policy only for Office 365 groups in Azure Active Directory (Azure AD).
Note: With the increase in usage of Office 365 Groups, administrators and users need a way to
clean up unused groups. Expiration policies can help remove inactive groups from the system
and make things cleaner.
When a group expires, all of its associated services (the mailbox, Planner, SharePoint site, etc.)
are also deleted.
You can set up a rule for dynamic membership on security groups or Office 365 groups.
Incorrect Answers:
B, D, E: You can set expiration policy only for Office 365 groups in Azure Active Directory
(Azure AD).
Reference:
https://docs.microsoft.com/en-us/office365/admin/create-groups/office-365-groups-expiration-
policy?view=o365-worldwide
QUESTION: 7
HOTSPOT
You have an Azure Active Directory (Azure AD) tenant named contoso.com that contains the
users shown in the following table:
https://xcerts.com 6
AZ-104
For each of the following statements, select Yes if the statement is true. Otherwise, select No.
NOTE: Each correct selection is worth one point.
Hot Area:
https://xcerts.com 7
AZ-104
Exhibit A:
Exhibit B:
Answer(s): A
Reference:
https://docs.microsoft.com/en-us/azure/active-directory/governance/create-access-review
QUESTION: 8
HOTSPOT
You have the Azure management groups shown in the following table:
You add Azure subscriptions to the management groups as shown in the following table:
https://xcerts.com 8
AZ-104
For each of the following statements, select Yes if the statement is true. Otherwise, select No.
NOTE: Each correct selection is worth one point.
Hot Area:
Exhibit A:
Exhibit B:
Answer(s): A
Explanation:
Box 1: No
https://xcerts.com 9
AZ-104
Virtual networks are not allowed at the root and is inherited. Deny overrides allowed.
Box 2: Yes
Virtual Machines can be created on a Management Group provided the user has the required
RBAC permissions.
Box 3: Yes
Subscriptions can be moved between Management Groups provided the user has the required
RBAC permissions.
Reference:
https://docs.microsoft.com/en-us/azure/governance/management-groups/overview
https://docs.microsoft.com/en-us/azure/governance/management-groups/manage#moving-
management-groups-and-subscriptions
QUESTION: 9
You have an Azure policy as shown in the following exhibit:
A. You are prevented from creating Azure SQL servers anywhere in Subscription 1.
B. You can create Azure SQL servers in ContosoRG1 only.
https://xcerts.com 10
AZ-104
C. You are prevented from creating Azure SQL Servers in ContosoRG1 only.
D. You can create Azure SQL servers in any resource group within Subscription 1.
Answer(s): B
Explanation:
You are prevented from creating Azure SQL servers anywhere in Subscription 1 with the
exception of ContosoRG1
QUESTION: 10
HOTSPOT
You have an Azure subscription that contains the resources shown in the following table:
Which tags apply to VNET1 and VNET2? To answer, select the appropriate options in the
answer area.
NOTE: Each correct selection is worth one point.
Hot Area:
Exhibit A:
https://xcerts.com 11
AZ-104
Exhibit B:
Answer(s): A
Explanation:
VNET1: Department: D1, and Label:Value1 only.
Tags applied to the resource group or subscription are not inherited by the resources.
Note: Azure Policy allows you to use either built-in or custom-defined policy definitions and
assign them to either a specific resource group or across a whole Azure subscription.
https://xcerts.com 12
AZ-104
Incorrect Answers:
RGROUP: RG6
Tags applied to the resource group or subscription are not inherited by the resources.
Reference:
https://docs.microsoft.com/en-us/azure/azure-resource-manager/management/tag-policies
QUESTION: 11
You have an Azure subscription named AZPT1 that contains the resources shown in the
following table:
Answer(s): C
Explanation:
You can move a VM and its associated resources to a different subscription by using the Azure
portal.
You can now move an Azure Recovery Service (ASR) Vault to either a new resource group
within the current subscription or to a new subscription.
Reference:
https://docs.microsoft.com/en-us/azure/azure-resource-manager/management/move-resource-
group-and-subscription
https://docs.microsoft.com/en-us/azure/key-vault/general/keyvault-move-subscription
QUESTION: 12
You recently created a new Azure subscription that contains a user named Admin1.
https://xcerts.com 13
AZ-104
terms have not been accepted for this item on this subscription. To accept legal terms, please
go to the Azure portal (http://go.microsoft.com/fwlink/?LinkId=534873) and configure
programmatic deployment for the Marketplace item or create it there for the first time.”
You need to ensure that Admin1 can deploy the Marketplace resource successfully. What
should you do?
Answer(s): C
Reference:
https://docs.microsoft.com/en-us/powershell/module/az.marketplaceordering/set-
azmarketplaceterms?view=azps-4.1.0
QUESTION: 13
You have an Azure Active Directory (Azure AD) tenant that contains 5,000 user accounts. You
create a new user account named AdminUser1.
You need to assign the User administrator administrative role to AdminUser1. What should you
do from the user account properties?
Answer(s): B
Explanation:
Assign a role to a user
1. Sign in to the Azure portal with an account that's a global admin or privileged role admin for
the directory.
2. Select Azure Active Directory, select Users, and then select a specific user from the list.
3. For the selected user, select Directory role, select Add role, and then pick the appropriate
admin roles from the Directory roles list, such as Conditional access administrator.
4. Press Select to save.
Reference:
https://docs.microsoft.com/en-us/azure/active-directory/fundamentals/active-directory-users-
assign-role-azure-portal
QUESTION: 14
You have an Azure Active Directory (Azure AD) tenant named contoso.onmicrosoft.com that
contains 100 user accounts.
You purchase 10 Azure AD Premium P2 licenses for the tenant.
You need to ensure that 10 users can use all the Azure AD Premium features. What should you
do?
https://xcerts.com 14
AZ-104
Answer(s): A
Reference:
https://docs.microsoft.com/en-us/azure/active-directory/fundamentals/license-users-groups
QUESTION: 15
You have an Azure subscription named Subscription1 and an on-premises deployment of
Microsoft System Center Service Manager.
Answer(s): C
Explanation:
The IT Service Management Connector (ITSMC) allows you to connect Azure and a supported
IT Service Management (ITSM) product/service, such as the Microsoft System Center Service
Manager.
With ITSMC, you can create work items in ITSM tool, based on your Azure alerts (metric alerts,
Activity Log alerts and Log Analytics alerts).
Reference:
https://docs.microsoft.com/en-us/azure/azure-monitor/platform/itsmc-overview
QUESTION: 16
You sign up for Azure Active Directory (Azure AD) Premium.
You need to add a user named admin1@contoso.com as an administrator on all the computers
that will be joined to the Azure AD domain.
What should you configure in Azure AD?
https://xcerts.com 15
AZ-104
Answer(s): A
Explanation:
When you connect a Windows device with Azure AD using an Azure AD join, Azure AD adds
the following security principles to the local administrators group on the device:
• The Azure AD global administrator role
• The Azure AD device administrator role
• The user performing the Azure AD join
In the Azure portal, you can manage the device administrator role on the Devices page. To
open the Devices page:
1. Sign in to your Azure portal as a global administrator or device administrator.
2. On the left navbar, click Azure Active Directory.
3. In the Manage section, click Devices.
4. On the Devices page, click Device settings.
5. To modify the device administrator role, configure Additional local administrators on Azure AD
joined devices.
Reference:
https://docs.microsoft.com/en-us/azure/active-directory/devices/assign-local-admin
QUESTION: 17
HOTSPOT
You have Azure Active Directory tenant named Contoso.com that includes following users:
For each of the following statements, select Yes if the statement is true. Otherwise, select No.
NOTE: Each correct selection is worth one point.
Hot Area:
Exhibit A:
https://xcerts.com 16
AZ-104
Exhibit B:
Answer(s): A
Explanation:
Box 1: Yes
User1 is a Cloud Device Administrator.
Device2 is Azure AD joined.
Group1 has the assigned to join type. User1 is the owner of Group1.
Note: Assigned groups - Manually add users or devices into a static group.
Azure AD joined or hybrid Azure AD joined devices utilize an organizational account in Azure
AD
Box 2: No
User2 is a User Administrator.
Device1 is Azure AD registered.
Group1 has the assigned join type, and the owner is User1.
Note: Azure AD registered devices utilize an account managed by the end user, this account is
either a Microsoft account or another locally managed credential.
https://xcerts.com 17
AZ-104
Box 3: Yes
User2 is a User Administrator.
Device2 is Azure AD joined.
Group2 has the Dynamic Device join type, and the owner is User2.
Reference:
https://docs.microsoft.com/en-us/azure/active-directory/devices/overview
QUESTION: 18
You have an Azure subscription that contains a resource group named RG26.
RG26 is set to the West Europe location and is used to create temporary resources for a
project. RG26 contains the resources shown in the following table.
When the project is complete, you attempt to delete RG26 from the Azure portal. The deletion
fails. You need to delete RG26.
What should you do first?
A. Delete VM1
B. Stop VM1
C. Stop the backup of SQLDB01
D. Delete sa001
Answer(s): C
QUESTION: 19
You have an Azure subscription named Subscription1 that contains a virtual network named
VNet1. VNet1 is in a resource group named RG1.
Subscription1 has a user named User1. User1 has the following roles:
• Reader
• Security Admin
• Security Reader
You need to ensure that User1 can assign the Reader role for VNet1 to other users. What
should you do?
A. Remove User 1 from the Security Reader role for Subscription1. Assign User1 the
Contributor role for RG1.
https://xcerts.com 18
AZ-104
Answer(s): B
Explanation:
Has full access to all resources including the right to delegate access to others.
Reference:
https://docs.microsoft.com/en-us/azure/role-based-access-control/overview
QUESTION: 20
You have an Azure Active Directory (Azure AD) tenant named contosocloud.onmicrosoft.com.
Your company has a public DNS zone for contoso.com.
You add contoso.com as a custom domain name to Azure AD. You need to ensure that Azure
can verify the domain name. Which type of DNS record should you create?
A. MX
B. NSEC
C. SRV
D. NSEC3
Answer(s): A
Reference:
https://docs.microsoft.com/en-us/azure/dns/dns-web-sites-custom-domain
QUESTION: 21
Note: This question is part of a series of questions that present the same scenario. Each
question in the series contains a unique solution that might meet the stated goals. Some
question sets might have more than one correct solution, while others might not have a correct
solution.
After you answer a question in this section, you will NOT be able to return to it. As a result,
these questions will not appear in the review screen.
You have an Azure Directory (Azure AD) tenant named Adatum and an Azure Subscription
named Subscription1. Adatum contains a group named Developers. Subscription1 contains a
resource group named Dev.
You need to provide the Developers group with the ability to create Azure logic apps in the Dev
resource group.
Solution: On Subscription1, you assign the DevTest Labs User role to the Developers group.
Does this meet the goal?
A. Yes
B. No
https://xcerts.com 19
AZ-104
Answer(s): B
Explanation:
DevTest Labs User role only lets you connect, start, restart, and shutdown virtual machines in
your Azure DevTest Labs.
The Logic App Contributor role lets you manage logic app, but not access to them. It provides
access to view, edit, and update a logic app.
Reference:
https://docs.microsoft.com/en-us/azure/role-based-access-control/built-in-roles
https://docs.microsoft.com/en-us/azure/logic-apps/logic-apps-securing-a-logic-app
QUESTION: 22
Note: This question is part of a series of questions that present the same scenario. Each
question in the series contains a unique solution that might meet the stated goals. Some
question sets might have more than one correct solution, while others might not have a correct
solution.
After you answer a question in this section, you will NOT be able to return to it. As a result,
these questions will not appear in the review screen.
You have an Azure Directory (Azure AD) tenant named Adatum and an Azure Subscription
named Subscription1. Adatum contains a group named Developers. Subscription1 contains a
resource group named Dev.
You need to provide the Developers group with the ability to create Azure logic apps in the Dev
resource group.
Solution: On Subscription1, you assign the Logic App Operator role to the Developers group.
Does this meet the goal?
A. Yes
B. No
Answer(s): B
Explanation:
You would need the Logic App Contributor role.
Reference:
https://docs.microsoft.com/en-us/azure/role-based-access-control/built-in-roles
https://docs.microsoft.com/en-us/azure/logic-apps/logic-apps-securing-a-logic-app
QUESTION: 23
Note: This question is part of a series of questions that present the same scenario. Each
question in the series contains a unique solution that might meet the stated goals. Some
question sets might have more than one correct solution, while others might not have a correct
solution.
https://xcerts.com 20
AZ-104
After you answer a question in this section, you will NOT be able to return to it. As a result,
these questions will not appear in the review screen.
You have an Azure Directory (Azure AD) tenant named Adatum and an Azure Subscription
named Subscription1. Adatum contains a group named Developers. Subscription1 contains a
resource group named Dev.
You need to provide the Developers group with the ability to create Azure logic apps in the Dev
resource group.
Solution: On Dev, you assign the Contributor role to the Developers group.
Does this meet the goal?
A. Yes
B. No
Answer(s): A
Explanation:
The Contributor role can manage all resources (and add resources) in a Resource Group.
QUESTION: 24
DRAG DROP
You have an Azure subscription that is used by four departments in your company. The
subscription contains 10 resource groups. Each department uses resources in several resource
groups.
You need to send a report to the finance department. The report must detail the costs for each
department.
Which three actions should you perform in sequence? To answer, move the appropriate actions
from the list of actions to the answer area and arrange them in the correct order.
Select and Place:
Exhibit A:
https://xcerts.com 21
AZ-104
Exhibit B:
Answer(s): A
Explanation:
Box 1: Assign a tag to each resource.
You apply tags to your Azure resources giving metadata to logically organize them into a
taxonomy. After you apply tags, you can retrieve all the resources in your subscription with that
tag name and value. Each resource or resource group can have a maximum of 15 tag
name/value pairs. Tags applied to the resource group are not inherited by the resources in that
resource group.
Box 2: From the Cost analysis blade, filter the view by tag
https://xcerts.com 22
AZ-104
After you get your services running, regularly check how much they're costing you. You can see
the current spend and burn rate in Azure portal.
1. Visit the Subscriptions blade in Azure portal and select a subscription. You should see the
cost breakdown and burn rate in the popup blade.
2. Click Cost analysis in the list to the left to see the cost breakdown by resource. Wait 24 hours
after you add a service for the data to populate.
3. You can filter by different properties like tags, resource group, and timespan. Click Apply to
confirm the filters and Download if you want to export the view to a Comma-Separated Values
(.csv) file.
Box 3: Download the usage report
Reference:
https://docs.microsoft.com/en-us/azure/azure-resource-manager/resource-group-using-tags
https://docs.microsoft.com/en-us/azure/billing/billing-getting-started
QUESTION: 25
You have an Azure subscription named Subscription1 that contains an Azure Log Analytics
workspace named Workspace1.
You need to view the error from a table named Event. Which query should you run in
Workspace1?
Answer(s): B
Reference:
https://docs.microsoft.com/en-us/azure/azure-monitor/log-query/search-queries
https://docs.microsoft.com/en-us/azure/azure-monitor/log-query/get-started-portal
QUESTION: 26
HOTSPOT
You have an Azure subscription that contains a virtual network named VNET1 in the East US 2
region. You have the following resources in an Azure Resource Manager template.
https://xcerts.com 23
AZ-104
https://xcerts.com 24
AZ-104
For each of the following statements, select Yes if the statement is true. Otherwise, select No.
NOTE: Each correct selection is worth one point.
Hot Area:
Exhibit A:
Exhibit B:
Answer(s): A
Explanation:
Box 1: Yes
Box 2: Yes
VM1 is in Zone1, while VM2 is on Zone2.
Box 3: No
Reference:
https://docs.microsoft.com/en-us/azure/architecture/resiliency/recovery-loss-azure-region
QUESTION: 27
https://xcerts.com 25
AZ-104
You have an Azure subscription named Subscription1. Subscription1 contains the resource
groups in the following table.
RG1 has a web app named WebApp1. WebApp1 is located in West Europe. You move
WebApp1 to RG2.
What is the effect of the move?
A. The App Service plan for WebApp1 remains in West Europe. Policy2 applies to WebApp1.
B. The App Service plan for WebApp1 moves to North Europe. Policy2 applies to WebApp1.
C. The App Service plan for WebApp1 remains in West Europe. Policy1 applies to WebApp1.
D. The App Service plan for WebApp1 moves to North Europe. Policy1 applies to WebApp1.
Answer(s): A
Explanation:
You can move an app to another App Service plan, as long as the source plan and the target
plan are in the same resource group and geographical region.
The region in which your app runs is the region of the App Service plan it's in. However, you
cannot change an App Service plan's region.
Reference:
https://docs.microsoft.com/en-us/azure/app-service/app-service-plan-manage
QUESTION: 28
HOTSPOT
You have an Azure subscription named Subscription1 that has a subscription ID of c276fc76-
9cd4-44c9-99a7- 4fd71546436e.
You need to create a custom RBAC role named CR1 that meets the following requirements:
What should you specify in the assignable scopes and the permission elements of the definition
of CR1? To answer, select the appropriate options in the answer area.
Exhibit A:
https://xcerts.com 26
AZ-104
Exhibit B:
https://xcerts.com 27
AZ-104
Answer(s): A
Reference:
https://docs.microsoft.com/en-us/azure/role-based-access-control/custom-roles
https://docs.microsoft.com/en-us/azure/role-based-access-control/resource-provider-
operations#microsoftresources
QUESTION: 29
You have an Azure subscription.
Users access the resources in the subscription from either home or from customer sites. From
home, users must establish a point-to-site VPN to access the Azure resources. The users on
the customer sites access the Azure resources by using site-to-site VPNs.
You have a line-of-business-app named App1 that runs on several Azure virtual machine. The
virtual machines run Windows Server 2016.
You need to ensure that the connections to App1 are spread across all the virtual machines.
What are two possible Azure services that you can use? Each correct answer presents a
complete solution.
https://xcerts.com 28
AZ-104
Answer(s): A, E
Explanation:
Network traffic from the VPN gateway is routed to the cloud application through an internal load
balancer. The load balancer is located in the front-end subnet of the application.
Reference:
https://docs.microsoft.com/en-us/azure/architecture/reference-architectures/hybrid-
networking/vpn https://docs.microsoft.com/en-us/azure/load-balancer/load-balancer-overview
https://docs.microsoft.com/en-us/azure/application-gateway/overview
QUESTION: 30
You have an Azure subscription.
You have 100 Azure virtual machines.
You need to quickly identify underutilized virtual machines that can have their service tier
changed to a less expensive offering.
A. Monitor
B. Advisor
C. Metrics
D. Customer insights
Answer(s): B
Explanation:
Advisor helps you optimize and reduce your overall Azure spend by identifying idle and
underutilized resources. You can get cost recommendations from the Cost tab on the Advisor
dashboard.
Reference:
https://docs.microsoft.com/en-us/azure/advisor/advisor-cost-recommendations
QUESTION: 31
HOTSPOT
You have an Azure Active Directory (Azure AD) tenant.
https://xcerts.com 29
AZ-104
You need to create a conditional access policy that requires all users to use multi-factor
authentication when they access the Azure portal.
Which three settings should you configure? To answer, select the appropriate settings in the
answer area.
Exhibit A:
https://xcerts.com 30
AZ-104
https://xcerts.com 31
AZ-104
Exhibit B:
https://xcerts.com 32
AZ-104
Answer(s): A
Reference:
https://docs.microsoft.com/en-us/azure/active-directory/conditional-access/app-based-mfa
QUESTION: 32
You have an Azure Active Directory (Azure AD) tenant named contoso.onmicrosoft.com. The
User administrator role is assigned to a user named Admin1.
An external partner has a Microsoft account that uses the user1@outlook.com sign in.
Admin1 attempts to invite the external partner to sign in to the Azure AD tenant and receives the
following error message: “Unable to invite user user1@outlook.com – Generic authorization
exception.”
You need to ensure that Admin1 can invite the external partner to sign in to the Azure AD
tenant. What should you do?
Answer(s): A
Reference:
https://techcommunity.microsoft.com/t5/Azure-Active-Directory/Generic-authorization-exception-
inviting-Azure-AD-gests/td-p/274742
QUESTION: 33
You have an Azure subscription that contains a user account named User1.
You need to ensure that User1 can assign a policy to the tenant root management group. What
should you do?
A. Assign the Owner role for the Azure Subscription to User1, and then modify the default
conditional access policies.
B. Assign the Owner role for the Azure subscription to User1, and then instruct User1 to
configure access management for Azure resources.
C. Assign the Global administrator role to User1, and then instruct User1 to configure access
management for Azure resources.
D. Create a new management group and delegate User1 as the owner of the new management
group.
Answer(s): B
Explanation:
The following chart shows the list of roles and the supported actions on management groups.
https://xcerts.com 33
AZ-104
Note:
Each directory is given a single top-level management group called the "Root" management
group. This root management group is built into the hierarchy to have all management groups
and subscriptions fold up to it. This root management group allows for global policies and Azure
role assignments to be applied at the directory level. The Azure AD Global Administrator needs
to elevate themselves to the User Access Administrator role of this root group initially. After
elevating access, the administrator can assign any Azure role to other directory users or groups
to manage the hierarchy. As administrator, you can assign your own account as owner of the
root management group.
Reference:
https://docs.microsoft.com/en-us/azure/governance/management-groups/overview
QUESTION: 34
HOTSPOT
You have an Azure Active Directory (Azure AD) tenant named adatum.com. Adatum.com
contains the groups in the following table.
You create two user accounts that are configured as shown in the following table.
To which groups do User1 and User2 belong? To answer, select the appropriate options in the
answer area.
https://xcerts.com 34
AZ-104
Exhibit A:
Exhibit B:
https://xcerts.com 35
AZ-104
Answer(s): A
Explanation:
Box 1: Group 1 only First rule applies
Box 2: Group1 and Group2 only Both membership rules apply.
Reference:
https://docs.microsoft.com/en-us/sccm/core/clients/manage/collections/create-collections
QUESTION: 35
HOTSPOT
You have a hybrid deployment of Azure Active Directory (Azure AD) that contains the users
shown in the following table.
You need to modify the JobTitle and UsageLocation attributes for the users.
https://xcerts.com 36
AZ-104
For which users can you modify the attributes from Azure AD? To answer, select the
appropriate options in the answer area.
Exhibit A:
Exhibit B:
https://xcerts.com 37
AZ-104
Answer(s): A
Explanation:
Box 1: User1 and User3 only
You must use Windows Server Active Directory to update the identity, contact info, or job info
for users whose source of authority is Windows Server Active Directory.
Box 2: User1, User2, and User3
Reference:
https://docs.microsoft.com/en-us/azure/active-directory/fundamentals/active-directory-users-
profile-azure-portal
QUESTION: 36
Note: This question is part of a series of questions that present the same scenario. Each
question in the series contains a unique solution that might meet the stated goals. Some
question sets might have more than one correct solution, while others might not have a correct
solution.
After you answer a question in this section, you will NOT be able to return to it. As a result,
these questions will not appear in the review screen.
You need to ensure that an Azure Active Directory (Azure AD) user named Admin1 is assigned
the required role to enable Traffic Analytics for an Azure subscription.
Solution: You assign the Network Contributor role at the subscription level to Admin1. Does this
meet the goal?
A. Yes
B. No
Answer(s): A
Explanation:
Your account must meet one of the following to enable traffic analytics:
Your account must have any one of the following Azure roles at the subscription scope: owner,
contributor, reader, or network contributor.
Reference:
https://docs.microsoft.com/en-us/azure/network-watcher/traffic-analytics-faq
QUESTION: 37
Note: This question is part of a series of questions that present the same scenario. Each
question in the series contains a unique solution that might meet the stated goals. Some
question sets might have more than one correct solution, while others might not have a correct
solution.
https://xcerts.com 38
AZ-104
After you answer a question in this section, you will NOT be able to return to it. As a result,
these questions will not appear in the review screen.
You need to ensure that an Azure Active Directory (Azure AD) user named Admin1 is assigned
the required role to enable Traffic Analytics for an Azure subscription.
Solution: You assign the Owner role at the subscription level to Admin1. Does this meet the
goal?
A. Yes
B. No
Answer(s): A
Explanation:
Your account must meet one of the following to enable traffic analytics:
Your account must have any one of the following Azure roles at the subscription scope: owner,
contributor, reader, or network contributor.
Reference:
https://docs.microsoft.com/en-us/azure/network-watcher/traffic-analytics-faq
QUESTION: 38
Note: This question is part of a series of questions that present the same scenario. Each
question in the series contains a unique solution that might meet the stated goals. Some
question sets might have more than one correct solution, while others might not have a correct
solution.
After you answer a question in this section, you will NOT be able to return to it. As a result,
these questions will not appear in the review screen.
You need to ensure that an Azure Active Directory (Azure AD) user named Admin1 is assigned
the required role to enable Traffic Analytics for an Azure subscription.
Solution: You assign the Reader role at the subscription level to Admin1. Does this meet the
goal?
A. Yes
B. No
Answer(s): A
Explanation:
Your account must meet one of the following to enable traffic analytics:
Your account must have any one of the following Azure roles at the subscription scope: owner,
contributor, reader, or network contributor.
Reference:
https://docs.microsoft.com/en-us/azure/network-watcher/traffic-analytics-faq
https://xcerts.com 39
AZ-104
QUESTION: 39
You have an Azure subscription that contains a user named User1.
You need to ensure that User1 can deploy virtual machines and manage virtual networks. The
solution must use the principle of least privilege.
Which role-based access control (RBAC) role should you assign to User1?
A. Owner
B. Virtual Machine Contributor
C. Contributor
D. Virtual Machine Administrator Login
Answer(s): B
Explanation:
Virtual Machine Contributor: Lets you manage virtual machines, but not access to them, and not
the virtual network or storage account they're connected to.
Incorrect Answers:
A: Owner: Grants full access to manage all resources, including the ability to assign roles in
Azure RBAC. C: Contributor: Grants full access to manage all resources, but does not allow you
to assign roles in Azure RBAC.
D: Virtual Machine Administrator Login: View Virtual Machines in the portal and login as
administrator.
Reference:
https://docs.microsoft.com/en-us/azure/role-based-access-control/built-in-roles
QUESTION: 40
HOTSPOT
You have an Azure Active Directory (Azure AD) tenant that contains three global administrators
named Admin1, Admin2, and Admin3.
The tenant is associated to an Azure subscription. Access control for the subscription is
configured as shown in the Access control exhibit. (Click the Access Control tab.)
https://xcerts.com 40
AZ-104
You sign in to the Azure portal as Admin1 and configure the tenant as shown in the Tenant
exhibit. (Click the Tenant tab.)
https://xcerts.com 41
AZ-104
For each of the following statements, select Yes if the statement is true. Otherwise, select No.
NOTE: Each correct selection is worth one point.
Hot Area:
Exhibit A:
https://xcerts.com 42
AZ-104
Exhibit B:
Answer(s): A
Explanation:
Box 1: No
Only Admin3, the owner, can assign ownership. Box 2: Yes
Box 3: No
Reference:
https://docs.microsoft.com/en-us/azure/cost-management-billing/manage/add-change-
subscription- administrator
QUESTION: 41
You have an Azure subscription named Subscription1 that contains an Azure virtual machine
named VM1. VM1 is in a resource group named RG1.
You need to ensure that a service running on VM1 can manage the resources in RG1 by using
the identity of VM1.
https://xcerts.com 43
AZ-104
A. From the Azure portal, modify the Managed Identity settings of VM1
B. From the Azure portal, modify the Access control (IAM) settings of RG1
C. From the Azure portal, modify the Access control (IAM) settings of VM1
D. From the Azure portal, modify the Policies settings of RG1
Answer(s): A
Explanation:
Managed identities for Azure resources provides Azure services with an automatically managed
identity in Azure Active Directory. You can use this identity to authenticate to any service that
supports Azure AD authentication, without having credentials in your code.
You can enable and disable the system-assigned managed identity for VM using the Azure
portal.
Reference:
https://docs.microsoft.com/en-us/azure/active-directory/managed-identities-azure-resources/qs-
configure-portal-windows-vm
QUESTION: 42
You have an Azure subscription that contains a resource group named TestRG. You use
TestRG to validate an Azure deployment.
TestRG contains the following resources:
A. Modify the backup configurations of VM1 and modify the resource lock type of VNET1
B. Remove the resource lock from VNET1 and delete all data in Vault1
C. Turn off VM1 and remove the resource lock from VNET1
D. Turn off VM1 and delete all data in Vault1
Answer(s): C
Explanation:
When you delete a resource group, all of its resources are also deleted. Deleting a resource
group deletes all of its template deployments and currently stored operations.
Reference:
https://docs.microsoft.com/en-us/azure/azure-resource-manager/management/delete-resource-
group?tabs=azure-powershell
https://xcerts.com 44
AZ-104
QUESTION: 43
You have an Azure DNS zone named adatum.com.
Answer(s): A
Explanation:
You need to create a name server (NS) record for the zone.
Reference:
https://docs.microsoft.com/en-us/azure/dns/delegate-subdomain
QUESTION: 44
DRAG DROP
You have an Azure Active Directory (Azure AD) tenant that has the contoso.onmicrosoft.com
domain name. You have a domain name of contoso.com registered at a third-party registrar.
You need to ensure that you can create Azure AD users that have names containing a suffix of
@contoso.com.
Which three actions should you perform in sequence? To answer, move the appropriate actions
from the list of actions to the answer area and arrange them in the correct order.
Exhibit A:
https://xcerts.com 45
AZ-104
Exhibit B:
Answer(s): A
Explanation:
1. Add the custom domain name to your directory
2. Add a DNS entry for the domain name at the domain name registrar
3. Verify the custom domain name in Azure AD
Reference:
https://docs.microsoft.com/en-us/azure/dns/dns-web-sites-custom-domain
https://xcerts.com 46
AZ-104
QUESTION: 45
You have an Azure subscription named Subscription1 that contains an Azure Log Analytics
workspace named Workspace1.
You need to view the error event from a table named Event. Which query should you run in
Workspace1?
Answer(s): B
Reference:
https://docs.microsoft.com/en-us/azure/azure-monitor/log-query/search-queries
https://docs.microsoft.com/en-us/azure/azure-monitor/log-query/get-started-portal
https://docs.microsoft.com/en-us/azure/data-
explorer/kusto/query/searchoperator?pivots=azuredataexplorer
QUESTION: 46
You have a registered DNS domain named contoso.com.
You create a public Azure DNS zone named contoso.com.
You need to ensure that records created in the contoso.com zone are resolvable from the
internet.
What should you do?
Answer(s): D
Reference:
https://docs.microsoft.com/en-us/azure/dns/dns-delegate-domain-azure-dns
QUESTION: 47
HOTSPOT
You have an Azure subscription that contains a storage account named storage1. The
subscription is linked to an Azure Active Directory (Azure AD) tenant named contoso.com that
syncs to an on-premises Active Directory domain.
The domain contains the security principals shown in the following table.
https://xcerts.com 47
AZ-104
For each of the following statements, select Yes if the statement is true. Otherwise, select No.
NOTE: Each correct selection is worth one point.
Exhibit A:
Exhibit B:
Answer(s): A
https://xcerts.com 48
AZ-104
Reference:
https://docs.microsoft.com/en-us/azure/storage/files/storage-files-identity-ad-ds-assign-
permissions?tabs=azure-portal
QUESTION: 48
HOTSPOT
You have an Azure subscription named Subscription1 that contains a virtual network VNet1.
You add the users in the following table.
Which user can perform each configuration? To answer, select the appropriate options in the
answer area.
Exhibit A:
Exhibit B:
https://xcerts.com 49
AZ-104
Answer(s): A
Explanation:
Box 1: User1 and User3 only.
User1: The Owner Role lets you manage everything, including access to resources.
User3: The Network Contributor role lets you manage networks, including creating subnets.
Reference:
https://docs.microsoft.com/en-us/azure/role-based-access-control/built-in-roles
https://docs.microsoft.com/en-us/azure/role-based-access-control/resource-provider-
operations#microsoftnetwork
https://xcerts.com 50
AZ-104
Testlet 2
Case study
This is a case study. Case studies are not timed separately. You can use as much exam time
as you would like to complete each case. However, there may be additional case studies and
sections on this exam. You must manage your time to ensure that you are able to complete all
questions included on this exam in the time provided.
To answer the questions included in a case study, you will need to reference information that is
provided in the case study. Case studies might contain exhibits and other resources that provide
more information about the scenario that is described in the case study. Each question is
independent of the other questions in this case study.
At the end of this case study, a review screen will appear. This screen allows you to review your
answers and to make changes before you move to the next section of the exam. After you begin
a new section, you cannot return to this section.
Overview
Contoso, Ltd. is a manufacturing company that has offices worldwide. Contoso works with
partner organizations to bring products to market.
Contoso products are manufactured by using blueprint files that the company authors and
maintains.
Existing Environment
Currently, Contoso uses multiple types of servers for business operations, including the
following:
• File servers
• Domain controllers
• Microsoft SQL Server servers
Your network contains an Active Directory forest named contoso.com. All servers and client
computers are joined to Active Directory.
You have a public-facing application named App1. App1 is comprised of the following three
tiers:
• A SQL database
• A web front end
• A processing middle tier
https://xcerts.com 51
AZ-104
Each tier is comprised of five virtual machines. Users access the web front end by using HTTPS
only.
Requirements
Planned Changes
Contoso plans to implement the following changes to the infrastructure:
• Move all the tiers of App1 to Azure.
• Move the existing product blueprint files to Azure Blob storage.
• Create a hybrid directory to support an upcoming Microsoft Office 365 migration project.
Technical Requirements
Contoso must meet the following technical requirements:
• Move all the virtual machines for App1 to Azure.
• Minimize the number of open ports between the App1 tiers.
• Ensure that all the virtual machines for App1 are protected by backups.
• Copy the blueprint files to Azure over the Internet.
• Ensure that the blueprint files are stored in the archive storage tier.
• Ensure that partner access to the blueprint files is secured and temporary.
• Prevent user passwords or hashes of passwords from being stored in Azure.
• Use unmanaged standard storage for the hard disks of the virtual machines.
• Ensure that when users join devices to Azure Active Directory (Azure AD), the users use
a mobile phone to verify their identity.
• Minimize administrative effort whenever possible.
User Requirements
Contoso identifies the following requirements for users:
• Ensure that only users who are part of a group named Pilot can join devices to Azure
AD.
• Designate a new user named Admin1 as the service admin for the Azure subscription.
• Admin1 must receive email alerts regarding service outages.
• Ensure that a new user named User3 can create network objects for the Azure
subscription.
•
QUESTION: 1
HOTSPOT
You need to configure the Device settings to meet the technical requirements and the user
requirements. Which two settings should you modify? To answer, select the appropriate settings
in the answer area.
Hot Area:
Exhibit A:
https://xcerts.com 52
AZ-104
Exhibit B:
https://xcerts.com 53
AZ-104
Answer(s): A
Explanation:
Box 1: Selected
Only selected users should be able to join devices
Box 2: Yes
Ensure that when users join devices to Azure Active Directory (Azure AD), the users use a
mobile phone to verify their identity.
https://xcerts.com 54
AZ-104
QUESTION: 2
You need to meet the user requirement for Admin1. What should you do?
Answer(s): D
Explanation:
Scenario:
• Designate a new user named Admin1 as the service admin for the Azure subscription.
• Admin1 must receive email alerts regarding service outages.
Follow these steps to change the Service Administrator in the Azure portal.
1. Make sure your scenario is supported by checking the limitations for changing the Service
Administrator.
2. Sign in to the Azure portal as the Account Administrator.
3. Open Cost Management + Billing and select a subscription.
4. In the left navigation, click Properties.
5. Click Service Admin.
Reference:
https://docs.microsoft.com/en-us/azure/role-based-access-control/classic-administrators
https://xcerts.com 55
AZ-104
QUESTION: 1
You have an Azure Storage account named storage1. You plan to use AzCopy to copy data to
storage1.
You need to identify the storage services in storage1 to which you can copy the data. What
should you identify?
Answer(s): B
Explanation:
AzCopy is a command-line utility that you can use to copy blobs or files to or from a storage
account.
Incorrect Answers:
A, C, E: AzCopy does not support table and queue storage services.
D: AzCopy supports file storage services, as well as blob storage services.
Reference:
https://docs.microsoft.com/en-us/azure/storage/common/storage-use-azcopy-v10
QUESTION: 2
HOTSPOT
You have an Azure Storage account named storage1 that uses Azure Blob storage and Azure
File storage. You need to use AzCopy to copy data to the blob storage and file storage in
storage1.
Which authentication method should you use for each type of storage? To answer, select the
appropriate options in the answer area.
Exhibit A:
https://xcerts.com 56
AZ-104
Exhibit B:
Answer(s): A
Explanation:
You can provide authorization credentials by using Azure Active Directory (AD), or by using a
Shared Access Signature (SAS) token.
Box 1:
Both Azure Active Directory (AD) and Shared Access Signature (SAS) token are supported for
Blob storage.
Box 2:
Only Shared Access Signature (SAS) token is supported for File storage.
Reference:
https://docs.microsoft.com/en-us/azure/storage/common/storage-use-azcopy-v10
QUESTION: 3
You have an Azure subscription that contains an Azure Storage account.
https://xcerts.com 57
AZ-104
You plan to create an Azure container instance named container1 that will use a Docker image
named Image1. Image1 contains a Microsoft SQL Server instance that requires persistent
storage.
You need to configure a storage service for Container1. What should you use?
A. Azure Files
B. Azure Blob storage
C. Azure Queue storage
D. Azure Table storage
Answer(s): D
QUESTION: 4
You have an app named App1 that runs on two Azure virtual machines named VM1 and VM2.
You plan to implement an Azure Availability Set for App1. The solution must ensure that App1 is
available during planned maintenance of the hardware hosting VM1 and VM2.
Answer(s): D
Explanation:
Microsoft updates, which Microsoft refers to as planned maintenance events, sometimes require
that VMs be rebooted to complete the update. To reduce the impact on VMs, the Azure fabric is
divided into update domains to ensure that not all VMs are rebooted at the same time.
Incorrect Answers:
A: An update domain is a group of VMs and underlying physical hardware that can be rebooted
at the same time.
B, C: A fault domain shares common storage as well as a common power source and network
switch. It is used to protect against unplanned system failure.
Reference:
https://petri.com/understanding-azure-availability-sets
https://docs.microsoft.com/en-us/azure/virtual-machines/windows/tutorial-availability-sets
QUESTION: 5
HOTSPOT
https://xcerts.com 58
AZ-104
You have an Azure subscription named Subscription1 that contains the resources shown in the
following table:
Which storage accounts and which Log Analytics workspaces can you use for the Azure Backup
reports of Vault1? To answer, select the appropriate options in the answer area.
Exhibit A:
Exhibit B:
https://xcerts.com 59
AZ-104
Answer(s): A
Explanation:
Box 1: storage1, storage2, and storage3
The location and subscription where this Log Analytics workspace can be created is
independent of the location and subscription where your vaults exist.
Box 2: Analytics3
Vault1 and Analytics3 are both in West Europe.
Reference:
https://docs.microsoft.com/en-us/azure/backup/backup-azure-configure-reports
QUESTION: 6
HOTSPOT
You have an Azure subscription named Subscription1.
In Subscription1, you create an Azure file share named share1.
You create a shared access signature (SAS) named SAS1 as shown in the following exhibit:
https://xcerts.com 60
AZ-104
Exhibit A:
https://xcerts.com 61
AZ-104
Exhibit B:
Answer(s): A
Explanation:
Box 1: Will have no access
The IP 193.77.134.1 does not have access on the SAS.
Reference:
https://docs.microsoft.com/en-us/azure/storage/common/storage-dotnet-shared-access-
signature-part-1
https://docs.microsoft.com/en-us/azure/vs-azure-tools-storage-manage-with-storage-
explorer?tabs=windows
QUESTION: 7
You have an on-premises server that contains a folder named D:\Folder1.
https://xcerts.com 62
AZ-104
You need to copy the contents of D:\Folder1 to the public container in an Azure Storage account
named contosodata.
A. https://contosodata.blob.core.windows.net/public
B. azcopy sync D:\folder1 https://contosodata.blob.core.windows.net/public -- snapshot
C. azcopy copy D:\folder1 https://contosodata.blob.core.windows.net/public -- recursive
D. az storage blob copy start-batch D:\Folder1 https:// contosodata.blob.core.windows.net/public
Answer(s): C
Explanation:
The azcopy copy command copies a directory (and all of the files in that directory) to a blob
container. The result is a directory in the container by the same name.
Incorrect Answers:
B: The azcopy sync command replicates the source location to the destination location.
However, the file is skipped if the last modified time in the destination is more recent.
D: The az storage blob copy start-batch command copies multiple blobs to a blob container.
Reference:
https://docs.microsoft.com/en-us/azure/storage/common/storage-use-azcopy-blobs
https://docs.microsoft.com/en-us/azure/storage/common/storage-ref-azcopy-copy
QUESTION: 8
You have an Azure subscription named Subscription1 that contains the storage accounts shown
in the following table:
You plan to use the Azure Import/Export service to export data from Subscription1. You need to
identify which storage account can be used to export the data.
What should you identify?
A. storage1
B. storage2
C. storage3
D. storage4
Answer(s): D
Explanation:
Azure Import/Export service supports the following of storage accounts:
• Standard General Purpose v2 storage accounts (recommended for most scenarios)
https://xcerts.com 63
AZ-104
Reference:
https://docs.microsoft.com/en-us/azure/storage/common/storage-import-export-requirements
QUESTION: 9
HOTSPOT
You have Azure Storage accounts as shown in the following exhibit.
Use the drop-down menus to select the answer choice that completes each statement based on
the information presented in the graphic.
Exhibit A:
https://xcerts.com 64
AZ-104
Exhibit B:
Answer(s): A
Explanation:
Box 1: storageaccount1 and storageaccount2 only Box 2: All the storage accounts
Note: The three different storage account options are:
• General-purpose v2 (GPv2) accounts, General-purpose v1 (GPv1) accounts, and Blob
storage accounts.
• General-purpose v2 (GPv2) accounts are storage accounts that support all of the latest
features for blobs, files, queues, and tables.
• Blob storage accounts support all the same block blob features as GPv2, but are limited
to supporting only block blobs.
• General-purpose v1 (GPv1) accounts provide access to all Azure Storage services, but
may not have the latest features or the lowest per gigabyte pricing.
https://xcerts.com 65
AZ-104
Reference:
https://docs.microsoft.com/en-us/azure/storage/common/storage-account-options
QUESTION: 10
You have Azure subscription that includes data in following locations:
You plan to export data by using Azure import/export job named Export1.
You need to identify the data that can be exported by using Export1.
Which data should you identify?
A. DB1
B. container1
C. Share1
D. Table1
Answer(s): B
QUESTION: 11
HOTSPOT
You have an Azure Storage account named storage1.
You have an Azure Service app named App1 and an app named App2 that runs in an Azure
container instance. Each app uses a managed identity.
You need to ensure that App1 and App2 can read blobs from storage1. The solution must meet
the following requirements:
What should you configure in storage1 for each app? To answer, select the appropriate options
in the answer area.
Exhibit A:
https://xcerts.com 66
AZ-104
Exhibit B:
Answer(s): A
Explanation:
App1: Access keys
https://xcerts.com 67
AZ-104
Reference:
https://docs.microsoft.com/en-us/azure/storage/common/storage-sas-overview
QUESTION: 12
HOTSPOT
You need to create an Azure Storage account that meets the following requirements:
• Minimizes costs
• Supports hot, cool, and archive blob tiers
• Provides fault tolerance if a disaster affects the Azure region where the account resides
How should you complete the command? To answer, select the appropriate options in the
answer area.
NOTE: Each correct selection is worth one point.
Hot Area:
Exhibit A:
Exhibit B:
https://xcerts.com 68
AZ-104
Answer(s): A
Explanation:
Box 1: StorageV2
You may only tier your object storage data to hot, cool, or archive in Blob storage and General
Purpose v2 (GPv2) accounts. General Purpose v1 (GPv1) accounts do not support tiering.
General-purpose v2 accounts deliver the lowest per-gigabyte capacity prices for Azure Storage,
as well as industry-competitive transaction prices.
Box 2: Standard_GRS
Geo-redundant storage (GRS): Cross-regional replication to protect against region-wide
unavailability.
Incorrect Answers:
Locally-redundant storage (LRS): A simple, low-cost replication strategy. Data is replicated
within a single storage scale unit.
Reference:
https://docs.microsoft.com/en-us/azure/storage/common/storage-redundancy-grs
https://docs.microsoft.com/en-us/azure/storage/blobs/storage-blob-storage-tiers
QUESTION: 13
You have an Azure subscription that contains the resources in the following table.
Store1 contains a file share named data. Data contains 5,000 files.
You need to synchronize the files in the file share named data to an on-premises server named
Server1. Which three actions should you perform? Each correct answer presents part of the
solution.
NOTE: Each correct selection is worth one point.
https://xcerts.com 69
AZ-104
Answer(s): B, C, E
Explanation:
Step 1 (C): Install the Azure File Sync agent on Server1
The Azure File Sync agent is a downloadable package that enables Windows Server to be
synced with an Azure file share
Reference:
https://docs.microsoft.com/en-us/azure/storage/files/storage-sync-files-deployment-guide
QUESTION: 14
HOTSPOT
You have an Azure subscription that contains the resources shown in the following table.
You assign an Azure policy as shown in the exhibit. (Click the Exhibit tab.)
https://xcerts.com 70
AZ-104
• Microsoft.ClassicNetwork/virtualNetworks
• Microsoft.Network/virtualNetworks
• Microsoft.Compute/virtualMachines
For each of the following statements, select Yes if the statement is true. Otherwise, select No.
NOTE: Each correct selection is worth one point.
Hot Area:
Exhibit A:
https://xcerts.com 71
AZ-104
Exhibit B:
Answer(s): A
QUESTION: 15
DRAG DROP
You have an Azure subscription that contains a storage account.
You have an on-premises server named Server1 that runs Windows Server 2016. Server1 has
2 TB of data. You need to transfer the data to the storage account by using the Azure
Import/Export service.
In which order should you perform the actions? To answer, move all actions from the list of
actions to the answer area and arrange them in the correct order.
NOTE: More than one order of answer choices is correct. You will receive credit for any of the
correct orders you select.
Select and Place:
Exhibit A:
https://xcerts.com 72
AZ-104
Exhibit B:
Answer(s): A
Explanation:
At a high level, an import job involves the following steps:
Step 3: Detach the external disks from Server1 and ship the disks to an Azure data center.
Provide the return address and carrier account number for shipping the drives back to you. Ship
the disk drives to the shipping address provided during job creation.
https://xcerts.com 73
AZ-104
Update the delivery tracking number in the import job details and submit the import job. The
drives are received and processed at the Azure data center.
The drives are shipped using your carrier account to the return address provided in the import
job.
Reference:
https://docs.microsoft.com/en-us/azure/storage/common/storage-import-export-service
QUESTION: 16
HOTSPOT
You have Azure subscription that includes following Azure file shares:
You create a Storage Sync Service named Sync1 and an Azure File Sync group named
Group1. Group1 uses share1 as a cloud endpoint.
You register Server1 and Server2 in Sync1. You add D:\Folder1 on Server1 as a server
endpoint of Group1. For each of the following statements, select Yes if the statement is true.
Otherwise, select No.
NOTE: Each correct selection is worth one point.
Hot Area:
Exhibit A:
Exhibit B:
https://xcerts.com 74
AZ-104
Answer(s): A
Explanation:
Box 1: No
Group1 already has a cloud endpoint named Share1.
A sync group must contain one cloud endpoint, which represents an Azure file share and one or
more server endpoints.
Box 2: Yes
Yes, one or more server endpoints can be added to the sync group.
Box 3: Yes
Yes, one or more server endpoints can be added to the sync group.
Reference:
https://docs.microsoft.com/en-us/azure/storage/files/storage-sync-files-deployment-guide
QUESTION: 17
DRAG DROP
You have an Azure subscription named Subscription1.
You create an Azure Storage account named contosostorage, and then you create a file share
named data.
Which UNC path should you include in a script that references files from the data file share? To
answer, drag the appropriate values to the correct targets. Each value may be used once, more
than once or not at all. You may need to drag the split bar between panes or scroll to view
content.
Exhibit A:
https://xcerts.com 75
AZ-104
Exhibit B:
Answer(s): A
Explanation:
Box 1: contosostorage The name of account
Box 2: file.core.windows.net
Box 3: data
The name of the file share is data.
Example:
https://xcerts.com 76
AZ-104
Reference:
https://docs.microsoft.com/en-us/azure/storage/files/storage-how-to-use-files-windows
QUESTION: 18
HOTSPOT
You have an Azure subscription that contains an Azure Storage account.
You plan to copy an on-premises virtual machine image to a container named vmimages.
You need to create the container for the planned image.
Which command should you run? To answer, select the appropriate options in the answer area.
NOTE: Each correct selection is worth one point.
Hot Area:
Exhibit A:
https://xcerts.com 77
AZ-104
Exhibit B:
Answer(s): A
QUESTION: 19
HOTSPOT
You have an Azure File sync group that has the endpoints shown in the following table.
https://xcerts.com 78
AZ-104
On which endpoints will File1 and File2 be available within 24 hours of adding the files? To
answer, select the appropriate options in the answer area.
Exhibit A:
Exhibit B:
https://xcerts.com 79
AZ-104
Answer(s): A
Explanation:
File1: Endpoint3 only
Cloud Tiering: A switch to enable or disable cloud tiering. When enabled, cloud tiering will tier
files to your Azure file shares. This converts on-premises file shares into a cache, rather than a
complete copy of the dataset, to help you manage space efficiency on your server. With cloud
tiering, infrequently used or accessed files can be tiered to Azure Files.
File2: Endpoint1, Endpoint2, and Endpoint3
Reference:
https://docs.microsoft.com/en-us/azure/storage/files/storage-sync-cloud-tiering
QUESTION: 20
HOTSPOT
You have several Azure virtual machines on a virtual network named VNet1.
You configure an Azure Storage account as shown in the following exhibit.
https://xcerts.com 80
AZ-104
Use the drop-down menus to select the answer choice that completes each statement based on
the information presented in the graphic.
Exhibit A:
https://xcerts.com 81
AZ-104
Exhibit B:
Answer(s): A
Explanation:
Box 1: always
The 10.2.9.0/24 subnet is not whitelisted.
Box 2: Never
After you configure firewall and virtual network settings for your storage account, select Allow
trusted Microsoft services to access this storage account as an exception to enable Azure
Backup service to access the network restricted storage account.
https://xcerts.com 82
AZ-104
Reference:
https://docs.microsoft.com/en-us/azure/storage/files/storage-how-to-use-files-windows
https://azure.microsoft.com/en-us/blog/azure-backup-now-supports-storage-accounts-secured-
with-azure-storage-firewalls-and-virtual-networks/
QUESTION: 21
HOTSPOT
You have a sync group named Sync1 that has a cloud endpoint. The cloud endpoint includes a
file named File1.txt.
Your on-premises network contains servers that run Windows Server 2016. The servers are
configured as shown in the following table.
You add Share1 as an endpoint for Sync1. One hour later, you add Share2 as an endpoint for
Sync1. For each of the following statements, select Yes if the statement is true. Otherwise,
select No.
NOTE: Each correct selection is worth one point.
Hot Area:
Exhibit A:
Exhibit B:
https://xcerts.com 83
AZ-104
Answer(s): A
Explanation:
Box 1: Yes
If you add an Azure file share that has an existing set of files as a cloud endpoint to a sync
group, the existing files are merged with any other files that are already on other endpoints in
the sync group.
Box 2: No
Box 3: Yes
Reference:
https://docs.microsoft.com/en-us/azure/storage/files/storage-sync-files-planning
QUESTION: 22
You have an Azure subscription that contains the storage accounts shown in the following table.
You need to identify which storage account can be converted to zone-redundant storage (ZRS)
replication by requesting a live migration from Azure support.
What should you identify?
A. storage1
B. storage2
C. storage3
https://xcerts.com 84
AZ-104
D. storage4
Answer(s): B
Explanation:
ZRS currently supports standard general-purpose v2, FileStorage and BlockBlobStorage
storage account types.
Incorrect Answers:
A, not C: Live migration is supported only for storage accounts that use LRS replication. If your
account uses GRS or RA-GRS, then you need to first change your account's replication type to
LRS before proceeding. This intermediary step removes the secondary endpoint provided by
GRS/RA-GRS.
Also, only standard storage account types support live migration. Premium storage accounts
must be migrated manually.
D: ZRS currently supports standard general-purpose v2, FileStorage and BlockBlobStorage
storage account types.
Reference:
https://docs.microsoft.com/en-us/azure/storage/common/storage-redundancy-zrs
QUESTION: 23
You have an Azure subscription that contains a storage account named account1.
You plan to upload the disk files of a virtual machine to account1 from your on-premises
network. The on- premises network uses a public IP address space of 131.107.1.0/24.
You plan to use the disk files to provision an Azure virtual machine named VM1. VM1 will be
attached to a virtual network named VNet1. VNet1 uses an IP address space of 192.168.0.0/24.
Which two actions should you perform? Each correct answer presents part of the solution.
NOTE: Each correct selection is worth one point.
A. From the Firewalls and virtual networks blade of account1, select Selected networks.
B. From the Firewalls and virtual networks blade of account1, select Allow trusted Microsoft
services to access this storage account.
C. From the Firewalls and virtual networks blade of account1, add the 131.107.1.0/24 IP
address range.
D. From the Firewalls and virtual networks blade of account1, add VNet1.
E. From the Service endpoints blade of VNet1, add a service endpoint.
Answer(s): A, E
Explanation:
https://xcerts.com 85
AZ-104
A: By default, storage accounts accept connections from clients on any network. To limit access
to selected networks, you must first change the default action.
Azure portal
Reference:
https://docs.microsoft.com/en-us/azure/storage/common/storage-network-security
QUESTION: 24
DRAG DROP
You have an on-premises file server named Server1 that runs Windows Server 2016. You have
an Azure subscription that contains an Azure file share.
You deploy an Azure File Sync Storage Sync Service, and you create a sync group. You need
to synchronize files from Server1 to Azure.
Which three actions should you perform in sequence? To answer, move the appropriate actions
from the list of actions to the answer area and arrange them in the correct order.
Select and Place:
Exhibit A:
https://xcerts.com 86
AZ-104
Exhibit B:
Answer(s): A
Explanation:
Step 1: Install the Azure File Sync agent on Server1
The Azure File Sync agent is a downloadable package that enables Windows Server to be
synced with an Azure file share
Reference:
https://docs.microsoft.com/en-us/azure/storage/files/storage-sync-files-deployment-guide
QUESTION: 25
HOTSPOT
You plan to create an Azure Storage account in the Azure region of East US 2. You need to
create a storage account that meets the following requirements:
• Replicates synchronously.
https://xcerts.com 87
AZ-104
How should you configure the storage account? To answer, select the appropriate options in the
answer area.
Exhibit A:
Exhibit B:
Answer(s): A
Explanation:
Box 1: Zone-redundant storage (ZRS)
Zone-redundant storage (ZRS) replicates your data synchronously across three storage clusters
in a single region.
https://xcerts.com 88
AZ-104
LRS would not remain available if a data center in the region fails GRS and RA GRS use
asynchronous replication.
Reference:
https://docs.microsoft.com/en-us/azure/storage/common/storage-redundancy
https://docs.microsoft.com/en-us/azure/storage/common/storage-redundancy-zrs
QUESTION: 26
You plan to use the Azure Import/Export service to copy files to a storage account.
Which two files should you create before you prepare the drives for the import job? Each correct
answer presents part of the solution.
Answer(s): B, E
Explanation:
B: Modify the dataset.csv file in the root folder where the tool resides. Depending on whether
you want to import a file or folder or both, add entries in the dataset.csv file
E: Modify the driveset.csv file in the root folder where the tool resides.
Reference:
https://docs.microsoft.com/en-us/azure/storage/common/storage-import-export-data-to-files
QUESTION: 27
You have a Recovery Service vault that you use to test backups. The test backups contain two
protected virtual machines. You need to delete the Recovery Services vault. What should you
do first?
Answer(s): D
Explanation:
You can't delete a Recovery Services vault if it is registered to a server and holds backup data.
If you try to delete a vault, but can't, the vault is still configured to receive backup data.
https://xcerts.com 89
AZ-104
Reference:
https://docs.microsoft.com/en-us/azure/backup/backup-azure-delete-vault
QUESTION: 28
HOTSPOT
You have an Azure subscription named Subscription1 that contains the resources shown in the
following table.
In storage1, you create a blob container named blob1 and a file share named share1.
Which resources can be backed up to Vault1 and Vault2? To answer, select the appropriate
options in the answer area.
Exhibit A:
https://xcerts.com 90
AZ-104
Exhibit B:
Answer(s): A
Explanation:
https://xcerts.com 91
AZ-104
Note: To create a vault to protect virtual machines, the vault must be in the same region as the
virtual machines.
Note: After you select Backup, the Backup pane opens and prompts you to select a storage
account from a list of discovered supported storage accounts. They're either associated with
this vault or present in the same region as the vault, but not yet associated to any Recovery
Services vault.
Reference:
https://docs.microsoft.com/bs-cyrl-ba/azure/backup/backup-create-rs-vault
https://docs.microsoft.com/en-us/azure/backup/backup-afs
QUESTION: 29
You have an Azure subscription named Subscription1.
You have 5 TB of data that you need to transfer to Subscription1.
You plan to use an Azure Import/Export job.
What can you use as the destination of the imported data?
A. a virtual machine
B. an Azure Cosmos DB database
C. Azure File Storage
D. the Azure File Sync Storage Sync Service
Answer(s): C
Explanation:
Azure Import/Export service is used to securely import large amounts of data to Azure Blob
storage and Azure Files by shipping disk drives to an Azure datacenter.
The maximum size of an Azure Files Resource of a file share is 5 TB. Note:
There are several versions of this question in the exam. The question has two correct answers:
1. Azure File Storage
2. Azure Blob Storage
The question can have other incorrect answer options, including the following:
• Azure Data Lake Store
• Azure SQL Database
• Azure Data Factory
Reference:
https://docs.microsoft.com/en-us/azure/storage/common/storage-import-export-service
https://xcerts.com 92
AZ-104
QUESTION: 30
HOTSPOT
You have an Azure subscription.
You create the Azure Storage account shown in the following exhibit.
Use the drop-down menus to select the answer choice that completes each statement based on
the information presented in the graphic.
https://xcerts.com 93
AZ-104
Exhibit A:
Exhibit B:
Answer(s): A
Explanation:
Box 1: 3
Locally Redundant Storage (LRS) provides highly durable and available storage within a single
location (sub region). We maintain an equivalent of 3 copies (replicas) of your data within the
primary location as described in our SOSP paper; this ensures that we can recover from
common failures (disk, node, rack) without impacting your storage account’s availability and
durability.
https://xcerts.com 94
AZ-104
Note: Azure storage offers different access tiers, which allow you to store blob object data in the
most cost- effective manner. The available access tiers include:
Reference:
https://azure.microsoft.com/en-us/blog/data-series-introducing-locally-redundant-storage-for-
windows-azure-storage/
https://docs.microsoft.com/en-us/azure/storage/blobs/storage-blob-storage-tiers
QUESTION: 31
You have an Azure subscription named Subscription1.
You have 5 TB of data that you need to transfer to Subscription1. You plan to use an Azure
Import/Export job.
What can you use as the destination of the imported data?
Answer(s): B
Explanation:
Azure Import/Export service is used to securely import large amounts of data to Azure Blob
storage and Azure Files by shipping disk drives to an Azure datacenter.
Note:
There are several versions of this question in the exam. The question has two correct answers:
1. Azure File Storage
2. Azure Blob Storage
The question can have other incorrect answer options, including the following:
• a virtual machine
• Azure SQL Database
• Azure Data Factory
Reference:
https://docs.microsoft.com/en-us/azure/storage/common/storage-import-export-service
QUESTION: 32
DRAG DROP
You have an Azure subscription that contains an Azure file share.
https://xcerts.com 95
AZ-104
You have an on-premises server named Server1 that runs Windows Server 2016. You plan to
set up Azure File Sync between Server1 and the Azure file share.
You need to prepare the subscription for the planned Azure File Sync.
Which two actions should you perform in the Azure subscription? To answer, drag the
appropriate actions to the correct targets. Each action may be used once, more than once, or
not at all. You may need to drag the split bar between panes or scroll to view content.
Exhibit A:
Exhibit B:
Answer(s): A
Explanation:
First action: Create a Storage Sync Service
https://xcerts.com 96
AZ-104
The deployment of Azure File Sync starts with placing a Storage Sync Service resource into a
resource group of your selected subscription.
Reference:
https://docs.microsoft.com/en-us/azure/storage/files/storage-sync-files-deployment-guide
QUESTION: 33
HOTSPOT
You have an Azure subscription that contains the file shares shown in the following table.
You have the on-premises file shares shown in the following table.
You create an Azure file sync group named Sync1 and perform the following actions:
• Add share1 as the cloud endpoint for Sync1.
• Add data1 as a server endpoint for Sync1.
• Register Server1 and Server2 to Sync1.
For each of the following statements, select Yes if the statement is true. Otherwise, select No.
NOTE: Each correct selection is worth one point.
Hot Area:
Exhibit A:
https://xcerts.com 97
AZ-104
Exhibit B:
Answer(s): A
Explanation:
Box 1: No
A sync group must contain one cloud endpoint, which represents an Azure file share and one or
more server endpoints.
Box 2: Yes
Data2 is located on Server2 which is registered to Sync1.
Box 3: No
Data3 is located on Server3 which is not registered to Sync1.
Reference:
https://docs.microsoft.com/en-us/azure/storage/files/storage-sync-files-deployment-
guide?tabs=azure-portal%2Cproactive-portal#create-a-sync-group-and-a-cloud-endpoint
QUESTION: 34
HOTSPOT
You have an Azure subscription that contains the storage accounts shown in the following
exhibit.
https://xcerts.com 98
AZ-104
Use the drop-down menus to select the answer choice that completes each statement based on
the information presented in the graphic.
Exhibit A:
Exhibit B:
https://xcerts.com 99
AZ-104
Answer(s): A
Explanation:
Box 1: contoso104 only
Premium file shares are hosted in a special purpose storage account kind, called a FileStorage
account. Box 2: contoso101, contoso102, and contos103 only
Reference:
https://docs.microsoft.com/en-us/azure/storage/files/storage-how-to-create-premium-
fileshare?tabs=azure-portal
https://docs.microsoft.com/en-us/azure/storage/blobs/storage-blob-storage-tiers
QUESTION: 35
You have two Azure virtual machines named VM1 and VM2. You have two Recovery Services
vaults named RSV1 and RSV2.
A. From the RSV1 blade, click Backup items and stop the VM2 backup
B. From the RSV2 blade, click Backup. From the Backup blade, select the backup for the virtual
machine, and then click Backup
C. From the VM2 blade, click Disaster recovery, click Replication settings, and then select
RSV2 as the Recovery Services vault
D. From the RSV1 blade, click Backup Jobs and export the VM2 job
Answer(s): C
Reference:
https://xcerts.com 100
AZ-104
https://docs.microsoft.com/en-us/azure/backup/backup-azure-vms-first-look-arm
QUESTION: 36
You have a general-purpose v1 Azure Storage account named storage1 that uses locally-
redundant storage (LRS).
You need to ensure that the data in the storage account is protected if a zone fails. The solution
must minimize costs and administrative effort.
Answer(s): C
Reference:
https://docs.microsoft.com/en-us/azure/storage/common/storage-redundancy
QUESTION: 37
You have an Azure subscription that contains the storage accounts shown in the following table.
You plan to manage the data stored in the accounts by using lifecycle management rules. To
which storage accounts can you apply lifecycle management rules?
A. storage1 only
B. storage1 and storage2 only
C. storage3 and storage4 only
D. storage1, storage2, and storage3 only
E. storage1, storage2, storage3, and storage4
Answer(s): D
Reference:
https://docs.microsoft.com/en-us/azure/storage/blobs/storage-lifecycle-management-
concepts?tabs=azure-portal
QUESTION: 38
https://xcerts.com 101
AZ-104
• Performance: Standard
• Replication: Zone-redundant storage (ZRS)
• Access tier (default): Cool
• Hierarchical namespace: Disabled
You need to ensure that you can set Account kind for storage1 to BlockBlobStorage. Which
setting should you modify first?
A. Performance
B. Replication
C. Access tier (default)
D. Hierarchical namespace
Answer(s): A
Reference:
https://docs.microsoft.com/en-us/azure/storage/common/storage-account-overview
https://docs.microsoft.com/en-us/azure/storage/blobs/storage-blob-performance-tiers
QUESTION: 39
You have an Azure Storage account named storage1 that contains a blob container named
container1.
You need to prevent new content added to container1 from being modified for one year.
What should you configure?
Answer(s): C
Reference:
https://docs.microsoft.com/en-us/azure/storage/blobs/immutable-storage-overview?tabs=azure-
portal
QUESTION: 40
HOTSPOT
You have an Azure Storage account named storage1 that contains a blob container. The blob
container has a default access tier of Hot. Storage1 contains a container named conainer1.
You create lifecycle management rules in storage1 as shown in the following table.
https://xcerts.com 102
AZ-104
For each of the following statements, select Yes if the statement is true. Otherwise, select No.
NOTE: Each correct selection is worth one point.
Exhibit A:
Exhibit B:
https://xcerts.com 103
AZ-104
Answer(s): A
QUESTION: 41
You create an Azure Storage account named contosostorage.
You plan to create a file share named data.
Users need to map a drive to the data file share from home computers that run Windows 10.
Which outbound port should you open between the home computers and the data file share?
A. 80
B. 443
C. 445
D. 3389
Answer(s): C
Explanation:
Server Message Block (SMB) is used to connect to an Azure file share over the internet. The
SMB protocol requires TCP port 445 to be open.
Incorrect Answers:
A: Port 80 is required for HTTP to a web server
B: Port 443 is required for HTTPS to a web server
D: Port 3389443 is required for Remote desktop protocol (RDP) connections
Reference:
https://docs.microsoft.com/en-us/azure/storage/files/storage-how-to-use-files-windows
https://xcerts.com 104
AZ-104
Testlet 2
Case study
This is a case study. Case studies are not timed separately. You can use as much exam time as
you would like to complete each case. However, there may be additional case studies and
sections on this exam. You must manage your time to ensure that you are able to complete all
questions included on this exam in the time provided.
To answer the questions included in a case study, you will need to reference information that is
provided in the case study. Case studies might contain exhibits and other resources that provide
more information about the scenario that is described in the case study. Each question is
independent of the other questions in this case study.
At the end of this case study, a review screen will appear. This screen allows you to review your
answers and to make changes before you move to the next section of the exam. After you begin
a new section, you cannot return to this section.
Overview
Contoso, Ltd. is a manufacturing company that has offices worldwide. Contoso works with
partner organizations to bring products to market.
Contoso products are manufactured by using blueprint files that the company authors and
maintains.
Existing Environment
Currently, Contoso uses multiple types of servers for business operations, including the
following:
• File servers
• Domain controllers
• Microsoft SQL Server servers
Your network contains an Active Directory forest named contoso.com. All servers and client
computers are joined to Active Directory.
You have a public-facing application named App1. App1 is comprised of the following three
tiers:
• A SQL database
• A web front end
• A processing middle tier
https://xcerts.com 105
AZ-104
Each tier is comprised of five virtual machines. Users access the web front end by using HTTPS
only.
Requirements
Planned Changes
Contoso plans to implement the following changes to the infrastructure:
Technical Requirements
Contoso must meet the following technical requirements:
User Requirements
Contoso identifies the following requirements for users:
• Ensure that only users who are part of a group named Pilot can join devices to Azure
AD.
• Designate a new user named Admin1 as the service admin for the Azure subscription.
• Admin1 must receive email alerts regarding service outages.
• Ensure that a new user named User3 can create network objects for the Azure
subscription.
•
QUESTION: 1
You need to implement a backup solution for App1 after the application is moved. What should
you create first?
A. a recovery plan
B. an Azure Backup Server
C. a backup policy
D. a Recovery Services vault
Answer(s): D
https://xcerts.com 106
AZ-104
Explanation:
A Recovery Services vault is a logical container that stores the backup data for each protected
resource, such as Azure VMs. When the backup job for a protected resource runs, it creates a
recovery point inside the Recovery Services vault.
Scenario:
There are three application tiers, each with five virtual machines. Move all the virtual machines
for App1 to Azure.
Ensure that all the virtual machines for App1 are protected by backups.
Reference:
https://docs.microsoft.com/en-us/azure/backup/quick-backup-vm-portal
QUESTION: 2
You need to move the blueprint files to Azure.
What should you do?
A. Generate an access key. Map a drive, and then copy the files by using File Explorer.
B. Use Azure Storage Explorer to copy the files.
C. Use the Azure Import/Export service.
D. Generate a shared access signature (SAS). Map a drive, and then copy the files by using
File Explorer.
Answer(s): B
Explanation:
Azure Storage Explorer is a free tool from Microsoft that allows you to work with Azure Storage
data on Windows, macOS, and Linux. You can use it to upload and download data from Azure
blob storage.
Scenario:
Planned Changes include: move the existing product blueprint files to Azure Blob storage.
Technical Requirements include: Copy the blueprint files to Azure over the Internet.
Reference:
https://docs.microsoft.com/en-us/azure/machine-learning/team-data-science-process/move-
data-to-azure-blob-using-azure-storage-explorer
QUESTION: 3
HOTSPOT
You need to identify the storage requirements for Contoso.
For each of the following statements, select Yes if the statement is true. Otherwise, select No.
Exhibit A:
https://xcerts.com 107
AZ-104
Exhibit B:
Answer(s): A
Explanation:
Box 1: Yes
Contoso is moving the existing product blueprint files to Azure Blob storage.
Use unmanaged standard storage for the hard disks of the virtual machines. We use Page
Blobs for these.
Box 2: No
Box 3: No
https://xcerts.com 108
AZ-104
Testlet 3
Case study
This is a case study. Case studies are not timed separately. You can use as much exam time as
you would like to complete each case. However, there may be additional case studies and
sections on this exam. You must manage your time to ensure that you are able to complete all
questions included on this exam in the time provided.
To answer the questions included in a case study, you will need to reference information that is
provided in the case study. Case studies might contain exhibits and other resources that provide
more information about the scenario that is described in the case study. Each question is
independent of the other questions in this case study.
At the end of this case study, a review screen will appear. This screen allows you to review your
answers and to make changes before you move to the next section of the exam. After you begin
a new section, you cannot return to this section.
Overview
General Overview
Contoso, Ltd. is a consulting company that has a main office in Montreal and branch offices in
Seattle and New York.
Environment
Existing Environment
Contoso has an Azure subscription named Sub1 that is linked to an Azure Active Directory
(Azure AD) tenant. The network contains an on-premises Active Directory domain that syncs to
the Azure AD tenant.
The Azure AD tenant contains the users shown in the following table.
Sub1 contains two resource groups named RG1 and RG2 and the virtual networks shown in the
following table.
https://xcerts.com 109
AZ-104
User1 manages the resources in RG1. User4 manages the resources in RG2.
Sub1 contains virtual machines that run Windows Server 2019 as shown in the following table
No network security groups (NSGs) are associated to the network interfaces or the subnets.
Requirements
Planned Changes
Contoso plans to implement the following changes:
• Create a blob container named container1 and a file share named share1 that will use
the Cool storage tier.
• Create a storage account named storage5 and configure storage replication for the Blob
service.
https://xcerts.com 110
AZ-104
• Create an NSG named NSG1 that will have the custom inbound security rules shown in
the following table.
Technical Requirements
Contoso must meet the following technical requirements:
QUESTION: 1
HOTSPOT
You need to create container1 and share1.
Which storage accounts should you use for each resource? To answer, select the appropriate
options in the answer area.
Exhibit A:
https://xcerts.com 111
AZ-104
Exhibit B:
https://xcerts.com 112
AZ-104
Answer(s): A
Reference:
https://docs.microsoft.com/en-us/azure/storage/blobs/storage-blob-storage-tiers
https://docs.microsoft.com/en-us/azure/storage/common/storage-account-overview
QUESTION: 2
HOTSPOT
You need to create storage5. The solution must support the planned changes.
Which type of storage account should you use, and which account should you configure as the
destination storage account? To answer, select the appropriate options in the answer area.
Exhibit A:
https://xcerts.com 113
AZ-104
Exhibit B:
Answer(s): A
Reference:
https://docs.microsoft.com/en-us/azure/storage/blobs/object-replication-configure?tabs=portal
https://xcerts.com 114
AZ-104
QUESTION: 1
Note: This question is part of a series of questions that present the same scenario. Each
question in the series contains a unique solution that might meet the stated goals. Some
question sets might have more than one correct solution, while others might not have a correct
solution.
After you answer a question in this section, you will NOT be able to return to it. As a result,
these questions will not appear in the review screen.
You have an Azure subscription named Subscription1. Subscription1 contains a resource group
named RG1. RG1 contains resources that were deployed by using templates.
You need to view the date and time when the resources were created in RG1.
Solution: From the RG1 blade, you click Automation script.
Does this meet the goal?
A. Yes
B. No
Answer(s): B
Explanation:
From the RG1 blade, click Deployments. You see a history of deployment for the resource
group.
Reference:
https://docs.microsoft.com/en-us/azure/azure-resource-manager/templates/template-tutorial-
create-first-template?tabs=azure-powershell
QUESTION: 2
Note: This question is part of a series of questions that present the same scenario. Each
question in the series contains a unique solution that might meet the stated goals. Some
question sets might have more than one correct solution, while others might not have a correct
solution.
After you answer a question in this section, you will NOT be able to return to it. As a result,
these questions will not appear in the review screen.
You have an Azure subscription named Subscription1. Subscription1 contains a resource group
named RG1. RG1 contains resources that were deployed by using templates.
You need to view the date and time when the resources were created in RG1.
Solution: From the RG1 blade, you click Deployments. Does this meet the goal?
A. Yes
B. No
https://xcerts.com 115
AZ-104
Answer(s): A
Explanation:
From the RG1 blade, click Deployments. You see a history of deployment for the resource
group.
Reference:
https://docs.microsoft.com/en-us/azure/azure-resource-manager/templates/template-tutorial-
create-first-template?tabs=azure-powershell
QUESTION: 3
You have an Azure subscription named Subscription1.
You deploy a Linux virtual machine named VM1 to Subscription1. You need to monitor the
metrics and the logs of VM1.
What should you use?
A. Azure HDInsight
B. Linux Diagnostic Extension (LAD) 3.0
C. the AzurePerformanceDiagnostics extension
D. Azure Analysis Services
Answer(s): C
Explanation:
You can use extensions to configure diagnostics on your VMs to collect additional metric data.
The basic host metrics are available, but to see more granular and VM-specific metrics, you
need to install the Azure diagnostics extension on the VM. The Azure diagnostics extension
allows additional monitoring and diagnostics data to be retrieved from the VM.
Reference:
https://docs.microsoft.com/en-us/azure/virtual-machines/linux/tutorial-monitoring
QUESTION: 4
HOTSPOT
You have an Azure subscription named Subscription1. Subscription1 contains a virtual machine
named VM1. You install and configure a web server and a DNS server on VM1.
VM1 has the effective network security rules shown in the following exhibit:
https://xcerts.com 116
AZ-104
Use the drop-down menus to select the answer choice that completes each statement based on
the information presented in the graphic.
Exhibit A:
Exhibit B:
https://xcerts.com 117
AZ-104
Answer(s): A
QUESTION: 5
You plan to deploy three Azure virtual machines named VM1, VM2, and VM3. The virtual
machines will host a web app named App1.
You need to ensure that at least two virtual machines are available if a single Azure datacenter
becomes unavailable. What should you deploy?
Answer(s): C
Explanation:
Use availability zones to protect from datacenter level failures.
Reference:
https://docs.microsoft.com/en-us/azure/virtual-machines/windows/manage-availability
https://docs.microsoft.com/en-us/azure/virtual-machines/windows/tutorial-availability-sets
QUESTION: 6
You have an Azure virtual machine named VM1 that runs Windows Server 2019.
You save VM1 as a template named Template1 to the Azure Resource Manager library. You
plan to deploy a virtual machine named VM2 from Template1.
What can you configure during the deployment of VM2?
A. operating system
B. administrator username
C. virtual machine size
https://xcerts.com 118
AZ-104
D. resource group
Answer(s): B
Explanation:
When deploying a virtual machine from a template, you must specify:
• the Resource Group name and location for the VM
• the administrator username and password
• an unique DNS name for the public IP
Reference:
https://docs.microsoft.com/en-us/azure/virtual-machines/windows/ps-template
QUESTION: 7
You have an Azure subscription that contains an Azure virtual machine named VM1. VM1 runs
a financial reporting app named App1 that does not support multiple active instances.
At the end of each month, CPU usage for VM1 peaks when App1 runs.
You need to create a scheduled runbook to increase the processor performance of VM1 at the
end of each month. What task should you include in the runbook?
Answer(s): E
Reference:
https://docs.microsoft.com/en-us/azure/automation/automation-quickstart-dsc-configuration
QUESTION: 8
You have an Azure virtual machine named VM1 that runs Windows Server 2019. You sign in to
VM1 as a user named User1 and perform the following actions:
• Create files on drive C.
• Create files on drive D.
• Modify the screen saver timeout.
• Change the desktop background.
Answer(s): C
https://xcerts.com 119
AZ-104
QUESTION: 9
You have an Azure subscription.
You have an on-premises virtual machine named VM1. The settings for VM1 are shown in the
exhibit. (Click the Exhibit tab.)
You need to ensure that you can use the disks attached to VM1 as a template for Azure virtual
machines. What should you modify on VM1?
A. the memory
B. the network adapters
C. the hard drive
D. the processor
E. Integration Services
https://xcerts.com 120
AZ-104
Answer(s): C
Explanation:
From the exhibit we see that the disk is in the VHDX format.
Before you upload a Windows virtual machine (VM) from on-premises to Microsoft Azure, you
must prepare the virtual hard disk (VHD or VHDX). Azure supports only generation 1 VMs that
are in the VHD file format and have a fixed sized disk. The maximum size allowed for the VHD
is 1,023 GB. You can convert a generation 1 VM from the VHDX file system to VHD and from a
dynamically expanding disk to fixed-sized.
Reference:
https://docs.microsoft.com/en-us/azure/virtual-machines/windows/prepare-for-upload-vhd-image
QUESTION: 10
HOTSPOT
You have an Azure subscription that contains a virtual machine scale set. The scale set
contains four instances that have the following configurations:
Use the drop-down menus to select the answer choice that completes each statement based on
the information presented in the graphic.
Exhibit A:
https://xcerts.com 121
AZ-104
Exhibit B:
Answer(s): A
Explanation:
The Get-AzVmssVM cmdlet gets the model view and instance view of a Virtual Machine Scale
Set (VMSS) virtual machine.
Box 1: 0
The enableAutomaticUpdates parameter is set to false. To update existing VMs, you must do a
manual upgrade of each existing VM.
https://xcerts.com 122
AZ-104
Box 2: 4
Enabling automatic OS image upgrades on your scale set helps ease update management by
safely and automatically upgrading the OS disk for all instances in the scale set.
Reference:
https://docs.microsoft.com/en-us/azure/virtual-machine-scale-sets/virtual-machine-scale-sets-
upgrade-scale-set
https://docs.microsoft.com/en-us/azure/virtual-machine-scale-sets/virtual-machine-scale-sets-
automatic-upgrade
QUESTION: 11
You have an Azure subscription named Subscription1 that is used by several departments at
your company. Subscription1 contains the resources in the following table:
Another administrator deploys a virtual machine named VM1 and an Azure Storage account
named storage2 by using a single Azure Resource Manager template.
A. VM1
B. RG1
C. storage2
D. container1
Answer(s): B
Explanation:
View template from deployment history
1. Go to the resource group for your new resource group. Notice that the portal shows the result
of the last deployment. Select this link.
https://xcerts.com 123
AZ-104
2. You see a history of deployments for the group. In your case, the portal probably lists only
one deployment.
3. The portal displays a summary of the deployment. The summary includes the status of the
deployment and its operations and the values that you provided for parameters. To see the
template that you used for the deployment, select View template.
Reference:
https://docs.microsoft.com/en-us/azure/azure-resource-manager/resource-manager-export-
template
QUESTION: 12
https://xcerts.com 124
AZ-104
You have an Azure web app named App1. App1 has the deployment slots shown in the
following table:
A. Redeploy App1
B. Swap the slots
C. Clone App1
D. Restore the backup of App1
Answer(s): B
Explanation:
When you swap deployment slots, Azure swaps the Virtual IP addresses of the source and
destination slots, thereby swapping the URLs of the slots. We can easily revert the deployment
by swapping back.
Reference:
https://docs.microsoft.com/en-us/azure/app-service/deploy-staging-slots
QUESTION: 13
HOTSPOT
You have an Azure subscription named Subscription1. Subscription1 contains two Azure virtual
machines VM1 and VM2. VM1 and VM2 run Windows Server 2016.
VM1 is backed up daily by Azure Backup without using the Azure Backup agent. VM1 is
affected by ransomware that encrypts data.
You need to restore the latest backup of VM1.
To which location can you restore the backup? To answer, select the appropriate options in the
answer area.
Exhibit A:
https://xcerts.com 125
AZ-104
Exhibit B:
Answer(s): A
Explanation:
Note: The new VM must be in the same region.
Reference:
https://docs.microsoft.com/en-us/azure/backup/backup-azure-arm-restore-vms
QUESTION: 14
Note: This question is part of a series of questions that present the same scenario. Each
question in the series contains a unique solution that might meet the stated goals. Some
https://xcerts.com 126
AZ-104
question sets might have more than one correct solution, while others might not have a correct
solution.
After you answer a question in this section, you will NOT be able to return to it. As a result,
these questions will not appear in the review screen.
You have an Azure virtual machine named VM1 that runs Windows Server 2016.
You need to create an alert in Azure when more than two error events are logged to the System
event log on VM1 within an hour.
Solution: You create an Azure Log Analytics workspace and configure the data settings. You
add the Microsoft Monitoring Agent VM extension to VM1. You create an alert in Azure Monitor
and specify the Log Analytics workspace as the source. Does this meet the goal?
A. Yes
B. No
Answer(s): B
Explanation:
Instead: You create an Azure Log Analytics workspace and configure the data settings. You
install the Microsoft Monitoring Agent on VM1. You create an alert in Azure Monitor and specify
the Log Analytics workspace as the source.
Reference:
https://docs.microsoft.com/en-us/azure/azure-monitor/platform/agents-overview
QUESTION: 15
Note: This question is part of a series of questions that present the same scenario. Each
question in the series contains a unique solution that might meet the stated goals. Some
question sets might have more than one correct solution, while others might not have a correct
solution.
After you answer a question in this section, you will NOT be able to return to it. As a result,
these questions will not appear in the review screen.
You have an Azure virtual machine named VM1 that runs Windows Server 2016.
You need to create an alert in Azure when more than two error events are logged to the System
event log on VM1 within an hour.
Solution: You create an Azure Log Analytics workspace and configure the data settings. You
install the Microsoft Monitoring Agent on VM1. You create an alert in Azure Monitor and specify
the Log Analytics workspace as the source. Does this meet the goal?
A. Yes
B. No
Answer(s): A
https://xcerts.com 127
AZ-104
Explanation:
Alerts in Azure Monitor can identify important information in your Log Analytics repository. They
are created by alert rules that automatically run log searches at regular intervals, and if results
of the log search match particular criteria, then an alert record is created and it can be
configured to perform an automated response.
The Log Analytics agent collects monitoring data from the guest operating system and
workloads of virtual machines in Azure, other cloud providers, and on-premises. It collects data
into a Log Analytics workspace.
Reference:
https://docs.microsoft.com/en-us/azure/azure-monitor/learn/tutorial-response
https://docs.microsoft.com/en-us/azure/azure-monitor/platform/agents-overview
QUESTION: 16
Note: This question is part of a series of questions that present the same scenario. Each
question in the series contains a unique solution that might meet the stated goals. Some
question sets might have more than one correct solution, while others might not have a correct
solution.
After you answer a question in this section, you will NOT be able to return to it. As a result,
these questions will not appear in the review screen.
You have an Azure virtual machine named VM1 that runs Windows Server 2016.
You need to create an alert in Azure when more than two error events are logged to the System
event log on VM1 within an hour.
Solution: You create an Azure storage account and configure shared access signatures (SASs).
You install the Microsoft Monitoring Agent on VM1. You create an alert in Azure Monitor and
specify the storage account as the source. Does this meet the goal?
A. Yes
B. No
Answer(s): B
Explanation:
Instead: You create an Azure Log Analytics workspace and configure the data settings. You
install the Microsoft Monitoring Agent on VM1. You create an alert in Azure Monitor and specify
the Log Analytics workspace as the source.
Reference:
https://docs.microsoft.com/en-us/azure/azure-monitor/platform/agents-overview
QUESTION: 17
HOTSPOT
https://xcerts.com 128
AZ-104
You have an Azure subscription named Subscription1. Subscription1 contains the resources in
the following table.
VNet1 is in RG1. VNet2 is in RG2. There is no connectivity between VNet1 and VNet2.
An administrator named Admin1 creates an Azure virtual machine named VM1 in RG1. VM1
uses a disk named Disk1 and connects to VNet1. Admin1 then installs a custom application in
VM1.
You need to move the custom application to VNet2. The solution must minimize administrative
effort. Which two actions should you perform? To answer, select the appropriate options in the
answer area.
Exhibit A:
Exhibit B:
https://xcerts.com 129
AZ-104
Answer(s): A
Explanation:
We cannot just move a virtual machine between networks. What we need to do is identify the
disk used by the VM, delete the VM itself while retaining the disk, and recreate the VM in the
target virtual network and then attach the original disk to it.
Reference:
https://blogs.technet.microsoft.com/canitpro/2014/06/16/step-by-step-move-a-vm-to-a-different-
vnet-on-azure/
https://4sysops.com/archives/move-an-azure-vm-to-another-virtual-network-vnet/#migrate-an-
azure-vm-between-vnets
QUESTION: 18
You download an Azure Resource Manager template based on an existing virtual machine. The
template will be used to deploy 100 virtual machines.
You need to modify the template to reference an administrative password. You must prevent the
password from being stored in plain text.
What should you create to store the password?
https://xcerts.com 130
AZ-104
Answer(s): A
Explanation:
You can use a template that allows you to deploy a simple Windows VM by retrieving the
password that is stored in a Key Vault. Therefore, the password is never put in plain text in the
template parameter file.
Reference:
https://azure.microsoft.com/en-us/resources/templates/101-vm-secure-password/
QUESTION: 19
HOTSPOT
You have the App Service plans shown in the following table.
You plan to create the Azure web apps shown in the following table.
You need to identify which App Service plans can be used for the web apps.
What should you identify? To answer, select the appropriate options in the answer area.
NOTE: Each correct selection is worth one point.
Hot Area:
Exhibit A:
https://xcerts.com 131
AZ-104
Exhibit B:
https://xcerts.com 132
AZ-104
Answer(s): A
Explanation:
Box 1: ASP1 ASP3
Asp1, ASP3: ASP.NET Core apps can be hosted both on Windows or Linux.
Not ASP2: The region in which your app runs is the region of the App Service plan it's in. Box 2:
ASP1
ASP.NET apps can be hosted on Windows only.
Reference:
https://docs.microsoft.com/en-us/azure/app-service/quickstart-dotnetcore?pivots=platform-linux
https://docs.microsoft.com/en-us/azure/app-service/app-service-plan-manage#
QUESTION: 20
HOTSPOT
You create a virtual machine scale set named Scale1. Scale1 is configured as shown in the
following exhibit.
https://xcerts.com 133
AZ-104
Use the drop-down menus to select the answer choice that completes each statement based on
the information presented in the graphic.
Exhibit A:
https://xcerts.com 134
AZ-104
Exhibit B:
Answer(s): A
Explanation:
Box 1: 6 virtual machines
The Autoscale scale out rule increases the number of VMs by 2 if the CPU threshold is 80% or
higher. The initial instance count is 4 and rises to 6 when the 2 extra instances of VMs are
added.
https://xcerts.com 135
AZ-104
The Autoscale scale in rule decreases the number of VMs by 4 if the CPU threshold is 30% or
lower. The initial instance count is 4 and thus cannot be reduced to 0 as the minimum instances
is set to 2. Instances are only added when the CPU threshold reaches 80%.
Reference:
https://docs.microsoft.com/en-us/azure/azure-monitor/platform/autoscale-overview
https://docs.microsoft.com/en-us/azure/azure-monitor/platform/autoscale-best-practices
https://docs.microsoft.com/en-us/azure/azure-monitor/platform/autoscale-common-scale-
patterns
QUESTION: 21
You plan to automate the deployment of a virtual machine scale set that uses the Windows
Server 2016 Datacenter image.
You need to ensure that when the scale set virtual machines are provisioned, they have web
server components installed.
Which two actions should you perform? Each correct answer presents part of the solution.
NOTE: Each correct selection is worth one point.
Answer(s): D, E
Explanation:
Virtual Machine Scale Sets can be used with the Azure Desired State Configuration (DSC)
extension handler. Virtual machine scale sets provide a way to deploy and manage large
numbers of virtual machines, and can elastically scale in and out in response to load. DSC is
used to configure the VMs as they come online so they are running the production software.
Reference:
https://docs.microsoft.com/en-us/azure/virtual-machine-scale-sets/virtual-machine-scale-sets-
dsc
QUESTION: 22
HOTSPOT
You have an Azure Kubernetes Service (AKS) cluster named AKS1 and a computer named
Computer1 that runs Windows 10. Computer1 that has the Azure CLI installed.
Exhibit A:
https://xcerts.com 136
AZ-104
Exhibit B:
Answer(s): A
Explanation:
To install kubectl locally, use the az aks install-cli command: az aks install-cli
Reference:
https://docs.microsoft.com/en-us/azure/aks/kubernetes-walkthrough
QUESTION: 23
DRAG DROP
You onboard 10 Azure virtual machines to Azure Automation State Configuration.
You need to use Azure Automation State Configuration to manage the ongoing consistency of
the virtual machine configurations.
Which three actions should you perform in sequence? To answer, move the appropriate actions
from the list of actions to the answer area and arrange them in the correct order.
https://xcerts.com 137
AZ-104
NOTE: More than one order of answer choices is correct. You will receive credit for any of the
correct orders you select.
Select and Place:
Exhibit A:
Exhibit B:
Answer(s): A
Explanation:
Step 1: Upload a configuration to Azure Automation State Configuration. Import the
configuration into the Automation account.
https://xcerts.com 138
AZ-104
A DSC configuration defining that state must be compiled into one or more node configurations
(MOF document), and placed on the Automation DSC Pull Server.
The report status — whether the node is "Compliant", the configuration "Failed", or the node is
"Not Compliant"
Reference:
https://docs.microsoft.com/en-us/azure/automation/automation-dsc-getting-started
QUESTION: 24
You have an Azure Resource Manager template named Template1 that is used to deploy an
Azure virtual machine.
"location": "westeurope"
https://xcerts.com 139
AZ-104
You need to deploy the virtual machine to the West US location by using Template1. What
should you do?
Answer(s): A
QUESTION: 25
You create an App Service plan named Plan1 and an Azure web app named webapp1. You
discover that the option to create a staging slot is unavailable.
You need to create a staging slot for Plan1. What should you do first?
Answer(s): A
Explanation:
The app must be running in the Standard, Premium, or Isolated tier in order for you to enable
multiple deployment slots.
If the app isn't already in the Standard, Premium, or Isolated tier, you receive a message that
indicates the supported tiers for enabling staged publishing. At this point, you have the option to
select Upgrade and go to the Scale tab of your app before continuing.
Scale up: Get more CPU, memory, disk space, and extra features like dedicated virtual
machines (VMs), custom domains and certificates, staging slots, autoscaling, and more.
Incorrect:
Scale out: Increase the number of VM instances that run your app. You can scale out to as
many as 30 instances
Reference:
https://docs.microsoft.com/en-us/azure/app-service/deploy-staging-slots
https://docs.microsoft.com/en-us/azure/app-service/manage-scale-up
QUESTION: 26
You plan to move a distributed on-premises app named App1 to an Azure subscription. After the
planned move, App1 will be hosted on several Azure virtual machines.
You need to ensure that App1 always runs on at least eight virtual machines during planned
Azure maintenance. What should you create?
A. one virtual machine scale set that has 10 virtual machines instances
B. one Availability Set that has three fault domains and one update domain
C. one Availability Set that has 10 update domains and one fault domain
https://xcerts.com 140
AZ-104
D. one virtual machine scale set that has 12 virtual machines instances
Answer(s): C
Explanation:
An update domain is a logical group of underlying hardware that can undergo maintenance or
be rebooted at the same time. As you create VMs within an availability set, the Azure platform
automatically distributes your
VMs across these update domains. This approach ensures that at least one instance of your
application always remains running as the Azure platform undergoes periodic maintenance.
Reference:
http://www.thatlazyadmin.com/azure-fault-update-domains/
QUESTION: 27
Note: This question is part of a series of questions that present the same scenario. Each
question in the series contains a unique solution that might meet the stated goals. Some
question sets might have more than one correct solution, while others might not have a correct
solution.
After you answer a question in this section, you will NOT be able to return to it. As a result,
these questions will not appear in the review screen.
You have an Azure virtual machine named VM1 that runs Windows Server 2016.
You need to create an alert in Azure when more than two error events are logged to the System
event log on VM1 within an hour.
Solution: You create an event subscription on VM1. You create an alert in Azure Monitor and
specify VM1 as the source. Does this meet the goal?
A. Yes
B. No
Answer(s): B
Explanation:
Instead: You create an Azure Log Analytics workspace and configure the data settings. You
install the Microsoft Monitoring Agent on VM1. You create an alert in Azure Monitor and specify
the Log Analytics workspace as the source.
Reference:
https://docs.microsoft.com/en-us/azure/azure-monitor/platform/agents-overview
QUESTION: 28
Note: This question is part of a series of questions that present the same scenario. Each
question in the series contains a unique solution that might meet the stated goals. Some
https://xcerts.com 141
AZ-104
question sets might have more than one correct solution, while others might not have a correct
solution.
After you answer a question in this section, you will NOT be able to return to it. As a result,
these questions will not appear in the review screen.
You have an Azure virtual machine named VM1. VM1 was deployed by using a custom Azure
Resource Manager template named ARM1.json.
You receive a notification that VM1 will be affected by maintenance. You need to move VM1 to
a different host immediately.
Solution: From the Overview blade, you move the virtual machine to a different subscription.
Does this meet the goal?
A. Yes
B. No
Answer(s): B
Explanation:
You would need to redeploy the VM.
Reference:
https://docs.microsoft.com/en-us/azure/virtual-machines/windows/redeploy-to-new-node
QUESTION: 29
Note: This question is part of a series of questions that present the same scenario. Each
question in the series contains a unique solution that might meet the stated goals. Some
question sets might have more than one correct solution, while others might not have a correct
solution.
After you answer a question in this section, you will NOT be able to return to it. As a result,
these questions will not appear in the review screen.
You have an Azure virtual machine named VM1. VM1 was deployed by using a custom Azure
Resource Manager template named ARM1.json.
You receive a notification that VM1 will be affected by maintenance. You need to move VM1 to
a different host immediately.
Solution: From the Redeploy blade, you click Redeploy. Does this meet the goal?
A. Yes
B. No
Answer(s): A
Explanation:
https://xcerts.com 142
AZ-104
When you redeploy a VM, it moves the VM to a new node within the Azure infrastructure and
then powers it back on, retaining all your configuration options and associated resources.
Reference:
https://docs.microsoft.com/en-us/azure/virtual-machines/windows/redeploy-to-new-node
QUESTION: 30
Note: This question is part of a series of questions that present the same scenario. Each
question in the series contains a unique solution that might meet the stated goals. Some
question sets might have more than one correct solution, while others might not have a correct
solution.
After you answer a question in this section, you will NOT be able to return to it. As a result,
these questions will not appear in the review screen.
You have an Azure virtual machine named VM1. VM1 was deployed by using a custom Azure
Resource Manager template named ARM1.json.
You receive a notification that VM1 will be affected by maintenance. You need to move VM1 to
a different host immediately.
Solution: From the Update management blade, you click Enable. Does this meet the goal?
A. Yes
B. No
Answer(s): B
Explanation:
You would need to redeploy the VM.
Reference:
https://docs.microsoft.com/en-us/azure/virtual-machines/windows/redeploy-to-new-node
QUESTION: 31
You have an Azure subscription that contains a web app named webapp1. You need to add a
custom domain named www.contoso.com to webapp1. What should you do first?
Answer(s): A
Explanation:
You can use either a CNAME record or an A record to map a custom DNS name to App
Service.
https://xcerts.com 143
AZ-104
Reference:
https://docs.microsoft.com/en-us/Azure/app-service/app-service-web-tutorial-custom-domain
QUESTION: 32
Note: This question is part of a series of questions that present the same scenario. Each
question in the series contains a unique solution that might meet the stated goals. Some
question sets might have more than one correct solution, while others might not have a correct
solution.
After you answer a question in this section, you will NOT be able to return to it. As a result,
these questions will not appear in the review screen.
You have an Azure subscription that contains the resources shown in the following table.
Solution: You move VM1 to RG2, and then you add a new network interface to VM1. Does this
meet the goal?
A. Yes
B. No
Answer(s): B
Explanation:
Instead you should delete VM1. You recreate VM1, and then you add the network interface for
VM1.
Note: When you create an Azure virtual machine (VM), you must create a virtual network (VNet)
or use an existing VNet. You can change the subnet a VM is connected to after it's created, but
you cannot change the VNet.
Reference:
https://docs.microsoft.com/en-us/azure/virtual-machines/windows/network-overview
QUESTION: 33
https://xcerts.com 144
AZ-104
Note: This question is part of a series of questions that present the same scenario. Each
question in the series contains a unique solution that might meet the stated goals. Some
question sets might have more than one correct solution, while others might not have a correct
solution.
After you answer a question in this section, you will NOT be able to return to it. As a result,
these questions will not appear in the review screen.
You have an Azure subscription that contains the resources shown in the following table.
Solution: You delete VM1. You recreate VM1, and then you create a new network interface for
VM1 and connect it to VNET2. Does this meet the goal?
A. Yes
B. No
Answer(s): A
Explanation:
You should delete VM1. You recreate VM1, and then you add the network interface for VM1.
Note: When you create an Azure virtual machine (VM), you must create a virtual network (VNet)
or use an existing VNet. You can change the subnet a VM is connected to after it's created, but
you cannot change the VNet.
Reference:
https://docs.microsoft.com/en-us/azure/virtual-machines/windows/network-overview
QUESTION: 34
Note: This question is part of a series of questions that present the same scenario. Each
question in the series contains a unique solution that might meet the stated goals. Some
question sets might have more than one correct solution, while others might not have a correct
solution.
After you answer a question in this section, you will NOT be able to return to it. As a result,
these questions will not appear in the review screen.
https://xcerts.com 145
AZ-104
You have an Azure subscription that contains the resources shown in the following table.
Solution: You turn off VM1, and then you add a new network interface to VM1. Does this meet
the goal?
A. Yes
B. No
Answer(s): B
Explanation:
Instead you should delete VM1. You recreate VM1, and then you add the network interface for
VM1.
Note: When you create an Azure virtual machine (VM), you must create a virtual network (VNet)
or use an existing VNet. You can change the subnet a VM is connected to after it's created, but
you cannot change the VNet.
Reference:
https://docs.microsoft.com/en-us/azure/virtual-machines/windows/network-overview
QUESTION: 35
HOTSPOT
You have an Azure subscription named Subscription1 that contains the quotas shown in the
following table.
https://xcerts.com 146
AZ-104
You plan to deploy the virtual machines shown in the following table.
For each of the following statements, select Yes if the statement is true. Otherwise, select No.
NOTE: Each correct selection is worth one point.
Hot Area:
Exhibit A:
Exhibit B:
https://xcerts.com 147
AZ-104
Answer(s): A
Explanation:
The total regional vCPUs is 20 so that means a maximum total of 20 vCPUs across all the
different VM sizes. The deallocated VM with 16 vCPUs counts towards the total. VM20 and VM1
are using 18 of the maximum 20 vCPUs leaving only two vCPUs available.
Reference:
https://docs.microsoft.com/en-us/azure/virtual-machines/windows/quotas
QUESTION: 36
HOTSPOT
You have an Azure subscription that contains an Azure Availability Set named WEBPROD-AS-
USE2 as shown in the following exhibit.
Use the drop-down menus to select the answer choice that completes each statement based on
the information presented in the graphic.
https://xcerts.com 148
AZ-104
Exhibit A:
Exhibit B:
Answer(s): A
Explanation:
Box 1: 2
There are 10 update domains. The 14 VMs are shared across the 10 update domains so four
update domains will have two VMs and six update domains will have one VM. Only one update
domain is rebooted at a time.
Therefore, a maximum of two VMs will be offline.
Box 2: 7
https://xcerts.com 149
AZ-104
There are 2 fault domains. The 14 VMs are shared across the 2 fault domains, so 7 VMs in
each fault domain. A rack failure will affect one fault domain so 7 VMs will be offline.
Reference:
https://docs.microsoft.com/en-us/azure/virtual-machines/windows/manage-availability
QUESTION: 37
You deploy an Azure Kubernetes Service (AKS) cluster named Cluster1 that uses the IP
addresses shown in the following table.
You need to provide internet users with access to the applications that run in Cluster1. Which IP
address should you include in the DNS record for Cluster1?
A. 131.107.2.1
B. 10.0.10.11
C. 172.17.7.1
D. 192.168.10.2
Answer(s): A
QUESTION: 38
You have a deployment template named Template1 that is used to deploy 10 Azure web apps.
You need to identify what to deploy before you deploy Template1. The solution must minimize
Azure costs. What should you identify?
Answer(s): B
Explanation:
You create Azure web apps in an App Service plan.
Reference:
https://docs.microsoft.com/en-us/azure/app-service/overview-hosting-plans
https://xcerts.com 150
AZ-104
QUESTION: 39
HOTSPOT
You plan to deploy an Azure container instance by using the following Azure Resource Manager
template.
https://xcerts.com 151
AZ-104
Use the drop-down menus to select the answer choice that completes each statement based on
the information presented in the template.
Hot Area:
Exhibit A:
Exhibit B:
Answer(s): A
QUESTION: 40
You have an Azure subscription that contains a virtual machine named VM1. VM1 hosts a line-
of-business application that is available 24 hours a day. VM1 has one network interface and one
managed disk. VM1 uses the D4s v3 size.
https://xcerts.com 152
AZ-104
Answer(s): C
Explanation:
While resizing the VM it must be in a stopped state.
Reference:
https://azure.microsoft.com/en-us/blog/resize-virtual-machines/
QUESTION: 41
You have an app named App1 that runs on an Azure web app named webapp1.
The developers at your company upload an update of App1 to a Git repository named Git1.
Webapp1 has the deployment slots shown in the following table.
You need to ensure that the App1 update is tested before the update is made available to users.
Which two actions should you perform? Each correct answer presents part of the solution.
Answer(s): A, D
QUESTION: 42
You have an Azure subscription named Subscription1 that has the following providers
registered:
• Authorization
• Automation
• Resources
• Compute
• KeyVault
• Network
• Storage
• Billing
• Web
https://xcerts.com 153
AZ-104
Subscription1 contains an Azure virtual machine named VM1 that has the following
configurations:
• Private IP address: 10.0.0.4 (dynamic)
• Network security group (NSG): NSG1
• Public IP address: None
• Availability set: AVSet
• Subnet: 10.0.0.0/24
• Managed disks: No
• Location: East US
You need to record all the successful and failed connection attempts to VM1.
Which three actions should you perform? Each correct answer presents part of the solution.
NOTE: Each correct selection is worth one point.
Answer(s): A, E, F
Explanation:
You can log network traffic that flows through an NSG with Network Watcher's NSG flow log
capability.
• In the Azure portal, enable Network Watcher
• Register Insights provider. NSG flow logging requires the Microsoft.Insights provider.
• Enable NSG flow log. NSG flow log data is written to an Azure Storage account,
Subscription1 has storage.
Reference:
https://docs.microsoft.com/en-us/azure/network-watcher/network-watcher-nsg-flow-logging-
portal
QUESTION: 43
You need to deploy an Azure virtual machine scale set that contains five instances as quickly as
possible. What should you do?
A. Deploy five virtual machines. Modify the Availability Zones settings for each virtual machine.
B. Deploy five virtual machines. Modify the Size setting for each virtual machine.
C. Deploy one virtual machine scale set that is set to VM (virtual machines) orchestration mode.
D. Deploy one virtual machine scale set that is set to ScaleSetVM orchestration mode.
Answer(s): D
Reference:
https://docs.microsoft.com/en-us/azure/virtual-machine-scale-sets/orchestration-modes
https://xcerts.com 154
AZ-104
QUESTION: 44
You plan to create the Azure web apps shown in the following table.
What is the minimum number of App Service plans you should create for the web apps?
A. 1
B. 2
C. 3
D. 4
Answer(s): A
QUESTION: 45
HOTSPOT
You have a pay-as-you-go Azure subscription that contains the virtual machines shown in the
following table.
https://xcerts.com 155
AZ-104
Use the drop-down menus to select the answer choice that completes each statement based on
the information presented in the graphic.
Hot Area:
Exhibit A:
https://xcerts.com 156
AZ-104
Exhibit B:
Answer(s): A
Explanation:
Box 1: VM1 is turned off, and VM2 continues to run
The budget alerts are for Resource Group RG1, which include VM1, but not VM2.
The 70% and 100% alert conditions will not be reached within a month, and they don't trigger
email actions anyway.
Credit alerts: Credit alerts are generated automatically at 90% and at 100% of your Azure credit
balance. Whenever an alert is generated, it's reflected in cost alerts and in the email sent to the
account owners. 90% and 100% will not be reached though.
Reference:
https://xcerts.com 157
AZ-104
https://docs.microsoft.com/en-us/azure/cost-management-billing/costs/cost-mgt-alerts-monitor-
usage-spending
QUESTION: 46
Note: This question is part of a series of questions that present the same scenario. Each
question in the series contains a unique solution that might meet the stated goals. Some
question sets might have more than one correct solution, while others might not have a correct
solution.
After you answer a question in this section, you will NOT be able to return to it. As a result,
these questions will not appear in the review screen.
You have an Azure subscription named Subscription1. Subscription1 contains a resource group
named RG1. RG1 contains resources that were deployed by using templates.
You need to view the date and time when the resources were created in RG1.
Solution: From the Subscriptions blade, you select the subscription, and then click
Programmatic deployment. Does this meet the goal?
A. Yes
B. No
Answer(s): B
Explanation:
From the RG1 blade, click Deployments. You see a history of deployment for the resource
group.
Reference:
https://docs.microsoft.com/en-us/azure/azure-resource-manager/templates/template-tutorial-
create-first-template?tabs=azure-powershell
QUESTION: 47
Note: This question is part of a series of questions that present the same scenario. Each
question in the series contains a unique solution that might meet the stated goals. Some
question sets might have more than one correct solution, while others might not have a correct
solution.
After you answer a question in this section, you will NOT be able to return to it. As a result,
these questions will not appear in the review screen.
You have an Azure subscription that contains the resources shown in the following table.
https://xcerts.com 158
AZ-104
Solution: You create a new network interface, and then you add the network interface to VM1.
Does this meet the goal?
A. Yes
B. No
Answer(s): B
Explanation:
You should delete VM1. You recreate VM1, and then you add the network interface for VM1.
Note: When you create an Azure virtual machine (VM), you must create a virtual network (VNet)
or use an existing VNet. You can change the subnet a VM is connected to after it's created, but
you cannot change the VNet.
Reference:
https://docs.microsoft.com/en-us/azure/virtual-machines/windows/network-overview
QUESTION: 48
You have an Azure Active Directory (Azure AD) tenant named adatum.com that contains the
users shown in the following table.
https://xcerts.com 159
AZ-104
A. User1 only
B. User2 only
C. User1 and User2 only
D. User1, User2, and User3 only
E. User1, User2, User3, and User4
Answer(s): C
Explanation:
Users may join devices to Azure AD - This setting enables you to select the users who can
register their devices as Azure AD joined devices. The default is All.
Additional local administrators on Azure AD joined devices - You can select the users that are
granted local administrator rights on a device. Users added here are added to the Device
Administrators role in Azure AD. Global administrators, here User2, in Azure AD and device
owners are granted local administrator rights by default.
Reference:
https://docs.microsoft.com/en-us/azure/active-directory/devices/device-management-azure-
portal
QUESTION: 49
HOTSPOT
You have Azure subscriptions named Subscription1 and Subscription2. Subscription1 has
following resource groups:
RG1 includes a web app named App1 in the West Europe location.
Subscription2 contains the following resource groups:
For each of the following statements, select Yes if the statement is true. Otherwise, select No.
NOTE: Each correct selection is worth one point.
Hot Area:
Exhibit A:
https://xcerts.com 160
AZ-104
Exhibit B:
Answer(s): A
Explanation:
Box 1: No
RG2 is read only. ReadOnly means authorized users can read a resource, but they cannot
delete or update the resource.
Box 2: Yes
Box 3: Yes Note:
App Service resources are region-specific and cannot be moved across regions. You must
create a copy of your existing App Service resources in the target region, then move your
content over to the new app. You can then delete the source app and App Service plan.
To make copying your app easier, you can clone an individual App Service app into an App
Service plan in another region.
Reference:
https://xcerts.com 161
AZ-104
https://docs.microsoft.com/en-us/azure/app-service/manage-move-across-regions
https://docs.microsoft.com/en-us/azure/azure-resource-manager/management/move-
limitations/app-service-move-limitations
QUESTION: 50
HOTSPOT
You have an Azure subscription named Subscription1 that contains the following resource
group:
• Name: RG1
• Region: West US
• Tag: “tag1”: “value1”
You assign an Azure policy named Policy1 to Subscription1 by using the following
configurations:
• Exclusions: None
• Policy definition: Append a tag and its value to resources
• Assignment name: Policy1
• Parameters:
• Tag name: Tag2
• Tag value: Value2
After Policy1 is assigned, you create a storage account that has the following configuration:
• Name: storage1
• Location: West US
• Resource group: RG1
• Tags: “tag3”: “value3”
What should you identify? To answer, select the appropriate options in the answer area.
NOTE: Each correct selection is worth one point.
Hot Area:
Exhibit A:
https://xcerts.com 162
AZ-104
Exhibit B:
Answer(s): A
Explanation:
Box 1: "tag1": "value1" only
Reference:
https://docs.microsoft.com/en-us/azure/azure-resource-manager/resource-group-using-tags
https://xcerts.com 163
AZ-104
QUESTION: 51
HOTSPOT
You have an Azure subscription named Subscription1.
In Subscription1, you create an alert rule named Alert1.
Use the drop-down menus to select the answer choice that completes each statement based on
the information presented in the graphic.
Exhibit A:
Exhibit B:
https://xcerts.com 164
AZ-104
Answer(s): A
Explanation:
Box 1: 60
One alert per minute will trigger one email per minute.
Box 2: 12
No more than 1 SMS every 5 minutes can be send, which equals 12 per hour.
Note: Rate limiting is a suspension of notifications that occurs when too many are sent to a
particular phone number, email address or device. Rate limiting ensures that alerts are
manageable and actionable.
Reference:
https://docs.microsoft.com/en-us/azure/azure-monitor/platform/alerts-rate-limiting
QUESTION: 52
You have an Azure subscription named Subscription1 that contains the resources shown in the
following table.
https://xcerts.com 165
AZ-104
You plan to use Vault1 for the backup of as many virtual machines as possible. Which virtual
machines can be backed up to Vault1?
A. VM1 only
B. VM3 and VMC only
C. VM1, VM2, VM3, VMA, VMB, and VMC
D. VM1, VM3, VMA, and VMC only
E. VM1 and VM3 only
Answer(s): D
Explanation:
To create a vault to protect virtual machines, the vault must be in the same region as the virtual
machines. If you have virtual machines in several regions, create a Recovery Services vault in
each region.
Reference:
https://docs.microsoft.com/bs-cyrl-ba/azure/backup/backup-create-rs-vault
QUESTION: 53
You have an Azure Kubernetes Service (AKS) cluster named AKS1. You need to configure
cluster autoscaler for AKS1.
Which two tools should you use? Each correct answer presents a complete solution.
NOTE: Each correct selection is worth one point.
https://xcerts.com 166
AZ-104
Answer(s): A, B
Explanation:
A: The following example uses the kubectl autoscale command to autoscale the number of pods
in the azure- vote-front deployment. If average CPU utilization across all pods exceeds 50% of
their requested usage, the autoscaler increases the pods up to a maximum of 10 instances. A
minimum of 3 instances is then defined for the deployment:
B: Use the az aks update command to enable and configure the cluster autoscaler on the node
pool for the existing cluster.
Reference:
https://docs.microsoft.com/en-us/azure/aks/tutorial-kubernetes-scale
https://docs.microsoft.com/en-us/azure/aks/cluster-autoscaler
QUESTION: 54
You create the following resources in an Azure subscription:
You create a container image named App1 on your administrative workstation. You need to
deploy App1 to Cluster1.
What should you do first?
Answer(s): C
Explanation:
You should sign in and push a container image to Container Registry. Run the az acr build
command to build and push the container image.
az acr build \
--image contoso-website \
--registry $ACR_NAME \
--file Dockerfile .
Reference:
https://docs.microsoft.com/en-us/learn/modules/aks-deploy-container-app/5-exercise-deploy-
app
QUESTION: 55
You have an Azure subscription that contains the resources shown in the following table.
https://xcerts.com 167
AZ-104
You need to configure a proximity placement group for VMSS1. Which proximity placement
groups should you use?
A. Proximity2 only
B. Proximity1, Proximity2, and Proximity3
C. Proximity1 only
D. Proximity1 and Proximity3 only
Answer(s): A
Explanation:
Resource Group location of VMSS1 is the RG2 location, which is West US. Only Proximity2,
which also in RG2, is location in West US
Reference:
https://azure.microsoft.com/en-us/blog/introducing-proximity-placement-groups/
QUESTION: 56
Note: This question is part of a series of questions that present the same scenario. Each
question in the series contains a unique solution that might meet the stated goals. Some
question sets might have more than one correct solution, while others might not have a correct
solution.
After you answer a question in this section, you will NOT be able to return to it. As a result,
these questions will not appear in the review screen.
You have an Azure subscription named Subscription1. Subscription1 contains a resource group
named RG1. RG1 contains resources that were deployed by using templates.
You need to view the date and time when the resources were created in RG1.
Solution: From the Subscriptions blade, you select the subscription, and then click Resource
providers.
Does this meet the goal?
A. Yes
B. No
Answer(s): B
QUESTION: 57
https://xcerts.com 168
AZ-104
You plan to deploy several Azure virtual machines that will run Windows Server 2019 in a virtual
machine scale set by using an Azure Resource Manager template.
You need to ensure that NGINX is available on all the virtual machines after they are deployed.
What should you use?
Answer(s): B
Explanation:
Azure virtual machine extensions are small packages that run post-deployment configuration
and automation on Azure virtual machines.
In the following example, the Azure CLI is used to deploy a custom script extension to an
existing virtual machine, which installs a Nginx webserver.
az vm extension set \
--resource-group myResourceGroup \
--vm-name myVM --name customScript \
--publisher Microsoft.Azure.Extensions \
--settings '{"commandToExecute": "apt-get install -y nginx"}
Note:
There are several versions of this question in the exam. The question has two correct answers:
1. a Desired State Configuration (DSC) extension
2. Azure Custom Script Extension
The question can have other incorrect answer options, including the following:
the Publish-AzVMDscConfiguration cmdlet
Azure Application Insights
Reference:
https://docs.microsoft.com/en-us/azure/architecture/framework/devops/automation-configuration
QUESTION: 58
HOTSPOT
You deploy an Azure Kubernetes Service (AKS) cluster that has the network profile shown in
the following exhibit.
https://xcerts.com 169
AZ-104
Use the drop-down menus to select the answer choice that completes each statement based on
the information presented in the graphic.
Exhibit A:
Exhibit B:
https://xcerts.com 170
AZ-104
Answer(s): A
Explanation:
Box 1: 10.244.0.0/16
The Pod CIDR.
Note: The --pod-cidr should be a large address space that isn't in use elsewhere in your network
environment. This range includes any on-premises network ranges if you connect, or plan to
connect, your Azure virtual networks using Express Route or a Site-to-Site VPN connection.
This address range must be large enough to accommodate the number of nodes that you
expect to scale up to. You can't change this address range once the cluster is deployed if you
need more addresses for additional nodes.
Box 2: 10.0.0.0/16
The --service-cidr is used to assign internal services in the AKS cluster an IP address.
Reference:
https://docs.microsoft.com/en-us/azure/aks/configure-kubenet
QUESTION: 59
HOTSPOT
You have the App Service plan shown in the following exhibit.
https://xcerts.com 171
AZ-104
The scale-in settings for the App Service plan are configured as shown in the following exhibit.
The scale out rule is configured with the same duration and cool down tile as the scale in rule.
https://xcerts.com 172
AZ-104
Use the drop-down menus to select the answer choice that completes each statement based on
the information presented in the graphic.
Exhibit A:
Exhibit B:
Answer(s): A
https://xcerts.com 173
AZ-104
Explanation:
Box 1: 5
The maximum 5 will kept as the CPU Usage >= 30.
Box 2: 3
In 9 minutes the count will be decreased twice from 5 reaching 3.
Reference:
https://docs.microsoft.com/en-us/azure/azure-monitor/learn/tutorial-autoscale-performance-
schedule
QUESTION: 60
You have an Azure virtual machine named VM1 that runs Windows Server 2019. The VM was
deployed using default drive settings.
You sign in to VM1 as a user named User1 and perform the following actions:
• Create files on drive C.
• Create files on drive D.
• Modify the screen saver timeout.
• Change the desktop background.
Answer(s): C
QUESTION: 61
You have an Azure subscription that contains the resources shown in the following table.
https://xcerts.com 174
AZ-104
You plan to restore the backup to a different virtual machine. You need to restore the backup to
VM2.
What should you do first?
Answer(s): B
Reference:
https://docs.microsoft.com/en-us/azure/backup/backup-azure-restore-windows-server
QUESTION: 62
HOTSPOT
You have an Azure subscription.
You need to use an Azure Resource Manager (ARM) template to create a virtual machine that
will have multiple data disks.
How should you complete the template? To answer, select the appropriate options in the
answer area.
NOTE: Each correct selection is worth one point.
Hot Area:
Exhibit A:
https://xcerts.com 175
AZ-104
Exhibit B:
https://xcerts.com 176
AZ-104
Answer(s): A
QUESTION: 63
Note: This question is part of a series of questions that present the same scenario. Each
question in the series contains a unique solution that might meet the stated goals. Some
question sets might have more than one correct solution, while others might not have a correct
solution.
After you answer a question in this section, you will NOT be able to return to it. As a result,
these questions will not appear in the review screen.
You have an Azure subscription named Subscription1 that contains the resources shown in the
following table.
https://xcerts.com 177
AZ-104
VM1 connects to a virtual network named VNET2 by using a network interface named NIC1.
You need to create a new network interface named NIC2 for VM1.
Solution: You create NIC2 in RG1 and West US. Does this meet the goal?
A. Yes
B. No
Answer(s): A
Explanation:
The virtual machine you attach a network interface to and the virtual network you connect it to
must exist in the same location, here West US, also referred to as a region.
Reference:
https://docs.microsoft.com/en-us/azure/virtual-network/virtual-network-network-interface
QUESTION: 64
Note: This question is part of a series of questions that present the same scenario. Each
question in the series contains a unique solution that might meet the stated goals. Some
question sets might have more than one correct solution, while others might not have a correct
solution.
After you answer a question in this section, you will NOT be able to return to it. As a result,
these questions will not appear in the review screen.
You have an Azure subscription named Subscription1 that contains the resources shown in the
following table.
https://xcerts.com 178
AZ-104
VM1 connects to a virtual network named VNET2 by using a network interface named NIC1.
You need to create a new network interface named NIC2 for VM1.
Solution: You create NIC2 in RG2 and Central US. Does this meet the goal?
A. Yes
B. No
Answer(s): B
Explanation:
The virtual machine you attach a network interface to and the virtual network you connect it to
must exist in the same location, here West US, also referred to as a region.
Reference:
https://docs.microsoft.com/en-us/azure/virtual-network/virtual-network-network-interface
QUESTION: 65
Note: This question is part of a series of questions that present the same scenario. Each
question in the series contains a unique solution that might meet the stated goals. Some
question sets might have more than one correct solution, while others might not have a correct
solution.
After you answer a question in this section, you will NOT be able to return to it. As a result,
these questions will not appear in the review screen.
You have an Azure subscription named Subscription1 that contains the resources shown in the
following table.
VM1 connects to a virtual network named VNET2 by using a network interface named NIC1.
You need to create a new network interface named NIC2 for VM1.
Solution: You create NIC2 in RG2 and West US. Does this meet the goal?
A. Yes
B. No
Answer(s): A
Explanation:
https://xcerts.com 179
AZ-104
The virtual machine you attach a network interface to and the virtual network you connect it to
must exist in the same location, here West US, also referred to as a region.
Reference:
https://docs.microsoft.com/en-us/azure/virtual-network/virtual-network-network-interface
QUESTION: 66
Note: This question is part of a series of questions that present the same scenario. Each
question in the series contains a unique solution that might meet the stated goals. Some
question sets might have more than one correct solution, while others might not have a correct
solution.
After you answer a question in this section, you will NOT be able to return to it. As a result,
these questions will not appear in the review screen.
You deploy an Azure Kubernetes Service (AKS) cluster named AKS1. You need to deploy a
YAML file to AKS1.
Solution: From Azure Cloud Shell, you run az aks. Does this meet the goal?
A. Yes
B. No
Answer(s): B
Reference:
https://docs.microsoft.com/en-us/azure/aks/kubernetes-walkthrough
QUESTION: 67
Note: This question is part of a series of questions that present the same scenario. Each
question in the series contains a unique solution that might meet the stated goals. Some
question sets might have more than one correct solution, while others might not have a correct
solution.
After you answer a question in this section, you will NOT be able to return to it. As a result,
these questions will not appear in the review screen.
You deploy an Azure Kubernetes Service (AKS) cluster named AKS1. You need to deploy a
YAML file to AKS1.
Solution: From Azure Cloud Shell, you run the kubectl client. Does this meet the goal?
A. Yes
B. No
Answer(s): A
Reference:
https://docs.microsoft.com/en-us/azure/aks/kubernetes-walkthrough
https://xcerts.com 180
AZ-104
QUESTION: 68
Note: This question is part of a series of questions that present the same scenario. Each
question in the series contains a unique solution that might meet the stated goals. Some
question sets might have more than one correct solution, while others might not have a correct
solution.
After you answer a question in this section, you will NOT be able to return to it. As a result,
these questions will not appear in the review screen.
You deploy an Azure Kubernetes Service (AKS) cluster named AKS1. You need to deploy a
YAML file to AKS1.
Solution: From Azure CLI, you run azcopy. Does this meet the goal?
A. Yes
B. No
Answer(s): B
Reference:
https://docs.microsoft.com/en-us/azure/aks/kubernetes-walkthrough
QUESTION: 69
You plan to back up an Azure virtual machine named VM1.
You discover that the Backup Pre-Check status displays a status of Warning.
What is a possible cause of the Warning status?
A. VM1 is stopped.
B. VM1 does not have the latest version of the Azure VM Agent (WaAppAgent.exe) installed.
C. VM1 has an unmanaged disk.
D. A Recovery Services vault is unavailable.
Answer(s): B
Explanation:
The Warning state indicates one or more issues in VM’s configuration that might lead to backup
failures and provides recommended steps to ensure successful backups. Not having the latest
VM Agent installed, for example, can cause backups to fail intermittently and falls in this class of
issues.
Reference:
https://azure.microsoft.com/en-us/blog/azure-vm-backup-pre-checks/
QUESTION: 70
Note: This question is part of a series of questions that present the same scenario. Each
question in the series contains a unique solution that might meet the stated goals. Some
question sets might have more than one correct solution, while others might not have a correct
solution.
https://xcerts.com 181
AZ-104
After you answer a question in this section, you will NOT be able to return to it. As a result,
these questions will not appear in the review screen.
You have an Azure virtual machine named VM1. VM1 was deployed by using a custom Azure
Resource Manager template named ARM1.json.
Solution: From the Overview blade, you move the virtual machine to a different resource group.
Does this meet the goal?
A. Yes
B. No
Answer(s): B
Explanation:
You would need to redeploy the VM.
Reference:
https://docs.microsoft.com/en-us/azure/virtual-machines/windows/redeploy-to-new-node
QUESTION: 71
HOTSPOT
You have an Azure subscription.
You plan to use Azure Resource Manager templates to deploy 50 Azure virtual machines that
will be part of the same availability set.
You need to ensure that as many virtual machines as possible are available if the fabric fails or
during servicing.
How should you configure the template? To answer, select the appropriate options in the
answer area.
NOTE: Each correct selection is worth one point.
Exhibit A:
https://xcerts.com 182
AZ-104
Exhibit B:
https://xcerts.com 183
AZ-104
Answer(s): A
Explanation:
Box 1: 2
Box 2: 20
Reference:
https://www.itprotoday.com/microsoft-azure/check-if-azure-region-supports-2-or-3-fault-
domains-managed-disks
https://github.com/Azure/acs-engine/issues/1030
https://xcerts.com 184
AZ-104
Testlet 2
Case study
This is a case study. Case studies are not timed separately. You can use as much exam time as
you would like to complete each case. However, there may be additional case studies and
sections on this exam. You must manage your time to ensure that you are able to complete all
questions included on this exam in the time provided.
To answer the questions included in a case study, you will need to reference information that is
provided in the case study. Case studies might contain exhibits and other resources that provide
more information about the scenario that is described in the case study. Each question is
independent of the other questions in this case study.
At the end of this case study, a review screen will appear. This screen allows you to review your
answers and to make changes before you move to the next section of the exam. After you begin
a new section, you cannot return to this section.
Overview
Litware, Inc. is a consulting company that has a main office in Montreal and two branch offices
in Seattle and New York.
The Montreal office has 2,000 employees. The Seattle office has 1,000 employees. The New
York office has 200 employees.
Litware creates a new Azure subscription. The Azure Active Directory (Azure AD) tenant uses a
domain named litware.onmicrosoft.com. The tenant uses the P1 pricing tier.
Existing Environment
The network contains an Active Directory forest named litware.com. All domain controllers are
configured as DNS servers and host the litware.com DNS zone.
Litware has finance, human resources, sales, research, and information technology
departments. Each department has an organizational unit (OU) that contains all the accounts of
that respective department. All the user accounts have the department attribute set to their
respective department. New users are added frequently.
https://xcerts.com 185
AZ-104
Litware has data centers in the Montreal and Seattle offices. Each office has a firewall that can
be configured as a VPN device.
All infrastructure servers are virtualized. The virtualization environment contains the servers in
the following table.
Litware uses two web applications named App1 and App2. Each instance on each web
application requires 1 GB of memory.
The network security team implements several network security groups (NSGs)
Requirements
Planned Changes
Litware plans to implement the following changes:
Planned Changes
Litware plans to implement the following changes:
Technical Requirements
Litware must meet the following technical requirements:
• Ensure that WebApp1 can adjust the number of instances automatically based on the
load and can scale up to five instances.
• Ensure that VM3 can establish outbound connections over TCP port 8080 to the
applications servers in the Montreal office.
• Ensure that routing information is exchanged automatically between Azure and the
routers in the Montreal office.
• Enable Azure Multi-Factor Authentication (MFA) for the users in the finance department
only.
• Ensure that webapp2.azurewebsites.net can be accessed by using the name
app2.litware.com.
https://xcerts.com 186
AZ-104
• Connect the New York office to VNet1 over the Internet by using an encrypted
connection.
• Create a workflow to send an email message when the settings of VM4 are modified.
• Create a custom Azure role named Role1 that is based on the Reader role.
• Minimize costs whenever possible.
•
QUESTION: 1
You discover that VM3 does NOT meet the technical requirements. You need to verify whether
the issue relates to the NSGs.
What should you use?
A. Diagram in VNet1
B. Diagnostic settings in Azure Monitor
C. Diagnose and solve problems in Traffic Manager profiles
D. The security recommendations in Azure Advisor
E. IP flow verify in Azure Network Watcher
Answer(s): E
Explanation:
Scenario: Contoso must meet technical requirements including:
Ensure that VM3 can establish outbound connections over TCP port 8080 to the applications
servers in the Montreal office.
IP flow verify checks if a packet is allowed or denied to or from a virtual machine. The
information consists of direction, protocol, local IP, remote IP, local port, and remote port. If the
packet is denied by a security group, the name of the rule that denied the packet is returned.
While any source or destination IP can be chosen, IP flow verify helps administrators quickly
diagnose connectivity issues from or to the internet and from or to the on-premises environment.
Reference:
https://docs.microsoft.com/en-us/azure/network-watcher/network-watcher-ip-flow-verify-
overview
https://xcerts.com 187
AZ-104
QUESTION: 1
Note: This question is part of a series of questions that present the same scenario. Each
question in the series contains a unique solution that might meet the stated goals. Some
question sets might have more than one correct solution, while others might not have a correct
solution.
After you answer a question in this section, you will NOT be able to return to it. As a result,
these questions will not appear in the review screen.
You have a computer named Computer1 that has a point-to-site VPN connection to an Azure
virtual network named VNet1. The point-to-site connection uses a self-signed certificate.
From Azure, you download and install the VPN client configuration package on a computer
named Computer2. You need to ensure that you can establish a point-to-site VPN connection to
VNet1 from Computer2.
Solution: You modify the Azure Active Directory (Azure AD) authentication policies. Does this
meet the goal?
A. Yes
B. No
Answer(s): B
Explanation:
Instead export the client certificate from Computer1 and install the certificate on Computer2.
Note:
Each client computer that connects to a VNet using Point-to-Site must have a client certificate
installed. You generate a client certificate from the self-signed root certificate, and then export
and install the client certificate. If the client certificate is not installed, authentication fails.
Reference:
https://docs.microsoft.com/en-us/azure/vpn-gateway/vpn-gateway-certificates-point-to-site
QUESTION: 2
Note: This question is part of a series of questions that present the same scenario. Each
question in the series contains a unique solution that might meet the stated goals. Some
question sets might have more than one correct solution, while others might not have a correct
solution.
After you answer a question in this section, you will NOT be able to return to it. As a result,
these questions will not appear in the review screen.
You have a computer named Computer1 that has a point-to-site VPN connection to an Azure
virtual network named VNet1. The point-to-site connection uses a self-signed certificate.
https://xcerts.com 188
AZ-104
From Azure, you download and install the VPN client configuration package on a computer
named Computer2. You need to ensure that you can establish a point-to-site VPN connection to
VNet1 from Computer2.
Solution: You join Computer2 to Azure Active Directory (Azure AD). Does this meet the goal?
A. Yes
B. No
Answer(s): B
Explanation:
A client computer that connects to a VNet using Point-to-Site must have a client certificate
installed.
Reference:
https://docs.microsoft.com/en-us/azure/vpn-gateway/vpn-gateway-certificates-point-to-site
QUESTION: 3
Note: This question is part of a series of questions that present the same scenario. Each
question in the series contains a unique solution that might meet the stated goals. Some
question sets might have more than one correct solution, while others might not have a correct
solution.
After you answer a question in this section, you will NOT be able to return to it. As a result,
these questions will not appear in the review screen.
You have an Azure subscription that contains 10 virtual networks. The virtual networks are
hosted in separate resource groups.
Another administrator plans to create several network security groups (NSGs) in the
subscription.
You need to ensure that when an NSG is created, it automatically blocks TCP port 8080
between the virtual networks.
Solution: You create a resource lock, and then you assign the lock to the subscription. Does this
meet the goal?
A. Yes
B. No
Answer(s): B
QUESTION: 4
You have an Azure subscription named Subscription1. Subscription1 contains a virtual machine
named VM1. You have a computer named Computer1 that runs Windows 10. Computer1 is
connected to the Internet.
https://xcerts.com 189
AZ-104
You add a network interface named vm1173 to VM1 as shown in the exhibit. (Click the Exhibit
tab.)
From Computer1, you attempt to connect to VM1 by using Remote Desktop, but the connection
fails. You need to establish a Remote Desktop connection to VM1.
What should you do first?
Answer(s): D
Explanation:
Incorrect Answers:
A: Rules are processed in priority order, with lower numbers processed before higher numbers,
because lower numbers have higher priority. Once traffic matches a rule, processing stops.
RDP already has the lowest number and thus the highest priority.
B: The network interface has already been added to VM. C: The Outbound rules are fine.
Reference:
https://docs.microsoft.com/en-us/azure/virtual-network/security-overview
QUESTION: 5
You have the Azure virtual machines shown in the following table.
https://xcerts.com 190
AZ-104
You need to ensure that all the virtual machines can resolve DNS names by using the DNS
service on VM1. What should you do?
Answer(s): D
Explanation:
Virtual network peering enables you to seamlessly connect networks in Azure Virtual Network.
The virtual networks appear as one for connectivity purposes. The traffic between virtual
machines uses the Microsoft backbone infrastructure.
Incorrect Answers:
B, C: Virtual Network (VNet) service endpoint provides secure and direct connectivity to Azure
services over an optimized route over the Azure backbone network. Endpoints allow you to
secure your critical Azure service resources to only your virtual networks. Service Endpoints
enables private IP addresses in the VNet to reach the endpoint of an Azure service without
needing a public IP address on the VNet.
Reference:
https://docs.microsoft.com/en-us/azure/virtual-network/virtual-network-service-endpoints-
overview https://docs.microsoft.com/en-us/azure/virtual-network/virtual-network-peering-
overview
https://xcerts.com 191
AZ-104
QUESTION: 6
HOTSPOT
You have an Azure subscription that contains the Azure virtual machines shown in the following
table.
You add inbound security rules to a network security group (NSG) named NSG1 as shown in
the following table.
https://xcerts.com 192
AZ-104
https://xcerts.com 193
AZ-104
For each of the following statements, select Yes if the statement is true. Otherwise, select No.
NOTE: Each correct selection is worth one point.
Hot Area:
Exhibit A:
https://xcerts.com 194
AZ-104
Exhibit B:
Answer(s): A
Explanation:
Box 1: No
It limits traffic to VM2, but not VM1 traffic.
Box 2: Yes
Yes, the destination is VM2. Box 3: No
Reference:
https://docs.microsoft.com/en-us/azure/virtual-network/network-security-group-how-it-works
QUESTION: 7
You have the Azure virtual network named VNet1 that contains a subnet named Subnet1.
Subnet1 contains three Azure virtual machines. Each virtual machine has a public IP address.
The virtual machines host several applications that are accessible over port 443 to users on the
Internet. Your on-premises network has a site-to-site VPN connection to VNet1.
You discover that the virtual machines can be accessed by using the Remote Desktop Protocol
(RDP) from the Internet and from the on-premises network.
https://xcerts.com 195
AZ-104
You need to prevent RDP access to the virtual machines from the Internet, unless the RDP
connection is established from the on-premises network. The solution must ensure that all the
applications can still be accessed by the Internet users.
Answer(s): B
Explanation:
You can use a site-to-site VPN to connect your on-premises network to an Azure virtual
network. Users on your on-premises network connect by using the RDP or SSH protocol over
the site-to-site VPN connection. You don't have to allow direct RDP or SSH access over the
internet.
Reference:
https://docs.microsoft.com/en-us/azure/security/fundamentals/network-best-practices
QUESTION: 8
You have an Azure subscription that contains the resources in the following table.
Subnet1 is associated to VNet1. NIC1 attaches VM1 to Subnet1. You need to apply ASG1 to
VM1.
What should you do?
Answer(s): A
Explanation:
Application Security Group can be associated with NICs.
Reference:
https://xcerts.com 196
AZ-104
https://docs.microsoft.com/en-us/azure/virtual-network/security-overview#application-security-
groups
QUESTION: 9
You have an Azure subscription named Subscription1 that contains an Azure virtual network
named VNet1. VNet1 connects to your on-premises network by using Azure ExpressRoute.
You plan to prepare the environment for automatic failover in case of ExpressRoute failure.
You need to connect VNet1 to the on-premises network by using a site-to-site VPN. The
solution must minimize cost.
Which three actions should you perform? Each correct answer presents part of the solution.
NOTE: Each correct selection is worth one point.
A. Create a connection
B. Create a local site VPN gateway
C. Create a VPN gateway that uses the VpnGw1 SKU
D. Create a gateway subnet
E. Create a VPN gateway that uses the Basic SKU
Answer(s): A, D, E
Reference:
https://docs.microsoft.com/en-us/azure/vpn-gateway/vpn-gateway-howto-site-to-site-resource-
manager-portal
QUESTION: 10
HOTSPOT
You have peering configured as shown in the following exhibit.
Use the drop-down menus to select the answer choice that completes each statement based on
the information presented in the graphic.
https://xcerts.com 197
AZ-104
Exhibit A:
Exhibit B:
Answer(s): A
Explanation:
Box 1: vNET6 only
Peering status to both VNet1 and Vnet2 are disconnected.
Reference:
https://xcerts.com 198
AZ-104
https://blog.kloud.com.au/2018/10/19/address-space-maintenance-with-vnet-peering/
QUESTION: 11
Note: This question is part of a series of questions that present the same scenario. Each
question in the series contains a unique solution that might meet the stated goals. Some
question sets might have more than one correct solution, while others might not have a correct
solution.
After you answer a question in this section, you will NOT be able to return to it. As a result,
these questions will not appear in the review screen.
You have an Azure subscription that contains 10 virtual networks. The virtual networks are
hosted in separate resource groups.
Another administrator plans to create several network security groups (NSGs) in the
subscription.
You need to ensure that when an NSG is created, it automatically blocks TCP port 8080
between the virtual networks.
Solution: From the Resource providers blade, you unregister the Microsoft.ClassicNetwork
provider. Does this meet the goal?
A. Yes
B. No
Answer(s): B
Explanation:
You should use a policy definition.
Resource policy definition used by Azure Policy enables you to establish conventions for
resources in your organization by describing when the policy is enforced and what effect to take.
By defining conventions, you can control costs and more easily manage your resources.
Reference:
https://docs.microsoft.com/en-us/azure/azure-policy/policy-definition
QUESTION: 12
Note: This question is part of a series of questions that present the same scenario. Each
question in the series contains a unique solution that might meet the stated goals. Some
question sets might have more than one correct solution, while others might not have a correct
solution.
After you answer a question in this section, you will NOT be able to return to it. As a result,
these questions will not appear in the review screen.
You have an Azure subscription that contains 10 virtual networks. The virtual networks are
hosted in separate resource groups.
https://xcerts.com 199
AZ-104
Another administrator plans to create several network security groups (NSGs) in the
subscription.
You need to ensure that when an NSG is created, it automatically blocks TCP port 8080
between the virtual networks.
A. Yes
B. No
Answer(s): B
Explanation:
Resource policy definition used by Azure Policy enables you to establish conventions for
resources in your organization by describing when the policy is enforced and what effect to take.
By defining conventions, you can control costs and more easily manage your resources.
Reference:
https://docs.microsoft.com/en-us/azure/azure-policy/policy-definition
QUESTION: 13
Note: This question is part of a series of questions that present the same scenario. Each
question in the series contains a unique solution that might meet the stated goals. Some
question sets might have more than one correct solution, while others might not have a correct
solution.
After you answer a question in this section, you will NOT be able to return to it. As a result,
these questions will not appear in the review screen.
You have an Azure subscription that contains 10 virtual networks. The virtual networks are
hosted in separate resource groups.
Another administrator plans to create several network security groups (NSGs) in the
subscription.
You need to ensure that when an NSG is created, it automatically blocks TCP port 8080
between the virtual networks.
Solution: You configure a custom policy definition, and then you assign the policy to the
subscription. Does this meet the goal?
A. Yes
B. No
Answer(s): A
Explanation:
Resource policy definition used by Azure Policy enables you to establish conventions for
resources in your organization by describing when the policy is enforced and what effect to take.
By defining conventions, you can control costs and more easily manage your resources.
https://xcerts.com 200
AZ-104
Reference:
https://docs.microsoft.com/en-us/azure/azure-policy/policy-definition
QUESTION: 14
You have two Azure virtual networks named VNet1 and VNet2. VNet1 contains an Azure virtual
machine named VM1. VNet2 contains an Azure virtual machine named VM2.
VM1 hosts a frontend application that connects to VM2 to retrieve data.
Users report that the frontend application is slower than usual.
You need to view the average round-trip time (RTT) of the packets from VM1 to VM2.
Which Azure Network Watcher feature should you use?
A. IP flow verify
B. Connection troubleshoot
C. Connection monitor
D. NSG flow logs
Answer(s): C
Explanation:
The connection monitor capability monitors communication at a regular interval and informs you
of reachability, latency, and network topology changes between the VM and the endpoint
Incorrect Answers:
A: The IP flow verify capability enables you to specify a source and destination IPv4 address,
port, protocol (TCP or UDP), and traffic direction (inbound or outbound). IP flow verify then tests
the communication and informs you if the connection succeeds or fails. If the connection fails, IP
flow verify tells you which security rule allowed or denied the communication, so that you can
resolve the problem.
B: The connection troubleshoot capability enables you to test a connection between a VM and
another VM, an FQDN, a URI, or an IPv4 address. The test returns similar information returned
when using the connection monitor capability, but tests the connection at a point in time, rather
than monitoring it over time, as connection monitor does.
D: The NSG flow log capability allows you to log the source and destination IP address, port,
protocol, and whether traffic was allowed or denied by an NSG.
Reference:
https://docs.microsoft.com/en-us/azure/network-watcher/network-watcher-monitoring-overview
QUESTION: 15
You have an Azure subscription that contains a policy-based virtual network gateway named
GW1 and a virtual network named VNet1.
You need to ensure that you can configure a point-to-site connection from an on-premises
computer to VNet1. Which two actions should you perform? Each correct answer presents part
of the solution.
NOTE: Each correct selection is worth one point.
https://xcerts.com 201
AZ-104
Answer(s): C, E
Explanation:
C: A VPN gateway is used when creating a VPN connection to your on-premises network.
Route-based VPN devices use any-to-any (wildcard) traffic selectors, and let routing/forwarding
tables direct traffic to different IPsec tunnels. It is typically built on router platforms where each
IPsec tunnel is modeled as a network interface or VTI (virtual tunnel interface).
E: Policy-based VPN devices use the combinations of prefixes from both networks to define
how traffic is encrypted/decrypted through IPsec tunnels. It is typically built on firewall devices
that perform packet filtering. IPsec tunnel encryption and decryption are added to the packet
filtering and processing engine.
Incorrect Answers:
F: Point-to-Site connections do not require a VPN device or a public-facing IP address.
Reference:
https://docs.microsoft.com/en-us/azure/vpn-gateway/create-routebased-vpn-gateway-portal
https://docs.microsoft.com/en-us/azure/vpn-gateway/vpn-gateway-connect-multiple-
policybased-rm-ps
QUESTION: 16
HOTSPOT
You have an Azure subscription that contains the resources in the following table:
In Azure, you create a private DNS zone named adatum.com. You set the registration virtual
network to VNet2. The adatum.com zone is configured as shown in the following exhibit:
https://xcerts.com 202
AZ-104
For each of the following statements, select Yes if the statement is true. Otherwise, select No.
NOTE: Each correct selection is worth one point.
Hot Area:
Exhibit A:
Exhibit B:
https://xcerts.com 203
AZ-104
Answer(s): A
Explanation:
Box 1: No
Azure DNS provides automatic registration of virtual machines from a single virtual network
that's linked to a private zone as a registration virtual network. VM5 does not belong to the
registration virtual network though.
Box 2: No
Forward DNS resolution is supported across virtual networks that are linked to the private zone
as resolution virtual networks. VM5 does belong to a resolution virtual network.
Box 3: Yes
VM6 belongs to registration virtual network, and an A (Host) record exists for VM9 in the DNS
zone.
By default, registration virtual networks also act as resolution virtual networks, in the sense that
DNS resolution against the zone works from any of the virtual machines within the registration
virtual network.
Reference:
https://docs.microsoft.com/en-us/azure/dns/private-dns-overview
QUESTION: 17
HOTSPOT
You have an Azure subscription that contains a virtual network named VNet1. VNet1 uses an IP
address space of 10.0.0.0/16 and contains the subnets in the following table:
https://xcerts.com 204
AZ-104
Subnet1 contains a virtual appliance named VM1 that operates as a router. You create a routing
table named RT1.
You need to route all inbound traffic from the VPN gateway to VNet1 through VM1.
How should you configure RT1? To answer, select the appropriate options in the answer area.
NOTE: Each correct selection is worth one point.
Hot Area:
Exhibit A:
Exhibit B:
https://xcerts.com 205
AZ-104
Answer(s): A
QUESTION: 18
You have five Azure virtual machines that run Windows Server 2016. The virtual machines are
configured as web servers.
You have an Azure load balancer named LB1 that provides load balancing services for the
virtual machines. You need to ensure that visitors are serviced by the same web server for each
request.
What should you configure?
Answer(s): D
Explanation:
With Sticky Sessions when a client starts a session on one of your web servers, session stays
on that specific server. To configure An Azure Load-Balancer For Sticky Sessions set Session
persistence to Client IP.On the following image you can see sticky session configuration:
https://xcerts.com 206
AZ-104
Note:
There are several versions of this question in the exam. The question can have other incorrect
answer options, including the following:
1. Idle Time-out (minutes) to 20
2. Protocol to UDP
Reference:
https://cloudopszone.com/configure-azure-load-balancer-for-sticky-sessions/
QUESTION: 19
HOTSPOT
You have an Azure subscription that contains the virtual machines shown in the following table:
VM1 and VM2 use public IP addresses. From Windows Server 2019 on VM1 and VM2, you
allow inbound Remote Desktop connections.
• Priority: 100
• Name: Rule1
• Port: 3389
• Protocol: TCP
https://xcerts.com 207
AZ-104
• Source: Any
• Destination: Any
• Action: Allow
For each of the following statements, select Yes if the statement is true. Otherwise, select No.
NOTE: Each correct selection is worth one point.
Hot Area:
Exhibit A:
Exhibit B:
Answer(s): A
QUESTION: 20
HOTSPOT
You have a virtual network named VNET1 that contains the subnets shown in the following
table:
https://xcerts.com 208
AZ-104
You have two Azure virtual machines that have the network configurations shown in the
following table:
For NSG1, you create the inbound security rule shown in the following table:
For NSG2, you create the inbound security rule shown in the following table:
For each of the following statements, select Yes if the statement is true. Otherwise, select No.
NOTE: Each correct selection is worth one point.
Hot Area:
Exhibit A:
Exhibit B:
https://xcerts.com 209
AZ-104
Answer(s): A
Explanation:
Box 1: Yes
The inbound security rule for NSG1 allows TCP port 1433 from 10.10.2.0/24 (or Subnet2 where
VM2 and VM3 are located) to 10.10.1.0/24 (or Subnet1 where VM1 is located) while the
inbound security rule for NSG2 blocks TCP port 1433 from 10.10.2.5 (or VM2) to 10.10.1.5 (or
VM1). However, the NSG1 rule has a higher priority (or lower value) than the NSG2 rule.
Box 2: Yes
No rule explicitly blocks communication from VM1. The default rules, which allow
communication, are thus applied.
Box 3: Yes
No rule explicitly blocks communication between VM2 and VM3 which are both on Subnet2. The
default rules, which allow communication, are thus applied.
Reference:
https://docs.microsoft.com/en-us/azure/virtual-network/security-overview
QUESTION: 21
HOTSPOT
You have an Azure subscription named Subscription1. Subscription1 contains the virtual
machines in the following table:
Subscription1 contains a virtual network named VNet1 that has the subnets in the following
table:
https://xcerts.com 210
AZ-104
VM3 has multiple network adapters, including a network adapter named NIC3. IP forwarding is
enabled on NIC3. Routing is enabled on VM3.
You create a route table named RT1 that contains the routes in the following table:
For each of the following statements, select Yes if the statement is true. Otherwise, select No.
NOTE: Each correct selection is worth one point.
Hot Area:
Exhibit A:
Exhibit B:
https://xcerts.com 211
AZ-104
Answer(s): A
Explanation:
IP forwarding enables the virtual machine a network interface is attached to:
• Receive network traffic not destined for one of the IP addresses assigned to any of the
IP configurations assigned to the network interface.
• Send network traffic with a different source IP address than the one assigned to one of a
network interface's IP configurations.
The setting must be enabled for every network interface that is attached to the virtual machine
that receives traffic that the virtual machine needs to forward. A virtual machine can forward
traffic whether it has multiple network interfaces or a single network interface attached to it.
Box 1: Yes
The routing table allows connections from VM3 to VM1 and VM2. And as IP forwarding is
enabled on VM3, VM3 can connect to VM1.
Box 2: No
VM3, which has IP forwarding, must be turned on, in order for VM2 to connect to VM1.
Box 3: Yes
The routing table allows connections from VM1 and VM2 to VM3. IP forwarding on VM3 allows
VM1 to connect to VM2 via VM3.
Reference:
https://docs.microsoft.com/en-us/azure/virtual-network/virtual-networks-udr-overview
https://www.quora.com/What-is-IP-forwarding
QUESTION: 22
Your on-premises network contains an SMB share named Share1. You have an Azure
subscription that contains the following resources:
• A web app named webapp1
• A virtual network named VNET1
You need to ensure that webapp1 can connect to Share1. What should you deploy?
Answer(s): C
Explanation:
A Site-to-Site VPN gateway connection can be used to connect your on-premises network to an
Azure virtual network over an IPsec/IKE (IKEv1 or IKEv2) VPN tunnel.
https://xcerts.com 212
AZ-104
This type of connection requires a VPN device, a VPN gateway, located on-premises that has
an externally facing public IP address assigned to it.
Incorrect Answers:
B: Application Proxy is a feature of Azure AD that enables users to access on-premises web
applications from a remote client.
Reference:
https://docs.microsoft.com/en-us/azure/vpn-gateway/vpn-gateway-howto-site-to-site-resource-
manager-portal
QUESTION: 23
You plan to deploy several Azure virtual machines that will run Windows Server 2019 in a virtual
machine scale set by using an Azure Resource Manager template.
You need to ensure that NGINX is available on all the virtual machines after they are deployed.
What should you use?
Answer(s): C
Explanation:
Note:
There are several versions of this question in the exam. The question has two correct answers:
1. a Desired State Configuration (DSC) extension
2. Azure Custom Script Extension
The question can have other incorrect answer options, including the following:
• Deployment Center in Azure App Service
• a Microsoft Intune device configuration profile
Reference:
https://docs.microsoft.com/en-us/azure/architecture/framework/devops/automation-configuration
QUESTION: 24
HOTSPOT
You have an Azure subscription named Sub1.
You plan to deploy a multi-tiered application that will contain the tiers shown in the following
table.
https://xcerts.com 213
AZ-104
• Ensure that communication between the web servers and the business logic tier spreads
equally across the virtual machines.
• Protect the web servers from SQL injection attacks.
Which Azure resource should you recommend for each requirement? To answer, select the
appropriate options in the answer area.
Exhibit A:
Exhibit B:
https://xcerts.com 214
AZ-104
Answer(s): A
Explanation:
Box 1: an internal load balancer
Azure Internal Load Balancer (ILB) provides network load balancing between virtual machines
that reside inside a cloud service or a virtual network with a regional scope.
Reference:
https://docs.microsoft.com/en-us/azure/web-application-firewall/ag/ag-overview
QUESTION: 25
Your company has three offices. The offices are located in Miami, Los Angeles, and New York.
Each office contains datacenter.
You have an Azure subscription that contains resources in the East US and West US Azure
regions. Each region contains a virtual network. The virtual networks are peered.
You need to connect the datacenters to the subscription. The solution must minimize network
latency between the datacenters. What should you create?
Answer(s): C
Reference:
https://docs.microsoft.com/en-us/azure/virtual-wan/virtual-wan-about
QUESTION: 26
HOTSPOT
You plan to deploy five virtual machines to a virtual network subnet.
Each virtual machine will have a public IP address and a private IP address. Each virtual
machine requires the same inbound and outbound security rules.
What is the minimum number of network interfaces and network security groups that you
require? To answer, select the appropriate options in the answer area.
Exhibit A:
https://xcerts.com 215
AZ-104
Exhibit B:
Answer(s): A
Explanation:
Box 1: 5
A public and a private IP address can be assigned to a single network interface.
https://xcerts.com 216
AZ-104
Box 2: 1
You can associate zero, or one, network security group to each virtual network subnet and
network interface in a virtual machine. The same network security group can be associated to
as many subnets and network interfaces as you choose.
Reference:
https://docs.microsoft.com/en-us/azure/virtual-network/virtual-network-network-interface-
addresses
QUESTION: 27
HOTSPOT
You have Azure virtual machines that run Windows Server 2019 and are configured as shown in
the following table.
You create a private Azure DNS zone named adatum.com. You configure the adatum.com zone
to allow auto registration from VNET1.
Which A records will be added to the adatum.com zone for each virtual machine? To answer,
select the appropriate options in the answer area.
Exhibit A:
https://xcerts.com 217
AZ-104
Exhibit B:
Answer(s): A
Explanation:
The virtual machines are registered (added) to the private zone as A records pointing to their
private IP addresses.
Reference:
https://docs.microsoft.com/en-us/azure/dns/private-dns-overview https://docs.microsoft.com/en-
us/azure/dns/private-dns-scenarios
QUESTION: 28
HOTSPOT
You have an Azure virtual network named VNet1 that connects to your on-premises network by
using a site-to- site VPN. VNet1 contains one subnet named Sunet1.
Subnet1 is associated to a network security group (NSG) named NSG1. Subnet1 contains a
basic internal load balancer named ILB1. ILB1 has three Azure virtual machines in the backend
pool.
You need to collect data about the IP addresses that connects to ILB1. You must be able to run
interactive queries from the Azure portal against the collected data.
What should you do? To answer, select the appropriate options in the answer area.
Exhibit A:
https://xcerts.com 218
AZ-104
Exhibit B:
Answer(s): A
Explanation:
Box 1: An Azure Log Analytics workspace
In the Azure portal you can set up a Log Analytics workspace, which is a unique Log Analytics
environment with its own data repository, data sources, and solutions
Box 2: ILB1
Reference:
https://docs.microsoft.com/en-us/azure/log-analytics/log-analytics-quick-create-workspace
https://docs.microsoft.com/en-us/azure/load-balancer/load-balancer-standard-diagnostics
https://xcerts.com 219
AZ-104
QUESTION: 29
You have the Azure virtual networks shown in the following table.
To which virtual networks can you establish a peering connection from VNet1?
Answer(s): C
Explanation:
Address spaces must not overlap to enable VNet Peering.
Incorrect Answers:
A, B, D: The address space for VNet2 overlaps with VNet1. We therefore cannot establish a
peering between VNet2 and VNet1.
Reference:
https://docs.microsoft.com/en-us/azure/virtual-network/tutorial-connect-virtual-networks-portal
https://docs.microsoft.com/en-us/azure/virtual-network/virtual-networks-faq#vnet-peering
QUESTION: 30
You have an Azure subscription that contains a virtual network named VNet1. VNet1 contains
four subnets named Gateway, Perimeter, NVA, and Production.
The NVA subnet contains two network virtual appliances (NVAs) that will perform network traffic
inspection between the Perimeter subnet and the Production subnet.
You need to implement an Azure load balancer for the NVAs. The solution must meet the
following requirements:
• The NVAs must run in an active-active configuration that uses automatic failover.
• The NVA must load balance traffic to two services on the Production subnet. The
services have different IP addresses.
Which three actions should you perform? Each correct answer presents part of the solution.
NOTE: Each correct selection is worth one point.
https://xcerts.com 220
AZ-104
Answer(s): B, C, F
Explanation:
A standard load balancer is required for the HA ports.
Two backend pools are needed as there are two services with different IP addresses. Floating
IP rule is used where backend ports are reused.
Incorrect Answers:
E: HA Ports are not available for the basic load balancer.
Reference:
https://docs.microsoft.com/en-us/azure/load-balancer/load-balancer-standard-overview
https://docs.microsoft.com/en-us/azure/load-balancer/load-balancer-multivip-overview
QUESTION: 31
You have an Azure subscription named Subscription1 that contains two Azure virtual networks
named VNet1 and VNet2. VNet1 contains a VPN gateway named VPNGW1 that uses static
routing. There is a site-to-site VPN connection between your on-premises network and VNet1.
On a computer named Client1 that runs Windows 10, you configure a point-to-site VPN
connection to VNet1.
You configure virtual network peering between VNet1 and VNet2. You verify that you can
connect to VNet2 from the on-premises network. Client1 is unable to connect to VNet2.
You need to ensure that you can connect Client1 to VNet2. What should you do?
Answer(s): A
Reference:
https://docs.microsoft.com/en-us/azure/vpn-gateway/vpn-gateway-about-point-to-site-routing
QUESTION: 32
HOTSPOT
You have an Azure subscription. The subscription contains virtual machines that run Windows
Server 2016 and are configured as shown in the following table.
https://xcerts.com 221
AZ-104
You create a public Azure DNS zone named adatum.com and a private Azure DNS zone named
contoso.com. You create a virtual network link for contoso.com as shown in the following
exhibit.
For each of the following statements, select Yes if the statement is true. Otherwise, select No.
NOTE: Each correct selection is worth one point.
Hot Area:
Exhibit A:
https://xcerts.com 222
AZ-104
Exhibit B:
Answer(s): A
Reference:
https://docs.microsoft.com/en-us/azure/virtual-network/virtual-networks-name-resolution-for-
vms-and-role-instances
https://docs.microsoft.com/en-us/azure/dns/private-dns-autoregistration
QUESTION: 33
You have an Azure subscription that contains the resources in the following table.
https://xcerts.com 223
AZ-104
Answer(s): D
Explanation:
All Azure resources are created in an Azure region and subscription. A resource can only be
created in a virtual network that exists in the same region and subscription as the resource.
Reference:
https://docs.microsoft.com/en-us/azure/virtual-network/virtual-network-vnet-plan-design-arm
QUESTION: 34
DRAG DROP
You have an Azure subscription that contains two virtual networks named VNet1 and VNet2.
Virtual machines connect to the virtual networks.
The virtual networks have the address spaces and the subnets configured as shown in the
following table.
You need to add the address space of 10.33.0.0/16 to VNet1. The solution must ensure that the
hosts on VNet1 and VNet2 can communicate.
Which three actions should you perform in sequence? To answer, move the appropriate actions
from the list of actions to the answer area and arrange them in the correct order.
Select and Place:
Exhibit A:
https://xcerts.com 224
AZ-104
Exhibit B:
Answer(s): A
Explanation:
Step 1: Remove peering between Vnet1 and VNet2.
https://xcerts.com 225
AZ-104
You can't add address ranges to, or delete address ranges from a virtual network's address
space once a virtual network is peered with another virtual network. To add or remove address
ranges, delete the peering, add or remove the address ranges, then re-create the peering.
Step 2: Add the 10.44.0.0/16 address space to VNet1. Step 3: Recreate peering between VNet1
and VNet2
Reference:
https://docs.microsoft.com/en-us/azure/virtual-network/virtual-network-manage-peering
QUESTION: 35
HOTSPOT
You have an Azure subscription that contains the resource groups shown in the following table.
VM1 is running and connects to NIC1 and Disk1. NIC1 connects to VNET1.
RG2 contains a public IP address named IP2 that is in the East US location. IP2 is not assigned
to a virtual machine.
For each of the following statements, select Yes if the statement is true. Otherwise, select No.
NOTE: Each correct selection is worth one point.
Hot Area:
Exhibit A:
https://xcerts.com 226
AZ-104
Exhibit B:
Answer(s): A
Explanation:
Box 1: Yes
You can move storage
Box 2: No
You can't move to a new resource group a NIC that is attached to a virtual machine.
Box 3: No
Azure Public IPs are region specific and can't be moved from one region to another.
Reference:
https://docs.microsoft.com/en-us/azure/azure-resource-manager/management/move-support-
resources https://docs.microsoft.com/en-us/azure/virtual-network/move-across-regions-publicip-
powershell
QUESTION: 36
You have an Azure web app named webapp1.
https://xcerts.com 227
AZ-104
You have a virtual network named VNET1 and an Azure virtual machine named VM1 that hosts
a MySQL database. VM1 connects to VNET1.
You need to ensure that webapp1 can access the data hosted on VM1. What should you do?
Answer(s): D
QUESTION: 37
You create an Azure VM named VM1 that runs Windows Server 2019. VM1 is configured as
shown in the exhibit. (Click the Exhibit tab.)
https://xcerts.com 228
AZ-104
You need to enable Desired State Configuration for VM1. What should you do first?
A. Connect to VM1.
B. Start VM1.
C. Capture a snapshot of VM1.
D. Configure a DNS name for VM1.
Answer(s): B
Explanation:
Status is Stopped (Deallocated).
https://xcerts.com 229
AZ-104
The DSC extension for Windows requires that the target virtual machine is able to communicate
with Azure. The VM needs to be started.
Reference:
https://docs.microsoft.com/en-us/azure/virtual-machines/extensions/dsc-windows
QUESTION: 38
You have five Azure virtual machines that run Windows Server 2016. The virtual machines are
configured as web servers.
You have an Azure load balancer named LB1 that provides load balancing services for the
virtual machines. You need to ensure that visitors are serviced by the same web server for each
request.
What should you configure?
Answer(s): D
Explanation:
With Sticky Sessions when a client starts a session on one of your web servers, session stays
on that specific server. To configure An Azure Load-Balancer For Sticky Sessions set Session
persistence to Client IP or to Client IP and protocol.
Reference:
https://cloudopszone.com/configure-azure-load-balancer-for-sticky-sessions/
QUESTION: 39
Note: This questio8n is part of a series of questio8ns that present the same scenario. Each
questio8n in the series contains a unique solution that might meet the stated goals. Some
questio8n sets might have more than one correct solution, while others might not have a correct
solution.
After you answer a questio8n in this section, you will NOT be able to return to it. As a result,
these questio8ns will not appear in the review screen.
https://xcerts.com 230
AZ-104
• Priority: 100
• Source: Any
• Source port range: *
• Destination: *
• Destination port range: 3389
• Protocol: UDP
• Action: Allow
VM1 has a public IP address and is connected to Subnet1. NSG-VM1 is associated to the
network interface of VM1. NSG-Subnet1 is associated to Subnet1.
You need to be able to establish Remote Desktop connections from the internet to VM1.
Solution: You add an inbound security rule to NSG-Subnet1 that allows connections from the
Any source to the *destination for port range 3389 and uses the TCP protocol. You remove
NSG-VM1 from the network interface of VM1.
A. Yes
B. No
Answer(s): B
Explanation:
The default port for RDP is TCP port 3389. A rule to permit RDP traffic must be created
automatically when you create your VM.
Note on NSG-Subnet1: Azure routes network traffic between all subnets in a virtual network, by
default.
Reference:
https://docs.microsoft.com/en-us/azure/virtual-machines/troubleshooting/troubleshoot-rdp-
connection
QUESTION: 40
Note: This questio8n is part of a series of questio8ns that present the same scenario. Each
questio8n in the series contains a unique solution that might meet the stated goals. Some
questio8n sets might have more than one correct solution, while others might not have a correct
solution.
After you answer a questio8n in this section, you will NOT be able to return to it. As a result,
these questio8ns will not appear in the review screen.
https://xcerts.com 231
AZ-104
• Priority: 100
• Source: Any
• Source port range: *
• Destination: *
• Destination port range: 3389
• Protocol: UDP
• Action: Allow
VM1 has a public IP address and is connected to Subnet1. NSG-VM1 is associated to the
network interface of VM1. NSG-Subnet1 is associated to Subnet1.
You need to be able to establish Remote Desktop connections from the internet to VM1.
Solution: You add an inbound security rule to NSG-Subnet1 that allows connections from the
internet source to the VirtualNetwork destination for port range 3389 and uses the UDP
protocol.
A. Yes
B. No
Answer(s): B
Explanation:
The default port for RDP is TCP port 3389. A rule to permit RDP traffic must be created
automatically when you create your VM.
Note on NSG-Subnet1: Azure routes network traffic between all subnets in a virtual network, by
default.
Reference:
https://docs.microsoft.com/en-us/azure/virtual-machines/troubleshooting/troubleshoot-rdp-
connection
QUESTION: 41
Note: This questio8n is part of a series of questio8ns that present the same scenario. Each
questio8n in the series contains a unique solution that might meet the stated goals. Some
questio8n sets might have more than one correct solution, while others might not have a correct
solution.
https://xcerts.com 232
AZ-104
After you answer a questio8n in this section, you will NOT be able to return to it. As a result,
these questio8ns will not appear in the review screen.
• Priority: 100
• Source: Any
• Source port range: *
• Destination: *
• Destination port range: 3389
• Protocol: UDP
• Action: Allow
VM1 has a public IP address and is connected to Subnet1. NSG-VM1 is associated to the
network interface of VM1. NSG-Subnet1 is associated to Subnet1.
You need to be able to establish Remote Desktop connections from the internet to VM1.
Solution: You add an inbound security rule to NSG-Subnet1 and NSG-VM1 that allows
connections from the internet source to the VirtualNetwork destination for port range 3389 and
uses the TCP protocol.
A. Yes
B. No
Answer(s): A
Explanation:
The default port for RDP is TCP port 3389. A rule to permit RDP traffic must be created
automatically when you create your VM.
Note on NSG-Subnet1: Azure routes network traffic between all subnets in a virtual network, by
default.
Reference:
https://docs.microsoft.com/en-us/azure/virtual-machines/troubleshooting/troubleshoot-rdp-
connection
QUESTION: 42
HOTSPOT
https://xcerts.com 233
AZ-104
You have a virtual network named VNet1 that has the configuration shown in the following
exhibit.
Use the drop-down menus to select the answer choice that completes each statement based on
the information presented in the graphic.
Exhibit A:
https://xcerts.com 234
AZ-104
Exhibit B:
Answer(s): A
Explanation:
https://xcerts.com 235
AZ-104
Reference:
https://docs.microsoft.com/en-us/office365/enterprise/designing-networking-for-microsoft-azure-
iaas
QUESTION: 43
You have an Azure subscription that contains a virtual network named VNET1. VNET1 contains
the subnets shown in the following table.
A. 1
B. 3
C. 4
D. 12
Answer(s): C
Explanation:
Each network security group also contains default security rules.
Note: A network security group (NSG) contains a list of security rules that allow or deny network
traffic to resources connected to Azure Virtual Networks (VNet). NSGs can be associated to
subnets, individual VMs (classic), or individual network interfaces (NIC) attached to VMs
(Resource Manager).
Reference:
https://docs.microsoft.com/en-us/azure/virtual-network/security-overview#default-security-rules
https://xcerts.com 236
AZ-104
QUESTION: 44
You have an Azure subscription that contains the resources shown in the following table.
The Not allowed resource types Azure policy is assigned to RG1 and uses the following
parameters:
Microsoft.Network/virtualNetworks
Microsoft.Compute/virtualMachines
In RG1, you need to create a new virtual machine named VM2, and then connect VM2 to
VNET1. What should you do first?
Answer(s): A
Explanation:
The Not allowed resource types Azure policy prohibits the deployment of specified resource
types. You specify an array of the resource types to block.
Virtual Networks and Virtual Machines are prohibited.
Reference:
https://docs.microsoft.com/en-us/azure/governance/policy/samples/not-allowed-resource-types
QUESTION: 45
Your company has an Azure subscription named Subscription1.
The company also has two on-premises servers named Server1 and Server2 that run Windows
Server 2016. Server1 is configured as a DNS server that has a primary DNS zone named
adatum.com. Adatum.com contains 1,000 DNS records.
You manage Server1 and Subscription1 from Server2. Server2 has the following tools installed:
You need to move the adatum.com zone to an Azure DNS zone in Subscription1. The solution
must minimize administrative effort.
https://xcerts.com 237
AZ-104
A. Azure CLI
B. Azure PowerShell
C. the Azure portal
D. the DNS Manager console
Answer(s): B
Explanation:
Step 1: Installing the DNS migration script
Open an elevated PowerShell window (Administrative mode) and run following command
install-script PrivateDnsMigrationScript
PrivateDnsMigrationScript.ps1
Reference:
https://docs.microsoft.com/en-us/azure/dns/private-dns-migration-guide
QUESTION: 46
You have a public load balancer that balances ports 80 and 443 across three virtual machines.
You need to direct all the Remote Desktop Protocol (RDP) connections to VM3 only.
What should you configure?
Answer(s): A
Reference:
https://docs.microsoft.com/en-us/azure/load-balancer/tutorial-load-balancer-port-forwarding-
portal https://pixelrobots.co.uk/2017/08/azure-load-balancer-for-rds/
QUESTION: 47
HOTSPOT
You have an Azure subscription named Subscription1 that contains the virtual networks in the
following table.
https://xcerts.com 238
AZ-104
In Subscription1, you create a load balancer that has the following configurations:
• Name: LB1
• SKU: Basic
• Type: Internal
• Subnet: Subnet12
• Virtual network: VNET1
For each of the following statements, select Yes if the statement is true. Otherwise, select No.
NOTE: Each correct selection is worth one point.
Hot Area:
Exhibit A:
Exhibit B:
https://xcerts.com 239
AZ-104
Answer(s): A
Reference:
https://docs.microsoft.com/en-us/azure/load-balancer/load-balancer-standard-overview
QUESTION: 48
HOTSPOT
You have an Azure virtual machine that runs Windows Server 2019 and has the following
configurations:
• Name: VM1
• Location: West US
• Connected to: VNET1
• Private IP address: 10.1.0.4
• Public IP addresses: 52.186.85.63
• DNS suffix in Windows Server: Adatum.com
You create the Azure DNS zones shown in the following table.
You need to identify which DNS zones you can link to VNET1 and the DNS zones to which VM1
can automatically register.
Which zones should you identify? To answer, select the appropriate options in the answer area.
NOTE: Each correct selection is worth one point.
Hot Area:
https://xcerts.com 240
AZ-104
Exhibit A:
Exhibit B:
Answer(s): A
Reference:
https://docs.microsoft.com/en-us/azure/dns/private-dns-overview
QUESTION: 49
DRAG DROP
You have an on-premises network that you plan to connect to Azure by using a site-so-site
VPN.
https://xcerts.com 241
AZ-104
In Azure, you have an Azure virtual network named VNet1 that uses an address space of
10.0.0.0/16 VNet1 contains a subnet named Subnet1 that uses an address space of
10.0.0.0/24.
Which four actions should you perform in sequence? To answer, move the appropriate actions
from the list of actions to the answer area and arrange them in the correct order.
NOTE: More than one order of answer choice is correct. You will receive credit for any of the
correct orders you select.
Select and Place:
Exhibit A:
Exhibit B:
https://xcerts.com 242
AZ-104
Answer(s): A
QUESTION: 50
You have an Azure subscription that contains the resources in the following table.
VM1 and VM2 are deployed from the same template and host line-of-business applications. You
configure the network security group (NSG) shown in the exhibit. (Click the Exhibit tab.)
https://xcerts.com 243
AZ-104
You need to prevent users of VM1 and VM2 from accessing websites on the Internet over TCP
port 80. What should you do?
Answer(s): C
Explanation:
You can associate or dissociate a network security group from a network interface or subnet.
The NSG has the appropriate rule to block users from accessing the Internet. We just need to
associate it with Subnet1.
Reference:
https://docs.microsoft.com/en-us/azure/virtual-network/manage-network-security-group
QUESTION: 51
You have two subscriptions named Subscription1 and Subscription2. Each subscription is
associated to a different Azure AD tenant.
Subscription1 contains a virtual network named VNet1. VNet1 contains an Azure virtual
machine named VM1 and has an IP address space of 10.0.0.0/16.
https://xcerts.com 244
AZ-104
Subscription2 contains a virtual network named VNet2. VNet2 contains an Azure virtual
machine named VM2 and has an IP address space of 10.10.0.0/24.
Answer(s): D
Explanation:
The virtual networks can be in the same or different regions, and from the same or different
subscriptions. When connecting VNets from different subscriptions, the subscriptions do not
need to be associated with the same Active Directory tenant.
The local network gateway for each VNet treats the other VNet as a local site. This lets you
specify additional address space for the local network gateway in order to route traffic.
Reference:
https://docs.microsoft.com/en-us/azure/vpn-gateway/vpn-gateway-howto-vnet-vnet-resource-
manager-portal
QUESTION: 52
You plan to create an Azure virtual machine named VM1 that will be configured as shown in the
following exhibit.
https://xcerts.com 245
AZ-104
The planned disk configurations for VM1 are shown in the following exhibit.
https://xcerts.com 246
AZ-104
Answer(s): A, C
Explanation:
A: Your VMs should use managed disks if you want to move them to an Availability Zone by
using Site Recovery.
C: When you create a VM for an Availability Zone, Under Settings > High availability, select one
of the numbered zones from the Availability zone dropdown.
https://xcerts.com 247
AZ-104
Reference:
https://docs.microsoft.com/en-us/azure/site-recovery/move-azure-vms-avset-azone
https://docs.microsoft.com/en-us/azure/virtual-machines/windows/create-portal-availability-zone
QUESTION: 53
HOTSPOT
You have an Azure subscription that contains the resources shown in the following table.
https://xcerts.com 248
AZ-104
Which resource group and location should you use to deploy VM1? To answer, select the
appropriate options in the answer area.
Exhibit A:
Exhibit B:
Answer(s): A
https://xcerts.com 249
AZ-104
Explanation:
Box 1: RG1, RG2, or RG3
The resource group stores metadata about the resources. When you specify a location for the
resource group, you're specifying where that metadata is stored.
ScaleSetVM – Virtual machine instances added to the scale set are based on the scale set
configuration model. The virtual machine instance lifecycle - creation, update, deletion - is
managed by the scale set.
VM (virtual machines) – Virtual machines created outside of the scale set can be explicitly
added to the scaleset.
Reference:
https://docs.microsoft.com/en-us/azure/azure-resource-manager/management/overview
QUESTION: 54
HOTSPOT
Peering for VNET2 is configured as shown in the following exhibit.
https://xcerts.com 250
AZ-104
How can packets be routed between the virtual networks? To answer, select the appropriate
options in the answer area.
Exhibit A:
Exhibit B:
https://xcerts.com 251
AZ-104
Answer(s): A
Explanation:
Box 1. VNET2 and VNET3 Box 2: VNET1
Gateway transit is disabled.
Reference:
https://docs.microsoft.com/en-us/azure/virtual-network/virtual-network-peering-overview
QUESTION: 55
HOTSPOT
You have an Azure subscription that contains the resources in the following table.
You install the Web Server server role (IIS) on VM1 and VM2, and then add VM1 and VM2 to
LB1.
LB1 is configured as shown in the LB1 exhibit. (Click the LB1 tab.)
https://xcerts.com 252
AZ-104
Rule1 is configured as shown in the Rule1 exhibit. (Click the Rule1 tab.)
For each of the following statements, select Yes if the statement is true. Otherwise, select No.
https://xcerts.com 253
AZ-104
Exhibit A:
Exhibit B:
Answer(s): A
Explanation:
Box 1: Yes
A Basic Load Balancer supports virtual machines in a single availability set or virtual machine
scale set.
Box 2: Yes
When using load-balancing rules with Azure Load Balancer, you need to specify health probes
to allow Load Balancer to detect the backend endpoint status. The configuration of the health
probe and probe responses determine which backend pool instances will receive new flows.
You can use health probes to detect the failure of an application on a backend endpoint. You
can also generate a custom response to a health probe and use the health probe for flow
control to manage load or planned downtime. When a health probe fails, Load Balancer will stop
https://xcerts.com 254
AZ-104
sending new flows to the respective unhealthy instance. Outbound connectivity is not impacted,
only inbound connectivity is impacted.
Box 3: No
Reference:
https://docs.microsoft.com/en-us/azure/load-balancer/skus
https://docs.microsoft.com/en-us/azure/load-balancer/load-balancer-custom-probe-overview
QUESTION: 56
HOTSPOT
You have an Azure virtual machine named VM1 that connects to a virtual network named
VNet1. VM1 has the following configurations:
• Subnet: 10.0.0.0/24
• Availability set: AVSet
• Network security group (NSG): None
• Private IP address: 10.0.0.4 (dynamic)
• Public IP address: 40.90.219.6 (dynamic)
You deploy a standard, Internet-facing load balancer named slb1. You need to configure slb1 to
allow connectivity to VM1.
Which changes should you apply to VM1 as you configure slb1? To answer, select the
appropriate options in the answer area.
Exhibit A:
Exhibit B:
https://xcerts.com 255
AZ-104
Answer(s): A
Explanation:
Change the private IP address of VM1 to static Box 1: Remove the public IP address from VM1
Note: A public load balancer can provide outbound connections for virtual machines (VMs)
inside your virtual network. These connections are accomplished by translating their private IP
addresses to public IP addresses. Public Load Balancers are used to load balance internet
traffic to your VMs.
Reference:
https://docs.microsoft.com/en-us/azure/load-balancer/load-balancer-overview
QUESTION: 57
You have an Azure subscription that contains the resources shown in the following table.
You need to create a network interface named NIC1. In which location can you create NIC1?
Answer(s): B
https://xcerts.com 256
AZ-104
Explanation:
Before creating a network interface, you must have an existing virtual network in the same
location and subscription you create a network interface in.
Reference:
https://docs.microsoft.com/en-us/azure/virtual-network/virtual-network-network-interface
QUESTION: 58
You have Azure virtual machines that run Windows Server 2019 and are configured as shown in
the following table.
You create a public Azure DNS zone named adatum.com and a private Azure DNS zone named
contoso.com. For controso.com, you create a virtual network link named link1 as shown in the
exhibit. (Click the Exhibit tab.)
https://xcerts.com 257
AZ-104
You discover that VM1 can resolve names in contoso.com but cannot resolve names in
adatum.com. VM1 can resolve other hosts on the Internet.
You need to ensure that VM1 can resolve host names in adatum.com. What should you do?
Answer(s): A
Explanation:
If you use Azure Provided DNS then appropriate DNS suffix will be automatically applied to your
virtual machines. For all other options you must either use Fully Qualified Domain Names
(FQDN) or manually apply appropriate DNS suffix to your virtual machines.
Reference:
https://docs.microsoft.com/en-us/azure/virtual-network/virtual-networks-name-resolution-for-
vms-and-role- instances
https://xcerts.com 258
AZ-104
QUESTION: 59
HOTSPOT
You plan to use Azure Network Watcher to perform the following tasks:
• Task1: Identify a security rule that prevents a network packet from reaching an Azure
virtual machine.
• Task2: Validate outbound connectivity from an Azure virtual machine to an external host.
Which feature should you use for each task? To answer, select the appropriate options in the
answer area.
Exhibit A:
Exhibit B:
https://xcerts.com 259
AZ-104
Answer(s): A
Explanation:
Box 1: IP flow verify
At some point, a VM may become unable to communicate with other resources, because of a
security rule. The IP flow verify capability enables you to specify a source and destination IPv4
address, port, protocol (TCP or UDP), and traffic direction (inbound or outbound). IP flow verify
then tests the communication and informs you if the connection succeeds or fails. If the
connection fails, IP flow verify tells you which.
Reference:
https://docs.microsoft.com/en-us/azure/network-watcher/network-watcher-monitoring-overview
QUESTION: 60
HOTSPOT
You have an Azure subscription that contains the Azure virtual machines shown in the following
table.
https://xcerts.com 260
AZ-104
You configure the network interfaces of the virtual machines to use the settings shown in the
following table.
From the settings of VNET1 you configure the DNS servers shown in the following exhibit.
The virtual machines can successfully connect to the DNS server that has an IP address of
192.168.10.15 and the DNS server that has an IP address of 193.77.134.10.
For each of the following statements, select Yes if the statement is true. Otherwise, select No.
NOTE: Each correct selection is worth one point.
Hot Area:
Exhibit A:
https://xcerts.com 261
AZ-104
Exhibit B:
Answer(s): A
Explanation:
Box 1: Yes
You can specify DNS server IP addresses in the VNet settings. The setting is applied as the
default DNS server
(s) for all VMs in the VNet.
Box 2: No
You can set DNS servers per VM or cloud service to override the default network settings.
Box 3: Yes
You can set DNS servers per VM or cloud service to override the default network settings.
Reference:
https://docs.microsoft.com/en-us/azure/virtual-network/virtual-networks-faq#name-resolution-
dns
QUESTION: 61
HOTSPOT
You have an Azure subscription that contains the resource groups shown in the following table.
https://xcerts.com 262
AZ-104
You need to identify which resources you can move from RG1 to RG2, and which resources you
can move from RG2 to RG1.
Which resources should you identify? To answer, select the appropriate options in the answer
area.
NOTE: Each correct selection is worth one point.
Hot Area:
Exhibit A:
Exhibit B:
https://xcerts.com 263
AZ-104
Answer(s): A
Explanation:
Box 1: IP1, Storage1
IP addresses and storage accounts can be moved. Virtual networks cannot be moved.
There is no lock on RG1.
Box 2: None
There is a delete lock on RG2.
Note: When you apply a lock at a parent scope, all resources within that scope inherit the same
lock. Even resources you add later inherit the lock from the parent. The most restrictive lock in
the inheritance takes precedence.
CanNotDelete means authorized users can still read and modify a resource, but they can't
delete the resource. ReadOnly means authorized users can read a resource, but they can't
delete or update the resource. Applying this lock is similar to restricting all authorized users to
the permissions granted by the Reader role.
Reference:
https://docs.microsoft.com/en-us/azure/azure-resource-manager/management/lock-resources
https://docs.microsoft.com/en-us/azure/azure-resource-manager/management/move-support-
resources
QUESTION: 62
https://xcerts.com 264
AZ-104
Note: This question is part of a series of questions that present the same scenario. Each
question in the series contains a unique solution that might meet the stated goals. Some
question sets might have more than one correct solution, while others might not have a correct
solution.
After you answer a question in this section, you will NOT be able to return to it. As a result,
these questions will not appear in the review screen.
You have an Azure subscription that contains the virtual machines shown in the following table.
You need to ensure that you can add VM1 and VM2 to the backend pool of LB1.
Solution: You create a Basic SKU public IP address, associate the address to the network
interface of VM1, and then start VM1.
A. Yes
B. No
Answer(s): B
Explanation:
A Backend Pool configured by IP address has the following limitations: Standard load balancer
only
Reference:
https://docs.microsoft.com/en-us/azure/load-balancer/backend-pool-management
QUESTION: 63
Note: This question is part of a series of questions that present the same scenario. Each
question in the series contains a unique solution that might meet the stated goals. Some
question sets might have more than one correct solution, while others might not have a correct
solution.
After you answer a question in this section, you will NOT be able to return to it. As a result,
these questions will not appear in the review screen.
You have an Azure subscription that contains the virtual machines shown in the following table.
https://xcerts.com 265
AZ-104
• Name: LB1
• Type: Internal
• SKU: Standard
• Virtual network: VNET1
You need to ensure that you can add VM1 and VM2 to the backend pool of LB1.
Solution: You create a Standard SKU public IP address, associate the address to the network
interface of VM1, and then stop VM2.
A. Yes
B. No
Answer(s): B
Explanation:
A Backend Pool configured by IP address has the following limitations:
• Standard load balancer only
Reference:
https://docs.microsoft.com/en-us/azure/load-balancer/backend-pool-management
QUESTION: 64
Note: This question is part of a series of questions that present the same scenario. Each
question in the series contains a unique solution that might meet the stated goals. Some
question sets might have more than one correct solution, while others might not have a correct
solution.
After you answer a question in this section, you will NOT be able to return to it. As a result,
these questions will not appear in the review screen.
You have an Azure subscription that contains the virtual machines shown in the following table.
https://xcerts.com 266
AZ-104
• SKU: Standard
• Virtual network: VNET1
You need to ensure that you can add VM1 and VM2 to the backend pool of LB1.
Solution: You create two Standard public IP addresses and associate a Standard SKU public IP
address to the network interface of each virtual machine.
A. Yes
B. No
Answer(s): A
Explanation:
A Backend Pool configured by IP address has the following limitations: Standard load balancer
only
Reference:
https://docs.microsoft.com/en-us/azure/load-balancer/backend-pool-management
QUESTION: 65
Note: This question is part of a series of questions that present the same scenario. Each
question in the series contains a unique solution that might meet the stated goals. Some
question sets might have more than one correct solution, while others might not have a correct
solution.
After you answer a question in this section, you will NOT be able to return to it. As a result,
these questions will not appear in the review screen.
You have a computer named Computer1 that has a point-to-site VPN connection to an Azure
virtual network named VNet1. The point-to-site connection uses a self-signed certificate.
From Azure, you download and install the VPN client configuration package on a computer
named Computer2. You need to ensure that you can establish a point-to-site VPN connection to
VNet1 from Computer2.
Solution: You export the client certificate from Computer1 and install the certificate on
Computer2. Does this meet the goal?
A. Yes
B. No
Answer(s): A
Explanation:
Each client computer that connects to a VNet using Point-to-Site must have a client certificate
installed. You generate a client certificate from the self-signed root certificate, and then export
and install the client certificate. If the client certificate is not installed, authentication fails.
https://xcerts.com 267
AZ-104
Reference:
https://docs.microsoft.com/en-us/azure/vpn-gateway/vpn-gateway-certificates-point-to-site
QUESTION: 66
You have an Azure virtual machine named VM1.
The network interface for VM1 is configured as shown in the exhibit. (Click the Exhibit tab.)
You deploy a web server on VM1, and then create a secure website that is accessible by using
the HTTPS protocol. VM1 is used as a web server only.
You need to ensure that users can connect to the website from the Internet. What should you
do?
Answer(s): C
Explanation:
https://xcerts.com 268
AZ-104
Note: Priority is a number between 100 and 4096. Rules are processed in priority order, with
lower numbers processed before higher numbers, because lower numbers have higher priority.
Once traffic matches a rule, processing stops. As a result, any rules that exist with lower
priorities (higher numbers) that have the same attributes as rules with higher priorities are not
processed.
Note:
There are several versions of this question in the exam. The question has two possible correct
answers:
1. Change the priority of Rule3 to 450.
2. For Rule5, change the Action to Allow and change the priority to 401.
Other incorrect answer options you may see on the exam include the following:
• Modify the action of Rule1.
• Change the priority of Rule6 to 100.
• For Rule4, change the protocol from UDP to Any.
Reference:
https://docs.microsoft.com/en-us/azure/virtual-network/network-security-groups-overview
QUESTION: 67
HOTSPOT
You manage two Azure subscriptions named Subscription1 and Subscription2. Subscription1
has following virtual networks:
https://xcerts.com 269
AZ-104
For each of the following statements, select Yes if the statement is true. Otherwise, select No.
NOTE: Each correct selection is worth one point.
Hot Area:
Exhibit A:
Exhibit B:
Answer(s): A
Explanation:
https://xcerts.com 270
AZ-104
Box 1: Yes
With VNet-to-VNet you can connect Virtual Networks in Azure across different regions.
Box 2: Yes
Azure supports the following types of peering:
• Virtual network peering: Connect virtual networks within the same Azure region.
• Global virtual network peering: Connecting virtual networks across Azure regions.
Box 3: No
The virtual networks you peer must have non-overlapping IP address spaces.
Reference:
https://azure.microsoft.com/en-us/blog/vnet-to-vnet-connecting-virtual-networks-in-azure-
across-different-regions/
https://docs.microsoft.com/en-us/azure/virtual-network/virtual-network-manage-
peering#requirements-and-constraints
QUESTION: 68
Note: This question is part of a series of questions that present the same scenario. Each
question in the series contains a unique solution that might meet the stated goals. Some
question sets might have more than one correct solution, while others might not have a correct
solution.
After you answer a question in this section, you will NOT be able to return to it. As a result,
these questions will not appear in the review screen.
You have an app named App1 that is installed on two Azure virtual machines named VM1 and
VM2. Connections to App1 are managed by using an Azure Load Balancer.
The effective network security configurations for VM2 are shown in the following exhibit.
You discover that connections to App1 from 131.107.100.50 over TCP port 443 fail.
You verify that the Load Balancer rules are configured correctly.
You need to ensure that connections to App1 can be established successfully from
131.107.100.50 over TCP port 443.
https://xcerts.com 271
AZ-104
Solution: You create an inbound security rule that denies all traffic from the 131.107.100.50
source and has a cost of 64999.
A. Yes
B. No
Answer(s): B
Reference:
https://fastreroute.com/azure-network-security-groups-explained/
QUESTION: 69
Note: This question is part of a series of questions that present the same scenario. Each
question in the series contains a unique solution that might meet the stated goals. Some
question sets might have more than one correct solution, while others might not have a correct
solution.
After you answer a question in this section, you will NOT be able to return to it. As a result,
these questions will not appear in the review screen.
You have an app named App1 that is installed on two Azure virtual machines named VM1 and
VM2. Connections to App1 are managed by using an Azure Load Balancer.
The effective network security configurations for VM2 are shown in the following exhibit.
You discover that connections to App1 from 131.107.100.50 over TCP port 443 fail. You verify
that the Load Balancer rules are configured correctly.
You need to ensure that connections to App1 can be established successfully from
131.107.100.50 over TCP port 443.
Solution: You delete the BlockAllOther443 inbound security rule. Does this meet the goal?
A. Yes
https://xcerts.com 272
AZ-104
B. No
Answer(s): B
Reference:
https://fastreroute.com/azure-network-security-groups-explained/
QUESTION: 70
Note: This question is part of a series of questions that present the same scenario. Each
question in the series contains a unique solution that might meet the stated goals. Some
question sets might have more than one correct solution, while others might not have a correct
solution.
After you answer a question in this section, you will NOT be able to return to it. As a result,
these questions will not appear in the review screen.
You have an app named App1 that is installed on two Azure virtual machines named VM1 and
VM2. Connections to App1 are managed by using an Azure Load Balancer.
The effective network security configurations for VM2 are shown in the following exhibit.
You discover that connections to App1 from 131.107.100.50 over TCP port 443 fail. You verify
that the Load Balancer rules are configured correctly.
You need to ensure that connections to App1 can be established successfully from
131.107.100.50 over TCP port 443.
Solution: You modify the priority of the Allow_131.107.100.50 inbound security rule. Does this
meet the goal?
A. Yes
B. No
Answer(s): B
Explanation:
The rule currently has the highest priority.
https://xcerts.com 273
AZ-104
Reference:
https://fastreroute.com/azure-network-security-groups-explained/
QUESTION: 71
You have an Azure subscription.
You plan to deploy an Azure Kubernetes Service (AKS) cluster to support an app named App1.
On-premises clients connect to App1 by using the IP address of the pod.
For the AKS cluster, you need to choose a network type that will support App1. What should
you choose?
A. kubenet
B. Azure Container Networking Interface (CNI)
C. Hybrid Connection endpoints
D. Azure Private Link
Answer(s): B
Explanation:
With Azure CNI, every pod gets an IP address from the subnet and can be accessed directly.
These IP addresses must be unique across your network space.
Incorrect Answers:
A: The kubenet networking option is the default configuration for AKS cluster creation. With
kubenet, nodes get an IP address from the Azure virtual network subnet. Pods receive an IP
address from a logically different address space to the Azure virtual network subnet of the
nodes. Network address translation (NAT) is then configured so that the pods can reach
resources on the Azure virtual network.
C, D: AKS only supports Kubenet networking and Azure Container Networking Interface (CNI)
networking
Reference:
https://docs.microsoft.com/en-us/azure/aks/concepts-network
QUESTION: 72
Note: This question is part of a series of questions that present the same scenario. Each
question in the series contains a unique solution that might meet the stated goals. Some
question sets might have more than one correct solution, while others might not have a correct
solution.
After you answer a question in this section, you will NOT be able to return to it. As a result,
these questions will not appear in the review screen.
You have an Azure subscription that contains the virtual machines shown in the following table.
https://xcerts.com 274
AZ-104
You need to ensure that you can add VM1 and VM2 to the backend pool of LB1.
Solution: You disassociate the public IP address from the network interface of VM2. Does this
meet the goal?
A. Yes
B. No
Answer(s): B
QUESTION: 73
HOTSPOT
You have an Azure subscription that contains the public load balancers shown in the following
table.
You plan to create six virtual machines and to load balance requests to the virtual machines.
Each load balancer will load balance three virtual machines.
You need to create the virtual machines for the planned solution.
Hot Area:
Exhibit A:
https://xcerts.com 275
AZ-104
Exhibit B:
Answer(s): A
Explanation:
Box 1: be created in the same availability set or virtual machine scale set.
The Basic tier is quite restrictive. A load balancer is restricted to a single availability set, virtual
machine scale set, or a single machine.
Reference:
https://www.petri.com/comparing-basic-standard-azure-load-balancers
QUESTION: 74
HOTSPOT
You have an on-premises data center and an Azure subscription. The data center contains two
VPN devices. The subscription contains an Azure virtual network named VNet1. VNet1 contains
a gateway subnet.
https://xcerts.com 276
AZ-104
You need to create a site-to-site VPN. The solution must ensure that if a single instance of an
Azure VPN gateway fails, or a single on-premises VPN device fails, the failure will not cause an
interruption that is longer than two minutes.
What is the minimum number of public IP addresses, virtual network gateways, and local
network gateways required in Azure? To answer, select the appropriate options in the answer
area.
Exhibit A:
Exhibit B:
https://xcerts.com 277
AZ-104
Answer(s): A
Explanation:
Box 1: 4
Two public IP addresses in the on-premises data center, and two public IP addresses in the
VNET.
The most reliable option is to combine the active-active gateways on both your network and
Azure, as shown in the diagram below.
Box 2: 2
https://xcerts.com 278
AZ-104
Every Azure VPN gateway consists of two instances in an active-standby configuration. For any
planned maintenance or unplanned disruption that happens to the active instance, the standby
instance would take over (failover) automatically, and resume the S2S VPN or VNet-to-VNet
connections.
Box 3: 2
Dual-redundancy: active-active VPN gateways for both Azure and on-premises networks
Reference:
https://docs.microsoft.com/en-us/azure/vpn-gateway/vpn-gateway-highlyavailable
QUESTION: 75
You have an Azure subscription that contains two virtual machines as shown in the following
table.
You perform a reverse DNS lookup for 10.0.0.4 from VM2. Which FQDN will be returned?
A. vm1.core.windows.net
B. vm1.azure.com
C. vm1.westeurope.cloudapp.azure.com
D. vm1.internal.cloudapp.net
Answer(s): B
QUESTION: 76
Note: This question is part of a series of questions that present the same scenario. Each
question in the series contains a unique solution that might meet the stated goals. Some
question sets might have more than one correct solution, while others might not have a correct
solution.
After you answer a question in this section, you will NOT be able to return to it. As a result,
these questions will not appear in the review screen.
You have an app named App1 that is installed on two Azure virtual machines named VM1 and
VM2. Connections to App1 are managed by using an Azure Load Balancer.
The effective network security configurations for VM2 are shown in the following exhibit.
https://xcerts.com 279
AZ-104
You discover that connections to App1 from 131.107.100.50 over TCP port 443 fail. You verify
that the Load Balancer rules are configured correctly.
You need to ensure that connections to App1 can be established successfully from
131.107.100.50 over TCP port 443.
Solution: You create an inbound security rule that allows any traffic from the AzureLoadBalancer
source and has a cost of 150.
A. Yes
B. No
Answer(s): A
Reference:
https://docs.microsoft.com/en-us/azure/virtual-network/network-security-groups-overview
QUESTION: 77
HOTSPOT
You have an Azure subscription that contains the virtual networks shown in the following table.
The subscription contains the private DNS zones shown in the following table.
https://xcerts.com 280
AZ-104
You add virtual network links to the private DNS zones as shown in the following table.
For each of the following statements, select Yes if the statement is true. Otherwise, select No.
NOTE: Each correct selection is worth one point.
Hot Area:
Exhibit A:
Exhibit B:
https://xcerts.com 281
AZ-104
Answer(s): A
Reference:
https://docs.microsoft.com/en-us/azure/dns/private-dns-virtual-network-links
https://docs.microsoft.com/en-us/azure/dns/private-dns-autoregistration
QUESTION: 78
HOTSPOT
You have an Azure subscription.
You plan to use an Azure Resource Manager template to deploy a virtual network named
VNET1 that will use Azure Bastion.
How should you complete the template? To answer, select the appropriate options in the
answer area.
NOTE: Each correct selection is worth one point.
Hot Area:
Exhibit A:
https://xcerts.com 282
AZ-104
Exhibit B:
https://xcerts.com 283
AZ-104
Answer(s): A
Reference:
https://medium.com/charot/deploy-azure-bastion-preview-using-an-arm-template-
15e3010767d6
QUESTION: 79
Note: This question is part of a series of questions that present the same scenario. Each
question in the series contains a unique solution that might meet the stated goals. Some
question sets might have more than one correct solution, while others might not have a correct
solution.
https://xcerts.com 284
AZ-104
After you answer a question in this section, you will NOT be able to return to it. As a result,
these questions will not appear in the review screen.
You manage a virtual network named VNet1 that is hosted in the West US Azure region. VNet1
hosts two virtual machines named VM1 and VM2 that run Windows Server.
You need to inspect all the network traffic from VM1 to VM2 for a period of three hours.
Solution: From Azure Network Watcher, you create a packet capture.
Does this meet the goal?
A. Yes
B. No
Answer(s): B
Explanation:
Use the Connection Monitor feature of Azure Network Watcher.
Reference:
https://azure.microsoft.com/en-us/updates/general-availability-azure-network-watcher-
connection-monitor-in-all-public-regions/
QUESTION: 80
Note: This question is part of a series of questions that present the same scenario. Each
question in the series contains a unique solution that might meet the stated goals. Some
question sets might have more than one correct solution, while others might not have a correct
solution.
After you answer a question in this section, you will NOT be able to return to it. As a result,
these questions will not appear in the review screen.
You manage a virtual network named VNet1 that is hosted in the West US Azure region. VNet1
hosts two virtual machines named VM1 and VM2 that run Windows Server.
You need to inspect all the network traffic from VM1 to VM2 for a period of three hours.
A. Yes
B. No
Answer(s): A
Reference:
https://azure.microsoft.com/en-us/updates/general-availability-azure-network-watcher-
connection-monitor-in-all-public-regions/
QUESTION: 81
https://xcerts.com 285
AZ-104
Note: This question is part of a series of questions that present the same scenario. Each
question in the series contains a unique solution that might meet the stated goals. Some
question sets might have more than one correct solution, while others might not have a correct
solution.
After you answer a question in this section, you will NOT be able to return to it. As a result,
these questions will not appear in the review screen.
You manage a virtual network named VNet1 that is hosted in the West US Azure region. VNet1
hosts two virtual machines named VM1 and VM2 that run Windows Server.
You need to inspect all the network traffic from VM1 to VM2 for a period of three hours.
Solution: From Performance Monitor, you create a Data Collector Set (DCS).
Does this meet the goal?
A. Yes
B. No
Answer(s): B
Explanation:
Use the Connection Monitor feature of Azure Network Watcher.
Reference:
https://docs.microsoft.com/en-us/azure/network-watcher/network-watcher-monitoring-overview
QUESTION: 83
You have an Azure subscription that contains the resources shown in the following table.
https://xcerts.com 286
AZ-104
You plan to create new inbound NAT rules that meet the following requirements:
• Provide Remote Desktop access to VM1 from the internet by using port 3389.
• Provide Remote Desktop access to VM2 from the internet by using port 3389.
What should you create on LB1 before you can create the new inbound NAT rules?
A. a frontend IP address
B. a load balancing rule
C. a health probe
D. a backend pool
Answer(s): A
QUESTION: 84
HOTSPOT
You have an Azure subscription that contains a virtual network named VNet1. VNet1 uses an IP
address space of 10.0.0.0/16 and contains the VPN Gateway and subnets in the following table:
How should you configure RT1? To answer, select the appropriate options in the answer area.
NOTE: Each correct selection is worth one point.
Exhibit A:
https://xcerts.com 287
AZ-104
Exhibit B:
https://xcerts.com 288
AZ-104
Answer(s): A
QUESTION: 85
DRAG DROP
You have an Azure subscription that contains the resources shown in the following table.
You need to load balance HTTPS connections to vm1 and vm2 by using lb1.
Which three actions should you perform in sequence? To answer, move the appropriate actions
from the list of actions to the answer area and arrange them in the correct order.
Exhibit A:
https://xcerts.com 289
AZ-104
Exhibit B:
Answer(s): A
Reference:
https://xcerts.com 290
AZ-104
https://docs.microsoft.com/en-us/azure/load-balancer/tutorial-load-balancer-standard-public-
zone-redundant-portal
QUESTION: 86
Note: This question is part of a series of questions that present the same scenario. Each
question in the series contains a unique solution that might meet the stated goals. Some
question sets might have more than one correct solution, while others might not have a correct
solution.
After you answer a question in this section, you will NOT be able to return to it. As a result,
these questions will not appear in the review screen.
You manage a virtual network named VNet1 that is hosted in the West US Azure region.
VNet1 hosts two virtual machines named VM1 and VM2 that run Windows Server.
You need to inspect all the network traffic from VM1 to VM2 for a period of three hours.
Solution: From Azure Monitor, you create a metric on Network In and Network Out.
Does this meet the goal?
A. Yes
B. No
Answer(s): B
Reference:
https://azure.microsoft.com/en-us/updates/general-availability-azure-network-watcher-
connection-monitor-in-all-public-regions/
QUESTION: 87
Note: This question is part of a series of questions that present the same scenario. Each
question in the series contains a unique solution that might meet the stated goals. Some
question sets might have more than one correct solution, while others might not have a correct
solution.
After you answer a question in this section, you will NOT be able to return to it. As a result,
these questions will not appear in the review screen.
You have an app named App1 that is installed on two Azure virtual machines named VM1 and
VM2. Connections to App1 are managed by using an Azure Load Balancer.
The effective network security configurations for VM2 are shown in the following exhibit.
https://xcerts.com 291
AZ-104
You discover that connections to App1 from 131.107.100.50 over TCP port 443 fail.
You verify that the Load Balancer rules are configured correctly.
You need to ensure that connections to App1 can be established successfully from
131.107.100.50 over TCP port 443.
Solution: You create an inbound security rule that denies all traffic from the 131.107.100.50
source and has a priority of 64999.
A. Yes
B. No
Answer(s): B
Reference:
https://fastreroute.com/azure-network-security-groups-explained/
QUESTION: 88
DRAG DROP
You have an Azure subscription that contains two om-premises locations named site1 and site2.
You need to connect site1 and site2 by using an Azure Virtual WAN.
Which four actions should you perform in sequence? To answer, move the appropriate actions
from the list of actions to the answer area and arrange them in the correct order.
Exhibit A:
https://xcerts.com 292
AZ-104
Exhibit B:
Answer(s): A
Reference:
https://docs.microsoft.com/en-us/azure/virtual-wan/virtual-wan-site-to-site-portal
QUESTION: 89
HOTSPOT
You have an Azure subscription that contains the virtual networks shown in the following table.
https://xcerts.com 293
AZ-104
You have the virtual network interfaces shown in the following table.
Server1 is a DNS server that contains the resources shown in the following table.
You have an Azure private DNS zone named contoso.com that has a virtual network link to
VNET2 and the records shown in the following table.
For each of the following statements, select Yes if the statement is true. Otherwise, select No.
NOTE: Each correct selection is worth one point.
Exhibit A:
Exhibit B:
https://xcerts.com 294
AZ-104
Answer(s): A
QUESTION: 90
You have a virtual network named VNet1 as shown in the exhibit. (Click the Exhibit tab.)
You plan to peer VNet1 to another virtual network named VNet2. VNet2 has an address space
of 10.2.0.0/16.
https://xcerts.com 295
AZ-104
Answer(s): A
Explanation:
The virtual networks you peer must have non-overlapping IP address spaces. The exhibit
indicates that VNet1 has an address space of 10.2.0.0/16, which is the same as VNet2, and
thus overlaps. We need to change the address space for VNet1.
Reference:
https://docs.microsoft.com/en-us/azure/virtual-network/virtual-network-manage-
peering#requirements-and-constraints
https://docs.microsoft.com/en-us/azure/virtual-network/virtual-networks-faq
QUESTION: 91
You have the Azure virtual machines shown in the following table.
VNET1 is linked to a private DNS zone named contoso.com that contains the records shown in
the following table.
Answer(s): B
Reference:
https://medium.com/azure-architects/exploring-azure-private-dns-be65de08f780
https://xcerts.com 296
AZ-104
https://simpledns.plus/help/dns-record-types
QUESTION: 92
HOTSPOT
You have a network security group (NSG) named NSG1 that has the rules defined in the exhibit.
(Click the Exhibit tab.)
NSG1 is associated to a subnet named Subnet1. Subnet1 contains the virtual machines shown
in the following table.
You need to add a rule to NSG1 to ensure that VM1 can ping VM2. The solution must use the
principle of least privilege.
How should you configure the rule? To answer, select the appropriate options in the answer
area.
NOTE: Each correct selection is worth one point.
https://xcerts.com 297
AZ-104
Exhibit A:
Exhibit B:
https://xcerts.com 298
AZ-104
Answer(s): A
Reference:
https://www.thomasmaurer.ch/2019/09/how-to-enable-ping-icmp-echo-on-an-azure-vm/
QUESTION: 93
Note: This question is part of a series of questions that present the same scenario. Each
question in the series contains a unique solution that might meet the stated goals. Some
question sets might have more than one correct solution, while others might not have a correct
solution.
https://xcerts.com 299
AZ-104
After you answer a question in this section, you will NOT be able to return to it. As a result,
these questions will not appear in the review screen.
You have a computer named Computer1 that has a point-to-site VPN connection to an Azure
virtual network named VNet1. The point-to-site connection uses a self-signed certificate.
From Azure, you download and install the VPN client configuration package on a computer
named Computer2.
You need to ensure that you can establish a point-to-site VPN connection to VNet1 from
Computer2.
Solution: On Computer2, you set the Startup type for the IPSec Policy Agent service to
Automatic.
Does this meet the goal?
A. Yes
B. No
Answer(s): B
Explanation:
Each client computer that connects to a VNet using Point-to-Site must have a client certificate
installed. You generate a client certificate from the self-signed root certificate, and then export
and install the client certificate. If the client certificate is not installed, authentication fails.
Reference:
https://docs.microsoft.com/en-us/azure/vpn-gateway/vpn-gateway-certificates-point-to-site
https://xcerts.com 300
AZ-104
Testlet 2
Case study
This is a case study. Case studies are not timed separately. You can use as much exam time as
you would like to complete each case. However, there may be additional case studies and
sections on this exam. You must manage your time to ensure that you are able to complete all
questions included on this exam in the time provided.
To answer the questions included in a case study, you will need to reference information that is
provided in the case study. Case studies might contain exhibits and other resources that provide
more information about the scenario that is described in the case study. Each question is
independent of the other questions in this case study.
At the end of this case study, a review screen will appear. This screen allows you to review your
answers and to make changes before you move to the next section of the exam. After you begin
a new section, you cannot return to this section.
Overview
Litware, Inc. is a consulting company that has a main office in Montreal and two branch offices
in Seattle and New York.
The Montreal office has 2,000 employees. The Seattle office has 1,000 employees. The New
York office has 200 employees.
Litware creates a new Azure subscription. The Azure Active Directory (Azure AD) tenant uses a
domain named litware.onmicrosoft.com. The tenant uses the P1 pricing tier.
Existing Environment
The network contains an Active Directory forest named litware.com. All domain controllers are
configured as DNS servers and host the litware.com DNS zone.
Litware has finance, human resources, sales, research, and information technology
departments. Each department has an organizational unit (OU) that contains all the accounts of
that respective department. All the user accounts have the department attribute set to their
respective department. New users are added frequently.
https://xcerts.com 301
AZ-104
Litware has data centers in the Montreal and Seattle offices. Each office has a firewall that can
be configured as a VPN device.
All infrastructure servers are virtualized. The virtualization environment contains the servers in
the following table.
Litware uses two web applications named App1 and App2. Each instance on each web
application requires 1 GB of memory.
The network security team implements several network security groups (NSGs)
Requirements
Planned Changes
Litware plans to implement the following changes:
Planned Changes
Litware plans to implement the following changes:
Technical Requirements
Litware must meet the following technical requirements:
• Ensure that WebApp1 can adjust the number of instances automatically based on the
load and can scale up to five instances.
• Ensure that VM3 can establish outbound connections over TCP port 8080 to the
applications servers in the Montreal office.
• Ensure that routing information is exchanged automatically between Azure and the
routers in the Montreal office.
• Enable Azure Multi-Factor Authentication (MFA) for the users in the finance department
only.
• Ensure that webapp2.azurewebsites.net can be accessed by using the name
app2.litware.com.
https://xcerts.com 302
AZ-104
• Connect the New York office to VNet1 over the Internet by using an encrypted
connection.
• Create a workflow to send an email message when the settings of VM4 are modified.
• Create a custom Azure role named Role1 that is based on the Reader role.
• Minimize costs whenever possible.
QUESTION: 1
You need to ensure that VM1 can communicate with VM4. The solution must minimize the
administrative effort.
Answer(s): C
Reference:
https://docs.microsoft.com/en-us/azure/vpn-gateway/tutorial-site-to-site-portal
QUESTION: 2
HOTSPOT
You need to meet the connection requirements for the New York office.
What should you do? To answer, select the appropriate options in the answer area.
NOTE: Each correct selection is worth one point.
Hot Area:
Exhibit A:
https://xcerts.com 303
AZ-104
Exhibit B:
Answer(s): A
Explanation:
Box 1: Create a virtual network gateway and a local network gateway.
Azure VPN gateway. The VPN gateway service enables you to connect the VNet to the on-
premises network through a VPN appliance. For more information, see Connect an on-premises
network to a Microsoft Azure virtual network. The VPN gateway includes the following elements:
https://xcerts.com 304
AZ-104
Virtual network gateway. A resource that provides a virtual VPN appliance for the VNet. It is
responsible for routing traffic from the on-premises network to the VNet.
Local network gateway. An abstraction of the on-premises VPN appliance. Network traffic from
the cloud application to the on-premises network is routed through this gateway.
Connection. The connection has properties that specify the connection type (IPSec) and the key
shared with the on-premises VPN appliance to encrypt traffic.
Gateway subnet. The virtual network gateway is held in its own subnet, which is subject to
various requirements, described in the Recommendations section below.
Scenario: Connect the New York office to VNet1 over the Internet by using an encrypted
connection. Incorrect Answers:
Azure ExpressRoute: Established between your network and Azure, through an ExpressRoute
partner. This connection is private. Traffic does not go over the internet.
Reference:
https://docs.microsoft.com/en-us/azure/architecture/reference-architectures/hybrid-
networking/vpn
https://xcerts.com 305
AZ-104
Testlet 3
Case study
This is a case study. Case studies are not timed separately. You can use as much exam time as
you would like to complete each case. However, there may be additional case studies and
sections on this exam. You must manage your time to ensure that you are able to complete all
questions included on this exam in the time provided.
To answer the questions included in a case study, you will need to reference information that is
provided in the case study. Case studies might contain exhibits and other resources that provide
more information about the scenario that is described in the case study. Each question is
independent of the other questions in this case study.
At the end of this case study, a review screen will appear. This screen allows you to review your
answers and to make changes before you move to the next section of the exam. After you begin
a new section, you cannot return to this section.
Overview
Contoso, Ltd. is a manufacturing company that has offices worldwide. Contoso works with
partner organizations to bring products to market.
Contoso products are manufactured by using blueprint files that the company authors and
maintains.
Existing Environment
Currently, Contoso uses multiple types of servers for business operations, including the
following:
• File servers
• Domain controllers
• Microsoft SQL Server servers
Your network contains an Active Directory forest named contoso.com. All servers and client
computers are joined to Active Directory.
You have a public-facing application named App1. App1 is comprised of the following three
tiers:
• A SQL database
• A web front end
• A processing middle tier
https://xcerts.com 306
AZ-104
Each tier is comprised of five virtual machines. Users access the web front end by using HTTPS
only.
Requirements
Planned Changes
Contoso plans to implement the following changes to the infrastructure:
Technical Requirements
Contoso must meet the following technical requirements:
User Requirements
Contoso identifies the following requirements for users:
• Ensure that only users who are part of a group named Pilot can join devices to Azure
AD.
• Designate a new user named Admin1 as the service admin for the Azure subscription.
• Admin1 must receive email alerts regarding service outages.
• Ensure that a new user named User3 can create network objects for the Azure
subscription.
QUESTION: 1
HOTSPOT
You need to recommend a solution for App1. The solution must meet the technical
requirements.
What should you include in the recommendation? To answer, select the appropriate options in
the answer area.
Exhibit A:
https://xcerts.com 307
AZ-104
Exhibit B:
Answer(s): A
Explanation:
This reference architecture shows how to deploy VMs and a virtual network configured for an N-
tier application, using SQL Server on Windows for the data tier.
https://xcerts.com 308
AZ-104
Scenario: You have a public-facing application named App1. App1 is comprised of the following
three tiers:
• A SQL database
• A web front end
• A processing middle tier
Each tier is comprised of five virtual machines. Users access the web front end by using HTTPS
only. Technical requirements include:
• Move all the virtual machines for App1 to Azure.
• Minimize the number of open ports between the App1 tiers.
Reference:
https://docs.microsoft.com/en-us/azure/architecture/reference-architectures/n-tier/n-tier-sql-
server
QUESTION: 2
You are planning the move of App1 to Azure. You create a network security group (NSG).
You need to recommend a solution to provide users with access to App1. What should you
recommend?
A. Create an incoming security rule for port 443 from the Internet. Associate the NSG to the
subnet that contains the web servers.
B. Create an outgoing security rule for port 443 from the Internet. Associate the NSG to the
subnet that contains the web servers.
C. Create an incoming security rule for port 443 from the Internet. Associate the NSG to all the
subnets.
D. Create an outgoing security rule for port 443 from the Internet. Associate the NSG to all the
subnets.
Answer(s): A
https://xcerts.com 309
AZ-104
Explanation:
Incoming and the web server subnet only, as users access the web front end by using HTTPS
only.
Note Scenario: You have a public-facing application named App1. App1 is comprised of the
following three tiers:
• A SQL database
• A web front end
• A processing middle tier
Each tier is comprised of five virtual machines. Users access the web front end by using HTTPS
only.
https://xcerts.com 310
AZ-104
QUESTION: 1
HOTSPOT
You have an Azure Active Directory (Azure AD) tenant named contoso.onmicrosoft.com that
contains the users shown in the following table.
You enable password reset for contoso.onmicrosoft.com as shown in the Password Reset
exhibit. (Click the Password Reset tab.)
You configure the authentication methods for password reset as shown in the Authentication
Methods exhibit. (Click the Authentication Methods tab.)
https://xcerts.com 311
AZ-104
For each of the following statements, select Yes if the statement is true. Otherwise, select No.
NOTE: Each correct selection is worth one point.
Hot Area:
Exhibit A:
https://xcerts.com 312
AZ-104
Exhibit B:
Answer(s): A
Explanation:
Box 1: No
Two methods are required.
Box 2: No
Self-service password reset is only enabled for Group2, and User1 is not a member of Group2.
Box 3: Yes
As a User Administrator, User3 can add security questions to the reset process.
Reference:
https://docs.microsoft.com/en-us/azure/active-directory/authentication/quickstart-sspr
https://docs.microsoft.com/en-us/azure/active-directory/authentication/active-directory-
passwords-faq
QUESTION: 2
https://xcerts.com 313
AZ-104
Your company has a main office in London that contains 100 client computers. Three years ago,
you migrated to Azure Active Directory (Azure AD).
The company’s security policy states that all personal devices and corporate-owned devices
must be registered or joined to Azure AD.
A remote user named User1 is unable to join a personal device to Azure AD from a home
network. You verify that User1 was able to join devices to Azure AD in the past.
You need to ensure that User1 can join the device to Azure AD. What should you do?
Answer(s): B
Explanation:
The Maximum number of devices setting enables you to select the maximum number of devices
that a user can have in Azure AD. If a user reaches this quota, they will not be able to add
additional devices until one or more of the existing devices are removed.
Incorrect Answers:
C: Azure AD Join enables users to join their devices to Active Directory from anywhere as long
as they have connectivity with the Internet.
D: The Users may join devices to Azure AD setting enables you to select the users who can join
devices to Azure AD. Options are All, Selected and None. The default is All.
Reference:
https://docs.microsoft.com/en-us/azure/active-directory/devices/device-management-azure-
portal http://techgenix.com/pros-and-cons-azure-ad-join/
QUESTION: 3
Note: This question is part of a series of questions that present the same scenario. Each
question in the series contains a unique solution that might meet the stated goals. Some
question sets might have more than one correct solution, while others might not have a correct
solution.
After you answer a question in this section, you will NOT be able to return to it. As a result,
these questions will not appear in the review screen.
You have an Azure subscription that contains the following users in an Azure Active Directory
tenant named contoso.onmicrosoft.com:
https://xcerts.com 314
AZ-104
A. Yes
B. No
Answer(s): A
Explanation:
Only a global administrator can add users to this tenant.
Reference:
https://docs.microsoft.com/en-us/azure/devops/organizations/accounts/add-users-to-azure-ad
QUESTION: 4
You have an existing Azure subscription that contains 10 virtual machines.
You need to monitor the latency between your on-premises network and the virtual machines.
What should you use?
A. Service Map
B. Connection troubleshoot
C. Network Performance Monitor
D. Effective routes
Answer(s): C
Explanation:
Network Performance Monitor is a cloud-based hybrid network monitoring solution that helps
you monitor network performance between various points in your network infrastructure. It also
helps you monitor network connectivity to service and application endpoints and monitor the
performance of Azure ExpressRoute.
You can monitor network connectivity across cloud deployments and on-premises locations,
multiple data centers, and branch offices and mission-critical multitier applications or
microservices. With Performance Monitor, you can detect network issues before users
complain.
https://xcerts.com 315
AZ-104
Reference:
https://docs.microsoft.com/en-us/azure/azure-monitor/insights/network-performance-monitor
QUESTION: 5
DRAG DROP
You have an Azure Linux virtual machine that is protected by Azure Backup. One week ago, two
files were deleted from the virtual machine.
You need to restore the deleted files to an on-premises Windows Server 2016 computer as
quickly as possible.
Which four actions should you perform in sequence? To answer, move the appropriate actions
from the list of actions to the answer area and arrange them in the correct order.
Select and Place:
Exhibit A:
Exhibit B:
https://xcerts.com 316
AZ-104
Answer(s): A
Explanation:
Step 1: From the Azure portal, click File Recovery from the vault Step 2. Select a restore point
that contains the deleted files
Step 3: Download and run the script to mount a drive on the local computer Generate and
download script to browse and recover files:
https://xcerts.com 317
AZ-104
https://xcerts.com 318
AZ-104
https://xcerts.com 319
AZ-104
4. From the Select recovery point drop-down menu, select the recovery point that holds the files
you want. By default, the latest recovery point is already selected.
5. Select Download Executable (for Windows Azure VMs) or Download Script (for Linux Azure
VMs, a python script is generated) to download the software used to copy files from the
recovery point.
Reference:
https://docs.microsoft.com/en-us/azure/backup/backup-azure-restore-files-from-vm
https://docs.microsoft.com/en-us/azure/backup/backup-azure-vms-automation#restore-files-
from-an-azure-vm-backup
QUESTION: 6
HOTSPOT
You purchase a new Azure subscription named Subscription1.
You create a virtual machine named VM1 in Subscription1. VM1 is not protected by Azure
Backup.
You need to protect VM1 by using Azure Backup. Backups must be created at 01:00 and stored
for 30 days. What should you do? To answer, select the appropriate options in the answer area.
NOTE: Each correct selection is worth one point.
Hot Area:
Exhibit A:
Exhibit B:
https://xcerts.com 320
AZ-104
Answer(s): A
Explanation:
Box 1: A Recovery Services vault
You can set up a Recovery Services vault and configure backup for multiple Azure VMs.
Reference:
https://docs.microsoft.com/en-us/azure/backup/backup-azure-vms-first-look-arm
QUESTION: 7
You have an Azure virtual machine named VM1. Azure collects events from VM1.
You are creating an alert rule in Azure Monitor to notify an administrator when an error is logged
in the System event log of VM1.
https://xcerts.com 321
AZ-104
Answer(s): D
Explanation:
For the first step to create the new alert tule, under the Create Alert section, you are going to
select your Log Analytics workspace as the resource, since this is a log based alert signal.
Reference:
https://docs.microsoft.com/en-us/windows-server/storage/storage-spaces/configure-azure-
monitor
QUESTION: 8
You have an Azure subscription that contains 100 virtual machines. You regularly create and
delete virtual machines.
You need to identify unattached disks that can be deleted. What should you do?
Answer(s): D
Explanation:
From Home –> Cost Management + Billing –> Cost Management, scroll down on the options
and select View Recommendations:
Reference:
https://xcerts.com 322
AZ-104
https://codeserendipity.com/2020/07/08/microsoft-azure-find-unattached-disks-that-can-be-
deleted-and-other-recommendations/
QUESTION: 9
You have an Azure web app named webapp1.
Users report that they often experience HTTP 500 errors when they connect to webapp1.
You need to provide the developers of webapp1 with real-time access to the connection errors.
The solution must provide all the connection error details.
What should you do first?
Answer(s): A
QUESTION: 10
You have an Azure subscription that has a Recovery Services vault named Vault1. The
subscription contains the virtual machines shown in the following table:
You plan to schedule backups to occur every night at 23:00. Which virtual machines can you
back up by using Azure Backup?
Answer(s): B
Explanation:
Azure Backup supports backup of 64-bit Windows server operating system from Windows
Server 2008. Azure Backup supports backup of 64-bit Windows 10 operating system.
Azure Backup supports backup of 64-bit Ubuntu Server operating system from Ubuntu 12.04.
Azure Backup supports backup of VM that are shutdown or offline.
Reference:
https://docs.microsoft.com/en-us/azure/backup/backup-support-matrix-iaas
https://docs.microsoft.com/en-us/azure/virtual-machines/linux/endorsed-distros
https://xcerts.com 323
AZ-104
QUESTION: 11
HOTSPOT
You create a Recovery Services vault backup policy named Policy1 as shown in the following
exhibit:
Use the drop-down menus to select the answer choice that completes each statement based on
the information presented in the graphic.
https://xcerts.com 324
AZ-104
Exhibit A:
Exhibit B:
Answer(s): A
Explanation:
Box 1: 10 years
The yearly backup point occurs to 1 March and its retention period is 10 years.
Box 2: 36 months
https://xcerts.com 325
AZ-104
The monthly backup point occurs on the 1st of every month and its retention period is 36
months.
QUESTION: 12
You have the Azure virtual machines shown in the following table:
You have a Recovery Services vault that protects VM1 and VM2. You need to protect VM3 and
VM4 by using Recovery Services. What should you do first?
Answer(s): A
Explanation:
A Recovery Services vault is a storage entity in Azure that houses data. The data is typically
copies of data, or configuration information for virtual machines (VMs), workloads, servers, or
workstations. You can use Recovery Services vaults to hold backup data for various Azure
services
Reference:
https://docs.microsoft.com/en-us/azure/site-recovery/azure-to-azure-tutorial-enable-replicatio
QUESTION: 13
HOTSPOT
You have an Azure subscription that contains an Azure Storage account named storage1 and
the users shown in the following table.
You plan to monitor storage1 and to configure email notifications for the signals shown in the
following table.
https://xcerts.com 326
AZ-104
You need to identify the minimum number of alert rules and action groups required for the
planned monitoring.
How many alert rules and action groups should you identify? To answer, select the appropriate
options in the answer area.
Exhibit A:
Exhibit B:
https://xcerts.com 327
AZ-104
Answer(s): A
QUESTION: 14
You have an Azure subscription that contains the identities shown in the following table.
User1, Principal1, and Group1 are assigned the Monitoring Reader role.
An action group named AG1 has the Email Azure Resource Manager Role notification type and
is configured to email the Monitoring Reader role.
You need to identity who will receive an email notification when Alert1 is triggered. Who should
you identify?
Answer(s): C
Explanation:
Email will only be sent to Azure AD user members of the Monitoring Reader role. Email will not
be sent to Azure AD groups or service principals.
https://xcerts.com 328
AZ-104
Reference:
https://docs.microsoft.com/en-us/azure/azure-monitor/platform/action-groups
QUESTION: 15
HOTSPOT
You have an Azure virtual machine named VM1 and a Recovery Services vault named Vault1.
You create a backup policy named Policy1 as shown in the exhibit. (Click the Exhibit tab.)
You configure the backup of VM1 to use Policy1 on Thursday, January 1. You need to identify
the number of available recovery points for VM1.
How many recovery points are available on January 8 and January 15? To answer, select the
appropriate options in the answer area.
https://xcerts.com 329
AZ-104
Hot Area:
Exhibit A:
Exhibit B:
Answer(s): A
https://xcerts.com 330
AZ-104
Explanation:
Box 1: 6
5 latest daily recovery points, which includes the weekly backup from the previous Sunday, plus
the monthly recovery point.
Box 2: 8
5 latest daily recovery points, plus two weekly backups, plus the monthly recovery point.
Reference:
https://social.technet.microsoft.com/Forums/en-US/854ab6ae-79aa-4bad-ac65-
471c4d422e94/daily-monthly-yearly-recovery-points-and-storage-
used?forum=windowsazureonlinebackup
https://xcerts.com 331
AZ-104
Testlet 2
Case study
This is a case study. Case studies are not timed separately. You can use as much exam time as
you would like to complete each case. However, there may be additional case studies and
sections on this exam. You must manage your time to ensure that you are able to complete all
questions included on this exam in the time provided.
To answer the questions included in a case study, you will need to reference information that is
provided in the case study. Case studies might contain exhibits and other resources that provide
more information about the scenario that is described in the case study. Each question is
independent of the other questions in this case study.
At the end of this case study, a review screen will appear. This screen allows you to review your
answers and to make changes before you move to the next section of the exam. After you begin
a new section, you cannot return to this section.
Overview
Litware, Inc. is a consulting company that has a main office in Montreal and two branch offices
in Seattle and New York.
The Montreal office has 2,000 employees. The Seattle office has 1,000 employees. The New
York office has 200 employees.
Litware creates a new Azure subscription. The Azure Active Directory (Azure AD) tenant uses a
domain named litware.onmicrosoft.com. The tenant uses the P1 pricing tier.
Existing Environment
The network contains an Active Directory forest named litware.com. All domain controllers are
configured as DNS servers and host the litware.com DNS zone.
Litware has finance, human resources, sales, research, and information technology
departments. Each department has an organizational unit (OU) that contains all the accounts of
that respective department. All the user accounts have the department attribute set to their
respective department. New users are added frequently.
https://xcerts.com 332
AZ-104
Litware has data centers in the Montreal and Seattle offices. Each office has a firewall that can
be configured as a VPN device.
All infrastructure servers are virtualized. The virtualization environment contains the servers in
the following table.
Litware uses two web applications named App1 and App2. Each instance on each web
application requires 1 GB of memory.
The network security team implements several network security groups (NSGs)
Requirements
Planned Changes
Litware plans to implement the following changes:
Planned Changes
Litware plans to implement the following changes:
Technical Requirements
Litware must meet the following technical requirements:
• Ensure that WebApp1 can adjust the number of instances automatically based on the
load and can scale up to five instances.
• Ensure that VM3 can establish outbound connections over TCP port 8080 to the
applications servers in the Montreal office.
• Ensure that routing information is exchanged automatically between Azure and the
routers in the Montreal office.
• Enable Azure Multi-Factor Authentication (MFA) for the users in the finance department
only.
• Ensure that webapp2.azurewebsites.net can be accessed by using the name
app2.litware.com.
https://xcerts.com 333
AZ-104
• Connect the New York office to VNet1 over the Internet by using an encrypted
connection.
• Create a workflow to send an email message when the settings of VM4 are modified.
• Create a custom Azure role named Role1 that is based on the Reader role.
• Minimize costs whenever possible.
•
QUESTION: 1
HOTSPOT
You need to implement Role1.
Which command should you run before you create Role1? To answer, select the appropriate
options in the answer area.
Exhibit A:
Exhibit B:
Answer(s): A
QUESTION: 2
You need to recommend a solution to automate the configuration for the finance department
users. The solution must meet the technical requirements.
What should you include in the recommendation?
A. Azure AD B2C
B. dynamic groups and conditional access policies
https://xcerts.com 334
AZ-104
Answer(s): B
Explanation:
Scenario: Ensure Azure Multi-Factor Authentication (MFA) for the users in the finance
department only.
The recommendation is to use conditional access policies that can then be targeted to groups of
users, specific applications, or other conditions.
Reference:
https://docs.microsoft.com/en-us/azure/active-directory/authentication/howto-mfa-userstates
https://xcerts.com 335