Courseiva

AZ-104 (AZ-104) — Questions 751825

1049 questions total · 14pages · All types, answers revealed

Page 10

Page 11 of 14

Page 12
751
MCQmedium

A managed data disk on a VM was deleted by mistake. You have a snapshot from before the deletion and want to restore the data with minimal impact to the VM's operating system disk. What should you do?

A.Create a new managed disk from the snapshot and attach it to the VM
B.Redeploy the VM from the marketplace image
C.Convert the snapshot directly into an OS disk and boot from it
D.Resize the VM to a larger size and the deleted disk will reappear
AnswerA

A managed-disk snapshot is a point-in-time read-only copy of the original data disk. To recover the deleted data disk, you create a new managed disk from that snapshot (specifying the same or larger size and the appropriate storage type) and then attach it to the VM as a data disk. This restores all file contents without re-creating the VM and leaves the existing OS disk untouched, so the VM's identity, name, and attached resources remain consistent.

Why this answer

You can create a new managed disk from the snapshot and attach it as a data disk to the existing VM. This restores the data without affecting the OS disk or requiring a VM redeployment, minimizing downtime and impact.

Exam trap

The trap here is that candidates may confuse snapshots with OS disk recovery options, incorrectly assuming a data disk snapshot can be used to boot the VM, or that resizing or redeploying the VM will restore deleted disks.

Why the other options are wrong

B

Redeploying the VM from a marketplace image would replace the entire OS disk with a fresh image, losing all data and customizations, and does not restore the deleted data disk.

C

Converting a snapshot into an OS disk and booting from it would replace the VM's operating system disk, causing significant disruption and potential data loss on the OS disk, whereas the question asks to restore a data disk with minimal impact to the OS disk.

D

Resizing a VM does not recover deleted disks; disks are independent resources and must be recreated from snapshots or backups.

When would these options actually be correct?

B

If the VM's OS disk is corrupted or compromised and you need to quickly restore the VM to its original state without preserving any data or customizations, redeploying from the marketplace image is a valid option.

C

If the VM's OS disk itself was deleted and you have a snapshot of the OS disk, you could create a managed disk from that snapshot and attach it as the OS disk to a new VM, or use it to replace the existing OS disk (with downtime).

D

If a VM is experiencing performance issues due to insufficient disk throughput, resizing the VM to a larger size can increase the disk performance limits, potentially resolving the issue.

Why candidates pick the wrong answer

B

Candidates may think redeploying is a quick fix to restore the VM, not realizing it wipes the OS disk and does not recover the deleted data disk.

C

Candidates may think that since snapshots can create disks, directly using a snapshot as an OS disk is a quick fix, overlooking that the snapshot is from a data disk and that booting from it would replace the OS disk, causing major disruption.

D

Candidates may mistakenly think that disk resizing or VM operations can restore deleted disks, confusing disk management with VM lifecycle operations.

752
MCQmedium

Your company has separate subscriptions for development, test, and production. Security wants one baseline policy and one RBAC assignment to apply automatically to every production subscription now and in the future. What should you use?

A.A resource group that contains all production resources.
B.A management group above the production subscriptions.
C.A tag applied to each production resource.
D.A single production subscription with multiple resource groups.
AnswerB

A management group above the production subscriptions is the correct parent scope because Azure management groups are designed to organize subscriptions into a hierarchy and deliver governance through inheritance. By placing a management group above all production subscriptions, RBAC role assignments and Azure Policy definitions applied at that group are automatically inherited by every child subscription, enabling consistent cross-subscription management without duplication. This scope supports multiple production subscriptions and provides a natural boundary for organizational structure, such as dev and production environments.

Why this answer

B is correct because management groups allow you to apply Azure Policy and RBAC assignments hierarchically. By placing all production subscriptions under a single management group, any policy or role assignment at that level will be inherited by every current and future production subscription, meeting the requirement for automatic application without manual intervention.

Exam trap

The trap here is that candidates often confuse tags with policy enforcement, thinking tags can automatically apply governance, when in fact tags are only metadata and require Azure Policy to enforce tag inheritance or compliance.

Why the other options are wrong

A

A resource group is not a scope for policy or RBAC assignment that applies automatically to multiple subscriptions; it only applies to resources within that specific resource group, not to all production subscriptions.

C

Tags are not inherited by default and require explicit assignment to each resource; they cannot automatically apply a baseline policy or RBAC assignment to all production subscriptions now and in the future.

D

A single production subscription with multiple resource groups does not automatically apply policies and RBAC assignments to future production subscriptions; it only covers one subscription, not multiple separate subscriptions.

When would these options actually be correct?

A

If the question asked for applying a policy or RBAC assignment to all resources within a single production subscription, and the requirement was to manage resources collectively, then a resource group containing all production resources could be the correct scope.

C

A question requiring cost tracking or resource grouping across subscriptions, where the goal is to identify resources by environment (e.g., 'production') for reporting or automation, and the policy/RBAC is applied at the resource level via tag-based conditions.

D

If the question required managing resources within a single subscription and applying a baseline policy and RBAC assignment to all resources in that subscription, using a single subscription with multiple resource groups would be appropriate, as policies and assignments can be applied at the subscription level.

Why candidates pick the wrong answer

A

Candidates may think a resource group can aggregate resources across subscriptions for policy application, but resource groups are subscription-scoped and cannot span multiple subscriptions.

C

Candidates may think tags can enforce policies or RBAC universally, or they confuse tagging with inheritance mechanisms like management groups.

D

Candidates may think that consolidating all production resources into one subscription simplifies management, overlooking the requirement to automatically cover future separate production subscriptions.

753
Multi-Selectmedium

Which three of the following statements about Azure App Service plans are correct? (Choose three.)

Select 3 answers
.Apps in the same App Service plan share the same compute resources, even if they are in different resource groups.
.You can scale out an App Service plan independently of the apps running within it.
.The Isolated tier provides network isolation and is designed for apps that require high security and scaling.
.Changing the pricing tier of an App Service plan always causes downtime for all apps in the plan.
.An App Service plan can only contain apps from the same region and the same resource group.
.The Free and Shared tiers support custom domain names and SSL binding without additional cost.

Why this answer

Apps in the same App Service plan share the same compute resources (VMs, memory, CPU) because the plan defines the underlying infrastructure. This is true even if the apps are in different resource groups, as the plan is the boundary for resource allocation, not the resource group.

Exam trap

The trap here is that candidates often assume apps must be in the same resource group to share resources, but Azure App Service plans are resource-group-agnostic for compute sharing, and they also mistakenly think Free/Shared tiers include custom domains and SSL, which they do not.

754
MCQmedium

A VM in a subnet cannot connect to another VM on TCP 1433. The administrator wants to confirm whether an NSG rule is blocking the flow and which rule is responsible. Which Network Watcher feature should be used?

A.Connection troubleshoot
B.IP flow verify
C.Packet capture
D.Effective routes
AnswerB

IP flow verify is designed to test whether a specific packet would be allowed or denied by the effective NSG rules on a VM NIC. It helps the administrator identify the rule name and direction that controls the flow. That makes it the best choice when the question is specifically about an NSG decision on a given source, destination, protocol, and port.

Why this answer

B is correct because IP flow verify is the Network Watcher feature specifically designed to test whether traffic is allowed or denied to or from a virtual machine. It checks the security rules (NSG and ASG) and returns which rule is blocking the flow, including the direction and priority. For a TCP 1433 connection failure, this tool directly identifies the blocking NSG rule.

Exam trap

The trap here is that candidates often confuse Connection troubleshoot (which tests end-to-end connectivity but does not identify the blocking rule) with IP flow verify, which is the precise tool for rule-level diagnosis.

Why the other options are wrong

A

Connection troubleshoot checks connectivity issues like latency, packet loss, and path hops, but it does not identify which specific NSG rule is blocking traffic. IP flow verify is designed to test whether traffic is allowed or denied by NSG rules and to pinpoint the exact rule responsible.

C

Packet capture captures network traffic for analysis but does not directly identify which NSG rule is blocking traffic; it requires manual inspection of captured data and does not provide a rule-level verdict.

D

Effective routes shows the effective routes for a VM, not NSG rules. It cannot identify which NSG rule is blocking traffic on TCP 1433.

When would these options actually be correct?

A

Connection troubleshoot would be correct if the question asked to diagnose end-to-end connectivity issues such as high latency, packet loss, or routing problems between two VMs, rather than identifying which NSG rule is blocking a specific TCP port.

C

When an administrator needs to capture network packets to analyze application-level protocol issues or to perform deep packet inspection for troubleshooting performance problems, such as identifying malformed packets or retransmissions.

D

When troubleshooting why a VM cannot reach a destination due to routing issues, such as missing or incorrect user-defined routes (UDRs), or when verifying the next hop for traffic.

Why candidates pick the wrong answer

A

Candidates may confuse 'connection troubleshoot' with verifying NSG rules because both involve testing network connectivity, but connection troubleshoot focuses on broader network performance issues rather than rule-level analysis.

C

Candidates may think packet capture can reveal blocked traffic by examining captured packets, but they overlook that IP flow verify is specifically designed to test and identify NSG rule effects without capturing full traffic.

D

Candidates may confuse effective routes with NSG rule verification, thinking that route tables also control traffic flow like NSGs.

755
MCQhard

A platform team must enforce two governance rules across every current and future subscription under a management group: resources must include an Environment tag, and only East US or West US may be used for deployment. They want one compliance view for both rules and a way to correct missing tags on existing resources where supported. What should they assign?

A.Assign two separate policies manually to each subscription and skip remediation.
B.Assign an initiative at the management group scope that contains the tag and allowed-location policies, then remediate the tag policy.
C.Assign Contributor to the management group so administrators can fix any noncompliant resource manually.
D.Apply a CanNotDelete lock at the management group scope to prevent drift.
AnswerB

An initiative groups multiple policies into one assignment, which gives the team a single compliance view and consistent enforcement across all current and future subscriptions under the management group. The tag policy can then be remediated for existing resources where the effect supports it, while the location rule blocks future noncompliant deployments.

Why this answer

An initiative (policy set) at the management group scope enforces both the required tag and allowed-location rules across all current and future subscriptions in a single compliance view. The tag policy can be remediated using a remediation task with a managed identity to automatically add missing tags on existing resources where supported (e.g., via modify effect). This approach centralizes governance without manual per-subscription assignment.

Exam trap

The trap here is that candidates often confuse assigning individual policies per subscription (Option A) with using an initiative at the management group scope, missing the requirement for a single compliance view and automatic future subscription coverage.

Why the other options are wrong

A

Assigning two separate policies manually to each subscription is inefficient and does not provide a single compliance view for both rules. It also skips remediation, so missing tags on existing resources would not be corrected.

C

Assigning Contributor at the management group scope grants broad permissions to modify resources but does not enforce governance rules or provide a compliance view; it relies on manual fixes and does not automate compliance or remediation.

D

A CanNotDelete lock prevents resource deletion but does not enforce tagging or allowed locations, and it cannot provide a compliance view or remediate missing tags.

When would these options actually be correct?

A

This option would be correct if the question required applying two unrelated policies to individual subscriptions without needing a unified compliance view or automatic remediation, and manual per-subscription assignment was acceptable.

C

This option would be correct if the question asked for a way to allow administrators to manually fix noncompliant resources without automated enforcement, such as in a scenario where governance is advisory and requires human intervention.

D

A question asks for a method to prevent accidental deletion of critical resources across a management group, with no requirement for governance rules or compliance monitoring.

Why candidates pick the wrong answer

A

Candidates may think that assigning policies individually is simpler or more straightforward, not realizing that an initiative at the management group scope provides centralized management and a single compliance dashboard.

C

Candidates may think Contributor role is sufficient to enforce rules because it allows manual correction, overlooking the need for automated enforcement and compliance reporting.

D

Candidates may confuse locks with governance enforcement, thinking that preventing deletion also ensures compliance, or they may overestimate the scope of locks.

756
Multi-Selectmedium

A web tier and API tier run in different subnets. The API subnet NSG currently has Deny-8443 from Any at priority 200 and Allow-8443-WebToApi from ASG-Web to ASG-Api at priority 300. Web requests on TCP 8443 are failing. Which two changes should the administrator make? Select two.

Select 2 answers
A.Move the allow rule to a higher priority number than 200.
B.Move the allow rule to a lower priority number than 200.
C.Ensure the web NICs are added to ASG-Web and the API NICs are added to ASG-Api.
D.Change the rule protocol from TCP to Any.
E.Attach a route table to the API subnet to override the deny behavior.
AnswersB, C

NSG rules are processed in ascending priority order, with lower numbers taking precedence. To allow traffic that is currently blocked by a deny rule at priority 200, the allow rule must be assigned a priority number lower than 200—for example, 100. Because NSG processing stops at the first matching rule, the allow rule at 100 will be evaluated and applied before the deny rule is ever reached, permitting the traffic.

Why this answer

B is correct because NSG rules are evaluated in priority order, with lower numbers having higher priority. The Deny-8443 rule at priority 200 is evaluated before the Allow-8443-WebToApi rule at priority 300, so the deny rule blocks the traffic. Moving the allow rule to a lower priority number (e.g., 100) ensures it is evaluated first, allowing the traffic.

C is correct because the allow rule uses application security groups (ASGs); if the web and API NICs are not assigned to the respective ASGs, the rule will not match any traffic, effectively making it a no-op.

Exam trap

The trap here is that candidates often forget that NSG rules are evaluated in priority order (lower number = higher priority) and that application security groups require explicit NIC assignment—they may assume the ASG rule works automatically or that changing the protocol or adding a route table can bypass a deny rule.

Why the other options are wrong

A

In Azure NSGs, rules are processed in priority order with lower numbers evaluated first. A deny rule at priority 200 blocks traffic before the allow rule at priority 300 is evaluated, so moving the allow rule to a higher priority number (e.g., 400) would still be evaluated after the deny and thus never match.

D

The Deny-8443 rule at priority 200 blocks all traffic on TCP 8443, and the Allow-8443-WebToApi rule at priority 300 is evaluated after the deny, so it never applies. Changing the protocol to Any does not resolve the priority order issue; the deny rule still blocks the traffic regardless of protocol.

E

Route tables control traffic routing between subnets, not NSG rule evaluation. The deny rule at priority 200 is blocking traffic before the allow rule at priority 300 is evaluated, so a route table cannot override NSG deny behavior.

When would these options actually be correct?

A

If the question described a scenario where the deny rule was at a lower priority (e.g., 300) and the allow rule at a higher priority (e.g., 200), moving the allow rule to a higher priority number (e.g., 400) would be correct to ensure the deny rule takes precedence.

D

If the Deny-8443 rule had a protocol-specific condition (e.g., only blocking TCP) and the traffic was using a different protocol (e.g., UDP), changing the allow rule to Any would permit the traffic. For example, if the question stated that web requests were failing on UDP 8443 and the deny rule only blocked TCP, then changing the allow rule to Any would be correct.

E

If the question described asymmetric routing or forced tunneling where traffic from the web tier to the API tier was being sent to a network virtual appliance (NVA) that dropped the packets, then adding a route table to direct traffic directly between subnets could resolve the issue.

Why candidates pick the wrong answer

A

Candidates may mistakenly think that a higher priority number means higher precedence, or they may confuse the numeric priority scale (lower number = higher priority) with common ranking systems where higher numbers indicate greater importance.

D

Candidates may think that if the deny rule blocks TCP, changing the allow rule to Any would bypass the protocol restriction, but they overlook that the priority order still prevents the allow rule from being evaluated.

E

Candidates may confuse NSG rules with route tables, thinking that route tables can override NSG deny rules, or they may overcomplicate the problem by assuming a routing issue when it is actually a rule priority problem.

757
MCQmedium

A branch office with a fixed public IP needs encrypted access to private Azure virtual machines and internal services in a VNet. Traffic must travel across the public internet in an encrypted tunnel, and the connection should use a route-based design. What should the administrator deploy in Azure?

A.An Azure Virtual Network peering connection to the branch office network.
B.A VPN gateway with a site-to-site connection.
C.A service endpoint on the target subnet.
D.An Azure private endpoint for the virtual machines.
AnswerB

A site-to-site VPN gateway creates an encrypted tunnel from the branch office to Azure over the public internet. Because the branch has a static public IP and the requirement calls for route-based connectivity, this is the correct Azure networking service. Once deployed, the gateway can provide private access to VMs and internal services in the virtual network without exposing them directly to the internet.

Why this answer

A VPN gateway with a site-to-site connection is the correct choice because it establishes an encrypted IPSec tunnel over the public internet between the branch office's fixed public IP and Azure, using a route-based (IKEv2) configuration. This allows the branch office to securely access private Azure VMs and internal services in the VNet, meeting the requirement for encrypted traffic across the internet.

Exam trap

The trap here is that candidates often confuse Azure Virtual Network peering (which is for VNet-to-VNet connectivity within Azure) with site-to-site VPN (which is for on-premises to Azure connectivity), leading them to select option A incorrectly.

Why the other options are wrong

A

VNet peering connects two Azure virtual networks, not an on-premises network. It does not provide encrypted tunnels over the public internet or support site-to-site VPN connections.

C

Service endpoints provide secure connectivity to Azure services over the Microsoft backbone network, not encrypted tunnels over the public internet. They do not support route-based VPN designs or encrypted site-to-site connections.

D

Azure Private Endpoint provides private connectivity to Azure services within a VNet, not encrypted site-to-site connectivity from an on-premises network over the public internet.

When would these options actually be correct?

A

When connecting two Azure VNets in the same or different regions for private, high-bandwidth connectivity without traversing the internet, VNet peering is the correct choice.

C

A question requiring secure, private access from a VNet to Azure PaaS services (e.g., Azure Storage or SQL Database) without traversing the public internet, using the Microsoft backbone network, and where the client is within the same Azure region or a peered VNet.

D

An administrator needs to securely access an Azure PaaS service (e.g., Azure SQL Database) from a VNet without exposing it to the public internet, using a private IP address within the VNet.

Why candidates pick the wrong answer

A

Candidates may confuse VNet peering with site-to-site VPN because both provide connectivity between networks, but peering is for Azure-to-Azure only.

C

Candidates may confuse service endpoints with VPN gateways because both provide 'secure' access, but service endpoints are for PaaS services, not for on-premises network connectivity.

D

Candidates may confuse 'private endpoint' with 'private connection' and assume it can replace a VPN for on-premises access, not realizing it only works within Azure and requires additional connectivity like ExpressRoute or VPN for hybrid scenarios.

758
Multi-Selecthard

A subscription already grants Contributor to an application team. The organization wants to prevent deployments in unsupported Azure regions and ensure every new resource has an Environment tag. Which two controls should be implemented with Azure Policy rather than RBAC? Select two.

Select 2 answers
A.Assign an allowed-locations policy at the management group or subscription scope.
B.Create a custom RBAC role that blocks resources deployed outside approved regions.
C.Assign a policy that enforces the Environment tag on new resources.
D.Add a CanNotDelete lock to every resource group.
E.Grant User Access Administrator to the deployment team.
AnswersA, C

An allowed-locations policy assignment at the management group or subscription scope is correct because Azure Policy evaluates the location property of each resource during deployment and can deny any request that specifies a non-approved region. Policy inheritance means the restriction applies to all child subscriptions and resource groups without requiring additional assignments, and it does not depend on the contributor role assignment the team already has. Because the team is a Contributor, they can create resources anywhere within the subscription; only a policy can intercept and block that action based on the region.

Why this answer

Azure Policy can enforce an 'allowed-locations' policy at the management group or subscription scope to restrict resource deployment to only approved Azure regions. This is a governance control that operates declaratively, evaluating resource properties against policy rules before or after creation, unlike RBAC which controls identity-based permissions. Option C is correct because Azure Policy can enforce the 'Environment' tag on new resources using a 'require a tag and its value' policy, ensuring compliance without modifying role assignments.

Exam trap

The trap here is that candidates often confuse RBAC (identity-based permissions) with Azure Policy (resource property enforcement), mistakenly thinking a custom RBAC role can restrict regions or tags, when in fact RBAC only controls actions like 'write' or 'delete' and cannot evaluate resource properties like location or tags.

Why the other options are wrong

B

Azure Policy, not RBAC, is the correct tool to enforce allowed locations. A custom RBAC role can deny deployment actions, but it cannot prevent resource creation by other services or at the subscription level, and it doesn't integrate with Azure Policy's compliance reporting.

D

CanNotDelete locks prevent resource deletion but do not restrict deployments to approved regions or enforce tagging, which are the specific requirements in the question.

E

Granting User Access Administrator allows the team to manage role assignments, which is not needed for preventing deployments in unsupported regions or enforcing tags; Azure Policy handles these controls declaratively without granting additional RBAC permissions.

When would these options actually be correct?

B

A question where the organization wants to restrict deployment actions for a specific team (e.g., deny create/update operations on resources outside approved regions) and the solution must use role-based access control, not policy. For example: 'You need to prevent a specific user group from deploying resources in unapproved regions using a custom role.'

D

In a scenario where the organization wants to prevent accidental deletion of critical resources, such as production databases, a CanNotDelete lock should be applied at the resource group level to protect against deletion by users with Contributor permissions.

E

In a scenario where a team needs to manage role assignments for other users (e.g., delegate role administration) but should not have full access to resources, User Access Administrator would be correct.

Why candidates pick the wrong answer

B

Candidates may think RBAC can enforce location restrictions because RBAC controls permissions, and a custom role can deny actions. They might overlook that Azure Policy is designed for such guardrails and provides broader enforcement and compliance features.

D

Candidates may confuse resource locks with policy controls, thinking that locks can restrict deployments or enforce compliance, when locks only protect against deletion or modification.

E

Candidates may think that controlling deployments requires administrative permissions, and User Access Administrator seems powerful enough to enforce restrictions, but they overlook that Azure Policy provides governance without granting elevated RBAC roles.

759
MCQmedium

A business-critical storage account must keep data available if one availability zone fails in the primary region. It must also keep a readable copy in the paired region so administrators can verify data during disaster recovery testing before failover. Which redundancy option should be selected?

A.LRS, because it stores three copies in one datacenter and is the lowest-cost option.
B.ZRS, because it replicates data across zones in the same region but not to another region.
C.GRS, because it replicates to the paired region and supports a secondary copy for recovery.
D.RA-GZRS, because it provides zone redundancy in the primary region and read access to the secondary region.
AnswerD

RA-GZRS combines zone-redundant storage in the primary region with geo-replication to the paired region, and it also enables read access to the secondary endpoint. That combination satisfies both requirements: survive a zone failure and allow administrators to validate replicated data before a planned or unplanned failover.

Why this answer

D is correct because RA-GZRS (Read-Access Geo-Zone-Redundant Storage) provides synchronous replication across three Azure availability zones within the primary region, ensuring data remains available if one zone fails. It also asynchronously replicates data to the paired region, where a read-only copy is available for verification during disaster recovery testing without requiring a failover.

Exam trap

The trap here is that candidates often confuse GRS with RA-GZRS, assuming geo-replication alone provides both zone redundancy and readable secondary access, but GRS does not offer zone-level protection within the primary region and its secondary copy is not readable until a failover is initiated.

Why the other options are wrong

A

LRS does not protect against an availability zone failure because it stores data within a single datacenter, not across zones. It also does not provide a readable copy in the paired region.

B

ZRS replicates data across availability zones within a single region, but does not provide a readable copy in the paired region for disaster recovery testing, which is required by the question.

C

GRS does not provide zone redundancy in the primary region; it only replicates to a single physical location in the primary region. The question requires availability if one availability zone fails in the primary region, which GRS cannot guarantee.

When would these options actually be correct?

A

A scenario where the requirement is only to protect against local hardware failures within a single datacenter, and cost minimization is the primary concern, with no need for zone or regional redundancy.

B

A scenario requiring high availability within a single region without the need for cross-region replication, such as an application that must tolerate zone failures but does not require a secondary readable copy for DR testing.

C

A scenario where the requirement is to have geo-redundancy for disaster recovery without needing zone-level resilience in the primary region, and where read access to the secondary region is not required (e.g., only failover is needed).

Why candidates pick the wrong answer

A

Candidates may choose LRS because it is the cheapest option and they overlook the specific requirement for zone failure protection and readable secondary copy.

B

Candidates may confuse zone redundancy (ZRS) with geo-redundancy (GRS/GZRS) or overlook the specific requirement for a readable copy in the paired region, assuming ZRS alone meets all availability needs.

