Topic 6: Misc. Questions

You have an Azure subscription that contains the resources shown in the following table.


Explanation:
You need to configure Azure Standard Load Balancer (lb1) to load-balance HTTPS traffic (port 443) to vm1 and vm2. Currently, both VMs have basic public IP addresses, and there is no backend pool, health probe, or load-balancing rule on lb1.

For a Standard Load Balancer to work correctly with VMs:

VMs must not have a public IP address attached to their NIC (Standard LB does not support VMs with public IPs in the backend pool).

VMs should be placed in the same availability set or use Availability Zones (but availability set is the most common requirement in AZ-104 questions).

You must create a backend pool, a health probe (for HTTPS/port 443), and a load-balancing rule.

Correct Sequence (in exact order):

Remove the public IP addresses from vm1 and vm2
This is the first mandatory step. Standard Load Balancer does not allow VMs that have a public IP attached to their network interface. You must remove the public IPs before adding the VMs to the backend pool.

Create an availability set
VMs behind a Standard Load Balancer (especially when using a basic backend pool) must be in the same availability set (or use Availability Zones). Since no availability set is mentioned in the table, you need to create one and place both VMs into it.

Create a health probe and backend pool on lb1

After the VMs are ready (no public IP + same availability set), you create:

A backend pool and add vm1 + vm2 to it.

A health probe (HTTPS on port 443) so the load balancer knows which VMs are healthy.

A load-balancing rule (HTTPS port 443 front-end → back-end).

Correct Order (top to bottom):
Remove the public IP addresses from vm1 and vm2

Create an availability set
Create a health probe and backend pool on lb1

(You can then create the load-balancing rule as the final step, but the question asks for the three key actions, and the probe + backend pool are usually grouped together.)

Incorrect Options (why they are wrong in sequence):

Creating the load-balancing rule too early → will fail because backend pool and probe don’t exist yet.

Removing NSG or creating availability set first → removing public IPs must come before anything else for Standard LB compatibility.

Creating backend pool before removing public IPs → deployment will fail with validation error.

You create an Azure VM named VM1 that runs Windows Server 2019. VM1 is configured as shown in the exhibit (Click the Exhibit tab.)


You need to enable Desired State Configuration for VM1. What should you do first?

A. Configure a DNS name for VM1.

B. Start VM1.

C. Capture a snapshot of VM1.

D. Connect to VM1.

B.   Start VM1.


Explanation:
Desired State Configuration (DSC) extensions require the virtual machine to be in a running state to install and configure. The exhibit shows VM1 is in a "Stopped (deallocated)" state.

Correct Option: B. Start VM1.
The exhibit shows VM1 status as "Stopped (deallocated)". Before you can install or configure the Desired State Configuration extension, the virtual machine must be running. Starting VM1 is the first step to enable DSC.

Incorrect Options:

A. Configure a DNS name for VM1.
DNS configuration is not required for enabling DSC. DSC extensions work with the VM's private IP or existing DNS resolution.

C. Capture a snapshot of VM1.
Capturing a snapshot creates a backup but is not required before enabling DSC. This is an optional precaution, not a prerequisite.

D. Connect to VM1.
Connecting to VM1 is not necessary to enable the DSC extension. The extension can be installed from the Azure portal, PowerShell, or CLI without establishing a remote desktop connection.

Reference:

Microsoft Learn: Desired State Configuration (DSC) extension

Microsoft Learn: Deploy VM extension from Azure portal

Microsoft Learn: VM states and billing implications

You have an Azure Active Directory (Azure AD) tenant that has the initial 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 cmdlets from the list of cmdlets to the answer area and arrange them in the correct order.




Explanation:
To use a custom domain name (contoso.com) for Azure AD users, you must add the custom domain to Azure AD, verify ownership by adding a DNS record, and then confirm the verification.

Correct Order:

1. Add a custom domain name.
First, in Azure AD, add the custom domain name "contoso.com". This registers the domain with Azure AD but it remains unverified until DNS verification is complete.

2. Verify the domain.

Azure AD provides a verification TXT or MX record. You must add this verification record to your public DNS zone with the third-party registrar to prove domain ownership.

3. Configure company branding (optional) or confirm domain.
After DNS propagation, Azure AD detects the verification record and marks the domain as verified. You can then create Azure AD users with @contoso.com suffixes.

Incorrect Actions:

Create an Azure DNS zone: Not required if using a third-party registrar for DNS.
Add an Azure AD tenant: The tenant already exists with an initial domain.

Add a record to the public contoso.com DNS zone: This is part of the verification process but occurs after adding the domain to Azure AD.

Reference:

Microsoft Learn: Add a custom domain name to Azure AD

Microsoft Learn: Verify a custom domain name in Azure AD

You have an Azure subscription that contains the resources in the following table.

A. Associate the NSG to Subnet1.

B. Disassociate the NSG from a network interface.

C. Change the DenyWebSites outbound security rule.

D. Change the Port_80 inbound security rule

A.   Associate the NSG to Subnet1.

Explanation:
The NSG currently has an outbound rule (DenyWebSites) that blocks port 80 traffic to the Internet. However, for this rule to affect VM1 and VM2, the NSG must be associated with Subnet1 where both VMs reside.

Correct Option:

A. Associate the NSG to Subnet1.
The NSG contains the outbound rule DenyWebSites that blocks TCP port 80 traffic to the Internet. However, the NSG is currently not associated with Subnet1. By associating the NSG to Subnet1, the outbound rule will apply to VM1 and VM2, preventing them from accessing websites on the Internet.

Incorrect Options:

B. Disassociate the NSG from a network interface.
Disassociating would remove any existing association, making the NSG ineffective, which would allow internet access, not prevent it.