C

Candidates may confuse GRS with RA-GZRS, thinking that GRS also provides zone redundancy, or they may overlook the specific requirement for zone failure tolerance in the primary region.

760
MCQeasy

Based on the exhibit, which identity approach should the administrator use so both VMs can share the same access without managing secrets or recreating role assignments when a VM is replaced?

A.A separate system-assigned managed identity on each VM.
B.A single user-assigned managed identity attached to both VMs.
C.An administrator username and password stored in the script.
D.A shared access signature assigned to the virtual network.
AnswerB

A user-assigned managed identity is independent of any one VM and can be attached to multiple resources. That makes it ideal when several VMs need the same permissions and the access must continue even if one VM is deleted or rebuilt.

Why this answer

A user-assigned managed identity is an independent Azure resource that can be attached to multiple VMs, allowing them to share the same identity for accessing Azure resources. This approach eliminates the need to manage secrets (like passwords or keys) and avoids recreating role assignments when a VM is replaced, because the identity persists independently of the VM lifecycle.

Exam trap

The trap here is that candidates often confuse system-assigned and user-assigned managed identities, incorrectly assuming that a system-assigned identity can be shared across VMs or that it persists after VM deletion, when in fact it is deleted with the VM.

Why the other options are wrong

A

A separate system-assigned managed identity on each VM would require managing two identities and recreating role assignments for each new VM, failing to meet the requirement of sharing the same access without managing secrets or recreating role assignments when a VM is replaced.

C

Storing an administrator username and password in a script introduces secrets management overhead and security risks, and does not eliminate the need to update credentials or role assignments when a VM is replaced.

D

A shared access signature (SAS) assigned to the virtual network provides delegated access to storage resources, not identity-based access to VMs. It cannot be used to grant VMs access to Azure resources without managing secrets, and it does not persist across VM replacements without manual updates.

When would these options actually be correct?

A

This option would be correct if the question required each VM to have its own unique identity for independent access control, such as when each VM needs distinct permissions to different resources and there is no need to share access or simplify replacement.

C

A question that asks for the simplest authentication method for a legacy application that does not support managed identities, where the application runs on a single VM and credentials are rotated manually via Azure Key Vault.

D

This option would be correct in a scenario where the administrator needs to grant a specific set of users or applications time-limited access to a storage account (e.g., blob or file share) from a defined IP range or virtual network, without requiring full storage account keys. For example, allowing a reporting tool running on a VM to download data from a storage container for a limited period.

Why candidates pick the wrong answer

A

Candidates may think system-assigned managed identities are simpler because they are automatically created with the VM, overlooking that they are tied to the VM lifecycle and require separate role assignments per VM.

C

Candidates may think that using a stored admin credential is a straightforward way to share access between VMs, overlooking the security and maintenance drawbacks compared to managed identities.

D

Candidates may confuse SAS with managed identities because both can provide secure access without hardcoding credentials. They might think a SAS scoped to a virtual network can be used for VM identity, not realizing SAS is for storage access delegation, not VM authentication to Azure services.

761
MCQhard

Users on the internet cannot access an HTTPS website hosted on VM-Web01. The VM has a public IP address, the web service is running, and the guest OS firewall allows TCP 443. What is the most likely Azure-side issue?

A.The NSG does not allow inbound TCP 443
B.The VM uses managed disks
C.Azure Backup is not enabled
D.The storage account uses the Cool tier
AnswerA

An NSG is a stateful packet filter that denies inbound traffic by default unless an explicit rule permits it. Without an inbound allow rule for TCP 443, the VM's network interface or its subnet discards the TCP handshake packets from the internet, so HTTPS sessions never reach the web server even if the server is healthy. You must add a rule with source 'Internet' or 0.0.0.0/0, destination port 443, and action Allow to enable inbound HTTPS.

Why this answer

The most likely Azure-side issue is that the Network Security Group (NSG) associated with the VM's subnet or NIC does not have an inbound rule allowing TCP 443. Even if the guest OS firewall permits HTTPS and the web service is running, the NSG acts as a distributed firewall that filters traffic at the Azure network boundary. Without an explicit inbound security rule for TCP 443, all HTTPS traffic from the internet is dropped before reaching the VM.

Exam trap

The trap here is that candidates often assume that because the guest OS firewall allows the port and the web service is running, the VM is fully accessible, overlooking the fact that Azure's NSG is an additional, mandatory layer of network filtering that must also permit the traffic.

Why the other options are wrong

B

Managed disks are a storage configuration for VMs and do not affect network access or HTTPS connectivity. The issue is about inbound traffic, which is controlled by NSGs, not disk type.

D

The storage account Cool tier affects blob storage costs and access latency, not network connectivity to a VM's HTTPS endpoint. The issue is about inbound traffic to a VM, which is controlled by NSG rules, not storage tier.

When would these options actually be correct?

B

In a scenario where a VM fails to start or experiences performance issues due to disk constraints, and the question asks for a likely cause related to storage, 'The VM uses managed disks' could be correct if the exam expects you to identify that unmanaged disks (or misconfigured managed disks) are causing the problem.

D

A question asks why an Azure web application using blob storage for static assets experiences high latency for infrequently accessed files. The correct answer would be that the storage account uses the Cool tier, which has lower cost but higher access latency compared to Hot tier.

Why candidates pick the wrong answer

B

Candidates may confuse managed disks with network-related components or think that disk type impacts public access, not realizing that NSGs are the primary Azure firewall for VM traffic.

D

Candidates may confuse storage tiers with performance tiers or mistakenly think that storage configuration impacts VM network access, especially when the question involves a web service that might use storage.

762
MCQeasy

Based on the exhibit, a policy assigned at the subscription denies storage accounts that allow public network access. One existing storage account in RG-Legacy must remain publicly reachable for 30 days while a migration is completed. What should the administrator use?

A.Create a policy exemption for stlegacy01 at the resource scope.
B.Remove the policy assignment from the subscription until the migration finishes.
C.Change the policy effect from Deny to Audit.
D.Move the legacy storage account to a separate subscription and assign the policy there.
AnswerA

A policy exemption is the correct tool when one known resource must temporarily be excluded from a policy assignment. It preserves the policy for everything else while documenting the exception for stlegacy01. This is ideal for a time-bound migration because it avoids weakening the policy across the subscription.

Why this answer

A policy exemption at the resource scope is the correct approach because it allows the administrator to selectively exclude the specific storage account (stlegacy01) from the subscription-level policy that denies public network access. This exemption can be configured with an expiration date of 30 days, ensuring the legacy account remains publicly reachable during the migration while the policy continues to apply to all other resources. Policy exemptions are designed for exactly this scenario—temporary exceptions for compliance or migration needs—without altering the policy definition or assignment.

Exam trap

The trap here is that candidates often confuse policy exemptions with policy exclusions (which are set at assignment scope and apply to entire resource groups or subscriptions), leading them to think they must modify the assignment or move resources instead of using the precise exemption mechanism designed for temporary exceptions.

Why the other options are wrong

B

Removing the policy assignment would disable the deny effect for all resources in the subscription, including those that should remain protected, violating the requirement to keep the policy enforced for other storage accounts.

C

Changing the effect to Audit would allow all storage accounts in the subscription to bypass the deny policy, not just the legacy one, violating the requirement to block public access for other accounts.

D

Moving the storage account to a separate subscription would require reconfiguring network access and potentially disrupt the migration. The policy is assigned at the subscription level, so moving to a new subscription would avoid the policy but does not address the requirement to keep the account publicly reachable for 30 days without migration interruption.

When would these options actually be correct?

B

If the question stated that all storage accounts in the subscription need temporary public access for a short migration period, and there is no requirement to maintain the policy for other resources, then removing the assignment until migration finishes would be appropriate.

C

If the question required temporarily allowing all storage accounts to have public access for testing or migration, and the policy was intended to be reverted later, changing the effect to Audit would be appropriate.

D

This option would be correct if the question stated that the legacy storage account must be isolated from the policy permanently, and the migration is not time-sensitive. For example: 'An organization wants to permanently exempt a legacy storage account from a subscription-level policy without creating exemptions, and the account can be moved to a new subscription with minimal downtime.'

Why candidates pick the wrong answer

B

Candidates may think removing the policy is a quick fix to allow public access for the legacy account, overlooking that it also removes protection from other compliant resources.

C

Candidates may think Audit is a softer enforcement that still logs violations, but they overlook that the specific legacy account must remain publicly reachable while others must stay denied.

D

Candidates may think moving to a separate subscription is a clean way to bypass the policy without modifying assignments or exemptions, overlooking the operational overhead and potential disruption during migration.

763
Multi-Selectmedium

A company has 18 subscriptions under a management group named Corp. The audit team needs Reader access to all current and future subscriptions in Corp without creating one assignment per subscription. Which two statements are correct? Select two.

Select 2 answers
A.Assign Reader at the Corp management group scope.
B.Place new subscriptions under the Corp management group so they inherit the assignment.
C.Assign Reader separately at each subscription scope.
D.Assign Reader at one resource group in each subscription.
E.Create a lock on each subscription to provide Reader access.
AnswersA, B

A management group assignment applies to every subscription under that branch, which is the cleanest way to cover current and future subscriptions.

Why this answer

Assigning the Reader role at the Corp management group scope is correct because Azure RBAC allows role assignments to be inherited by all child resources, including all current and future subscriptions under that management group. This eliminates the need to create a separate assignment per subscription, as the single assignment at the management group level applies to all subscriptions within it.

Exam trap

The trap here is that candidates may confuse Azure RBAC role assignments with Azure Policy or locks, thinking that a lock can grant permissions, or they may overlook the inheritance behavior of management groups and attempt to assign roles at a lower scope unnecessarily.

Why the other options are wrong

C

Assigning Reader at each subscription scope would require creating one assignment per subscription, which contradicts the requirement to avoid creating one assignment per subscription. It also does not cover future subscriptions automatically.

D

Assigning Reader at one resource group per subscription does not grant access to all resources in the subscription, only to that specific resource group. The requirement is for Reader access to all current and future subscriptions, not just a single resource group per subscription.

E

Locks are used to prevent accidental deletion or modification of resources, not to grant access. A lock does not provide Reader permissions; it only restricts operations regardless of the user's role.

When would these options actually be correct?

C

If the question required granting Reader access only to specific existing subscriptions (not all current and future) and there was no management group hierarchy, assigning Reader at each subscription scope would be appropriate.

D

If the requirement were to grant Reader access only to a specific resource group within each subscription (e.g., for auditing a particular project), then assigning Reader at that resource group scope would be correct. The question would specify 'resource group' instead of 'subscription'.

E

If the question asked for a method to prevent accidental deletion of resources across all subscriptions without changing role assignments, creating a lock (e.g., CanNotDelete) at each subscription scope would be correct.

Why candidates pick the wrong answer

C

Candidates may think that assigning at each subscription is the standard way to grant access, overlooking the efficiency of management group inheritance for multiple subscriptions.

D

Candidates may think that assigning at a resource group is a way to limit scope while still covering multiple subscriptions, but they overlook that it does not provide access to the entire subscription as required.

E

Candidates may confuse locks with role assignments, thinking that a lock can grant read-only access because it prevents changes, but locks do not grant any access—they only restrict operations.

764
MCQeasy

After a Windows VM is created, the administrator wants IIS installed and a configuration script run automatically without signing in to the server. Which Azure feature should be used?

A.An availability set
B.A virtual machine extension
C.An Azure Policy assignment
D.A network security group rule
AnswerB

A VM extension is designed to run additional configuration tasks on a VM after deployment. For example, the Custom Script Extension can install software, copy files, or execute scripts without an interactive logon. This directly matches the requirement to automate IIS installation and post-deployment configuration.

Why this answer

A virtual machine extension (such as the Custom Script Extension for Windows) allows you to deploy and run scripts on an Azure VM after provisioning, without requiring any interactive sign-in. This is the correct Azure feature to automatically install IIS and execute a configuration script as part of the VM deployment or post-deployment automation.

Exam trap

The trap here is that candidates often confuse Azure Policy (which only audits or enforces configurations) with VM extensions (which actually perform software installation and script execution), leading them to select Azure Policy as the automation tool.

Why the other options are wrong

A

An availability set provides high availability for VMs by distributing them across fault and update domains, but it does not automate software installation or configuration after VM creation.

C

Azure Policy assignments enforce compliance rules on resources, but they cannot install software or run scripts on a VM. They are used for governance, not post-deployment configuration.

D

A network security group rule controls inbound/outbound traffic to/from a VM, not the installation or configuration of software like IIS. It cannot run scripts or install applications.

When would these options actually be correct?

A

When the question asks how to ensure a set of VMs remain available during planned or unplanned maintenance, such as 'You need to guarantee that at least one VM is available during updates. Which feature should you use?'

C

An Azure Policy assignment would be correct if the question asked: 'Which Azure feature ensures that all VMs in a subscription are created only in approved regions?' or 'Which feature can automatically tag resources based on their department?'

D

When the question asks how to restrict or allow network traffic to a VM, such as blocking RDP access from the internet or allowing HTTP traffic to a web server, a network security group rule is the correct answer.

Why candidates pick the wrong answer

A

Candidates may confuse availability sets with automation features, thinking they can run scripts or install software as part of the availability set configuration.

C

Candidates may confuse Azure Policy with automation features, thinking it can enforce software installation or configuration scripts as part of compliance, but Policy only audits or denies resource creation/modification.

D

Candidates may confuse network-level security with post-deployment configuration, thinking that a rule could trigger script execution or software installation as part of traffic filtering.

765
MCQhard

A team operates two Azure VMs that both need to call Azure services with the same identity. The VMs are rebuilt frequently, and the identity must continue to work if either VM is deleted and recreated. Which identity should the administrator attach?

A.A system-assigned managed identity on one of the VMs
B.A user-assigned managed identity attached to both VMs
C.A service principal with a client secret stored on each VM
D.A certificate uploaded to each VM and used for Azure sign-in
AnswerB

A user-assigned managed identity is an Azure AD identity that exists independently of any VM. It can be assigned to multiple VMs at once, allowing both VMs to share the same identity and request tokens for the same resources. Because Azure manages the credentials automatically, there are no secrets to store on the VMs, and the identity survives VM deletion or recreation. This directly satisfies the requirement of shared identity without stored credentials.

Why this answer

A user-assigned managed identity is the correct choice because it is a standalone Azure resource that can be attached to multiple VMs. When a VM is deleted and recreated, the identity persists independently and can be reassigned to the new VM, ensuring continuous access to Azure services without credential management.

Exam trap

The trap here is that candidates often confuse system-assigned and user-assigned managed identities, assuming a system-assigned identity can be shared or persist after VM deletion, when in fact only user-assigned identities are decoupled from the VM lifecycle and can be attached to multiple resources.

Why the other options are wrong

A

A system-assigned managed identity is tied to the lifecycle of a single VM. If that VM is deleted, the identity is also deleted, so it cannot persist across VM recreations or be shared with another VM.

C

A service principal with a client secret stored on each VM requires manual secret management and rotation; if a VM is deleted, the secret is lost, and the identity cannot persist across VM recreations without manual intervention.

D

Certificates uploaded to each VM are not managed identities; they require manual rotation and secure storage, and if a VM is deleted and recreated, the certificate must be re-uploaded, breaking the identity continuity.

When would these options actually be correct?

A

A question where only one VM needs an identity, and the VM is never deleted (or the identity is recreated automatically when the VM is recreated), and there is no requirement for the identity to survive VM deletion or be shared.

C

This option would be correct in a scenario where the VMs are long-lived, not frequently rebuilt, and the administrator needs to use the same identity for on-premises or multi-cloud resources that do not support managed identities, requiring explicit credential storage.

D

A question where the requirement is to authenticate to Azure services using a certificate-based service principal, and the VMs are long-lived (not frequently rebuilt), with no need for automatic identity continuity across VM deletion/recreation.

Why candidates pick the wrong answer

A

Candidates may think system-assigned managed identity is simpler and sufficient, overlooking the requirement for identity persistence across VM deletion and sharing between two VMs.

C

Candidates may think a service principal is the standard way to provide an identity for Azure services, and storing the secret on each VM seems straightforward, overlooking the management overhead and lack of resilience to VM deletion.

D

Candidates may think certificates provide a secure, persistent identity that can be reused, but they overlook the operational overhead and lack of automatic lifecycle management compared to managed identities.

766
MCQeasy

Based on the exhibit, which alert type should the administrator create to detect when Azure marks the storage account unhealthy because of a platform issue?

A.Metric alert on account capacity.
B.Resource Health alert.
C.Log search alert against AzureDiagnostics.
D.Autoscale rule based on storage transactions.
AnswerB

Resource Health alerts are intended for platform-level availability problems reported by Azure itself. They are the right fit when the business wants to know that Azure has marked a resource unhealthy or unavailable, rather than watching an application metric or a custom log entry. This directly matches the requirement for platform issue notification on the storage account.

Why this answer

Resource Health alerts are specifically designed to notify administrators when an Azure service or resource becomes unhealthy due to platform issues. In this scenario, the storage account being marked unhealthy by Azure due to a platform issue is exactly the kind of event that a Resource Health alert captures, as it monitors the health status of Azure resources and triggers alerts on state transitions (e.g., from 'Available' to 'Degraded' or 'Unavailable').

Exam trap

The trap here is that candidates often confuse Resource Health alerts with metric alerts or log search alerts, mistakenly thinking that any health-related event can be captured by querying AzureDiagnostics or by setting a metric threshold, when in fact Resource Health alerts are the dedicated mechanism for platform-issue notifications.

Why the other options are wrong

A

A metric alert on account capacity monitors storage usage thresholds, not platform-level health issues. The question specifically asks for detecting when Azure marks the storage account unhealthy due to a platform issue, which requires a Resource Health alert.

C

Log search alerts against AzureDiagnostics require log data to be sent to a Log Analytics workspace, which is not the primary method for detecting platform-level health issues on a storage account. Resource Health alerts directly monitor the health state of Azure resources, including platform issues, without needing diagnostic logs.

D

Autoscale rules adjust resources based on metrics like transactions, but they do not detect or alert on platform-level health issues. The question asks for an alert when Azure marks the storage account unhealthy due to a platform issue, which requires a Resource Health alert, not an autoscale rule.

When would these options actually be correct?

A

A metric alert on account capacity would be correct if the question asked: 'Which alert should be created to notify when the storage account's used capacity exceeds 80%?'

C

A log search alert against AzureDiagnostics would be correct when the question asks to detect a specific storage error (e.g., 503 ServerTimeout) or to analyze historical trends in storage operations, where the alert is based on custom log queries rather than platform health status.

D

An autoscale rule based on storage transactions would be correct in a scenario where the administrator needs to automatically scale out storage resources (e.g., increase throughput or capacity) when transaction volume exceeds a threshold, such as during a traffic spike.

Why candidates pick the wrong answer

A

Candidates may confuse capacity metrics with health status, assuming that unusual capacity changes indicate platform problems, or they may not distinguish between resource-level health and performance metrics.

C

Candidates may think that all monitoring requires logs, and since AzureDiagnostics contains storage metrics and errors, they assume a log search alert can detect health issues. However, Resource Health is the dedicated service for platform-level health, not log-based alerts.

D

Candidates may confuse autoscale rules with alerting mechanisms, thinking that autoscale can both scale and notify, or they may incorrectly associate transaction metrics with health status.

767
MCQhard

An application in a VNet must access an Azure Storage account over a private IP address. Public network access is disabled on the storage account, and the app must resolve the normal blob FQDN to that private address only from within the VNet. What should the administrator configure?

A.A service endpoint on the subnet and a storage account firewall rule for the subnet.
B.A private endpoint for the blob service and a linked private DNS zone for the VNet.
C.Allow trusted Microsoft services on the storage account and keep the public endpoint enabled.
D.Create a public DNS record that maps the blob FQDN to the storage account's public IP address.
AnswerB

A private endpoint gives the storage service a private IP inside the VNet, which satisfies the private connectivity requirement. Linking the corresponding private DNS zone ensures the standard blob FQDN resolves to that private address for workloads in the VNet. That combination is the normal solution when public access is disabled and applications must keep using the service's standard name.

Why this answer

A private endpoint assigns the storage account a private IP from the VNet, and linking a private DNS zone (e.g., `privatelink.blob.core.windows.net`) to the VNet ensures that the blob FQDN resolves to that private IP only from within the VNet. This meets the requirement of disabling public network access while providing private connectivity and DNS resolution.

Exam trap

The trap here is that candidates confuse service endpoints (which still use the public endpoint) with private endpoints (which provide a true private IP), and they overlook the critical requirement of disabling public network access, which makes service endpoints invalid.

Why the other options are wrong

A

Service endpoints provide access via the public endpoint over a private IP, but they do not disable public network access or resolve the FQDN to a private IP. The question requires private IP resolution and disabled public access, which only a private endpoint can achieve.

C

Option C allows public endpoint access for trusted Microsoft services, but the requirement is to access the storage account over a private IP address with public network access disabled. Trusted services bypass the firewall but still use the public endpoint, not a private IP.

D

This option is wrong because the question requires private IP connectivity and DNS resolution from within the VNet only. Creating a public DNS record would expose the storage account's public IP, contradicting the requirement that public network access is disabled and the app must resolve the FQDN to a private address.

When would these options actually be correct?

A

This option would be correct if the question asked for secure access from a VNet to a storage account without requiring private IP resolution or disabling public network access, such as when the app can use the public endpoint but traffic must stay within the Azure backbone.

C

This option would be correct if the question required allowing a specific Azure service (e.g., Azure Backup or Azure Logic Apps) to access the storage account over the public internet while the storage account's firewall blocks all other traffic, and no private IP requirement exists.

D

This option would be correct if the requirement was to enable access from the internet using a custom domain name, while the storage account's public endpoint remains enabled. For example, an application outside Azure needs to access blob storage via a friendly domain name, and you want to map that domain to the storage account's public IP.

Why candidates pick the wrong answer

A

Candidates may confuse service endpoints with private endpoints, thinking both provide private IP connectivity, and overlook the requirement for private DNS resolution and disabled public access.

C

Candidates may think 'trusted Microsoft services' provides private-like access or simplifies configuration, overlooking that it still uses the public endpoint and does not enforce private IP connectivity.

D

Candidates may think that a DNS record is the simplest way to map a name to an IP, overlooking that the question demands private IP resolution and that public access is disabled. They might also confuse public DNS with private DNS zones.

768
MCQmedium

Three Azure VMs in different resource groups need to access the same Azure resources using one identity. The identity must keep working if any VM is deleted and recreated. What should the administrator assign to the VMs?

A.A system-assigned managed identity on each VM.
B.A user-assigned managed identity.
C.A local administrator account.
D.An Azure Blueprint assignment.
AnswerB

A user-assigned managed identity exists independently of any VM as an Azure AD identity. Because it is not tied to a VM's lifecycle, the same identity can be assigned to all three VMs in different resource groups, and a single RBAC grant on the target resource applies to every VM that uses it. Azure automatically rotates its credentials, so there is no secret to store or manage.

Why this answer

A user-assigned managed identity is the correct choice because it is created as a standalone Azure resource and can be assigned to multiple VMs, even across different resource groups. If a VM is deleted and recreated, the user-assigned identity persists independently and can be reassigned to the new VM, ensuring continuous access to Azure resources without reconfiguration.

Exam trap

The trap here is that candidates often choose system-assigned managed identities (Option A) because they are simpler to configure, but they fail to recognize that system-assigned identities are deleted with the VM, making them unsuitable for scenarios requiring identity persistence across VM deletions and recreations.

Why the other options are wrong

A

A system-assigned managed identity is tied to the lifecycle of each VM; if a VM is deleted and recreated, its identity is lost and must be reassigned, failing the requirement that the identity persists across VM deletion and recreation.

C

A local administrator account is tied to a specific VM instance and does not persist if the VM is deleted and recreated. It also cannot provide a single identity for multiple VMs to access Azure resources.

D

An Azure Blueprint assignment is used to define a repeatable set of Azure resources and policies for compliance, not to assign an identity to VMs for accessing resources. It cannot provide a consistent identity that persists across VM deletion and recreation.

When would these options actually be correct?

A

A system-assigned managed identity would be correct if the question required each VM to have a unique identity for individual resource access, and the VMs are never deleted or recreated, or if the identity is automatically recreated with the new VM.

C

An administrator needs to grant administrative access to a single VM for troubleshooting, and the identity must be tied to that VM's lifecycle without requiring Azure AD integration.

D

An Azure Blueprint assignment would be correct in a scenario where an organization needs to enforce governance and compliance by deploying a standardized set of Azure resources (e.g., policies, role assignments, resource groups) across multiple subscriptions, ensuring consistent configuration and regulatory adherence.

Why candidates pick the wrong answer

A

Candidates may think system-assigned managed identities are simpler to set up and assume they can be used across multiple VMs, not realizing they are per-resource and not persistent across VM deletion.

C

Candidates may confuse local accounts with managed identities, thinking a local admin account can be used for resource access across VMs, or they may overlook the requirement for the identity to survive VM deletion and recreation.

D

Candidates may confuse Blueprints with identity management because Blueprints can include role assignments, but they are not a mechanism for assigning a managed identity to a VM. The term 'assignment' might misleadingly suggest a direct identity assignment.

769
MCQeasy

Based on the exhibit, what is the best change so the VNet peering can be created successfully?

A.Change VNet-B to a non-overlapping address space, such as 10.1.0.0/24.
B.Add a route table to VNet-B before creating the peering.
C.Enable gateway transit on VNet-A.
D.Resize VNet-A to 10.0.0.0/15 so both VNets fit.
AnswerA

Azure VNet peering requires that the address spaces do not overlap. Changing VNet-B to a different range removes the conflict and allows peering to be created. The exact new range can vary, but it must not overlap with VNet-A’s 10.0.0.0/16 range.

Why this answer

VNet peering requires that the address spaces of the two virtual networks do not overlap. If VNet-A uses 10.0.0.0/16 and VNet-B also uses 10.0.0.0/16, they conflict, preventing peering. Changing VNet-B to a non-overlapping address space like 10.1.0.0/24 resolves this conflict, allowing the peering to be established.

Exam trap

The trap here is that candidates often confuse overlapping address spaces with routing issues, thinking that adding route tables or enabling gateway transit will fix the peering failure, when in fact the fundamental requirement is non-overlapping IP ranges.

Why the other options are wrong

B

Adding a route table to VNet-B does not resolve overlapping address spaces, which is the root cause preventing VNet peering. VNet peering requires non-overlapping address ranges; routing tables are irrelevant to this prerequisite.

C

Enabling gateway transit on VNet-A is unrelated to the address overlap issue. The peering fails because VNet-A (10.0.0.0/16) and VNet-B (10.0.0.0/24) have overlapping address spaces, which is not resolved by gateway transit.

D

Resizing VNet-A to 10.0.0.0/15 would still overlap with VNet-B's 10.0.0.0/16, as 10.0.0.0/15 includes 10.0.0.0/16. Overlapping address spaces prevent VNet peering from being established.

When would these options actually be correct?

B

In a scenario where VNet peering is established but traffic fails to route correctly between subnets, adding a route table with specific routes (e.g., to force traffic through a firewall or VPN gateway) would be the correct solution.

C

In a scenario where VNet-A needs to provide a VPN gateway to VNet-B for hybrid connectivity, and VNet-B does not have its own gateway, enabling gateway transit on VNet-A would allow VNet-B to use VNet-A's gateway.

D

This option would be correct if the question asked for a change to allow both VNets to communicate via a VPN gateway or to accommodate more resources within VNet-A without overlapping with VNet-B, but the address spaces must be non-overlapping for peering.

Why candidates pick the wrong answer

B

Candidates may confuse connectivity issues with routing problems, assuming that a route table can fix peering failures, or they may think that route tables are required for all peering setups.

C

Candidates may confuse gateway transit as a general fix for peering issues, or think it helps with routing between overlapping VNets, not realizing address overlap is a fundamental constraint.

D

Candidates may think that expanding VNet-A's address space will resolve the overlap by making both VNets fit, but they overlook that the expanded range still contains the original overlapping subnet.

770
MCQeasy

A team stores application logs in an Azure Storage account. The logs must remain available if an entire Azure availability zone in the primary region has an outage, but the team does not require a secondary region copy. Which redundancy option should you choose?

A.LRS
B.ZRS
C.GRS
D.RA-GRS
AnswerB

Zone-redundant storage (ZRS) synchronously replicates your data across three Azure availability zones within the primary region, ensuring that a single zone failure does not compromise availability or durability. Because the replicas are in different zones, the storage account remains accessible even if one entire datacenter goes down. This directly matches the stated requirement of protecting against a zone-level outage while avoiding the cost and complexity of geo-replication.

Why this answer

Zone-redundant storage (ZRS) synchronously replicates data across three Azure availability zones within the primary region, ensuring durability even if an entire zone fails. Since the requirement explicitly states no secondary region copy is needed, ZRS is the correct choice because it provides intra-region zone-level resilience without cross-region replication.

Exam trap

The trap here is that candidates often confuse ZRS with LRS, assuming LRS provides zone-level redundancy, but LRS only protects against server rack failures within a single data center, not an entire availability zone outage.

Why the other options are wrong

A

LRS replicates data only within a single data center in a single availability zone, so it does not protect against an entire zone outage.

D

RA-GRS provides read access to a secondary region copy, but the question explicitly states that a secondary region copy is not required. Additionally, RA-GRS does not guarantee availability during a zone outage in the primary region because it replicates to a secondary region, not across zones.

When would these options actually be correct?

A

Choose LRS when cost is the primary concern and the application can tolerate data loss from a single data center failure, such as for non-critical test data or temporary logs that are not essential for business continuity.

D

RA-GRS would be correct if the question required read access to data during an outage in the primary region, even if the secondary region is in a different geographic location. For example: 'You need to ensure that log data can be read from a secondary location if the primary region becomes unavailable.'

Why candidates pick the wrong answer

A

Candidates may think LRS is sufficient because it provides local redundancy, overlooking the requirement for zone-level fault tolerance.

D

Candidates may confuse zone-redundant storage with geo-redundant storage, or think that RA-GRS offers higher availability due to read access, but they overlook the requirement that no secondary region copy is needed.

771
MCQhard

Your company hosts an internal web app in Azure App Service. Access must be limited to users connecting from the corporate virtual network over private IP addresses only. What should you configure?

A.An App Service Environment only.
B.Access restrictions based on public IP ranges only.
C.A private endpoint for the web app.
D.A public load balancer in front of the web app.
AnswerC

A private endpoint for the web app is the correct solution because it assigns the App Service a private IP address from your virtual network, enabling direct and secure access without traversing the public internet. When configured with the 'Deny public access' option, the public endpoint is removed entirely, leaving only the private route from your VNet. This gives you the precise control over connectivity you need while keeping the existing App Service plan.

Why this answer

A private endpoint assigns a private IP address from your virtual network to the web app, making it accessible only over the corporate network via private IPs. This ensures traffic never traverses the public internet, meeting the requirement for private IP-only access.

Exam trap

The trap here is that candidates often confuse access restrictions (which filter by public IP) with private endpoint (which eliminates public exposure entirely), mistakenly thinking IP-based restrictions can enforce private-only access when they cannot prevent internet routing.

Why the other options are wrong

A

An App Service Environment (ASE) is not required to limit access to private IPs; a private endpoint on a standard App Service can achieve this without the cost and complexity of an ASE.

B

Access restrictions based on public IP ranges only allow filtering by public IP addresses, not private IP addresses from a virtual network. The question requires limiting access to users connecting from the corporate virtual network over private IP addresses, which cannot be achieved with public IP ranges.

D

A public load balancer distributes traffic to the web app over the internet, not restricting access to private IP addresses from the corporate virtual network. It does not enforce private connectivity.

When would these options actually be correct?

A

If the question required complete network isolation, dedicated compute resources, or the ability to run in a single-tenant environment (e.g., for compliance or high-scale needs), then an App Service Environment would be the correct answer.

B

This option would be correct if the question required restricting access to the web app based on a specific set of public IP addresses (e.g., from a branch office with a static public IP) and did not involve private IP addresses or virtual network integration.

D

If the question required distributing incoming internet traffic across multiple App Service instances for high availability and scalability, a public load balancer would be the correct choice.

Why candidates pick the wrong answer

A

Candidates may think that only an ASE can provide private network access, not realizing that a private endpoint on a regular App Service also restricts traffic to the virtual network.

B

Candidates may mistakenly think that IP restrictions can filter private IPs from a virtual network, not realizing that Azure App Service access restrictions only support public IP ranges unless using private endpoints or service endpoints.

D

Candidates may think a load balancer can provide access control by filtering traffic, but it operates at the network level and does not inherently restrict to private IPs.

772
MCQeasy

A company wants to enable backup for an Azure virtual machine and later restore the VM if needed. Which Azure service should the administrator use to manage the backup plan and restores?

A.Azure Monitor
B.Recovery Services vault
C.Log Analytics workspace
D.Azure Front Door
AnswerB

A Recovery Services vault is the dedicated Azure entity that stores backup data and recovery points, and its console is where you configure VM backup policies, trigger on-demand backups, and restore VMs from a chosen recovery point. It uses the Azure Backup service under the hood, which coordinates the VM snapshot and vault-level storage. Because the restore workflow — including disk replacement and VM re-creation — is initiated from this vault, it is the only service among these that actually enables backup and restores for an Azure VM.

Why this answer

The Recovery Services vault is the correct Azure service for managing backup plans and restores for Azure virtual machines. It provides a centralized management interface for configuring backup policies, performing on-demand backups, and initiating restore operations to recover VMs to a specific point in time.

Exam trap

The trap here is that candidates often confuse Azure Backup (which uses Recovery Services vault) with Azure Site Recovery (which also uses a Recovery Services vault but for disaster recovery replication, not backup), leading them to incorrectly select a different service or misunderstand the vault's dual role.

Why the other options are wrong

A

Azure Monitor is a monitoring and diagnostics service, not a backup and restore solution. It cannot manage backup plans or perform VM restores.

C

Log Analytics workspace is used for collecting and analyzing telemetry data, not for managing VM backup plans or restores. Backup and restore operations for Azure VMs are managed through a Recovery Services vault.

D

Azure Front Door is a global load balancer and application delivery service, not a backup or restore solution. It does not provide backup plans or VM restore capabilities.

When would these options actually be correct?

A

Azure Monitor would be correct if the question asked about collecting and analyzing performance metrics, logs, or setting up alerts for a virtual machine, rather than backup and restore operations.

C

A Log Analytics workspace would be the correct answer for a question about collecting and analyzing diagnostic logs and metrics from Azure resources, such as monitoring VM performance or security events, where the administrator needs to query log data.

D

An administrator needs to provide high availability and low-latency access to a web application by distributing traffic across multiple Azure regions. Azure Front Door would be the correct service to configure global load balancing and failover.

Why candidates pick the wrong answer

A

Candidates may confuse Azure Monitor's ability to track VM health and performance with backup management, assuming it also handles data protection.

C

Candidates may confuse Log Analytics with backup because both involve data management and are part of Azure's monitoring and management suite, leading them to incorrectly assume Log Analytics can handle backup tasks.

D

Candidates may confuse Azure Front Door with Azure Backup or Site Recovery due to the word 'Front' implying a management interface, or they might think it offers some form of data protection through its global presence.

773
MCQeasy

Based on the exhibit, why does a query against AzureDiagnostics return no rows after the storage account diagnostic setting was changed?

A.The storage account cannot send logs to Log Analytics when public network access is disabled.
B.The logs are written to resource-specific tables instead of AzureDiagnostics.
C.The diagnostic setting only sends metrics, not logs, to the workspace.
D.The workspace retention period automatically deletes all records after one hour.
AnswerB

When diagnostic settings use resource-specific mode, Azure writes records to service-specific tables rather than the legacy AzureDiagnostics table. The query failed because it looked in the wrong table. The administrator should query the table that matches the storage log source or switch the destination format if a unified table is preferred.

Why this answer

When you change a diagnostic setting for a storage account from 'AzureDiagnostics' mode to 'Resource-specific' mode, logs are no longer sent to the AzureDiagnostics table. Instead, they are written to dedicated resource-specific tables (e.g., StorageReadLogs, StorageWriteLogs). Since the query targets AzureDiagnostics, it returns no rows because the logs are now stored in the new table format.

Exam trap

The trap here is that candidates assume logs are always written to the AzureDiagnostics table, overlooking that the diagnostic setting can be configured to use resource-specific tables, which changes the destination table name and causes queries against AzureDiagnostics to return no rows.

Why the other options are wrong

A

The question states that the diagnostic setting was changed, not that public network access was disabled. AzureDiagnostics table is used for resource-specific logs only when the diagnostic setting sends logs to the legacy Azure Diagnostics mode; changing to resource-specific tables causes logs to go to separate tables, not AzureDiagnostics.

C

The diagnostic setting explicitly includes 'send to Log Analytics' for logs, not just metrics. The question states the setting was changed to send logs to a Log Analytics workspace, so option C is incorrect because logs are being sent.

D

The workspace retention period does not automatically delete records after one hour; the default retention is 30 days (or longer), and the question's scenario involves a change in diagnostic setting, not retention.

When would these options actually be correct?

A

This would be correct if the question described a scenario where a storage account has public network access disabled (e.g., using a private endpoint) and the diagnostic setting is configured to send logs to a Log Analytics workspace. In that case, network isolation would prevent log delivery, resulting in no rows in AzureDiagnostics.

C

This option would be correct if the diagnostic setting was configured to send only metrics (e.g., 'AllMetrics') to the Log Analytics workspace, and the query was for log data. For example, a question where the setting exports only performance counters and no log categories.

D

This option would be correct if the question stated that the workspace retention period was explicitly set to 1 hour and the query was run after that period, causing data to be deleted.

Why candidates pick the wrong answer

A

Candidates may confuse network restrictions with log routing changes, assuming that disabling public access blocks all log flow, but Azure Diagnostics can still send logs over private links or via the Azure backbone network.

C

Candidates may confuse the diagnostic setting's ability to send both metrics and logs, or assume that a change to the setting might have inadvertently disabled log collection, leading them to think only metrics are sent.

D

Candidates may confuse the concept of retention period with the immediate absence of data, assuming that a short retention explains why no rows are returned, especially if they overlook the diagnostic setting change.

774
MCQmedium

An enterprise uses one management group to contain five subscriptions for a business unit. A compliance auditor in an Entra ID group needs read-only access to every current and future resource in all five subscriptions, but must not see resources in other business units. What is the best scope for the Reader role assignment?

A.Assign Reader at the management group that contains the five subscriptions.
B.Assign Reader separately at each subscription in the business unit.
C.Assign Reader at a single resource group within one subscription.
D.Assign Reader directly to each resource that the auditor should see.
AnswerA

This scope lets the role flow downward to all subscriptions, resource groups, and resources under that management group. It is the narrowest place that still covers every current and future subscription in that business unit. The auditor gets consistent read-only visibility without requiring separate assignments for each subscription, and access stays isolated from other management groups.

Why this answer

Assigning the Reader role at the management group scope grants inherited read-only access to all current and future resources within every subscription under that management group, while preventing access to resources in other business units that are in separate management groups. This satisfies the auditor's requirement for a single, scalable assignment that automatically covers new subscriptions added to the management group.

Exam trap

The trap here is that candidates may think subscription-level assignments are necessary for granularity, overlooking that management group scope provides inheritance to all current and future subscriptions and resources within that group, which is the most efficient and correct approach for multi-subscription governance.

Why the other options are wrong

B

Assigning Reader at each subscription separately does not cover future resources in new subscriptions added to the management group, violating the requirement for access to all current and future resources.

C

Assigning Reader at a single resource group would not grant access to all resources across five subscriptions, failing the requirement for read-only access to every current and future resource in all five subscriptions.

D

Assigning Reader directly to each resource is impractical and does not scale; it fails to cover future resources and violates the requirement for read-only access to all current and future resources across five subscriptions.

When would these options actually be correct?

B

If the requirement was to grant read-only access only to specific existing subscriptions without any future subscriptions, or if the management group was not used and subscriptions were managed independently, then assigning Reader at each subscription would be appropriate.

C

This option would be correct if the question required granting read-only access only to resources within a specific resource group, not across multiple subscriptions or management groups.

D

If the requirement were to grant read-only access only to a specific set of existing resources (e.g., a few VMs) with no need for future resources or subscription-wide access, then assigning Reader at the resource level would be appropriate.

Why candidates pick the wrong answer

B

Candidates may think that assigning at the subscription level is sufficient and simpler, not realizing that management group assignment provides inheritance to future subscriptions and reduces administrative overhead.

C

Candidates may think that assigning at a resource group is sufficient because it covers resources within that group, overlooking the need for broader scope across multiple subscriptions.

D

Candidates may think that assigning the role directly to each resource provides precise control and ensures the auditor sees only intended resources, overlooking the management group's ability to inherit permissions and cover future resources.

775
MCQhard

A platform team has a hardened Windows Server VM that was generalized after patching, agent installation, and baseline configuration. They must deploy the same build to development, test, and production subscriptions, and they want a controlled way to publish newer versions later without rebuilding the image each time. What should they create first?

A.An availability set for the source VM so new virtual machines inherit the same configuration.
B.A managed disk snapshot of the OS disk so new VMs can be created from the captured state.
C.An Azure Compute Gallery image version based on the generalized VM image.
D.A proximity placement group so all future VMs land close to the current server.
AnswerC

Azure Compute Gallery is the best fit when you need a reusable, versioned VM image that can be deployed consistently across subscriptions and regions. It supports image publishing, replication, and controlled updates, which makes it ideal for a hardened base build that will evolve over time.

Why this answer

An Azure Compute Gallery (formerly Shared Image Gallery) allows you to store and manage multiple versions of a generalized VM image, enabling controlled, incremental publishing of image updates across subscriptions. By creating an image version in a gallery, the team can deploy the same build to dev, test, and prod subscriptions while maintaining versioning and replication control, avoiding the need to rebuild the image from scratch for each update.

Exam trap

The trap here is that candidates often confuse a managed disk snapshot (Option B) with a reusable, versionable image, not realizing that snapshots lack the versioning, replication, and cross-subscription sharing capabilities that an Azure Compute Gallery image version provides.

Why the other options are wrong

A

An availability set ensures high availability by distributing VMs across fault domains, but it does not capture or replicate a generalized VM image across subscriptions for controlled versioned deployments.

B

A managed disk snapshot captures a point-in-time copy of the OS disk, but it does not support versioning, replication across regions, or controlled publishing of updates. The question requires a solution for deploying the same build to multiple subscriptions with future version management, which Azure Compute Gallery provides.

D

A proximity placement group ensures VMs are physically close for low latency, but does not provide image versioning or controlled publishing across subscriptions.

When would these options actually be correct?

A

When deploying multiple VMs in the same region that require high availability (e.g., a multi-tier application), an availability set should be created first to ensure VMs are placed on different physical hardware to avoid single points of failure.

B

A question asks: 'You need to create a backup of a single VM's OS disk that can be used to restore the VM to a previous state in the same region. What should you create?' In that scenario, a managed disk snapshot is the correct answer because it is a quick, incremental backup for disaster recovery.

D

When deploying a latency-sensitive distributed application across multiple VMs in the same region, a proximity placement group ensures VMs are co-located to minimize network latency between them.

Why candidates pick the wrong answer

A

Candidates may think availability sets help maintain consistent configuration across VMs, confusing high availability with image management and version control.

B

Candidates often confuse snapshots with image management, thinking a snapshot can be used to deploy multiple VMs across subscriptions. They overlook that snapshots lack versioning, sharing, and replication capabilities needed for controlled multi-environment deployments.

D

Candidates may think that placing VMs close to the source server ensures consistent configuration, but proximity placement groups address physical location, not image management.

776
MCQmedium

A company has 18 Azure subscriptions. Production subscriptions must inherit stricter governance than sandbox subscriptions, and central IT wants one place to target future policy assignments to each group. What should the administrator do?

A.Create management groups for Prod and Sandbox, then move subscriptions into them
B.Create resource groups named Prod and Sandbox in each subscription
C.Use tags on subscriptions to separate production from sandbox
D.Apply a CanNotDelete lock to each subscription
AnswerA

Management groups create a hierarchy above subscriptions, so placing production subscriptions under a 'Prod' management group and others under 'Sandbox' allows you to assign Azure Policy definitions, role-based access control, and security controls at the management group level. Those assignments are inherited by every subscription in that group, minimizing duplicate configuration. This directly satisfies the requirement that production subscriptions inherit specific governance settings while sandbox subscriptions remain separate.

Why this answer

Management groups allow you to organize Azure subscriptions hierarchically and apply Azure Policy and role-based access control (RBAC) at the management group level, which is inherited by all subscriptions within that group. By creating separate management groups for Prod and Sandbox and moving the respective subscriptions into them, central IT can assign policy assignments once to each management group, ensuring stricter governance for production subscriptions and a lighter touch for sandbox subscriptions.

Exam trap

The trap here is that candidates often confuse resource groups or tags as mechanisms for grouping subscriptions for policy inheritance, but only management groups provide the hierarchical structure needed to apply policies consistently across multiple subscriptions.

Why the other options are wrong

B

Resource groups are organizational containers within a single subscription, not across subscriptions. They cannot be used to centrally target policy assignments across multiple subscriptions, as policies applied to a resource group only affect resources within that specific subscription's resource group.

When would these options actually be correct?

B

If the question required grouping resources within a single subscription for role-based access control or resource management, and the goal was to apply policies at the resource group level rather than across subscriptions, creating resource groups named Prod and Sandbox would be appropriate.

Why candidates pick the wrong answer

B

Candidates may confuse resource groups with management groups, thinking that resource groups can span subscriptions or serve the same hierarchical grouping purpose for policy inheritance across subscriptions.

777
MCQmedium

A developer has the Contributor role on a subscription. Their ARM deployment of a virtual machine with a public IP fails, and the error message says the request is denied by policy. The developer can create other resources successfully. What should you change to allow this deployment while keeping the Contributor role unchanged?

A.Assign the developer the Owner role on the subscription.
B.Modify or exempt the Azure Policy assignment that blocks public IP addresses.
C.Remove any lock from the virtual machine's resource group.
D.Move the virtual machine to another management group.
AnswerB

The error message indicates the deployment was denied by an Azure Policy assignment, not by a lack of RBAC permissions. Modifying the policy assignment (e.g., changing the effect from 'Deny' to 'Audit' or removing the assignment) directly removes the obstacle. Alternatively, an exemption on the specific scope can allow the public IP to be created while keeping the policy for compliance governance. This is the only option that addresses the root cause while preserving the developer's Contributor role.

Why this answer

The error indicates that an Azure Policy is denying the deployment of a virtual machine with a public IP address. Since the developer has the Contributor role, they have sufficient permissions to create resources, but Azure Policy overrides permissions by enforcing rules. Modifying or creating an exemption for the specific policy that blocks public IP addresses will allow the deployment without changing the developer's role.

Exam trap

The trap here is that candidates often confuse Azure Policy with RBAC or resource locks, assuming that a permission issue (like needing Owner) or a lock is the cause, when in fact policy enforcement is a separate governance layer that can deny deployments even with sufficient RBAC permissions.

Why the other options are wrong

A

The error is caused by an Azure Policy denying public IP creation, not by a lack of permissions. Assigning Owner would grant more privileges than needed and violates the constraint to keep the Contributor role unchanged.

D

Moving the VM to another management group does not bypass Azure Policy assignments, which are inherited from management groups. The policy blocking public IPs would still apply in the new management group unless that group has a different policy exemption.

When would these options actually be correct?

A

Assigning the Owner role would be correct if the developer needs to modify role assignments or policy definitions themselves, or if the deployment fails due to missing permissions that only Owner can grant, such as registering resource providers.

D

If the question stated that the subscription is under a management group with a policy that blocks public IPs, and the developer needs to deploy in a different management group without that policy, then moving the VM (or deploying in a different management group) would be correct. This scenario would require the developer to have permissions to create resources in the target management group.

Why candidates pick the wrong answer

A

Candidates may think that increasing permissions to Owner will bypass any restrictions, not realizing that Azure Policies can override role-based permissions.

D

Candidates may think that moving to a different management group avoids restrictive policies, but they forget that policies are inherited and the new group might have the same or other policies. They also overlook that the error is specifically about a policy, not about management group restrictions.

778
MCQmedium

A VM in Azure cannot accept RDP connections from your office public IP. The subnet NSG already has an inbound deny-all rule at priority 200, and you added an allow rule for TCP 3389 from 198.51.100.25/32 at priority 300. What should you do to allow the connection?