C. Change the DenyWebSites outbound security rule.
The rule is already correctly configured to deny port 80 outbound traffic. Changing it would not solve the issue if the NSG is not associated.

D. Change the Port_80 inbound security rule.
This rule controls inbound port 80 traffic, not outbound. Modifying it would not affect the VMs' ability to access websites on the Internet.

Reference:

Microsoft Learn: Network security groups
Microsoft Learn: Associate a network security group to a subnet

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

B.   No

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, those questions will not appear in the review screen.

You have a Microsoft Entra tenant named contoso.com.

You have a CSV file that contains the names and email addresses of 500 external users.

You need to create a guest user account in contoso.com for each of the 500 external users.

Solution; From Microsoft Entra ID in the Azure portal, you use the Bulk create user operation. Does this meet the goal?

A. Yes

B. No

B.   No

Explanation:
The Update management blade in Azure Automation is used to manage operating system updates and patches for virtual machines. It does not have any functionality to move a virtual machine to a different physical host.

Correct Option:

B. No
Enabling Update management configures patch management for VM1 but does not move the VM to a different host. This action does not address the maintenance notification requirement to relocate the VM.

Incorrect Options:

A. Yes
This option is incorrect because Update management is for patching, not for host relocation. The VM remains on the same physical infrastructure.

Reference:

Microsoft Learn: Update Management in Azure Automation

Microsoft Learn: Redeploy virtual machine to new Azure host node

You have an Azure virtual machine named VM1.

You use Azure Backup to create a backup of VM1 named Backup1. After creating Backup1, you perform the following changes to VM1:

Modify the size of VM1.

Copy a file named Budget.xls to a folder named Data.

Reset the password for the built-in administrator account.

Add a data disk to VM1.

An administrator uses the Replace existing option to restore VM1 from Backup1.

You need to ensure that all the changes to VM1 are restored.

Which change should you perform again?

A. Modify the size of VM1.

B. Add a data disk.

C. Reset the password for the built-in administrator account.

D. Copy Budget.xls to Data.

D.   Copy Budget.xls to Data.

Explanation:
When restoring a VM using the "Replace existing" option, the entire VM is replaced with the state captured in the backup. All changes made after the backup are lost, including files, configurations, and disks.

Correct Option:

D. Copy Budget.xls to Data.
The file Budget.xls was copied after Backup1 was created. When restoring from Backup1, this file is lost because the VM is reverted to its state at backup time. After the restore completes, the file must be copied again.

Incorrect Options:

A. Modify the size of VM1.
VM size is a configuration setting that is also reverted during a replace existing restore. The VM size will be restored to what it was at backup time and must be modified again.

B. Add a data disk.
Any data disk added after the backup is not restored and may need to be re-added or recreated. However, data on that disk would also be lost.

C. Reset the password for the built-in administrator account.
Password changes are reverted during restore. The password will return to what it was at backup time and would need to be reset again.

Reference:

Microsoft Learn: Restore an Azure VM with Azure Backup

Microsoft Learn: Replace existing VM restore option

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.
You need to specify which resource type to monitor. What should you specify?

A. metric alert

B. Azure Log Analytics workspace

C. virtual machine

D. virtual machine extension

B.   Azure Log Analytics workspace

Azure Monitor can collect data directly from your Azure virtual machines into a Log Analytics workspace for analysis of details and correlations. Installing the Log Analytics VM extension for Windows and Linux allows Azure Monitor to collect data from your Azure VMs.
Azure Log Analytics workspace is also used for on-premises computers monitored by System Center Operations Manager.

Reference:
https://docs.microsoft.com/en-us/azure/azure-monitor/learn/quick-collect-azurevm

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 Overview blade, you move the virtual machine to a different resource group.

Does this meet the goal?

A. Yes

B. No

B.   No

Explanation:
Moving a virtual machine to a different resource group does not change its physical host or location. It only changes the management container and does not affect the underlying infrastructure where the VM runs.

Correct Option:

B. No
Moving VM1 to a different resource group does not move the virtual machine to a different host. The VM remains on the same physical host in the same datacenter. This action does not address the maintenance notification requirement to move the VM to a different host immediately.

Incorrect Options:

A. Yes
This option is incorrect because resource group moves are for changing management and billing ownership, not for relocating VMs to different physical hosts. The VM continues running on the same infrastructure.

Reference:

Microsoft Learn: Move resources to a new resource group or subscription

Microsoft Learn: Redeploy virtual machine to new Azure host node




Explanation:
The custom role "role1" currently lacks permissions for virtual machine login (Microsoft.Compute/virtualMachines/login/action). To enable sign-in, you need to add this action. To restrict assignment to a specific resource group, you modify the assignableScopes.

Correct Options:

First statement: To ensure that users can sign in to virtual machines that are assigned role1, modify the actions section.
The role definition currently includes "Microsoft.Compute/virtualMachines/*", which grants management permissions but does NOT include the login action. To allow users to sign in to VMs, you need to add "Microsoft.Compute/virtualMachines/login/action" to the actions array.

Second statement: To ensure that role1 can be assigned only to a resource group named RG1, modify the assignableScopes section.
The assignableScopes array currently contains the subscription ID. To restrict assignment to only RG1, you change this to "/subscriptions/3d62e09d5-c714-4440-956e-d6342086c2d7/resourceGroups/RG1". This limits the role's assignable scope to the specific resource group.

Incorrect Options:

roletype: This defines the role type (built-in or custom) and does not affect login permissions or assignable scopes.

notActions: Used to exclude specific actions from permissions, not to add login capability.

dataActions: Used for data plane operations (e.g., storage data), not for VM sign-in.

Reference:

Microsoft Learn: Azure custom roles

Microsoft Learn: Virtual Machine User Login role

Microsoft Learn: Assignable scopes in custom roles

Page 15 out of 45 Pages