A.Change the source to Internet so the allow rule matches more traffic.
B.Create or move the allow rule to priority 100 so it is evaluated before the deny rule.
C.Change the protocol from TCP to Any to bypass the deny rule.
D.Assign a public IP directly to the VM to override the subnet NSG behavior.
AnswerB

NSG rules are evaluated in ascending priority order, meaning numeric 100 takes precedence over a higher-numbered deny rule such as 4096. By placing an allow rule for RDP (port 3389) from your office IP at priority 100, it is processed first and matches before the deny-all rule, permitting the connection. This is the standard method for overriding a broad deny rule while keeping security boundaries intact.

Why this answer

Network Security Group (NSG) rules are evaluated in priority order, with lower numbers having higher precedence. Since the deny-all rule at priority 200 is evaluated before the allow rule at priority 300, the deny rule blocks the RDP traffic. To allow the connection, the allow rule must be created or moved to a priority lower than 200 (e.g., 100) so it is evaluated first, permitting traffic from 198.51.100.25/32 on TCP 3389 before the deny rule is reached.

Exam trap

The trap here is that candidates mistakenly think adding a more specific allow rule at a higher priority number will override a broader deny rule, not realizing that NSG priority order (lower number = higher priority) determines which rule is evaluated first.

Why the other options are wrong

A

Changing the source to 'Internet' would allow traffic from all public IPs, not just your office IP, which violates the principle of least privilege and does not fix the rule priority issue. The deny rule at priority 200 still blocks the traffic because the allow rule at priority 300 is evaluated after it.

C

Changing the protocol to Any would not bypass the deny rule; the deny rule at priority 200 still blocks all inbound traffic regardless of protocol. The issue is rule priority, not protocol matching.

D

Assigning a public IP to the VM does not override subnet NSG rules; NSGs at both subnet and NIC levels are still evaluated, and the deny rule at priority 200 would still block RDP traffic.

When would these options actually be correct?

A

In a scenario where the NSG has no lower-priority deny rule blocking specific IPs, and you need to allow RDP from any public IP (e.g., for a jump server accessible from anywhere), setting the source to 'Internet' would be appropriate.

C

If the question described a scenario where the NSG allow rule for RDP uses TCP but the actual traffic uses a different protocol (e.g., UDP), then changing the protocol to Any could allow the connection. For example, if a VM requires RDP over UDP and the NSG only allows TCP, setting the protocol to Any would match both.

D

This would be correct if the VM is in a subnet without an NSG (or with an allow-all rule) but the VM's NIC has no public IP, and you need to enable inbound RDP from the internet by assigning a public IP and adding an NSG rule on the NIC.

Why candidates pick the wrong answer

A

Candidates may think that broadening the source scope will override the deny rule, misunderstanding that NSG rules are evaluated in priority order and a lower-priority allow rule cannot override a higher-priority deny rule.

C

Candidates may think that broadening the protocol match will override the deny rule, misunderstanding that NSG rules are evaluated by priority order, not by specificity or protocol coverage.

D

Candidates may think a public IP directly on the VM bypasses subnet-level restrictions, misunderstanding that NSGs are independent of public IP assignment.

779
MCQhard

A deployment pipeline uploads content to a blob container in Azure Storage. The pipeline authenticates with Microsoft Entra ID and must grant a partner temporary write access for 12 hours without sharing the storage account key. The access should be limited to the container only. Which access method should the administrator use?

A.Shared access key authentication
B.Account SAS
C.User delegation SAS
D.Service endpoint access with network rules only
AnswerC

User delegation SAS is generated by an identity authenticated with Microsoft Entra ID and does not require exposing the storage account key. It can be scoped tightly to the container, granted for a fixed time window, and limited to write operations. That makes it the best fit for temporary partner access.

Why this answer

A user delegation SAS is the correct choice because it uses Microsoft Entra ID credentials to sign the SAS token, providing temporary, delegated access to a specific container without exposing the storage account key. It supports granular permissions and an expiration time of up to 12 hours, meeting the partner's write access requirement while limiting access to the container only.

Exam trap

The trap here is that candidates often confuse Account SAS with user delegation SAS, not realizing that Account SAS is signed with the storage account key and thus fails the 'no key sharing' requirement, while user delegation SAS uses Microsoft Entra ID for secure, keyless delegation.

Why the other options are wrong

A

Shared access key authentication grants full access to the entire storage account, not limited to a single container, and exposes the account key, violating the requirement to avoid sharing the key.

B

An Account SAS grants access to multiple services or the entire storage account, not limited to a single container, and does not support delegation via Microsoft Entra ID for temporary write access without sharing the account key.

D

Service endpoint access with network rules only restricts traffic to a virtual network but does not provide temporary, time-limited write access to a specific container for an external partner. It lacks the granular delegation and expiration control needed for this scenario.

When would these options actually be correct?

A

A scenario where the administrator needs to grant full access to the entire storage account (e.g., for bulk data migration) and trusts the partner with the account key, without requiring temporary or container-scoped access.

B

A question requiring access to multiple containers or services (e.g., blobs and queues) within a storage account for a limited time, where sharing the account key is acceptable and Entra ID delegation is not required.

D

An organization needs to allow access to a storage account only from a specific virtual network (e.g., from an Azure VM) and deny all other traffic, without requiring any SAS or key. The question would specify that the access is for internal resources within a trusted network and does not involve external partners or temporary permissions.

Why candidates pick the wrong answer

A

Candidates may think shared access keys are the simplest method for granting access, overlooking the security and scope limitations specified in the question.

B

Candidates may confuse Account SAS with User Delegation SAS, thinking both provide container-level access, but Account SAS lacks the fine-grained scope and Entra ID integration needed for this scenario.

D

Candidates may confuse network-level security with access delegation, thinking that restricting to a service endpoint provides sufficient control, or they may overlook the requirement for temporary, container-specific write access for an external partner.

780
MCQeasy

An administrator wants to send a virtual machine's guest logs to a central workspace so they can search them later with queries. Which configuration should be created on the VM or its resource provider first?

A.A role assignment at the subscription scope
B.A diagnostic setting
C.A private endpoint
D.A lock on the VM resource group
AnswerB

A diagnostic setting is the correct mechanism because it explicitly defines which logs and metrics from a virtual machine are streamed to an Azure Monitor destination such as a Log Analytics workspace. For guest OS logs (like Windows Event logs or Syslog), you must combine the diagnostic setting with an installed monitoring agent—either the legacy Log Analytics agent or the newer Azure Monitor Agent—to actually collect and forward those events. Without this, platform-level logs may be available, but guest-level log collection would not occur.

Why this answer

A diagnostic setting is the correct configuration because it enables the streaming of guest OS logs (e.g., System, Application, Security event logs) from an Azure virtual machine to a Log Analytics workspace. This is done by installing the Azure Monitor Agent (AMA) or legacy Log Analytics agent on the VM and then configuring a data collection rule or diagnostic setting to specify which logs to send and the destination workspace. Without this setting, the VM's guest logs remain local and cannot be queried centrally.

Exam trap

The trap here is that candidates often confuse a diagnostic setting with a role assignment, thinking that granting permissions (RBAC) is the first step to enable log collection, but in reality, the diagnostic setting is the specific configuration that defines what logs to send and where.

Why the other options are wrong

A

A role assignment at the subscription scope grants permissions to users or services but does not configure data collection or forwarding of VM guest logs to a Log Analytics workspace. Diagnostic settings are required to specify which logs and metrics to send and where to send them.

C

A private endpoint is used to securely connect to a service over a private IP address, not to send guest logs to a Log Analytics workspace. The question asks for sending logs, which requires a diagnostic setting, not network connectivity.

D

A lock on the VM resource group prevents deletion or modification of resources, but it does not enable sending guest logs to a central workspace. Diagnostic settings are required to route logs.

When would these options actually be correct?

A

If the question were about granting a managed identity or service principal the necessary permissions (e.g., 'Log Analytics Contributor') to write diagnostic data to a workspace, then a role assignment at the subscription scope would be the correct first step before configuring diagnostic settings.

C

A private endpoint would be correct if the question were: 'An administrator needs to ensure that a virtual machine connects to a Log Analytics workspace over a private network, avoiding the public internet.' In that case, creating a private endpoint on the workspace would be the first step.

D

A question asks: 'An administrator wants to prevent accidental deletion of a virtual machine and its associated resources. Which configuration should be applied?' In that case, a lock on the resource group would be correct.

Why candidates pick the wrong answer

A

Candidates may confuse the need for permissions (role assignment) with the actual configuration of data collection, assuming that assigning a role is a prerequisite for any logging setup, when in fact diagnostic settings handle both the configuration and can leverage system-assigned identities without explicit role assignments.

C

Candidates may confuse private endpoints with diagnostic settings because both involve connecting to Azure services. They might think that a private endpoint is needed for secure log transmission, but diagnostic settings handle log routing without requiring private endpoints.

D

Candidates may confuse resource locks with access controls or think that locking the resource group is a prerequisite for configuring log collection, but locks do not affect data routing.

781
MCQmedium

A support engineer needs to restart only one virtual machine named VM-App01. The engineer must not gain access to any other VM, storage account, or network resource in the resource group. At which scope should you assign the required RBAC role?

A.At the management group scope that contains the subscription
B.At the specific virtual machine resource scope
C.At the resource group scope that contains the virtual machine
D.At the subscription scope that contains the resource group
AnswerB

Assigning a role at the specific virtual machine resource scope confines permissions to that single resource by leveraging Azure's hierarchical RBAC model. This is the only option that fulfills the least-privilege requirement, because the support engineer receives only the Microsoft.Compute/virtualMachines/restart/action permission (or a role containing it) and cannot affect other VMs or resource types. It directly targets the resource that the engineer needs to restart.

Why this answer

Assigning the Virtual Machine Contributor role at the specific VM resource scope (VM-App01) grants the engineer permissions to restart only that VM, with no access to other VMs, storage accounts, or network resources in the same resource group. RBAC roles applied at a narrower scope (resource level) override broader scopes and limit permissions to that exact resource.

Exam trap

The trap here is that candidates often default to assigning roles at the resource group scope for simplicity, overlooking that this grants permissions to all resources in the group, not just the target VM.

Why the other options are wrong

A

Assigning at the management group scope would grant permissions to all subscriptions and resources within that management group, far exceeding the requirement to restrict access to only VM-App01.

C

Assigning the role at the resource group scope would grant the engineer permissions to all resources within that resource group, including other VMs, storage accounts, and network resources, violating the requirement to restrict access only to VM-App01.

D

Assigning the role at the subscription scope grants permissions to all resources in the subscription, including other VMs, storage accounts, and network resources, which violates the requirement to restrict access only to VM-App01.

When would these options actually be correct?

A

If the question required granting permissions to manage all virtual machines across multiple subscriptions under a management group, then assigning the role at the management group scope would be appropriate.

C

If the question required the engineer to manage all virtual machines in the resource group (e.g., start/stop any VM) but not storage or network resources, assigning a VM Contributor role at the resource group scope would be appropriate, as it limits permissions to VMs only.

D

This scope would be correct if the requirement was to grant the support engineer the ability to restart any VM within the entire subscription, without restriction to a specific resource group or VM.

Why candidates pick the wrong answer

A

Candidates may think that using a higher scope like management group is more efficient or covers all necessary resources, not realizing it violates the principle of least privilege required in this scenario.

C

Candidates often think that assigning a role at the resource group scope is granular enough, not realizing that it applies to all resources in the group, not just the specific VM.

D

Candidates may think that assigning at the subscription level is simpler or more encompassing, overlooking the principle of least privilege and the specific access restriction required.

782
MCQmedium

Based on the exhibit, an administrator needs to recover one deleted configuration file from a running Azure VM without replacing the VM. Which restore option should be used?

A.Create a new VM from the recovery point so the deleted file returns with a clean operating system.
B.Restore disks and manually rebuild the VM afterward.
C.Use File Recovery to mount the recovery point and copy back the missing file.
D.Replace the existing VM immediately to recover only one file.
AnswerC

Azure Backup's File Recovery mounts the selected recovery point over iSCSI to a temporary location without touching the live production VM. The administrator can copy the missing file from that mounted point directly back to the original VM, then unmount the iSCSI target. This preserves all current VM state and incurs no downtime, making it the correct granular recovery method.

Why this answer

Azure VM File Recovery (part of Azure Backup) allows you to mount a recovery point as a drive on a running VM, browse the file system, and copy specific files back without restoring the entire VM or disks. This is the only option that recovers a single deleted configuration file without replacing or rebuilding the VM.

Exam trap

The trap here is that candidates may think a full disk restore or VM rebuild is required for file-level recovery, but Azure Backup's File Recovery feature is specifically designed for granular file recovery from a VM backup without VM replacement.

Why the other options are wrong

A

Creating a new VM from the recovery point replaces the existing VM, which contradicts the requirement to not replace the VM. The goal is to recover a single file without affecting the running VM.

B

Restoring disks and manually rebuilding the VM is more complex and time-consuming than necessary for recovering a single file; it requires recreating the VM from the restored disks, which is not needed when only one file is missing.

D

Replacing the existing VM is an extreme measure that would cause downtime and potential data loss, and it is not necessary for recovering a single file when Azure Backup's File Recovery can mount the recovery point and copy the file without replacing the VM.

When would these options actually be correct?

A

This option would be correct if the question required recovering a VM that is completely corrupted or non-functional, and the administrator needs to restore the entire VM from a backup point, accepting replacement of the original VM.

B

This option would be correct if the question required recovering the entire VM or multiple system files, and the administrator needed to preserve the original VM's configuration or data without using the existing VM's disks directly, such as when the VM is corrupted and cannot boot.

D

This option would be correct in a scenario where the VM is completely corrupted or compromised, and the goal is to restore the entire VM to a known good state from a backup, accepting downtime and data loss as trade-offs for a clean recovery.

Why candidates pick the wrong answer

A

Candidates may think that creating a new VM from a recovery point is a straightforward way to restore files, overlooking the requirement to avoid replacing the existing VM.

B

Candidates may think that restoring disks is the only way to access files from a backup, not realizing that Azure Backup's File Recovery allows mounting the recovery point directly to the existing VM for file-level restore.

D

Candidates may think that replacing the VM is the only way to restore files from a backup, or they may underestimate the capabilities of Azure Backup's File Recovery feature, leading them to choose a more drastic but familiar restore method.

783
MCQeasy

An application on an Azure VM has outgrown its current CPU and memory. The administrator wants to increase compute capacity without rebuilding the application or changing the VM image. What should be done?

A.Resize the virtual machine to a larger size
B.Create a new snapshot of the OS disk
C.Move the VM to an availability set
D.Attach a data disk
AnswerA

Resizing the VM changes the amount of CPU, memory, and sometimes other capabilities assigned to the existing machine. This is the correct operational fix when the application needs more compute resources but does not need a new image or rebuild. It keeps the same VM and operating system while giving it more capacity. For an easy Azure administration scenario, this is the direct answer to a performance-capacity problem.

Why this answer

Resizing the VM to a larger size (Option A) directly increases the CPU and memory resources allocated to the VM without requiring any changes to the application or the underlying OS disk image. Azure allows you to change the VM size as long as the new size is available in the current hardware cluster and the VM is deallocated (stopped) first. This is the simplest and most appropriate method to scale up compute capacity while preserving the existing configuration and data.

Exam trap

The trap here is that candidates often confuse scaling compute resources with adding storage or improving availability, leading them to select options like attaching a data disk or moving to an availability set, which do not address CPU/memory constraints.

How to eliminate wrong answers

Option B is wrong because creating a new snapshot of the OS disk captures a point-in-time backup of the disk, but it does not increase the CPU or memory resources of the running VM. Option C is wrong because moving the VM to an availability set improves redundancy and fault tolerance by distributing VMs across fault domains, but it does not change the compute capacity (CPU/memory) of the individual VM. Option D is wrong because attaching a data disk adds additional storage capacity to the VM, not CPU or memory; it does not address the performance bottleneck caused by insufficient compute resources.

784
MCQeasy

A company hosts a stateless web application behind a load balancer. Traffic increases during the day and drops at night. The team wants Azure to automatically add or remove identical VM instances based on demand. What should the administrator deploy?

A.A single large virtual machine
B.A virtual machine scale set
C.An availability set
D.A managed image
AnswerB

A virtual machine scale set is designed for deploying and managing multiple identical VMs as a group. It supports autoscaling rules so Azure can add or remove instances based on metrics such as CPU usage or scheduled demand. This is the best fit for a stateless web workload with changing traffic.

Why this answer

A virtual machine scale set (VMSS) is the correct choice because it automatically manages a group of identical, load-balanced VMs and can scale out (add VMs) or scale in (remove VMs) based on demand metrics like CPU usage or a schedule. This matches the requirement for a stateless web application with variable traffic, as VMSS integrates with Azure Load Balancer or Application Gateway and supports autoscale rules to handle daytime spikes and nighttime drops without manual intervention.

Exam trap

The trap here is that candidates often confuse an availability set (which provides high availability) with a scale set (which provides elasticity), leading them to pick Option C because they think 'automatic addition/removal' means fault tolerance, not scaling.

Why the other options are wrong

A

A single large VM cannot automatically scale out/in based on demand; it lacks the elasticity to add or remove instances dynamically.

C

An availability set provides high availability by distributing VMs across fault and update domains, but it does not support automatic scaling based on demand. The question requires automatic addition/removal of instances, which availability sets cannot do.

D

A managed image is a static template for creating VMs, not a scaling solution. It cannot automatically add or remove instances based on demand; it only provides a consistent configuration for manual or automated VM creation.

When would these options actually be correct?

A

If the question specified a fixed, predictable workload that never varies and requires maximum performance for a single application instance, deploying a single large VM would be appropriate.

C

An availability set would be correct if the question asked for a solution to ensure high availability and fault tolerance for a set of VMs, such as 'You need to guarantee that at least one VM remains available during planned maintenance or hardware failure.'

D

A managed image would be correct if the question asked for a way to capture and reuse a VM configuration (e.g., 'You need to create multiple identical VMs from a customized OS disk. What should you create?').

Why candidates pick the wrong answer

A

Candidates may think a large VM can handle variable loads by itself, overlooking the need for horizontal scaling and automated instance management.

C

Candidates may confuse availability sets with scale sets because both involve multiple VMs, and they might think availability sets also provide scaling capabilities, not realizing they only handle redundancy and placement.

D

Candidates may think a managed image enables scaling because it can be used to create many VMs quickly, but it lacks the automatic scaling and load balancing integration that a scale set provides.

785
Matchinghard

A VM backup policy is being designed in a Recovery Services vault. Match each backup policy element to the behavior it controls.

Drag a concept onto its matching description — or click a concept then click the description.

Concepts
Matches

Defines when the backup job starts, such as daily at a specific time.

Defines how long recovery points remain available for restore.

Determines how the scheduled backup time is interpreted in the policy.

Keeps snapshot copies available for fast local restores before the vault copy completes.

Reusable object that combines schedule, retention, and related backup settings.

Why these pairings

A backup policy in a Recovery Services vault includes retention settings (how long to keep backups), schedule (when to back up), snapshot retention (for instant restores), policy type (Standard vs Enhanced), time zone, and frequency (daily/weekly).

786
MCQeasy

You need to deploy a new Ubuntu VM that automatically creates an app user and installs packages the first time it boots. Which approach should you use?

A.Use an availability set so the VM runs the initialization tasks during host placement.
B.Use cloud-init in the VM creation settings to perform first-boot configuration.
C.Use an Azure Policy assignment to install the packages after deployment.
D.Use a managed disk snapshot and attach it to the VM after deployment.
AnswerB

Cloud-init is the standard Linux initialization method for automating first boot tasks. It can create users, install packages, write files, and run commands as the VM starts. This makes it a good fit when you want the operating system to configure itself without needing to sign in afterward or run a separate manual script.

Why this answer

B is correct because cloud-init is the standard, native mechanism for performing first-boot configuration on Linux VMs in Azure. It allows you to inject a configuration file (e.g., YAML or shell script) during VM creation that automatically creates users, installs packages, and runs custom commands on the first boot, without requiring any post-deployment scripts or manual intervention.

Exam trap

The trap here is that candidates confuse Azure Policy (a governance tool) with a configuration management tool like cloud-init or Desired State Configuration (DSC), assuming Policy can execute scripts inside a VM when it only enforces resource-level rules.

Why the other options are wrong

A

An availability set is used for high availability by distributing VMs across fault domains, not for executing initialization tasks like creating users or installing packages.

C

Azure Policy is used to enforce compliance rules across resources, not to execute first-boot configuration scripts or install packages on a VM. It cannot run commands inside a VM after deployment.

D

A managed disk snapshot captures the disk state at a point in time but does not execute first-boot configuration tasks like creating users or installing packages; it simply clones the disk content.

When would these options actually be correct?

A

When the question asks how to ensure high availability for a multi-VM application by placing VMs in separate fault and update domains to minimize downtime during maintenance or failures.

C

If the question asked how to enforce that all deployed VMs in a subscription have a specific security package installed, an Azure Policy assignment with a DeployIfNotExists effect could trigger a remediation task to install the package after deployment.

D

When the question asks to deploy multiple VMs from a pre-configured image that already has the app user and packages installed, using a snapshot to create a managed disk and attach it to new VMs would be correct for rapid, consistent deployment.

Why candidates pick the wrong answer

A

Candidates may confuse availability sets with custom scripts or extensions that run during deployment, mistakenly thinking the placement process triggers initialization tasks.

C

Candidates may confuse Azure Policy with Azure Automation or Custom Script Extension, thinking policy can execute scripts, or they may overestimate the scope of policy's capabilities to include post-deployment configuration.

D

Candidates may confuse snapshots with generalized images, thinking a snapshot can include initialization scripts, or they may believe attaching a snapshot disk triggers setup tasks similar to a custom image.

787
MCQmedium

An application subnet has an NSG outbound rule Deny-HTTPS at priority 200 for TCP 443 to Any. A second outbound rule Allow-HTTPS-API at priority 300 permits TCP 443 from ASG-Web to ASG-Api. Web servers can reach other ports but not the API. What change should the administrator make?

A.Delete the deny rule so the allow rule can be evaluated.
B.Change the allow rule to a higher priority than 200, such as 100.
C.Change the destination from ASG-Api to the entire subnet address range.
D.Change the protocol from TCP to Any so the rule matches more traffic.
AnswerB

NSGs process the lowest priority number first. Moving the allow rule above the deny rule permits the traffic.

Why this answer

NSG rules are evaluated in priority order, with lower numbers having higher precedence. The Deny-HTTPS rule at priority 200 blocks all outbound TCP 443 traffic, including traffic from ASG-Web to ASG-Api. To allow the specific traffic, the Allow-HTTPS-API rule must have a lower priority number (e.g., 100) so it is evaluated before the deny rule, permitting the desired traffic while the deny rule still blocks other outbound HTTPS traffic.

Exam trap

The trap here is that candidates often assume more specific rules (like those using application security groups) are evaluated before general deny rules, but in Azure NSGs, priority numbers alone determine evaluation order, not specificity.

Why the other options are wrong

A

In Azure, NSG rules are evaluated in priority order (lowest number first). The deny rule at priority 200 is evaluated before the allow rule at priority 300, so deleting the deny rule would allow the allow rule to work, but the question asks for a change to fix the issue without deleting the deny rule. The correct fix is to increase the priority of the allow rule.

C

The allow rule already permits traffic to ASG-Api, but the deny rule at priority 200 blocks it before the allow rule at priority 300 is evaluated. Changing the destination to the entire subnet would not resolve the priority issue; the deny rule would still block traffic to the subnet.

D

Changing the protocol to Any would not resolve the issue because the Deny-HTTPS rule at priority 200 still blocks TCP 443 traffic regardless of protocol scope. The allow rule at lower priority (300) is never evaluated due to the higher-priority deny.

When would these options actually be correct?

A

If the question stated that the deny rule was unnecessary and could be removed without affecting security requirements, and the goal was to allow HTTPS traffic to the API, then deleting the deny rule would be correct. For example, if the deny rule was mistakenly added and the allow rule was intended to be the only rule governing HTTPS traffic.

C

If the NSG had no deny rule and the allow rule was too restrictive (e.g., only allowing traffic to a specific IP that is not the API server), then expanding the destination to the entire subnet address range could permit the required traffic.

D

In a scenario where an NSG rule is too restrictive on protocol (e.g., only allowing TCP but the application requires UDP), changing the protocol to Any would permit all traffic types, potentially fixing connectivity issues caused by protocol mismatch.

Why candidates pick the wrong answer

A

Candidates may think that removing a blocking rule is the simplest solution, not realizing that NSG rules are evaluated in priority order and that the deny rule can coexist with a higher-priority allow rule. They might also overlook that the question implies the deny rule should remain for other traffic.

C

Candidates may think that the allow rule's destination is too narrow and that widening it to the subnet will override the deny rule, misunderstanding that NSG rules are evaluated in priority order and a higher-priority deny always blocks matching traffic.

D

Candidates may think that broadening the protocol scope will make the allow rule more effective, overlooking that priority order determines rule evaluation and a higher-priority deny still blocks the traffic.

788
Multi-Selecteasy

A company wants a single storage account for blob containers, Azure Files shares, and blob lifecycle management rules. Which two statements about the required account are true? Select two.

Select 2 answers
A.It should be a general-purpose v2 storage account.
B.It can host both blob containers and Azure Files shares.
C.It must be a premium block blob account.
D.It cannot use lifecycle management on blobs.
E.It can store only one type of Azure Storage data service at a time.
AnswersA, B

General-purpose v2 is the standard choice for combined blob and file workloads and supports the modern storage features the company needs.

Why this answer

A general-purpose v2 (GPv2) storage account is required because it is the only account type that supports all Azure Storage data services—including blob containers and Azure Files—and also provides full support for blob lifecycle management policies. GPv2 accounts offer the lowest per-gigabyte storage prices for blobs and enable you to define rules to automatically tier or delete blobs based on age or other conditions.

Exam trap

The trap here is that candidates often assume premium storage accounts are required for performance or that a storage account can only host one service type, but GPv2 accounts are the universal choice for mixed workloads and lifecycle management.

Why the other options are wrong

C

A premium block blob account does not support Azure Files shares, which are required by the company's need for a single storage account hosting both blob containers and Azure Files shares.

D

General-purpose v2 storage accounts support blob lifecycle management, so this option is false for the required account.

E

A general-purpose v2 storage account can simultaneously host multiple data services including blob containers and Azure Files shares, so it is not limited to one type at a time.

When would these options actually be correct?

C

If the question specified that the account must provide low-latency storage for block blobs and did not require Azure Files shares or lifecycle management, then a premium block blob account would be the correct choice.

D

If the question specified a premium block blob account (e.g., for low-latency workloads) and asked which feature is not supported, then 'cannot use lifecycle management' would be correct because premium block blob accounts do not support lifecycle management policies.

E

If the question specified a storage account type that only supports a single data service, such as a premium block blob account (which only supports block blobs) or a legacy account type, then it would be correct that it can store only one type at a time.

Why candidates pick the wrong answer

C

Candidates may think 'premium' implies better performance and broader capabilities, not realizing that premium block blob accounts are specialized and lack support for Azure Files and lifecycle management.

D

Candidates may confuse premium block blob accounts with general-purpose v2 accounts, incorrectly assuming that premium accounts also support lifecycle management, or they may think lifecycle management is only for standard tiers.

E

Candidates may confuse the concept of storage account types with the idea that each account is dedicated to a single service, especially when thinking of specialized accounts like premium block blob accounts.

789
Matchinghard

A team manages a production VM and its supporting storage account. Match each operational requirement to the Azure Monitor component that should be configured.

Drag a concept onto its matching description — or click a concept then click the description.

Concepts
Matches

Metric alert rule

Action group

Diagnostic setting

Activity log alert

Log Analytics workspace

Why these pairings

Azure Monitor Metrics stores numerical performance data, Log Analytics enables KQL queries, Alerts notify on conditions, Workbooks provide dashboards, the Azure Monitor Agent collects guest OS logs, and Storage analytics logs capture storage access data.

790
Multi-Selectmedium

A subscription must block creation of resources in any region except East US and West US, and the security team also wants a nonblocking report of existing resources that are missing a CostCenter tag. Which two Azure Policy effects should you use? Select two.

Select 2 answers
A.Deny
B.Audit
C.Modify
D.DeployIfNotExists
E.Disabled
AnswersA, B

Deny is the correct effect to enforce a hard block on disallowed regions: Azure Policy evaluates the incoming create or update request and returns a 403 Forbidden for any noncompliant resource, so the deployment is stopped before any resource is provisioned. It works with the resource's `location` property at request time, making it ideal for a subscription-level mandate to reject resources in any region outside the approved geographies. Unlike audit-only effects, Deny prevents the noncompliant resource from existing at all.

Why this answer

Deny is correct because it actively blocks resource creation in regions outside East US and West US by evaluating the location property against an allowed list and rejecting non-compliant requests at deployment time. Audit is correct because it logs a compliance event for existing resources missing the CostCenter tag without blocking any operations, providing a nonblocking report for the security team.

Exam trap

The trap here is that candidates often confuse Audit (which only reports) with DeployIfNotExists or Modify (which actively remediate), leading them to select a remediation effect when the question explicitly asks for a nonblocking report.

Why the other options are wrong

C

Modify effect automatically changes non-compliant resources, but the requirement is to block creation in disallowed regions and only report missing CostCenter tags without remediation.

D

DeployIfNotExists is used to deploy resources (like a policy remediation task) when a non-compliant resource exists, but the requirement is only to report (non-blocking) missing CostCenter tags, not to automatically deploy a tag or resource.

E

The Disabled effect turns off a policy definition entirely, so it cannot block resource creation in restricted regions or generate a nonblocking report of untagged resources.

When would these options actually be correct?

C

Use Modify when you need to automatically add or change a tag (e.g., CostCenter) on existing or newly created resources to enforce compliance, such as ensuring all resources have a required tag value.

D

DeployIfNotExists would be correct if the requirement was to automatically deploy a CostCenter tag with a default value to any existing resource that lacks it, and the policy should also evaluate and remediate non-compliant resources.

E

If a question asks you to temporarily deactivate a policy without deleting it (e.g., during maintenance or testing), you would set the policy effect to Disabled.

Why candidates pick the wrong answer

C

Candidates may think Modify can both block and auto-correct, but it doesn't block creation; it only alters resources after creation, and the question explicitly wants a nonblocking report for missing tags.

D

Candidates may confuse DeployIfNotExists with Audit, thinking it can both report and automatically fix missing tags, but the question explicitly asks for a non-blocking report, not remediation.

E

Candidates may think 'Disabled' is a valid effect for a policy that should not enforce anything, but the question requires both blocking and auditing, which need active effects.

791
MCQmedium

Based on the exhibit, which Azure feature best meets the file-sharing requirement?

A.Azure Files only, because a cloud file share can replace every branch server share directly.
B.Azure File Sync, because it synchronizes local servers with a central Azure file share and keeps hot data cached.
C.Azure Backup, because it can restore files after a WAN outage occurs.
D.Azure NetApp Files, because it is the only service that supports SMB access from Windows servers.
AnswerB

Azure File Sync is designed for exactly this pattern. It keeps a central Azure file share while allowing local Windows Server endpoints to cache and serve frequently used files. That means branch offices can continue working during WAN interruptions, and the files later synchronize back to the cloud.

Why this answer

Azure File Sync is the correct choice because it enables hybrid file sharing by synchronizing on-premises Windows file servers with a central Azure file share, while also keeping frequently accessed (hot) data cached locally for low-latency access. This directly meets the requirement to replace branch server shares with a cloud-backed solution that maintains local performance.

Exam trap

The trap here is that candidates often confuse Azure Files (a standalone cloud file share) with Azure File Sync (a hybrid synchronization service), mistakenly thinking a cloud-only share can replace on-premises shares without addressing latency or caching needs.

Why the other options are wrong

A

Azure Files alone does not provide local caching or synchronization; it requires a direct cloud connection for each branch, which may not meet the requirement for hot data caching at branch servers.

C

Azure Backup is a backup and restore service, not a file-sharing or synchronization solution. It does not provide continuous file sharing or caching capabilities to replace branch server shares.

D

Azure NetApp Files is a high-performance file service for enterprise workloads, but it does not provide the file synchronization and local caching capabilities required to replace branch server shares with a central Azure file share. The question's requirement is for a feature that synchronizes local servers with a central share and keeps hot data cached, which is exactly what Azure File Sync does.

When would these options actually be correct?

A

If the requirement is simply to replace branch server shares with a single cloud-based file share accessible over the internet, without needing local caching or synchronization, then Azure Files would be the correct answer.

C

In a scenario where the requirement is to protect file shares from accidental deletion or corruption and enable point-in-time restore, Azure Backup would be the correct answer. For example, a question asking 'Which Azure service should you use to ensure file shares are recoverable after a ransomware attack?'

D

Azure NetApp Files would be correct in a scenario requiring a high-performance, low-latency NFS or SMB file share for demanding enterprise applications (e.g., SAP HANA, Oracle databases) running on Azure, where native Azure Files performance is insufficient and advanced data management features like snapshots and cloning are needed.

Why candidates pick the wrong answer

A

Candidates may think Azure Files directly replaces on-premises shares without considering the need for local performance and offline access that Azure File Sync provides.

C

Candidates may confuse Azure Backup's restore capabilities with file-sharing features, especially if the question mentions 'restore after WAN outage', leading them to think backup can serve as a file-sharing solution.

D

Candidates may choose Azure NetApp Files because it supports SMB access from Windows servers, and they might incorrectly assume that any SMB-based file service can meet the file-sharing requirement, overlooking the specific need for synchronization and caching that Azure File Sync provides.

792
Multi-Selectmedium

The service desk needs to add and remove users from a support group that grants access to an internal application, but the service desk must not receive Azure subscription permissions. Which two actions should you take? Select two.

Select 2 answers
A.Create a security group in Microsoft Entra ID for the application access.
B.Add the service desk staff as owners of that group.
C.Assign the service desk staff Contributor on the subscription.
D.Convert the service desk staff into guest users in the tenant.
E.Add the service desk staff as members only, without ownership.
AnswersA, B

Security groups are the standard Entra ID container for access management. They let you grant permissions once and control membership centrally, which is ideal for a support team that will add and remove users often.

Why this answer

Creating a security group in Microsoft Entra ID (formerly Azure AD) allows you to manage access to the internal application without granting any Azure subscription permissions. The service desk can then add or remove users from this group, and the application's access control can be configured to rely on group membership, ensuring the service desk staff never receive Azure RBAC roles.

Exam trap

The trap here is that candidates often confuse Azure RBAC roles (like Contributor) with Microsoft Entra ID directory roles or group ownership, mistakenly thinking that managing group membership requires subscription-level permissions.

Why the other options are wrong

C

Assigning Contributor on the subscription grants the service desk broad Azure resource permissions, which violates the requirement that they must not receive Azure subscription permissions.

When would these options actually be correct?

C

If the question required granting a team full management rights to all resources in a subscription (e.g., to deploy and manage infrastructure), then assigning Contributor on the subscription would be correct.

Why candidates pick the wrong answer

C

Candidates may think Contributor is a standard role for managing access, but overlook that it grants excessive permissions beyond just managing group membership.

793
MCQmedium

Based on the exhibit, which identity should be enabled on the VM so the application can access Azure Blob Storage and the identity disappears when the VM is deleted?

A.System-assigned managed identity
B.User-assigned managed identity
C.Storage account shared key
D.SAS token stored in a startup script
AnswerA

A system-assigned managed identity is tied directly to one Azure resource, such as a VM. It is created and removed with the VM, which matches the requirement that the identity disappear automatically when the VM is deleted. The application can use the identity to request tokens for Blob Storage without storing secrets in code or configuration.

Why this answer

A system-assigned managed identity is tied directly to the lifecycle of the Azure VM — when the VM is deleted, the identity is automatically removed. It can be granted access to Azure Blob Storage via Azure RBAC, allowing the application to authenticate without storing credentials. This matches the requirement for an identity that disappears with the VM.

Exam trap

The trap here is that candidates often confuse user-assigned managed identities (which persist independently) with system-assigned managed identities (which are tied to the VM lifecycle), leading them to select the wrong option when the question explicitly requires the identity to disappear with the VM.

Why the other options are wrong

B

User-assigned managed identity persists independently of the VM lifecycle; it does not disappear when the VM is deleted, failing the requirement that the identity disappears with the VM.

C

A storage account shared key provides full access to the storage account and does not disappear when the VM is deleted; it persists until manually rotated or deleted, and it is not an identity tied to the VM lifecycle.

D

SAS tokens stored in a startup script do not automatically disappear when the VM is deleted; they persist in the script or storage, and they require manual management, unlike managed identities which are tied to the VM lifecycle.

When would these options actually be correct?

B

A user-assigned managed identity would be correct if the question required the same identity to be used across multiple VMs or resources, and the identity must remain available after a VM is deleted for other resources to use.

C

This option would be correct in a scenario where an application needs to access Azure Blob Storage using a key-based authentication method, and the question does not require the access credential to disappear when the VM is deleted, or where the key is managed separately.

D

A question that asks for a method to grant temporary, scoped access to a specific blob or container from a VM, where the access must be revocable independently of the VM lifecycle, and the solution must not require identity management in Azure AD.

Why candidates pick the wrong answer

B

Candidates may confuse user-assigned and system-assigned managed identities, thinking both are tied to the VM lifecycle, or they may recall that user-assigned identities are more flexible and assume they are the default choice for any scenario.

C

Candidates may think a shared key is a simple way to grant access without understanding managed identities, or they may confuse shared keys with identity-based access, overlooking the requirement for the credential to be tied to the VM lifecycle.

D

Candidates may think a SAS token is a simple way to grant access without understanding that it does not automatically delete with the VM and requires secure storage, leading them to overlook the lifecycle requirement.

794
MCQmedium

The team accidentally stopped protection for a VM and deleted its backup data. They want Azure Backup to keep deleted backup items recoverable for a grace period so the item can be undeleted if needed. Which vault feature should be enabled?

A.Instant restore
B.Soft delete
C.A new backup policy
D.A private endpoint for the vault
AnswerB

Soft delete keeps removed backup items in a recoverable state for a retention period after deletion or after protection is stopped. That gives administrators a safety window to reverse accidental deletion and prevents immediate permanent loss of backup data. It is the right protection setting for accidental removal scenarios in Recovery Services vaults.

Why this answer

Soft delete is the correct feature because it provides a grace period (default 14 days) during which deleted backup data is retained in a soft-deleted state. This allows administrators to recover (undelete) backup items that were accidentally deleted, including cases where protection was stopped and data was removed. Without soft delete, deleted backup data is permanently purged and cannot be recovered.

Exam trap

The trap here is that candidates confuse 'soft delete' with 'instant restore' because both involve retention of backup data, but instant restore only affects recovery point snapshots, not the ability to recover deleted items after protection is stopped.

Why the other options are wrong

A

Instant restore controls the retention of recovery points for immediate restoration, not the grace period for deleted backup items. It does not allow undeletion of accidentally deleted backups.

C

A new backup policy defines backup schedule and retention rules, but it cannot recover deleted backup data or provide a grace period for undeletion. The question specifically asks for a feature that keeps deleted items recoverable, which is soft delete, not a policy.

D

A private endpoint for the vault provides secure network connectivity to the Recovery Services vault, not a grace period for recovering deleted backup items.

When would these options actually be correct?

A

Enable Instant Restore when you need to reduce the time it takes to restore a VM by keeping snapshots locally for a specified duration, independent of the vault. This is useful for faster recovery in disaster scenarios.

C

This option would be correct if the question asked: 'The team needs to change the retention duration for future backups of a VM. Which vault feature should be configured?'

D

When an exam question requires ensuring that backup traffic to the vault does not traverse the public internet and must be isolated within a virtual network, enabling a private endpoint would be the correct answer.

Why candidates pick the wrong answer

A

Candidates may confuse 'instant' with 'immediate recovery' and think it provides a quick way to restore deleted items, not realizing it only affects snapshot retention for active backups.

C

Candidates may think that creating a new policy can somehow restore or protect deleted data, confusing policy management with data recovery features.

D

Candidates may confuse private endpoints with data protection features, thinking that restricting network access also protects backup data from accidental deletion or provides recovery capabilities.

795
MCQmedium

A storage account must be reachable only from one subnet. The team does not want to deploy a private endpoint or manage private DNS zones, and they are acceptable with the storage account continuing to use its public endpoint. Which feature should be configured on the subnet?

A.A private endpoint for the storage account
B.A service endpoint for Microsoft.Storage
C.A route table with a default route to the storage account
D.An application security group containing the subnet
AnswerB

A service endpoint allows the selected subnet to access the storage service over the Azure backbone while the service keeps its public endpoint. It fits the requirement to avoid private DNS and private IP deployment.

Why this answer

A service endpoint for Microsoft.Storage allows a subnet to restrict access to a storage account's public endpoint without deploying a private endpoint or managing private DNS zones. When enabled, Azure adds the subnet's identity to traffic from that subnet, and the storage account's firewall can be configured to allow only that specific subnet, keeping the public endpoint active.

Exam trap

The trap here is that candidates may confuse service endpoints with private endpoints, assuming that restricting access to a subnet requires a private IP, when service endpoints achieve the same goal using the public endpoint with subnet-level firewall rules.

Why the other options are wrong

A

The question explicitly states the team does not want to deploy a private endpoint or manage private DNS zones, and they are acceptable with using the public endpoint. A private endpoint would require a private endpoint resource and private DNS zones, contradicting these constraints.

C

A route table with a default route to the storage account does not restrict access to a specific subnet; it only controls network traffic routing, not access control. The storage account's public endpoint would still be accessible from any subnet, failing the requirement to limit access to one subnet.

D

An application security group (ASG) is used to group virtual machines by application roles for network security group (NSG) rules, not to restrict storage account access to a specific subnet. It does not provide network-level access control to Azure PaaS services like storage accounts.

When would these options actually be correct?

A

If the question required the storage account to be accessible only from a subnet using a private IP address and without using the public endpoint, and the team was willing to manage private DNS zones, then a private endpoint would be the correct answer.

C

This option would be correct in a scenario where the goal is to force all outbound traffic from the subnet to the storage account through a specific path, such as a firewall or network virtual appliance, for inspection or logging purposes, without requiring subnet-level access restrictions.

D

In a scenario where you need to apply NSG rules to a group of VMs based on their application tier (e.g., web servers, database servers), and you want to simplify rule management by using ASGs instead of individual IP addresses or subnets.

Why candidates pick the wrong answer

A

Candidates may confuse service endpoints with private endpoints, or think that private endpoints are the only way to restrict network access to a subnet, overlooking that service endpoints can achieve subnet-level restriction without private IPs.

C

Candidates may confuse routing with access control, thinking that adding a route to the storage account's IP range would somehow restrict access to only that subnet, or they may overestimate the role of route tables in network security.

D

Candidates may confuse ASGs with service endpoints or think that ASGs can be used to restrict network traffic to Azure services, similar to how NSGs can filter traffic to VMs.

796
MCQhard

A subnet has a user-defined route for 10.0.0.0/8 with next hop Virtual appliance 10.1.1.4. The VNet is peered with VNet-Shared, whose address space is 10.12.0.0/16. A VM in the subnet sends traffic to 10.12.4.25. Which next hop will Azure use?

A.Virtual appliance 10.1.1.4, because the user-defined route controls all 10.x.x.x traffic.
B.Internet, because traffic not explicitly matched by the UDR leaves through the default route.
C.None, because Azure cannot route to peered VNets when a UDR exists on the subnet.
D.VNet peering, because the peered VNet prefix is more specific than the broader UDR.
AnswerD

Azure uses longest-prefix match first. The peered VNet has a /16 route to 10.12.4.25, while the UDR only matches 10.0.0.0/8. The /16 system route is more specific, so the packet follows VNet peering rather than the virtual appliance. This is a common design trap when administrators expect every UDR to override all other routes.

Why this answer

Azure uses the most specific matching route to determine next hop. The user-defined route (UDR) for 10.0.0.0/8 has a broader prefix length (/8) than the VNet peering route for 10.12.0.0/16 (/16). Since 10.12.4.25 falls within the peered VNet's address space, the more specific /16 route from VNet peering takes precedence over the UDR, directing traffic through the peering connection.

Exam trap

The trap here is that candidates assume a user-defined route for a broad range (like 10.0.0.0/8) overrides all traffic to that range, forgetting that Azure's longest prefix match rule gives precedence to more specific routes, such as those from VNet peering.

Why the other options are wrong

A

The UDR for 10.0.0.0/8 is less specific than the VNet peering route for 10.12.0.0/16, so Azure uses the most specific prefix match (peering), not the UDR.

B

Azure uses the most specific prefix match. The VNet peering route for 10.12.0.0/16 is more specific than the UDR's 10.0.0.0/8, so traffic to 10.12.4.25 uses VNet peering, not the Internet.

C

Azure can route to peered VNets even when a UDR exists; the UDR's 10.0.0.0/8 prefix is less specific than the peered VNet's 10.12.0.0/16, so the more specific peering route is preferred.

When would these options actually be correct?

A

If the UDR had a more specific prefix (e.g., 10.12.0.0/16) or if the traffic was destined to an IP within the UDR's range but not covered by a more specific route (e.g., 10.0.0.1), then the virtual appliance would be the next hop.

B

If the subnet had no UDR and no VNet peering, and the VM sent traffic to an IP not matching any VNet or peering route, Azure would use the default system route (0.0.0.0/0, next hop Internet) for internet-bound traffic.

C

If the UDR had a more specific route (e.g., 10.12.0.0/16) with next hop Virtual appliance, and the VNet peering was not configured to use the remote gateway or had a conflicting route, then Azure would use the UDR and traffic would not reach the peered VNet directly.

Why candidates pick the wrong answer

A

Candidates may incorrectly assume that a user-defined route overrides all other routes for its address prefix, ignoring Azure's longest prefix match rule and the existence of more specific routes from peering.

B

Candidates may incorrectly assume that any traffic not explicitly matched by a UDR automatically goes to the Internet, forgetting that more specific routes (like VNet peering) take precedence over the default route.

C

Candidates may mistakenly think that a UDR overrides all other routing, including peering, or that peering is disabled when any custom route exists on the subnet.

797
MCQhard

You need to allow recovery of previous versions of files stored in an Azure file share after accidental modification or deletion. Which feature should you configure?

A.Blob versioning
B.Share snapshots for Azure Files
C.A shared access signature
D.Storage account failover
AnswerB

Share snapshots are read-only, point-in-time copies of an Azure file share that capture the exact state of all files at the moment the snapshot is created. Because the snapshot preserves the contents of every file as it existed at that instant, you can mount the snapshot or use its share path to copy an earlier version of a specific file back over the live version, achieving full point-in-time recovery. This is the native Azure Files mechanism for keeping and restoring previous file versions, and it works directly on SMB shares without requiring another storage service.

Why this answer

Share snapshots for Azure Files capture point-in-time, read-only copies of the file share, allowing you to recover previous versions of files after accidental modification or deletion. This feature is specifically designed for Azure file shares, not for blobs, and does not require any additional infrastructure.

Exam trap

The trap here is that candidates confuse Blob versioning (which is for Azure Blob Storage) with share snapshots for Azure Files, as both provide versioning-like capabilities, but they apply to different storage services and have distinct implementations.

Why the other options are wrong

A

Blob versioning is a feature for Azure Blob Storage, not Azure Files. The question specifically asks about files in an Azure file share, which requires share snapshots for version recovery.

C

A shared access signature (SAS) provides delegated access to storage resources, not version recovery. It cannot restore previous file versions or protect against accidental modification/deletion.

D

Storage account failover is a disaster recovery feature that switches the primary region to a secondary region in case of a regional outage. It does not provide point-in-time recovery of individual file versions after accidental modification or deletion.

When would these options actually be correct?

A

If the question asked about recovering previous versions of blobs in an Azure Blob Storage container after accidental modification or deletion, then blob versioning would be the correct feature to configure.

C

A question asking for a method to grant time-limited, delegated access to a specific file share for a third-party application, without sharing the storage account key, would have SAS as the correct answer.

D

This option would be correct in a scenario where the question asks: 'You need to ensure that your storage account remains available during a regional outage. Which feature should you configure?'

Why candidates pick the wrong answer

A

Candidates may confuse Azure Files with Azure Blob Storage, assuming both use blob versioning for version recovery, or they may not realize that Azure Files has its own snapshot feature.

C

Candidates may confuse SAS with a recovery feature because it can be used to grant access to snapshots, but SAS itself does not enable versioning or recovery.

D

Candidates may confuse failover with recovery capabilities, thinking that failover can restore previous file versions, or they may associate 'recovery' broadly with any disaster recovery feature.

798
MCQmedium

A VM has both a default route from a VPN gateway and a user-defined route to an on-premises firewall. Traffic is still not reaching the expected next hop. The administrator wants to see the exact routes currently applied to the VM NIC. Which tool should be used?

A.Effective routes
B.IP flow verify
C.Packet capture
D.Connection troubleshoot
AnswerA

Effective routes show the actual routing table that Azure applies to a VM NIC, including system routes, UDRs, and routes learned from gateways. This is the best way to verify which next hop will be used after route selection logic is applied. It is especially helpful when a VPN gateway, UDR, or default Azure route creates an unexpected path and the administrator needs the exact active result rather than the intended configuration.

Why this answer

Effective routes is the correct tool because it displays the actual, consolidated routing table applied to a specific network interface, including user-defined routes (UDRs), BGP routes from the VPN gateway, and system default routes. When traffic fails to reach the expected next hop despite having both a VPN default route and a UDR, the administrator must verify which route is actually active and has the highest priority (based on prefix length and route preference). Effective routes shows the exact next-hop IP and route source for each prefix, allowing the administrator to confirm whether the UDR to the on-premises firewall is being honored or overridden.

Exam trap

The trap here is that candidates often confuse 'IP flow verify' (which tests connectivity) with 'Effective routes' (which shows the routing table), leading them to choose IP flow verify when the real need is to inspect the actual route selection logic applied to the NIC.

Why the other options are wrong

B

IP flow verify checks if traffic is allowed or denied based on NSG rules, but it does not show the effective routes applied to a VM NIC. The question asks for the exact routes, not security rule validation.

C

Packet capture captures network traffic for analysis, but it does not show the routes applied to a VM NIC. The question asks for the exact routes currently applied, which is provided by effective routes, not packet capture.

D

Connection troubleshoot is used to test connectivity between a VM and another endpoint, not to display the exact routes applied to a VM NIC. The question asks for a tool to view current routes, which is the purpose of Effective routes.

When would these options actually be correct?

B

IP flow verify would be correct if the question asked: 'A VM cannot communicate with an on-premises server. The administrator suspects a network security group is blocking traffic. Which tool should be used to test connectivity and identify blocking rules?'

C

Packet capture would be correct when the question asks to analyze network traffic to diagnose connectivity issues, such as capturing packets to see if traffic is being sent to the correct next hop or to inspect packet contents for security or performance analysis.

D

Connection troubleshoot would be correct when the question asks to diagnose why a VM cannot connect to a specific IP address or port, and you need to test end-to-end connectivity including network security group rules and routing.

Why candidates pick the wrong answer

B

Candidates may confuse IP flow verify with effective routes because both are used for network troubleshooting, but IP flow verify focuses on NSG rules, not routing tables.

C

Candidates may think packet capture can reveal routing by inspecting packet headers, but it only shows actual traffic, not the routing table or effective routes applied to the NIC.

D

Candidates may confuse 'troubleshoot' with 'view routes', assuming that a connectivity troubleshooting tool would also show routing information, or they may think that testing connectivity implicitly reveals routing issues.

799
MCQmedium

An Azure Automation account runs PowerShell runbooks that must authenticate to Azure resources without embedded secrets. The automation account is recreated periodically during deployment, and the identity must continue to work after recreation without reissuing credentials. Which identity should you use?

A.A system-assigned managed identity.
B.A user-assigned managed identity.
C.A service principal with a client secret stored in Key Vault.
D.A shared access signature token.
AnswerB

This identity exists independently of the Automation account and survives recreation.

Why this answer

A user-assigned managed identity (B) is the correct choice because it is an independent Azure resource that persists even when the Automation account is recreated. Unlike a system-assigned managed identity, which is tied to the lifecycle of the Automation account and is deleted when the account is deleted, a user-assigned managed identity can be reassigned to the new Automation account after recreation without requiring new credentials. This allows the runbooks to authenticate seamlessly using the same identity, avoiding embedded secrets.

Exam trap

The trap here is that candidates often assume a system-assigned managed identity is simpler and sufficient, but they overlook that it is deleted with the resource, making it unsuitable for scenarios where the resource is recreated and identity continuity is required.

Why the other options are wrong

A

A system-assigned managed identity is tied to the lifecycle of the Automation account; when the account is recreated, a new identity is created, breaking the association with existing role assignments and requiring reassignment.

C

The question requires that the identity continue to work after the automation account is recreated without reissuing credentials. A service principal with a client secret stored in Key Vault would require reissuing the secret or updating the runbook's reference after recreation, violating the 'without reissuing credentials' constraint.

D

A shared access signature (SAS) token is used for delegated access to Azure Storage resources, not for authenticating runbooks to Azure resources in general. It does not support the identity lifecycle requirement of surviving Automation account recreation without reissuing credentials.

When would these options actually be correct?

A

A system-assigned managed identity is correct when the Automation account is created once and never recreated, and you want the identity to be automatically deleted with the resource to avoid orphaned identities.

C

A service principal with a client secret stored in Key Vault would be correct in a scenario where the automation account is not recreated, and you need to authenticate to external services or resources that do not support managed identities, while securely storing the secret in Key Vault.

D

A question asking for a method to grant time-limited access to a specific Azure Storage blob or container for a download operation, where the access must be revocable and scoped to that resource only, would make a SAS token the correct answer.

Why candidates pick the wrong answer

A

Candidates may think system-assigned is simpler and automatically managed, overlooking the requirement that the identity must persist across account recreation without manual intervention.

C

Candidates may think that using a service principal with Key Vault is a secure and flexible authentication method, and they might overlook the requirement that the identity must survive recreation without reissuing credentials.

D

Candidates may confuse SAS tokens with managed identities because both can provide access without embedding secrets, but SAS tokens are limited to Storage and are not identities that can be reassigned after resource recreation.

800
MCQeasy

A contractor needs temporary read-only access to a single blob container for three hours. The contractor does not have an Azure user account in your tenant. Which method is the best fit?

A.Create a new managed identity for the contractor
B.Give the contractor the storage account access key
C.Issue a shared access signature with read-only permissions and an expiration time
D.Enable anonymous public access on the container
AnswerC

A shared access signature (SAS) is the correct approach because it lets you delegate limited permissions to a specific Azure Storage resource—here, a single blob—without exposing the account key. By setting read-only permissions (r) and a short expiration time, you enforce both the scope and the duration of the contractor's access. A SAS can also be restricted to a particular IP range or service version, adding another layer of control. The token is appended to the blob URL, making it easy to share while keeping the underlying storage account secured.

Why this answer

A shared access signature (SAS) is the best fit because it provides time-limited, delegated access to a specific resource (a blob container) without requiring an Azure AD identity. The contractor can use the SAS URL to access the container with read-only permissions for exactly three hours, after which the token expires automatically. This meets the requirement of temporary access for an external user who does not have an Azure account in your tenant.

Exam trap

The trap here is that candidates may confuse managed identities (designed for Azure resources, not external users) with user accounts, or mistakenly think that sharing the account key is acceptable for temporary access, overlooking the severe security risk and lack of scoping.

Why the other options are wrong

A

Managed identities are for Azure resources to authenticate to other services, not for external users without an Azure account. They cannot be assigned to a contractor who lacks a user identity in the tenant.

B

The storage account access key grants full administrative access to the entire storage account, not read-only access to a single blob container, and it does not expire after three hours.

D

Enabling anonymous public access on the container would grant read access to anyone on the internet without time restriction, violating the temporary and controlled access requirement.

When would these options actually be correct?

A

A question where a virtual machine needs temporary read-only access to a blob container without storing credentials. The correct answer would be to assign a managed identity to the VM and grant it RBAC permissions.

B

A question where a user needs full administrative access to a storage account for an indefinite period, and the user is trusted within the organization, such as a storage administrator managing all storage resources.

D

A question where the requirement is to allow public read-only access to a blob container for all users (e.g., for hosting static website assets) without authentication or time limits.

Why candidates pick the wrong answer

A

Candidates may confuse managed identities with service principals or think they can be used for any identity, including external users, because they provide secure access without managing keys.

B

Candidates may think the access key is a simple way to grant access without setting up Azure AD accounts, overlooking that it provides excessive permissions and lacks time-bound expiration.

D

Candidates may think anonymous access is a quick way to grant read access without managing credentials, overlooking the lack of time restriction and security implications.

801
MCQhard

A web app in a subnet must access a storage account through the storage account's public FQDN. Access must be limited to that single subnet, and the team does not want to deploy a private endpoint or manage private DNS records. Which configuration should you use?

A.Deploy a private endpoint and private DNS zone.
B.Enable a service endpoint on the subnet and allow that subnet in the storage account network rules.
C.Add a route table that sends storage traffic to an NVA.
D.Place the storage account behind a public load balancer.
AnswerB

Enabling the Microsoft.Storage service endpoint on the subnet keeps the storage account's public FQDN and public endpoint, while Azure filters traffic so only the subnet's traffic is allowed. You then add that subnet to the storage account's network rules (firewall), which rejects requests from other subnets or the internet. This gives subnet-scoped access control with no private IPs, no DNS zone, and no extra routing configuration, making it the correct, least-complex answer.

Why this answer

A service endpoint on the subnet allows the web app to access the storage account via its public FQDN while restricting access to that specific subnet. By enabling the Microsoft.Storage service endpoint on the subnet and adding the subnet's virtual network rule to the storage account's network rules, traffic from the subnet to the storage account's public endpoint is routed through the Azure backbone network, and only traffic from that subnet is permitted. This meets the requirement of limiting access without deploying a private endpoint or managing private DNS records.

Exam trap

The trap here is that candidates often confuse service endpoints with private endpoints, assuming that service endpoints require private IPs or DNS changes, when in fact service endpoints work with the public FQDN and only require enabling the endpoint on the subnet and configuring the storage account's network rules.

How to eliminate wrong answers

Option A is wrong because deploying a private endpoint and private DNS zone contradicts the explicit requirement to not use a private endpoint or manage private DNS records, and it would change the access method from the public FQDN to a private IP address. Option C is wrong because adding a route table that sends storage traffic to an NVA (Network Virtual Appliance) would force traffic through a third-party device, which is unnecessary and does not inherently restrict access to a single subnet; it also introduces additional complexity and potential latency. Option D is wrong because placing the storage account behind a public load balancer is not a supported configuration for Azure Storage accounts; storage accounts are accessed via their public endpoint or through service/private endpoints, and a load balancer does not provide subnet-level access control.

802
MCQmedium

A subnet has an NSG with an inbound allow rule for TCP 3389 at priority 200 and an inbound deny rule for Internet traffic at priority 100. An administrator still cannot RDP to a virtual machine in the subnet from home. What is the most likely reason?

A.The allow rule is ignored because inbound rules cannot permit RDP.
B.The deny rule wins because lower priority numbers are processed first.
C.NSG rules apply only to outbound traffic, so inbound traffic is unaffected.
D.The subnet NSG is ignored whenever the VM has a public IP address.
AnswerB

Azure NSG rules are evaluated in priority order, and the lowest number is processed first. Because the deny rule has priority 100, it is evaluated before the allow rule at 200 and blocks the traffic.

Why this answer

In Azure Network Security Groups (NSGs), rules are processed in priority order, with lower numbers evaluated first. The deny rule for Internet traffic at priority 100 is processed before the allow rule for TCP 3389 at priority 200, so the deny rule blocks the inbound RDP connection from the internet. This is why the administrator cannot RDP from home.

Exam trap

The trap here is that candidates often assume a higher-priority allow rule can override a lower-priority deny rule, but in Azure NSGs, lower priority numbers are processed first, so a deny at priority 100 blocks traffic before an allow at priority 200 is even considered.

Why the other options are wrong

A

In Azure, NSG inbound rules can permit RDP (TCP 3389) traffic, so the allow rule is valid. The issue is not that the rule type is invalid, but that the deny rule at a lower priority number (100) overrides the allow rule at priority 200.

C

NSG rules apply to both inbound and outbound traffic; inbound rules can control RDP access. The issue here is priority order, not direction.

D

NSGs apply to subnets and network interfaces regardless of public IP assignment; a VM with a public IP still has its inbound traffic filtered by the subnet NSG.

When would these options actually be correct?

A

This option would be correct if the question stated that Azure NSGs do not support inbound rules for RDP, or if the exam asked about a different platform (e.g., AWS security groups) where RDP inbound rules are not allowed by default.

C

If the question asked about a default NSG rule or a scenario where only outbound rules were configured, and the VM had no inbound NSG rules, then outbound-only rules would not affect inbound RDP traffic.

D

If the question stated that the VM has a public IP and the subnet NSG is configured to deny all inbound traffic, but the VM's NIC NSG has an allow rule for RDP, then the subnet NSG would still block traffic because subnet NSGs are evaluated before NIC NSGs. However, the statement 'ignored whenever the VM has a public IP address' is never correct; NSGs are always applied.

Why candidates pick the wrong answer

A

Candidates may mistakenly think that RDP is inherently blocked or that NSGs have restrictions on certain protocols, leading them to believe the allow rule is ignored rather than understanding priority-based rule evaluation.

C

Candidates may confuse NSG rules with route tables or think NSGs are unidirectional, overlooking that NSGs have separate inbound and outbound rule sets.

D

Candidates may mistakenly think that a public IP bypasses NSG rules, confusing public IP assignment with direct internet access without network security filtering.

803
MCQeasy

A team wants every resource in a subscription to include a Department tag. New resources that do not have the tag should be blocked from being created. Which Azure Policy effect should you use?

A.Audit
B.Deny
C.Append
D.Disabled
AnswerB

The Deny effect blocks any resource deployment or update that violates the policy rule. When a resource is submitted without the required tag, Azure Policy evaluates it in the request pipeline and returns an HTTP 403 Conflict before the resource is provisioned, so the noncompliant resource never exists. This is the only effect that enforces the mandatory tag at creation time and prevents the deployment from succeeding, making it the correct choice for the team's requirement.

Why this answer

The Deny effect is correct because it actively blocks any resource creation or update request that does not include the required Department tag, enforcing compliance at the time of the operation. Unlike Audit, which only logs non-compliant resources, Deny prevents the non-compliant resource from being provisioned, directly meeting the requirement to block new resources without the tag.

Exam trap

The trap here is that candidates often confuse Append with Deny, thinking Append will automatically add the tag and thus 'block' the resource, but Append only modifies the request and does not prevent creation if the tag cannot be applied, whereas Deny actively rejects the request.

Why the other options are wrong

A

Audit only logs non-compliant resources but does not block creation. The question requires blocking creation of new resources without the tag, which only Deny can enforce.

C

Append adds the missing tag to non-compliant resources but does not block creation; it only remediates after the fact, whereas the requirement is to block creation of untagged resources.

D

The 'Disabled' effect deactivates the policy, meaning it does not block or audit resources; thus it cannot prevent creation of untagged resources.

When would these options actually be correct?

A

Use Audit when you need to identify existing resources missing the Department tag without blocking creation, e.g., to generate compliance reports before enforcing a policy.

C

Use Append when you want to automatically add a required tag (e.g., Department) to resources that are created without it, without blocking the creation. For example, a policy that ensures all new resources get a 'CostCenter' tag by appending it if missing.

D

Use 'Disabled' when you want to temporarily turn off a policy without deleting it, such as during maintenance or testing, while retaining the policy definition for future use.

Why candidates pick the wrong answer

A

Candidates may think Audit is sufficient to enforce compliance by alerting, but they overlook that it lacks the ability to prevent non-compliant resource creation.

C

Candidates may think Append will enforce the tag by adding it, but they overlook that it does not prevent creation of non-compliant resources; it only modifies them after creation.

D

Candidates might think 'Disabled' is a safe choice to avoid enforcement, but it fails to meet the requirement of blocking untagged resources.

804
MCQmedium

A policy assignment denies storage accounts unless public network access is disabled. One legacy storage account in a pilot resource group must remain publicly reachable for 60 days while the application team remediates dependencies. Compliance reporting must continue to show the policy as enforced everywhere else. What should the administrator do?

A.Delete the policy assignment and re-create it later
B.Use an Azure Policy exemption for that storage account
C.Apply a read-only lock to the storage account
D.Assign a custom RBAC role to the application team
AnswerB

An Azure Policy exemption is the designed mechanism to exclude a specific resource or resource group from policy evaluation while the policy assignment remains active for all other resources. You can apply an exemption at the storage account's scope, set an expiration date, and classify it as Waiver or Mitigated, which documents the business rationale and keeps the resource visible in compliance reports as an approved exception. This preserves governance for the rest of the environment and maintains auditability.

Why this answer

An Azure Policy exemption allows the administrator to exclude a specific scope (the legacy storage account) from the policy's effect while still reporting the policy as enforced on all other resources. The exemption can be set with an expiration date (60 days) to automatically remove the exception after the remediation period. This ensures compliance reporting continues to show the policy as active and enforced everywhere except the exempted resource.

Exam trap

The trap here is that candidates confuse Azure Policy exemptions with RBAC or locks, thinking they can bypass policy enforcement through access control or resource protection, when in fact only a policy exemption (or exclusion) can selectively skip the policy's effect while maintaining compliance reporting.

Why the other options are wrong

A

Deleting the policy assignment would remove enforcement from all resources, not just the legacy storage account, violating the requirement that compliance reporting must continue to show the policy as enforced everywhere else.

C

A read-only lock prevents modifications to the storage account but does not exempt it from the policy that denies public network access; the policy would still block public access, making the account unreachable.

D

Assigning a custom RBAC role to the application team does not exempt the storage account from the policy; the policy still denies public network access, and RBAC roles control permissions, not policy compliance.

When would these options actually be correct?

A

An administrator needs to temporarily remove a policy that is blocking a critical deployment across the entire subscription, and there are no other resources that must remain compliant during the change. Deleting and recreating the policy assignment after the deployment is acceptable.

C

A read-only lock would be correct if the question asked how to prevent accidental deletion or modification of a critical resource, such as a storage account containing immutable audit logs, while still allowing read access.

D

An administrator needs to grant the application team specific permissions to manage storage accounts without giving them full contributor access, while still enforcing policies. Assigning a custom RBAC role with only required actions would be correct.

Why candidates pick the wrong answer

A

Candidates may think that removing the policy assignment is a straightforward way to allow the exception, without considering the impact on other resources and the need for continued compliance reporting.

C

Candidates may confuse locks with policy exemptions, thinking a lock can override policy enforcement, or they may believe that preventing changes to the account's configuration will somehow bypass the policy.

D

Candidates may confuse RBAC with policy exemptions, thinking that granting permissions can override policy enforcement, or they may believe that the application team needs elevated roles to remediate dependencies.

805
Matchinghard

Match each NSG or ASG scenario to the most accurate Azure security behavior.

Drag a concept onto its matching description — or click a concept then click the description.

Concepts
Matches

The priority 200 deny is evaluated first and blocks the flow.

The destination NIC must be added to ASG-Api for the rule to match.

The service tag does not represent the workstation's IP; a rule for the real source or a VPN path is needed.

NSGs are stateful, so the return traffic is allowed automatically.

The lower-number deny rule wins because NSGs stop at the first matching rule.

Why these pairings

NSGs filter traffic at subnet or NIC level, while ASGs group VMs for scalable rule application. Service tags simplify rules for Azure services.

806
MCQmedium

A network engineer wants device logs from routers and switches sent to a central server for long-term retention and analysis. Which service should be configured?

A.NTP
B.DNS
C.Syslog
D.NetFlow
AnswerC

Syslog is the standard logging protocol used by routers, switches, and other network appliances to send event messages—such as interface state changes, authentication failures, and configuration modifications—to a centralized log collector or SIEM. A network engineer would configure a syslog server address on each device to aggregate operational and security logs. Thus, Syslog directly fulfills the requirement to collect device logs.

Why this answer

Syslog is the standard protocol for sending device logs (e.g., from routers and switches) to a central server for long-term retention and analysis. It operates over UDP port 514 (or TCP 6514 for reliable delivery) and allows network devices to forward event messages to a syslog collector, which can store, filter, and analyze them. This directly meets the requirement for centralized logging and analysis.

Exam trap

The trap here is confusing NetFlow with syslog — both involve network data, but NetFlow is for traffic flow statistics (e.g., who talked to whom, how much bandwidth), not for device event logs, so candidates often pick NetFlow thinking it covers 'analysis' without realizing it doesn't handle log messages.

Why the other options are wrong

A

NTP (Network Time Protocol) is used for synchronizing the clocks of network devices, not for collecting or sending logs. Therefore, it does not fulfill the requirement of sending device logs for analysis.

B

DNS (Domain Name System) is used for resolving domain names to IP addresses and does not facilitate the collection or centralization of device logs from routers and switches.

D

NetFlow is primarily used for monitoring and analyzing network traffic flows rather than collecting device logs. It does not provide the capability to send logs from routers and switches to a central server for retention and analysis.

When would these options actually be correct?

A

If the exam question asked which service is used for time synchronization across network devices to ensure accurate timestamps on logs, then NTP would be the correct answer.

B

If the exam question asked for a service that translates domain names into IP addresses for devices to communicate effectively, DNS would be the correct answer. For example, a question might ask about configuring a network to ensure that devices can resolve hostnames to IP addresses.

D

If the question asked for a solution to analyze network traffic patterns and bandwidth usage from routers and switches, then NetFlow would be the correct answer. In this scenario, the focus would be on traffic flow data rather than log retention.

Why candidates pick the wrong answer

A

Candidates may confuse NTP with log management services due to its importance in network operations, leading them to mistakenly think it could also handle log collection.

B

Candidates may confuse the need for network services and think that DNS is relevant for network management tasks, leading them to select it without fully understanding the specific logging requirements of the question.

D

Candidates may choose this option because they associate NetFlow with network monitoring and performance analysis, mistakenly believing it can also handle log collection and retention tasks.

807
MCQhard

A Windows VM must install IIS after provisioning and then run a script that registers the server with an internal API by using the VM's managed identity. The same steps must run automatically whenever the VM is deployed from Bicep. What should be added to the deployment?

A.A read-only resource lock on the VM resource group
B.A Custom Script Extension on the VM
C.An availability set containing the VM
D.A proximity placement group for the VM
AnswerB

The Custom Script Extension is an Azure VM extension that executes a provided PowerShell script after the VM is provisioned, making it the correct choice for installing IIS and running post-deployment tasks. You can deploy it via Azure PowerShell, CLI, or an ARM template, and it supports idempotent execution patterns, enabling you to bootstrap the OS with exactly the required roles and features.

Why this answer

The Custom Script Extension (CSE) is the correct choice because it allows you to run PowerShell or Bash scripts on an Azure VM after provisioning, enabling the installation of IIS and execution of a registration script that leverages the VM's managed identity. Since the requirement specifies that these steps must run automatically whenever the VM is deployed from Bicep, the CSE can be declared as a resource in the Bicep template, ensuring it executes on every deployment. This directly addresses the need for post-deployment configuration without manual intervention.

Exam trap

The trap here is that candidates often confuse resource locks or availability sets with automation capabilities, mistakenly thinking they can trigger scripts, when in reality only extensions like Custom Script Extension or Desired State Configuration can perform post-deployment configuration tasks.

Why the other options are wrong

A

A read-only resource lock prevents any modifications to the VM resource group, including the Custom Script Extension needed to install IIS and run the registration script. It does not automate post-deployment configuration.

C

An availability set provides high availability for VMs by distributing them across fault and update domains, but it does not execute scripts or install software after provisioning. It cannot automate IIS installation or managed identity registration.

D

A proximity placement group reduces network latency between VMs but does not install IIS or run scripts; it has no role in post-deployment configuration or managed identity usage.

When would these options actually be correct?

A

A read-only resource lock would be correct if the question asked for a method to prevent accidental deletion or modification of critical resources after deployment, such as protecting a production VM from unintended changes.

C

A question asks: 'You need to ensure that two VMs running a critical application are not both affected by the same hardware failure or maintenance event. What should you configure?' In that scenario, an availability set would be the correct answer.

D

When deploying multiple VMs that require low network latency between them (e.g., for a high-performance computing cluster or latency-sensitive application), a proximity placement group ensures they are physically close in the datacenter.

Why candidates pick the wrong answer

A

Candidates may confuse resource locks with automation or think locking the resource group ensures the VM runs scripts, misunderstanding that locks only restrict operations, not execute them.

C

Candidates may confuse availability sets with deployment automation, thinking that grouping VMs together ensures consistent configuration, but availability sets only affect placement, not post-deployment actions.

D

Candidates may confuse placement groups with configuration management, thinking 'proximity' implies automated setup, or they may overthink the question and assume a placement group is needed for managed identity to work.

808
MCQmedium

An employee accidentally deletes a critical document from an Azure file share. You need to restore only that file to its earlier state without restoring the entire share or using a vault-based backup job. Which feature should you use?

A.A file share snapshot, because it captures a point-in-time copy of the share for granular recovery.
B.A storage account access key, because it can retrieve deleted files from any share version.
C.An Azure VM snapshot, because it captures the file share state automatically.
D.A private endpoint to the file share, because it enables restore operations.
AnswerA

A snapshot is the right recovery tool when you need a point-in-time copy of an Azure file share and want to restore only a specific file. It allows granular recovery without rolling back the entire share, which keeps the impact small and the process simple. This is a common operational use of Azure Files snapshots.

Why this answer

File share snapshots are point-in-time, read-only copies of Azure file shares that allow you to recover individual files or folders without restoring the entire share. When a file is accidentally deleted, you can mount a previous snapshot, copy the deleted file from it, and restore it to the live share—no vault-based backup job or full share restore required.

Exam trap

The trap here is that candidates confuse file share snapshots with Azure Backup (vault-based recovery) or assume that access keys or private endpoints can somehow restore deleted files, when in fact only snapshots provide the granular, point-in-time restore capability for individual files.

Why the other options are wrong

B

Storage account access keys provide full administrative access to the storage account but cannot retrieve or restore individual deleted files from a file share. They do not support granular file recovery.

C

An Azure VM snapshot captures the entire VM's disks, not the file share itself. It cannot be used to restore individual files from an Azure file share because the file share is a separate managed service, not part of the VM's disks.

D

A private endpoint provides secure, private connectivity to the file share over a virtual network, but it does not have any capability to restore deleted files or perform data recovery operations.

When would these options actually be correct?

B

A question asking how to access an Azure file share from an on-premises server using SMB protocol, where the access key is required for authentication and mounting the share.

C

When a question asks how to restore a VM's system state or specific files within a VM after accidental deletion or corruption, and the VM has been configured with application-consistent snapshots. For example: 'You need to restore a deleted file from a VM's data disk without using backup vaults.'

D

You need to ensure that all traffic to an Azure file share from a specific virtual network stays within the Microsoft backbone network and never traverses the public internet. In this scenario, a private endpoint is the correct feature to use.

Why candidates pick the wrong answer

B

Candidates may confuse access keys with a recovery mechanism, thinking they can be used to 'unlock' or restore deleted files, similar to how keys might enable versioning or snapshot access.

C

Candidates may confuse Azure file shares with VM-attached storage, assuming that a VM snapshot includes the file share if the VM is connected to it, or they may think snapshots are a universal recovery mechanism for all Azure storage types.

D

Candidates may confuse 'private' with 'protected' or assume that private endpoints offer data protection features like snapshots or backups, when in fact they only control network access.

809
MCQmedium

A team manages 20 web VMs and 15 app VMs that scale independently. The administrator needs an NSG rule that allows only the web tier to reach the app tier on TCP 8443, and future VM additions must be included automatically without editing IP addresses. What should the administrator use in the NSG rule?

A.A source application security group for the web tier and a destination application security group for the app tier.
B.A service endpoint on the subnet where the app VMs are deployed.
C.A user-defined route between the web subnet and app subnet.
D.A load balancer backend pool for both tiers.
AnswerA

Application security groups let you group VMs by function rather than by individual IP addresses. An NSG rule can reference a source ASG and a destination ASG, so newly added web or app VMs are automatically governed as long as they are added to the correct ASG. This is ideal for scalable tier-to-tier access control.

Why this answer

Application security groups (ASGs) allow you to define network security rules based on logical groupings of VMs, regardless of their IP addresses. By assigning the web tier VMs to a source ASG and the app tier VMs to a destination ASG, the NSG rule automatically includes any new VMs added to those groups, meeting the requirement for dynamic inclusion without manual IP edits.

Exam trap

The trap here is that candidates often confuse ASGs with network security groups (NSGs) themselves or think that service endpoints or UDRs can provide application-layer filtering, when in fact only ASGs enable IP-agnostic, dynamic grouping for NSG rules.

Why the other options are wrong

B

Service endpoints secure Azure service access (e.g., Azure Storage) from a subnet, not traffic between VMs. They cannot restrict traffic between web and app tiers based on application security groups.

C

A user-defined route (UDR) controls network traffic routing between subnets, not security filtering. It cannot allow or deny traffic based on port or application; NSG rules are required for that purpose.

D

A load balancer backend pool groups VMs for traffic distribution, not for NSG rule source/destination specification. It cannot be used as a source or destination in an NSG rule to filter traffic between tiers.

When would these options actually be correct?

B

An administrator needs to ensure that VMs in a subnet can only access an Azure SQL Database instance, and all traffic must go through the Azure backbone network. A service endpoint on the subnet would be the correct choice.

C

A UDR would be correct if the question required traffic between the web and app subnets to be routed through a network virtual appliance (NVA) for inspection, e.g., 'Force traffic from web subnet to app subnet to go through a firewall.'

D

An administrator needs to distribute incoming traffic from the internet to a set of VMs in a backend pool and ensure high availability. The load balancer would be the correct answer for distributing traffic, not for NSG filtering.

Why candidates pick the wrong answer

B

Candidates may confuse service endpoints with network security groups, thinking they can control VM-to-VM traffic, or they may believe endpoints can replace NSG rules for inter-tier communication.

C

Candidates may confuse routing with security, thinking that directing traffic between subnets via a UDR can also enforce access control, especially when the question mentions 'allow only the web tier to reach the app tier.'

D

Candidates may confuse the grouping capability of a load balancer backend pool with the grouping capability of an application security group, thinking both can be used to define traffic sources/destinations in NSG rules.

810
MCQmedium

A VM in a subnet must send traffic to 10.50.0.0/16 through an on-premises VPN gateway, while all other destinations should use the Internet. Which route should be added to the subnet's route table?

A.Destination 10.50.0.0/16 with next hop type Virtual network gateway.
B.Destination 0.0.0.0/0 with next hop type Virtual network gateway.
C.Destination 10.50.0.0/16 with next hop type Service endpoint.
D.Destination 10.50.0.0/16 with next hop type Internet.
AnswerA

This user-defined route is correct because 10.50.0.0/16 is an on-premises private prefix, and specifying a virtual network gateway as the next hop for that exact destination creates a targeted override of the default system route. Azure uses longest-prefix-match (LPM), so this more-specific route wins over the 0.0.0.0/0 system route and directs only the 10.50.0.0/16 traffic through the VPN or ExpressRoute gateway. All other traffic continues to use existing system routes, keeping the routing behavior isolated to the intended on-premises destination.

Why this answer

The VM needs to send traffic destined for 10.50.0.0/16 through the on-premises VPN gateway. Adding a user-defined route (UDR) with destination 10.50.0.0/16 and next hop type 'Virtual network gateway' forces that specific traffic to be routed over the VPN tunnel, while the default route (0.0.0.0/0) to the Internet remains unchanged, allowing all other traffic to egress via the Internet.

Exam trap

The trap here is that candidates often confuse the default route (0.0.0.0/0) with a specific destination route, mistakenly thinking that forcing all traffic through the VPN gateway is required, when only the specific on-premises network range needs to be routed that way.

Why the other options are wrong

B

This route would send ALL traffic (0.0.0.0/0) through the VPN gateway, but the requirement is to send only 10.50.0.0/16 traffic through the VPN and all other traffic through the Internet.

C

Service endpoints route traffic to Azure service IP ranges, not to on-premises networks like 10.50.0.0/16. They cannot forward traffic through a VPN gateway.

D

The destination 10.50.0.0/16 is a private IP range, and the Internet next hop type cannot route private IP traffic to the internet; it would drop the traffic or route it incorrectly.

When would these options actually be correct?

B

If the requirement were to force all outbound traffic from the subnet through the on-premises network (e.g., for security inspection or centralized internet breakout), then a 0.0.0.0/0 route with next hop Virtual network gateway would be correct.

C

When the destination is an Azure service (e.g., Azure Storage or SQL Database) and you want traffic to stay within the Azure backbone instead of going through the internet or a VPN. For example: 'Route traffic from a subnet to Azure Storage using a service endpoint.'

D

If the question required routing traffic to a public IP range (e.g., 0.0.0.0/0) via the internet, or if the destination was a public endpoint reachable directly over the internet, then next hop type Internet would be correct.

Why candidates pick the wrong answer

B

Candidates may mistakenly think that a default route (0.0.0.0/0) is needed to override the system default Internet route, or they confuse the need for a specific route with a general forced-tunneling scenario.

C

Candidates may confuse service endpoints with VPN gateways, thinking both can route to specific IP ranges, or they may incorrectly assume service endpoints can handle any custom IP range.

D

Candidates may mistakenly think that any destination can be routed through the internet, or they confuse the Internet next hop with a default route for internet-bound traffic.

811
MCQeasy

A Windows VM must install an agent and copy a configuration file automatically after provisioning. The administrator wants Azure to run the setup step without logging into the VM manually. Which feature should be used?

A.Boot diagnostics
B.VM extension
C.Managed disk encryption
D.Availability set
AnswerB

VM extensions are designed to perform post-deployment configuration tasks on Azure VMs. A custom script extension can install software, run commands, and place files on the machine without requiring the administrator to sign in manually. This makes it a practical choice for first-boot setup, configuration hardening, and lightweight automation tasks.

Why this answer

VM extensions are the correct Azure feature to automatically install agents and apply configurations during or after provisioning without manual login. The Custom Script Extension (CSE) specifically can execute a PowerShell or Bash script to install the agent and copy the configuration file, running as a post-deployment task via Azure Resource Manager (ARM) templates, Azure CLI, or PowerShell.

Exam trap

The trap here is that candidates confuse Boot diagnostics (which is for troubleshooting) with a feature that can run scripts, or assume that Managed disk encryption or Availability sets can perform automated setup tasks, when only VM extensions are designed for post-deployment configuration and software installation.

Why the other options are wrong

A

Boot diagnostics captures serial console output and screenshots for troubleshooting boot failures, but it does not install agents or copy configuration files automatically after provisioning.

C

Managed disk encryption secures data at rest using Azure Disk Encryption or server-side encryption, but it does not install agents or copy configuration files during VM provisioning.

D

An availability set is a logical grouping of VMs to provide high availability during planned or unplanned maintenance, not for running setup steps or installing agents after provisioning.

When would these options actually be correct?

A

A question asks: 'A newly provisioned VM fails to boot. Which feature can be used to view the last screenshot before failure?' Boot diagnostics would be the correct answer.

C

A question asks: 'You need to ensure that all managed disks attached to VMs are encrypted at rest using Azure-managed keys. Which feature should you use?' In that case, managed disk encryption is the correct answer.

D

A question asks: 'You need to ensure that at least two VMs in a web tier remain available during a planned update. Which feature should you use?' In that scenario, an availability set would be correct.

Why candidates pick the wrong answer

A

Candidates may confuse boot diagnostics with post-deployment configuration tasks, thinking it can execute scripts or install software during boot.

C

Candidates may confuse encryption with configuration management, thinking that encryption involves an agent or setup script, or they may misread the question as focusing on security rather than automated provisioning.

D

Candidates may confuse availability sets with features that automate post-deployment tasks, or they might think that grouping VMs in an availability set triggers some automatic configuration.

812
Multi-Selecthard

An application runs on two identical VMs in a region that does not support availability zones. The app must keep running through planned maintenance and a single hardware fault, and the team does not want to add a second region. Which two deployment choices are appropriate? Select two.

Select 2 answers
A.Place the VMs in an availability set.
B.Use a standard virtual machine scale set in the same region.
C.Put both VMs in the same fault domain to simplify patching.
D.Deploy the workload in availability zones anyway.
E.Use a second Azure region for the primary failover design.
AnswersA, B

An availability set spreads VMs across fault and update domains within the same datacenter scale unit, which protects against planned maintenance and single hardware failures. That matches the region’s lack of zones and the no-second-region requirement.

Why this answer

A is correct because an availability set distributes VMs across multiple fault domains (up to 3) and update domains (up to 20) within the same datacenter. This ensures that during planned maintenance (update domain isolation) or a hardware fault (fault domain isolation), at least one VM remains available, meeting the requirement without needing availability zones or a second region.

Exam trap

The trap here is that candidates might think an availability set is only for legacy scenarios, but it is the correct choice when availability zones are not supported, and a scale set is also valid because it inherently provides fault and update domain isolation without requiring zones.

Why the other options are wrong

C

Placing both VMs in the same fault domain defeats the purpose of fault tolerance; a single hardware fault would affect both VMs, causing application downtime. The question requires resilience to a single hardware fault, which necessitates separate fault domains.

D

The question states the region does not support availability zones, so deploying in availability zones is not possible.

E

The question explicitly states the team does not want to add a second region, so using a second Azure region for failover contradicts that requirement.

When would these options actually be correct?

C

If the question asked for a deployment that minimizes maintenance complexity during planned updates and the region does not support availability zones, placing VMs in the same fault domain could simplify patching while still using an availability set to separate update domains.

D

If the region supports availability zones and the requirement is to protect against datacenter-level failures, deploying VMs across multiple availability zones would be correct.

E

When the question requires high availability across regions to protect against a regional outage, and the team is willing to add a second region, then using a second Azure region for primary failover design (e.g., with Azure Site Recovery or active-passive setup) would be correct.

Why candidates pick the wrong answer

C

Candidates may think that keeping VMs in the same fault domain simplifies patching and still provides some protection via update domains, overlooking that fault domains are for hardware fault isolation.

D

Candidates may assume availability zones are always available or confuse them with availability sets, thinking they provide similar fault isolation without checking regional support.

E

Candidates may think that using a second region is the only way to achieve high availability, overlooking that availability sets or scale sets within a single region can handle planned maintenance and hardware faults.

813
MCQeasy

An operations team wants to deploy the same set of Azure VMs every month from source control. The deployment should be readable, repeatable, and stored as code. What should they use?

A.Bicep template
B.Manual portal deployment
C.Azure Advisor recommendation
D.Azure Resource Explorer
AnswerA

Bicep is a declarative infrastructure-as-code language that is easier to read than raw ARM JSON. It is well suited for storing deployment definitions in source control and reusing them consistently across environments. Because it compiles to ARM templates, it still uses the Azure-native deployment engine while improving maintainability.

Why this answer

Bicep is a domain-specific language (DSL) that uses declarative syntax to deploy Azure resources as code. It provides readability, repeatability, and version control integration, making it ideal for deploying the same set of VMs monthly from source control. Unlike ARM templates, Bicep offers cleaner syntax and modularity, but both are valid infrastructure-as-code solutions.

Exam trap

The trap here is that candidates may confuse Azure Advisor (a recommendation engine) or Resource Explorer (a read-only browser) with deployment tools, or assume manual portal deployment is acceptable despite the explicit 'stored as code' requirement.

Why the other options are wrong

B

Manual portal deployment is not stored as code, lacks repeatability, and cannot be version-controlled from source control, failing the requirements of being readable, repeatable, and stored as code.

C

Azure Advisor provides recommendations for optimizing Azure resources, but it does not enable deploying VMs from source control as code. It is not a deployment tool.

D

Azure Resource Explorer is a tool for browsing and managing existing Azure resources, not for deploying infrastructure as code in a repeatable, source-controlled manner.

When would these options actually be correct?

B

For a one-time, ad-hoc deployment where speed is prioritized over repeatability and source control, and the team does not need to automate or version the deployment.

C

When an exam question asks which Azure service provides best practices and optimization recommendations for cost, security, reliability, or performance based on your existing Azure environment.

D

When an administrator needs to view the current configuration of a specific Azure resource, such as a VM's properties, or to export the ARM template of an existing resource for documentation or migration purposes.

Why candidates pick the wrong answer

B

Candidates may think manual deployment is simpler and sufficient for small-scale tasks, overlooking the need for automation and code-based infrastructure management.

C

Candidates may confuse Advisor's proactive recommendations with automated deployment capabilities, or think it can generate deployment templates from its suggestions.

D

Candidates may confuse Azure Resource Explorer with a deployment tool because it allows viewing resource properties and templates, but it lacks the capability to define and deploy resources from source control.

814
Multi-Selecteasy

A security team wants platform logs from a storage account sent for long-term retention and later analysis. Which three destinations can an Azure diagnostic setting send data to? Select three.

Select 3 answers
A.A Log Analytics workspace
B.A storage account
C.An Event Hub
D.A Recovery Services vault
E.An availability zone
AnswersA, B, C

A Log Analytics workspace is the correct destination when you need to query, analyze, and alert on platform logs from a storage account. Diagnostics settings can stream logs into Azure Monitor tables such as StorageBlobLogs, where KQL enables deep troubleshooting, custom retention, and integration with workbooks and alerts, making it ideal for operational visibility.

Why this answer

Azure Diagnostic Settings can stream platform logs and metrics to three destinations: a Log Analytics workspace for query-based analysis, a storage account for archival and long-term retention, and an Event Hub for real-time ingestion into SIEM or third-party tools. This is defined in the Azure Monitor diagnostic settings configuration, which supports these three outputs natively.

Exam trap

The trap here is that candidates may confuse a Recovery Services vault (used for backup) with a Log Analytics workspace or storage account, or mistakenly think availability zones can store log data, when in fact they are purely a high-availability construct.

Why the other options are wrong

D

A Recovery Services vault is used for Azure Backup and Azure Site Recovery, not for storing diagnostic logs. Diagnostic settings can send data to Log Analytics, Storage Account, or Event Hubs, but not to a Recovery Services vault.

E

An availability zone is a physically separate datacenter within an Azure region, not a destination for diagnostic log data. Diagnostic settings can only send logs to Log Analytics workspaces, storage accounts, or Event Hubs.

When would these options actually be correct?

D

In a question about backup or disaster recovery destinations, such as 'Which Azure resource stores backup data for Azure VMs?' or 'Where should you store recovery points for Azure Site Recovery?', a Recovery Services vault would be the correct answer.

E

In a question about high availability or disaster recovery for a virtual machine, an availability zone would be the correct answer when asked which feature provides fault isolation within a region.

Why candidates pick the wrong answer

D

Candidates may confuse 'Recovery Services vault' with a general-purpose storage or logging destination, or assume it can store logs because it is a vault-like resource in Azure.

E

Candidates may confuse availability zones with a data destination because zones are associated with redundancy and data replication, leading them to think logs can be sent there for resilience.

815
MCQeasy

A developer has the Reader role assigned at the subscription scope. Later, the developer is assigned Contributor at the RG-Web resource group scope. Which permission is inherited by a storage account inside RG-Web?

A.Only the Reader role from the subscription scope is inherited by the storage account.
B.The Contributor role from RG-Web is inherited by the storage account.
C.Neither role is inherited because storage accounts require a direct assignment.
D.Both roles are merged into a new custom role automatically.
AnswerB

Azure RBAC permissions are transitive along the scope hierarchy: subscription > resource group > resource. Because the storage account resides in RG-Web, the Contributor role assignment at the resource group scope is inherited by every resource in that group, including the storage account. This grants full management-plane control over the storage account, and it coexists with the broader Reader assignment at the subscription scope without negating it.

Why this answer

In Azure RBAC, permissions are inherited from higher scopes to lower scopes. The Contributor role assigned at the RG-Web resource group scope is inherited by all resources within that resource group, including the storage account. The Reader role from the subscription scope is also inherited, but the more permissive Contributor role at the resource group scope takes precedence for actions allowed by Contributor.

Therefore, the storage account effectively has Contributor permissions.

Exam trap

The trap here is that candidates often think only the most specific scope (resource group) applies and forget that roles from higher scopes (subscription) are also inherited, leading them to incorrectly choose Option A.

Why the other options are wrong

A

In Azure RBAC, permissions are additive and inherited from higher scopes. The Contributor role assigned at the resource group scope is inherited by all resources within that group, including the storage account, overriding the Reader role from the subscription for that resource.

C

Azure RBAC permissions are inherited from resource group scope to resources within that group, so the Contributor role assigned at RG-Web scope is inherited by the storage account inside RG-Web, not requiring a direct assignment.

D

Azure RBAC does not automatically merge roles into a new custom role. Permissions are additive: the effective permissions are the union of all assigned roles, not a merged custom role.

When would these options actually be correct?

A

This option would be correct if the developer had only the Reader role at the subscription scope and no other assignments at any lower scope (resource group or resource). In that case, the storage account would inherit only the Reader role from the subscription.

C

This option would be correct if the question specified that the storage account has a deny assignment or a custom role assignment that blocks inheritance, or if the question asked about a resource type that does not support RBAC inheritance (e.g., classic resources).

D

This option would be correct if the question described a scenario where Azure automatically creates a custom role that combines permissions from multiple assignments, which does not happen in reality. For example, if the question asked 'What happens when a user has two roles assigned?' and the answer claimed automatic merging, it would be wrong; but if the question explicitly stated that Azure creates a custom role, this could be correct in a hypothetical exam context.

Why candidates pick the wrong answer

A

Candidates may mistakenly think that only the highest-level role (subscription) applies, ignoring that lower-scope assignments override or add to higher-scope permissions for that specific scope.

C

Candidates may mistakenly think that all Azure resources require explicit role assignments, not realizing that RBAC permissions are inherited from parent scopes like resource groups and subscriptions.

D

Candidates may think that multiple role assignments are combined into a single custom role for simplicity, misunderstanding that Azure RBAC uses additive permissions without creating new roles.

816
MCQeasy

A finance team stores monthly reports in Azure Blob Storage. The data must remain available if one datacenter in the Azure region fails, but the company does not need read access from a secondary region. Which redundancy option should the administrator choose?

A.Locally redundant storage (LRS)
B.Zone-redundant storage (ZRS)
C.Geo-redundant storage (GRS)
D.Read-access geo-redundant storage (RA-GRS)
AnswerB

Zone-redundant storage (ZRS) replicates your data synchronously across three Azure availability zones within the same region. This design provides high availability even if an entire datacenter or availability zone fails, because copies remain in other zones. Since the requirement is in-region availability rather than geo-redundancy, ZRS is the optimal choice—it delivers the needed resilience without adding a secondary region.

Why this answer

Zone-redundant storage (ZRS) replicates data synchronously across three Azure availability zones within a single region, ensuring durability even if one datacenter (zone) fails. Since the requirement specifies no need for read access from a secondary region, ZRS meets the high-availability need without the cost or complexity of geo-replication.

Exam trap

The trap here is that candidates often choose GRS or RA-GRS because they assume any datacenter failure requires a secondary region, but ZRS within a single region is sufficient and more cost-effective when only one datacenter (zone) fails and secondary read access is not needed.

Why the other options are wrong

A

LRS replicates data three times within a single datacenter, so it does not protect against a full datacenter failure. The question requires availability if one datacenter fails, which ZRS provides by replicating across multiple availability zones within the region.

C

Geo-redundant storage (GRS) replicates data to a secondary region, which provides read access from the secondary region only after a failover. The question states the company does not need read access from a secondary region, making GRS unnecessary and more expensive than ZRS.

D

RA-GRS provides read access to a secondary region, but the question explicitly states the company does not need read access from a secondary region. Additionally, RA-GRS is more expensive and complex than ZRS, which meets the requirement of surviving a datacenter failure within a region.

When would these options actually be correct?

A

LRS would be correct if the question specified that the data must remain available only if a single server or storage node fails, and the company does not need protection against a datacenter-level failure. For example: 'A company stores temporary log files that can be regenerated; cost is the primary concern.'

C

A company requires data to remain available even if an entire Azure region fails, and they need the ability to read data from the secondary region only after Microsoft initiates a failover (no read access during normal operations).

D

A company requires data to remain available during a region-wide outage and needs read-only access to the secondary region for disaster recovery or compliance purposes. For example, a global application that must serve read requests from a secondary region if the primary fails.

Why candidates pick the wrong answer

A

Candidates may confuse 'datacenter failure' with 'server failure' and think LRS provides sufficient redundancy, or they may focus on the 'no read access from secondary region' requirement and incorrectly assume LRS is the cheapest option that meets that condition.

C

Candidates may confuse 'geo-redundant' with 'zone-redundant' and think GRS provides higher durability, but they overlook the specific requirement of not needing read access from a secondary region.

D

Candidates may confuse 'geo-redundant' with 'zone-redundant' and think RA-GRS offers higher availability, or they may overlook the 'no read access from secondary' constraint and assume geo-redundancy is always better.

817
MCQmedium

An operations team wants all internet-bound traffic from a workload subnet to pass through a network virtual appliance at 10.1.0.4 for inspection. Which next hop type should be used in a user-defined route for destination 0.0.0.0/0?

A.Internet
B.Virtual appliance
C.Virtual network gateway
D.None
AnswerB

Selecting 'Virtual appliance' as the next hop type creates a user-defined route that directs traffic to the private IP address of a network virtual appliance (NVA) or firewall. By pairing this route with the 0.0.0.0/0 address prefix, all internet-bound traffic is force-tunneled to the appliance for inspection and policy enforcement. This is the only option that explicitly supports forwarding packets to a standalone, non-gateway device inside the VNet.

Why this answer

To force all internet-bound traffic from a subnet through a network virtual appliance (NVA) at 10.1.0.4, you must create a user-defined route (UDR) with destination 0.0.0.0/0 and next hop type 'Virtual appliance'. This directs traffic to the NVA's private IP for inspection, overriding Azure's default system route that would otherwise send 0.0.0.0/0 traffic directly to the Internet via the Azure backbone.

Exam trap

The trap here is that candidates often confuse 'Virtual appliance' with 'Virtual network gateway', mistakenly thinking a VPN gateway is required to route internet traffic, when in fact the NVA is a simple VM or firewall appliance with IP forwarding enabled.

Why the other options are wrong

A

The next hop type 'Internet' would route traffic directly to the internet, bypassing the network virtual appliance at 10.1.0.4, which fails to meet the requirement for inspection.

C

A virtual network gateway is used for site-to-site VPN or ExpressRoute connections, not for routing traffic to a network virtual appliance. The next hop type for a user-defined route pointing to an NVA must be 'Virtual appliance'.

D

The 'None' next hop type means traffic is dropped, not routed to the virtual appliance. The question requires traffic to pass through the appliance for inspection, so 'None' would block all internet-bound traffic.

When would these options actually be correct?

A

If the question asked for a route that allows internet-bound traffic to exit directly without inspection, or if the goal was to bypass a firewall for specific traffic, then 'Internet' would be the correct next hop type for the 0.0.0.0/0 route.

C

This option would be correct if the question asked for routing traffic to an on-premises network via a VPN or ExpressRoute connection, where the next hop type should be 'Virtual network gateway'.

D

A user-defined route with next hop type 'None' is correct when the goal is to block all traffic to a specific destination, such as preventing outbound internet access from a subnet for security reasons.

Why candidates pick the wrong answer

A

Candidates may think that since the destination is the internet (0.0.0.0/0), the next hop should be 'Internet', overlooking the requirement for traffic to pass through a virtual appliance first.

C

Candidates may confuse the term 'gateway' with 'appliance', thinking a virtual network gateway can inspect traffic, or they may mistakenly believe all routing through a gateway is handled by this next hop type.

D

Candidates may mistakenly think 'None' means no additional routing is needed, assuming the default route (0.0.0.0/0) will handle traffic, but in UDRs, 'None' explicitly drops traffic.

818
MCQmedium

An application on a VM in subnet AppSubnet must access a storage account over the public endpoint. The security team wants to allow traffic only from AppSubnet and does not want to deploy a private endpoint. What should the administrator configure?

A.Disable the storage account firewall and rely on the VM's source IP address.
B.Enable the Microsoft.Storage service endpoint on AppSubnet and allow that virtual network in the storage account firewall.
C.Create a private endpoint and leave the firewall set to allow all networks.
D.Grant the VM Contributor access to the storage account and the network rule will be enforced automatically.
AnswerB

A service endpoint extends the subnet identity to the storage service while still using the public endpoint, which matches the requirement to avoid a private endpoint. After enabling the endpoint on AppSubnet, you can allow that virtual network in the storage account firewall so only traffic from the approved subnet can reach the account. This is a common network-control pattern for Azure Storage.

Why this answer

Enabling a Microsoft.Storage service endpoint on AppSubnet allows traffic from that subnet to the storage account over the Azure backbone network, while still using the public endpoint. Then, configuring the storage account firewall to allow that virtual network restricts access exclusively to AppSubnet, meeting the security requirement without deploying a private endpoint.

Exam trap

The trap here is that candidates often confuse service endpoints with private endpoints, assuming that only private endpoints can restrict access, when in fact service endpoints combined with the storage account firewall can achieve subnet-level restriction over the public endpoint.

Why the other options are wrong

A

The security team wants to allow traffic only from AppSubnet, not from any specific VM IP. Relying on the VM's source IP would require managing individual IPs and does not scale; also, the storage account firewall can be configured to allow a virtual network, which is more secure and manageable.

C

The security team explicitly does not want to deploy a private endpoint, so creating one contradicts the requirement. Additionally, leaving the firewall set to allow all networks would not restrict traffic to only AppSubnet.

D

Granting Contributor access to the VM does not enforce network rules; it only allows the VM to manage the storage account. The storage account firewall requires explicit network rules (like service endpoints) to restrict traffic by source network, not by RBAC role.

When would these options actually be correct?

A

This option would be correct if the question stated that the VM has a static public IP and the security team explicitly wants to allow only that specific IP address, and there is no requirement to allow traffic from the entire subnet or use service endpoints.

C

If the question required secure, private connectivity to the storage account without exposing it to the public internet, and the organization was willing to deploy a private endpoint, then option C would be correct. For example: 'An application on a VM must access a storage account privately, bypassing the public endpoint. What should be configured?'

D

This option would be correct if the question asked: 'An administrator needs to allow a VM to manage a storage account (e.g., create containers) without using the Azure portal. What should be configured?' In that case, assigning the Contributor role to the VM's managed identity would grant the necessary permissions.

Why candidates pick the wrong answer

A

Candidates may think that allowing the VM's IP is sufficient and simpler, not realizing that service endpoints provide a more secure and scalable way to restrict access to a specific subnet without exposing the storage account to the public internet.

C

Candidates may think a private endpoint is the only secure way to restrict access, overlooking service endpoints as a simpler alternative that meets the requirement of using the public endpoint.

D

Candidates may confuse RBAC roles with network security controls, thinking that granting Contributor access automatically includes network-level permission to access the storage account's public endpoint.

819
MCQmedium

A Windows file server VM in Azure needs to mount an Azure file share by using existing Active Directory Domain Services credentials. The security team does not want to use storage account keys. Which authentication option should be configured for Azure Files?

A.Shared key authorization, because it is the only method supported by Azure Files.
B.Azure Files identity-based authentication using Active Directory Domain Services.
C.A user delegation SAS, because it maps the share automatically to domain accounts.
D.Anonymous access, because Windows file servers can mount Azure shares without authentication.
AnswerB

Azure Files can use AD DS-based identity authentication so Windows users and servers can access the share with domain credentials. This avoids storing or distributing storage account keys and fits the requirement to use existing directory identities.

Why this answer

Azure Files supports identity-based authentication using Active Directory Domain Services (AD DS), which allows domain-joined VMs to mount Azure file shares using existing AD credentials without exposing storage account keys. This method leverages Kerberos authentication and enables fine-grained access control via NTFS permissions, meeting the security team's requirement to avoid storage account keys.

Exam trap

The trap here is that candidates often assume Azure Files only supports shared key or SAS-based access, overlooking the identity-based authentication option that integrates with on-premises AD DS for seamless credential reuse.

Why the other options are wrong

A

Shared key authorization requires storage account keys, which the security team explicitly prohibits. The question requires using existing AD DS credentials, which shared key authorization does not support.

C

A user delegation SAS does not map shares automatically to domain accounts; it provides delegated access to a specific resource using Azure AD credentials, not Active Directory Domain Services, and does not support automatic mapping via domain credentials.

When would these options actually be correct?

A

If the question asked for a simple, legacy method to mount an Azure file share without any identity-based authentication requirements and the security team allowed storage account keys, shared key authorization would be correct.

C

When a question asks for granting time-limited, delegated access to a specific Azure file share for a user or application without using storage account keys, and the access must be scoped to a particular share or directory using Azure AD authentication.

Why candidates pick the wrong answer

A

Candidates may mistakenly believe shared key is the only or default authentication method for Azure Files, overlooking the identity-based options that integrate with AD DS.

C

Candidates may confuse SAS with identity-based authentication, thinking that a user delegation SAS integrates with domain accounts, but it actually uses Azure AD tokens and does not support automatic drive mapping with AD DS credentials.

820
Multi-Selectmedium

A team moved blob data to the Archive tier to minimize cost. They now need to restore a few files for an audit. Which two statements are true about accessing archived blobs? Select two.

Select 2 answers
A.Archived blobs can be read immediately through normal blob reads.
B.Rehydration is required before the blob can be read or copied.
C.Rehydration can target Hot or Cool access tier.
D.Archive tier provides the fastest retrieval time.
E.Changing a blob from Archive to Hot completes instantly and synchronously.
AnswersB, C

Archive blobs are stored offline, so their data content is not accessible on standard storage nodes. Any read or copy operation that accesses the blob's content — such as a download, Get Blob, or Copy Blob — will fail with an archive-related error until rehydration has been performed. Rehydration moves the blob back to an online tier, making it readable or copyable.

Why this answer

Archived blobs are in an offline state and cannot be read or copied directly. They must first be rehydrated to an online tier (Hot or Cool) through a process that changes the blob's tier or copies it to a new online blob. This rehydration process is asynchronous and takes time, depending on the priority set.

Exam trap

The trap here is that candidates assume archived blobs can be read immediately or that tier changes are instant, confusing the Archive tier's offline state with the online Cool or Hot tiers.

Why the other options are wrong

A

Archived blobs are offline and cannot be read directly; they must first be rehydrated to an online tier (Hot or Cool) before access is possible.

D

Archive tier has the slowest retrieval time (hours for standard rehydration), not the fastest. Hot tier provides immediate access.

E

Changing a blob from Archive to Hot requires rehydration, which can take up to 15 hours, so it does not complete instantly or synchronously.

When would these options actually be correct?

A

If the question were about blobs in the Cool or Hot access tier, then normal blob reads would work immediately without rehydration.

D

If the question asked 'Which tier provides the lowest storage cost for infrequently accessed data?' then Archive tier would be correct because it is the cheapest storage tier.

E

This option would be correct if the question asked about changing a blob between Hot and Cool tiers, as those tier changes are instantaneous and synchronous.

Why candidates pick the wrong answer

A

Candidates may assume that all blob tiers support immediate read access, not realizing that Archive is an offline tier requiring rehydration.

D

Candidates may confuse 'Archive' with 'archival' speed or assume that the cheapest tier also offers fast retrieval, overlooking the trade-off between cost and access time.

E

Candidates may confuse the instant tier change between Hot and Cool with the Archive tier, assuming all tier changes are immediate.

821
MCQmedium

An administrator creates a new spoke virtual network with address space 10.100.1.0/24 and tries to peer it to an existing hub virtual network that already uses 10.100.0.0/16. The peering fails. The business wants private connectivity between the hub and spoke. What action should the administrator take first?

A.Add a route table to the spoke and point the default route to the hub.
B.Change the spoke VNet to a non-overlapping address range before attempting peering again.
C.Enable gateway transit on the hub and use the remote gateway from the spoke.
D.Deploy a private DNS zone and link it to both VNets.
AnswerB

Azure virtual network peering requires non-overlapping address spaces. The spoke currently sits inside the hub's 10.100.0.0/16 range, so the overlap must be removed first. After the address space is changed to a unique range, peering can succeed and private connectivity can be established.

Why this answer

VNet peering requires that the address spaces of the peered virtual networks do not overlap. The hub already uses 10.100.0.0/16, which includes the spoke's 10.100.1.0/24 range, causing a conflict. Changing the spoke to a non-overlapping address range, such as 10.200.1.0/24, resolves this and allows the peering to succeed.

Exam trap

The trap here is that candidates often assume routing or DNS configuration can fix peering failures, overlooking the fundamental requirement that VNet address spaces must not overlap.

Why the other options are wrong

A

VNet peering does not require route tables; overlapping address spaces cause the peering to fail regardless of routing. Adding a route table cannot resolve the address space conflict.

C

Gateway transit is used to allow a spoke VNet to use the hub's VPN/ExpressRoute gateway for connectivity to on-premises, not to resolve overlapping address spaces. The peering failure is due to overlapping IP ranges, which gateway transit cannot fix.

D

VNet peering does not require DNS resolution to establish connectivity; the failure is due to overlapping address spaces, not DNS configuration.

When would these options actually be correct?

A

In a scenario where a spoke VNet needs to force traffic to an on-premises network through a hub VNet that has a VPN gateway, and the spoke VNet has no overlapping address space, adding a route table with a default route (0.0.0.0/0) to the hub's virtual appliance or gateway would be correct.

C

In a scenario where a hub VNet has a VPN gateway and a spoke VNet needs to connect to on-premises networks through that gateway, enabling gateway transit on the hub and using the remote gateway from the spoke would be the correct first step.

D

In a scenario where two VNets are successfully peered but need name resolution across the peering, deploying a private DNS zone linked to both VNets would enable DNS-based communication.

Why candidates pick the wrong answer

A

Candidates may think routing is the issue because peering is established but traffic doesn't flow, but here the peering itself fails due to overlapping IPs, not routing.

C

Candidates may confuse gateway transit as a solution for general connectivity issues between peered VNets, especially when they think the hub can act as a router for the spoke, not realizing that overlapping addresses must be resolved first.

D

Candidates may confuse connectivity issues with name resolution, assuming DNS is needed for private connectivity, or they may think DNS zones are required for VNet peering to work.

822
MCQmedium

Based on the exhibit, the operations team says the alert is too noisy because short CPU spikes after nightly maintenance trigger notifications. They want an alert only when VM1's average CPU stays above 80% for at least 10 minutes. What should you change?

A.Lower the threshold to 70% so the alert becomes less sensitive.
B.Increase the window size to 10 minutes and keep the evaluation frequency at 1 minute.
C.Replace the metric alert with a Log Analytics query alert against the activity log.
D.Move the alert scope from the VM to the resource group.
AnswerB

Increasing the window size to 10 minutes while keeping the evaluation frequency at 1 minute causes each evaluation to use a rolling 10-minute average of the CPU percentage. A short maintenance spike is diluted within that longer aggregation window, so the alert will not fire unless the sustained average actually exceeds the threshold. A one-minute check cadence still detects genuine sustained load within at most a couple of minutes after it begins, so you keep responsiveness.

Why this answer

Increasing the window size to 10 minutes while keeping the evaluation frequency at 1 minute means the alert will only fire when the average CPU over the last 10 minutes exceeds 80%. This filters out transient spikes from nightly maintenance, as the alert requires sustained high CPU for the full duration. The evaluation frequency of 1 minute ensures the alert is checked every minute, but the condition is based on the 10-minute rolling average.

Exam trap

The trap here is that candidates often confuse 'window size' with 'evaluation frequency' and think increasing the evaluation frequency alone would solve the noise, but it is the window size that controls the duration over which the metric must remain above the threshold.

Why the other options are wrong

A

Lowering the threshold to 70% would make the alert more sensitive, not less, and does not address the requirement to filter out short spikes by requiring sustained high CPU for 10 minutes.

C

The question requires a metric-based alert for CPU spikes, not a Log Analytics query alert. Activity logs track operational events, not performance metrics like CPU usage, so this change would not address the noisy alert issue.

D

Moving the alert scope to the resource group does not address the alert noise from short CPU spikes; it would aggregate metrics across all VMs in the group, potentially increasing noise rather than reducing it.

When would these options actually be correct?

A

In a scenario where the operations team wants earlier warning of potential performance issues and is willing to accept more alerts, lowering the threshold could be correct. For example, if the goal is to detect any CPU usage above 70% to proactively address issues before they reach critical levels.

C

This option would be correct if the question asked for an alert based on a specific event in the activity log, such as when a VM is started or stopped, and the alert needed to trigger on that event rather than on performance metrics.

D

If the question required monitoring the average CPU of all VMs in a resource group and alerting when the group-wide average exceeds a threshold, then moving the alert scope to the resource group would be correct.

Why candidates pick the wrong answer

A

Candidates may mistakenly think that lowering the threshold reduces alert frequency, but in reality it increases sensitivity, leading to more alerts. They might also confuse 'threshold' with 'sensitivity' in a way that seems intuitive but is technically incorrect.

C

Candidates may think Log Analytics offers more flexibility for complex conditions, or they confuse activity log alerts with metric alerts, assuming a query can filter CPU data from logs.

D

Candidates may think that broadening the scope reduces sensitivity by averaging metrics across multiple resources, but this does not filter out short spikes on a single VM.

823
MCQeasy

You need to resize a VM to a larger size, but Azure says the target size is not available while the VM is running. What should you do first?

A.Delete the VM and recreate it from the image.
B.Deallocate the VM, then retry the resize.
C.Attach a new data disk first.
D.Create an availability set for the VM.
AnswerB

Deallocating the VM releases it from its current host cluster, which is the standard Azure fix for a resize failure caused by insufficient capacity on the existing hardware. Once deallocated, Azure can place the VM on a different cluster that supports the target VM size, so you can then retry the resize operation successfully. This preserves all disks, networking, and configuration, making it the least disruptive correct action.

Why this answer

When a VM is running, Azure may not have the target VM size available in the cluster hosting the VM. Deallocating the VM releases the underlying hardware resources and removes the VM from its current cluster, allowing Azure to select a new cluster that supports the desired size. After deallocation, the resize operation can succeed because the VM is no longer pinned to a specific host or cluster.

Exam trap

The trap here is that candidates often think they must delete and recreate the VM or perform complex workarounds, when the simple and correct first step is to deallocate the VM to free it from its current cluster constraint.

Why the other options are wrong

A

Deleting and recreating a VM from an image is unnecessary and disruptive; Azure allows resizing a VM after deallocation, which releases the current hardware reservation and enables selection of a different size in the same or different cluster.

C

Attaching a new data disk does not resolve the unavailability of the target VM size in the current cluster; resizing requires deallocation to move the VM to a different cluster where the size is available.

D

Creating an availability set does not affect the availability of VM sizes for resizing; it only provides high availability for VMs within the set. The issue is that the target size is not available while the VM is running, which requires deallocation first.

When would these options actually be correct?

A

If the VM's operating system or configuration is corrupted beyond repair, or if you need to migrate to a different VM series that requires a new image (e.g., moving from a generation 1 to generation 2 VM), deleting and recreating from an image would be appropriate.

C

When the question asks how to increase storage capacity for an existing VM without downtime, attaching a new data disk is the correct answer.

D

This option would be correct if the question asked: 'You need to ensure that two VMs are in separate fault domains and update domains for high availability. What should you do?'

Why candidates pick the wrong answer

A

Candidates may think that the only way to change VM size is to start fresh, not realizing that deallocation temporarily frees the VM from its host, allowing size changes without data loss.

C

Candidates may think adding resources like a disk could enable the resize, confusing storage expansion with compute resizing.

D

Candidates may think that adding the VM to an availability set somehow unlocks more size options or that it is a prerequisite for resizing, confusing high availability features with compute resource availability.

824
MCQmedium

A team wants to restrict a storage account so only one Azure subnet can reach it. They do not need a private IP address, and they are fine with the storage account still using its public endpoint. Which configuration should the administrator use?

A.Create a private endpoint and disable public network access.
B.Enable a service endpoint on the subnet and allow that subnet in the storage account firewall.
C.Generate a user delegation SAS token and distribute it only to the subnet.
D.Change the redundancy setting to ZRS and enable soft delete.
AnswerB

A service endpoint extends the subnet identity to the storage service while traffic still reaches the public endpoint. Adding the subnet to the storage firewall then limits access to that subnet. This matches the requirement exactly because the team does not need a private IP, only subnet-restricted access.

Why this answer

A service endpoint extends the virtual network identity to the storage account over the public endpoint, allowing the administrator to restrict access to only traffic originating from that specific subnet via the storage account firewall. This meets the requirement of using the public endpoint while limiting access to a single Azure subnet without needing a private IP address.

Exam trap

The trap here is that candidates confuse private endpoints (which require a private IP and can disable the public endpoint) with service endpoints (which keep the public endpoint but restrict access by subnet), leading them to incorrectly choose Option A.

Why the other options are wrong

A

The team does not need a private IP address and is fine with the public endpoint, but a private endpoint disables public network access by default, which contradicts the requirement.

C

A user delegation SAS token grants access to specific resources but does not restrict access to a single subnet; it can be used from any IP address or network that has the token.

D

Changing redundancy to ZRS and enabling soft delete does not restrict network access to a subnet; ZRS provides data durability across zones, and soft delete protects against accidental deletion, neither of which controls network-level access.

When would these options actually be correct?

A

When the requirement is to ensure the storage account is not accessible from the public internet at all, and a private IP address is acceptable, such as for a highly secure application that must avoid any exposure via public endpoints.

C

An administrator needs to grant time-limited, delegated access to specific storage resources (e.g., a container or blob) for a client application without sharing the storage account key, and network restrictions are not a concern.

D

A question requiring high availability for storage data across availability zones and protection against accidental deletion would make ZRS and soft delete correct, e.g., 'You need to ensure storage data survives a zone failure and can recover from accidental deletion.'

Why candidates pick the wrong answer

A

Candidates may confuse private endpoints with service endpoints, thinking both restrict access to a subnet, but private endpoints also change the network path and disable public access, which is not needed here.

C

Candidates may think that distributing the SAS token only to the subnet's resources effectively limits access, but SAS tokens do not enforce network-level restrictions and can be used from anywhere.

D

Candidates may confuse data protection features (redundancy, soft delete) with network security controls, or think that changing redundancy somehow isolates the storage account to a subnet.

825
MCQeasy

Based on the exhibit, what should the administrator create so VMs in AppSubnet can access the storage account over a private IP address?

A.A service endpoint for Microsoft.Storage on AppSubnet.
B.A private endpoint for the storage account in AppSubnet.
C.A site-to-site VPN gateway between AppVNet and the storage account.
D.An application security group for the storage account and subnet.
AnswerB

A private endpoint assigns the storage account a private IP address in the VNet, which is exactly what the exhibit requires. With public access disabled, the private endpoint is the correct way for the VMs to reach the storage service privately from AppSubnet.

Why this answer

A private endpoint assigns a private IP address from AppSubnet to the storage account, enabling VMs in that subnet to access the storage account over a private IP within the VNet. This eliminates exposure to the public internet and uses Azure Private Link for secure, direct connectivity.

Exam trap

The trap here is confusing service endpoints (which still use the public endpoint but with source subnet restriction) with private endpoints (which provide a true private IP address), leading candidates to incorrectly choose A when the question explicitly requires access over a private IP address.

Why the other options are wrong

A

A service endpoint provides access over the Azure backbone network but still uses a public IP address for the storage account, not a private IP address within the virtual network. The question specifically requires private IP access, which only a private endpoint can provide.

C

A site-to-site VPN gateway connects on-premises networks to Azure VNets, not to a specific storage account, and does not provide private IP access from a subnet to a storage account.

When would these options actually be correct?

A

A service endpoint would be correct if the question asked for secure access from a subnet to a storage account using Azure backbone network without requiring a private IP, or if the goal was to restrict storage account access to a specific subnet while still using the public endpoint.

C

A site-to-site VPN gateway would be correct if the question asked how to connect an on-premises network to AppVNet for hybrid connectivity, or how to enable on-premises VMs to access the storage account over a private IP.

Why candidates pick the wrong answer

A

Candidates often confuse service endpoints with private endpoints, thinking both provide private IP connectivity, but service endpoints only route traffic over the Azure backbone while keeping the public endpoint.

C

Candidates may confuse site-to-site VPN with private connectivity, thinking a VPN tunnel provides private IP access, but it actually extends the network rather than creating a private endpoint within the subnet.

Page 10

Page 11 of 14

Page 12