Courseiva

AZ-104 (AZ-104) — Questions 376450

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

Page 5

Page 6 of 14

Page 7
376
MCQeasy

A stateless web service must handle traffic spikes by adding or removing instances automatically based on CPU usage. Which Azure service fits best?

A.One larger standalone VM
B.Availability set with two VMs
C.Virtual machine scale set with autoscale
D.Recovery Services vault backup
AnswerC

Virtual Machine Scale Set with autoscale is the only option that directly satisfies the requirement of a stateless web service handling traffic spikes. It maintains a pool of identical VM instances behind a load balancer and uses autoscale rules based on metrics such as average CPU percent, memory pressure, or incoming request rate to automatically add instances during a spike and remove them when demand drops. Because the workload is stateless, instances can be created or destroyed without risk of losing session state. You can also define minimum and maximum instance limits and set cool-down periods to prevent autoscale thrashing.

Why this answer

A Virtual Machine Scale Set (VMSS) with autoscale is the correct choice because it automatically adjusts the number of VM instances based on CPU utilization metrics, enabling the stateless web service to handle traffic spikes by scaling out (adding instances) and scaling in (removing instances) as needed. This aligns with the requirement for a stateless, elastic, and automated scaling solution.

Exam trap

The trap here is that candidates often confuse high availability (provided by availability sets) with autoscaling, or assume a single large VM can handle spikes via vertical scaling, ignoring the need for horizontal, automated scaling for stateless workloads.

Why the other options are wrong

A

A single large VM cannot automatically scale out or in based on demand; it only supports vertical scaling (resizing), not horizontal scaling required for handling traffic spikes.

B

An availability set only provides high availability for two VMs but does not automatically scale instances based on CPU usage; it lacks autoscaling capabilities required for handling traffic spikes.

D

Recovery Services vault backup is a disaster recovery and backup service, not designed for handling traffic spikes or automatic scaling of compute instances. It does not add or remove VMs based on CPU usage.

When would these options actually be correct?

A

For a legacy application that cannot be distributed across multiple instances and requires maximum compute power on a single machine, such as a monolithic database server with strict licensing constraints.

B

For a stateless web service that needs high availability within a single region (e.g., 99.95% SLA) but does not require automatic scaling, an availability set with two VMs would be correct.

D

A question asks: 'Which Azure service provides automated backup and disaster recovery for Azure VMs, ensuring data protection and restore capabilities?' In that context, Recovery Services vault backup would be the correct answer.

Why candidates pick the wrong answer

A

Candidates may think a larger VM provides enough headroom for spikes, overlooking the need for automatic horizontal scaling to handle unpredictable load changes.

B

Candidates may confuse high availability (provided by availability sets) with scalability, assuming two VMs can handle spikes, but they miss the requirement for automatic addition/removal of instances.

D

Candidates may confuse backup/DR services with scaling solutions, or mistakenly think that 'Recovery Services' implies recovery from traffic spikes, not understanding its actual purpose.

377
Multi-Selecthard

A customer-facing service needs to survive a single datacenter outage in a zone-supported region. You do not need cross-region failover, but you do need Azure to spread instances without manual placement errors. Which two deployment choices satisfy that goal? Select two.

Select 2 answers
A.Place the VMs in different availability zones within the same region.
B.Use an availability set and expect it to cover a zone outage.
C.Deploy the workload in a zone-enabled virtual machine scale set.
D.Keep all instances in one zone and rely on the load balancer.
E.Use a paired region for automatic in-region zone balancing.
AnswersA, C

Availability zones are physically separate groups of datacenters within an Azure region, each with independent power, cooling, and network connectivity. Placing VMs in different availability zones ensures that if an entire datacenter (or zone) suffers an outage, the service remains available in other zones. Because all zones are in the same region, traffic stays local, which satisfies the requirement to avoid cross-region failover and keeps latency low. This is the foundational pattern for zone-level resilience when you need explicit control over VM placement.

Why this answer

Availability zones are physically separate datacenters within a region, each with independent power, cooling, and networking. Placing VMs in different zones ensures that a single datacenter outage does not affect all instances, meeting the survivability requirement without manual placement errors. Azure automatically distributes VMs across selected zones, eliminating human error in instance placement.

Exam trap

The trap here is confusing availability sets (which protect against rack failures within a single datacenter) with availability zones (which protect against full datacenter outages), leading candidates to incorrectly select Option B as a valid solution for zone-level resilience.

Why the other options are wrong

B

An availability set protects against rack-level failures within a single datacenter, not against an entire datacenter outage. Zone outages span multiple datacenters, so availability sets cannot survive a zone failure.

D

Keeping all instances in one zone does not survive a single datacenter outage because a zone outage would take down all instances. The load balancer cannot redistribute traffic if all backend instances are in the failed zone.

E

Paired regions are for cross-region disaster recovery, not for surviving a single datacenter outage within a zone-supported region. They do not provide automatic zone balancing within a region.

When would these options actually be correct?

B

This option would be correct if the question asked for protection against hardware failures within a single datacenter (e.g., rack or chassis failure) and did not require zone-level resilience.

D

This option would be correct if the question required cost optimization and allowed manual recovery, or if the region did not support availability zones and you were using a single datacenter with a load balancer for high availability within that datacenter.

E

When the requirement is to survive a region-wide outage and you need automatic replication across geographically separated regions for disaster recovery, such as for compliance or high availability across regions.

Why candidates pick the wrong answer

B

Candidates may confuse availability sets with availability zones, thinking both provide datacenter-level fault tolerance, but availability sets only distribute VMs across fault domains within one datacenter.

D

Candidates may think a load balancer provides automatic failover across zones, but it only distributes traffic among healthy instances; if all instances are in one zone, a zone outage makes them all unhealthy.

E

Candidates may confuse paired regions with availability zones, thinking they provide in-region redundancy, or they may misinterpret 'automatic in-region zone balancing' as a feature of paired regions.

378
MCQeasy

A company wants to group several subscriptions for Finance, HR, and Engineering so that the same governance settings can be applied above the subscription level. What should the administrator create?

A.A management group
B.A resource group
C.A tag
D.A resource lock
AnswerA

Management groups are designed to contain subscriptions and provide a hierarchy above the subscription level. Policies, access controls, and other governance settings can be assigned at the management group level and inherited by the subscriptions underneath it, which makes them the correct choice for organizing Finance, HR, and Engineering subscriptions together.

Why this answer

A management group is the correct choice because it allows you to organize multiple Azure subscriptions into a hierarchy and apply governance policies, role-based access control (RBAC), and compliance settings at a scope above the subscription level. By creating a management group for Finance, HR, and Engineering, the administrator can enforce consistent Azure Policy initiatives and RBAC assignments across all three subscriptions, ensuring uniform governance without needing to configure each subscription individually.

Exam trap

The trap here is that candidates often confuse management groups with resource groups, thinking resource groups can span subscriptions, but resource groups are strictly scoped to a single subscription and cannot aggregate governance across multiple subscriptions.

Why the other options are wrong

B

Resource groups are containers for resources within a single subscription, not for grouping multiple subscriptions to apply governance settings above the subscription level.

C

Tags are metadata applied to Azure resources for categorization and cost tracking, not for grouping subscriptions or applying governance settings above the subscription level.

D

Resource locks prevent accidental deletion or modification of resources but do not provide governance settings above the subscription level. They operate at the resource or resource group level, not across multiple subscriptions.

When would these options actually be correct?

B

An administrator needs to organize resources (e.g., VMs, databases) for a specific project within a single subscription, applying policies and access control at that scope.

C

An administrator needs to enforce a policy that all resources in a subscription must have a 'CostCenter' tag. The correct action would be to create a tag and assign it via Azure Policy.

D

An administrator needs to prevent critical resources in a production subscription from being deleted or modified. Creating a resource lock (e.g., CanNotDelete) on those resources would be the correct solution.

Why candidates pick the wrong answer

B

Candidates may confuse resource groups with management groups because both are hierarchical containers, but resource groups operate within a subscription, not across subscriptions.

C

Candidates may confuse tags with management groups because both can be used for organization, but tags lack the hierarchical governance capabilities needed for subscription-level grouping.

D

Candidates may confuse resource locks with governance controls, thinking locks can enforce policies across subscriptions, or they may overlook the requirement for 'above the subscription level' and focus on protection instead of governance.

379
Multi-Selectmedium

A stateless web tier must survive a datacenter outage in a region that supports availability zones, and the number of instances should increase during business hours. Which three actions should the administrator take? Select three.

Select 3 answers
A.Deploy the workload as a virtual machine scale set instead of a standalone VM.
B.Enable zone distribution for the scale set in a region that supports availability zones.
C.Configure autoscale so the instance count can change according to demand.
D.Place all instances in a single availability set and scale them manually.
E.Deploy only one zonal VM and use snapshots to recover if the datacenter fails.
AnswersA, B, C

A virtual machine scale set is the Azure compute service that manages a group of identical, load-balanced VMs as a single logical resource, enabling horizontal scaling and high availability. Unlike a standalone VM, a scale set can automatically replace failed instances, distribute across availability zones, and integrate with Azure Load Balancer for continuous service. This architecture directly satisfies the requirement for a stateless web tier to survive a datacenter outage by providing redundant, automatically maintained instances.

Why this answer

A virtual machine scale set (VMSS) provides automatic scaling and high availability across multiple instances, which is essential for a stateless web tier that must survive a datacenter outage. By deploying as a scale set instead of a standalone VM, the administrator gains the ability to distribute instances across availability zones and configure autoscale rules to adjust capacity based on demand, meeting both the resilience and elasticity requirements.

Exam trap

The trap here is that candidates often confuse availability sets (which protect against rack failures) with availability zones (which protect against datacenter outages), leading them to select option D instead of the correct zone distribution in option B.

Why the other options are wrong

D

Placing all instances in a single availability set does not survive a datacenter outage because availability sets protect against rack-level failures within a single datacenter, not across datacenters. Manual scaling also fails to meet the requirement for automatic increase during business hours.

E

A single zonal VM cannot survive a datacenter outage because it is tied to one zone; snapshots do not provide automatic failover or high availability. The question requires surviving a datacenter outage, which demands redundancy across zones.

When would these options actually be correct?

D

This option would be correct if the question required high availability within a single datacenter (e.g., protecting against rack failures) and did not mandate automatic scaling. For example: 'A legacy application must be deployed across multiple fault domains in one datacenter with manual scaling.'

E

This option would be correct for a question asking to minimize cost for a non-critical application that can tolerate downtime, where the requirement is to recover from a disaster rather than provide continuous availability.

Why candidates pick the wrong answer

D

Candidates may confuse availability sets with availability zones, thinking that spreading instances across fault domains provides datacenter redundancy. Manual scaling might be chosen if they overlook the autoscaling requirement or assume manual control is sufficient.

E

Candidates may think snapshots are sufficient for disaster recovery, overlooking the need for automatic failover and the requirement to survive an outage without manual intervention.

380
MCQeasy

A support engineer needs to search a Log Analytics workspace for only failed sign-in records. Which KQL query should they use?

A.SigninLogs | where ResultType == 0
B.SigninLogs | where ResultType != 0
C.SigninLogs | summarize count()
D.SigninLogs | project UserPrincipalName
AnswerB

This query correctly isolates failed sign-ins because in the SigninLogs table a ResultType value of 0 (or "0") indicates a successful authentication, while all non-zero values represent error codes such as 50126 (invalid credentials) or 50053 (account lockout). By applying a where clause that excludes zero, you return only the failed sign-in events. Note that the ResultType field may be stored as a string, so the comparison might need quotes in some query contexts, but the logical predicate is correct.

Why this answer

In Azure AD sign-in logs, a `ResultType` of 0 indicates a successful sign-in, while any non-zero value (e.g., 50125, 53003) indicates a failure. The KQL query `SigninLogs | where ResultType != 0` filters for all records where the result type is not zero, thus returning only failed sign-in records.

Exam trap

The trap here is that candidates may mistakenly think `ResultType == 0` indicates a failure, when in fact 0 means success, and they overlook that non-zero values represent various failure codes.

Why the other options are wrong

A

ResultType == 0 indicates successful sign-ins, not failed ones. The question specifically asks for failed sign-in records, so this filter excludes the desired data.

C

The query uses summarize count() which returns the total count of sign-in records, not filtered for failed sign-ins. It does not include a where clause to isolate failed sign-ins (ResultType != 0).

D

The query projects only the UserPrincipalName column, which does not filter for failed sign-ins (ResultType != 0) and omits the ResultType column needed to identify failures.

When would these options actually be correct?

A

If the question asked to find only successful sign-in records, then 'SigninLogs | where ResultType == 0' would be correct, as ResultType 0 typically represents success.

C

A question asks: 'Which KQL query returns the total number of sign-in records in the Log Analytics workspace?' Then SigninLogs | summarize count() would be correct.

D

If the question asked: 'Which KQL query returns only the user principal names from sign-in logs?' then this option would be correct because it selects a single column.

Why candidates pick the wrong answer

A

Candidates may mistakenly think 0 represents a failure code or confuse the result type values, assuming 0 means 'no success' or 'error'.

C

Candidates may think summarize count() is needed to count failed sign-ins, but they forget to apply a filter first, or they confuse summarizing with filtering.

D

Candidates may think 'project' is used to filter rows, confusing column selection with row filtering, or they might assume that showing user names inherently implies failed sign-ins.

381
MCQmedium

A web app in VNet1 must access a storage account by using a private IP address, and the storage account has public network access disabled. The app resolves the storage FQDN from inside the VNet. What should you deploy?

A.A service endpoint on the subnet so the storage account gets a private IP.
B.A private endpoint for the storage account and the required private DNS zone linkage.
C.A storage account firewall rule that allows the VNet and a public DNS record update.
D.A SAS token created for the application service principal.
AnswerB

A private endpoint gives the storage account a private IP address inside the virtual network, which is exactly what the scenario requires. Because the app must resolve the storage FQDN from within the VNet, private DNS is also needed so name resolution points to the private address instead of the public endpoint. This is the standard design for fully private access to Azure Storage.

Why this answer

A private endpoint assigns the storage account a private IP address from the VNet, enabling access via a private IP while public network access is disabled. The required private DNS zone linkage ensures the storage FQDN resolves to that private IP from within the VNet, meeting both requirements.

Exam trap

The trap here is confusing service endpoints (which only provide source VNet identity and no private IP) with private endpoints (which provide a true private IP and DNS resolution), leading candidates to choose option A incorrectly.

Why the other options are wrong

A

A service endpoint does not assign a private IP to the storage account; it only allows traffic from the VNet to the storage account's public endpoint. The requirement is for the app to access the storage account by a private IP address, which service endpoints cannot provide.

C

The storage account has public network access disabled, so a firewall rule allowing the VNet is irrelevant because the storage account cannot be accessed over the public endpoint at all. Additionally, a public DNS record update would not provide a private IP address for the storage account.

D

A SAS token provides delegated access to a storage account using the storage account's public endpoint, but the question states public network access is disabled and requires a private IP address. SAS tokens do not enable private IP connectivity.

When would these options actually be correct?

A

A service endpoint would be correct if the question required securing the storage account to accept traffic only from a specific VNet, without needing a private IP address, and public network access was enabled but restricted via firewall rules.

C

This option would be correct if the storage account had public network access enabled but restricted to specific VNets/subnets via firewall rules, and the app needed to resolve the storage FQDN to a public IP that is accessible only from the allowed VNet.

D

A SAS token would be correct in a scenario where a storage account has public network access enabled, and you need to grant time-limited, delegated access to a specific resource (e.g., a blob) to an application or service principal without sharing the account key.

Why candidates pick the wrong answer

A

Candidates may confuse service endpoints with private endpoints, thinking both provide private IP connectivity, or they may not fully understand that service endpoints do not assign private IPs to the target service.

C

Candidates may think that a firewall rule combined with a DNS update is sufficient to restrict access to the VNet, not realizing that disabling public network access entirely requires a private endpoint for connectivity.

D

Candidates may confuse SAS tokens with a method to secure access, not realizing that SAS tokens still rely on the public endpoint and do not provide private IP connectivity.

382
MCQhard

A media archive stores large video files that must survive a zone failure in the primary region and also be replicated to a paired region for disaster recovery. The archive team does not want anyone to read from the secondary region during normal operations, and cost should be lower than the read-access variant. Which redundancy option should you configure?

A.LRS, because it keeps copies in a single datacenter and is the lowest-cost option.
B.ZRS, because it protects against zone failures but not regional outages.
C.GZRS, because it adds zone redundancy and geo-replication without enabling secondary read access.
D.RA-GRS, because the read-access copy is needed whenever data is replicated to another region.
AnswerC

GZRS matches the requirement precisely. It protects the data from a zone failure by distributing copies across availability zones in the primary region. It also replicates the data to a paired secondary region for disaster recovery. Because the team does not want secondary read access during normal operations, the non-read-access version is the correct and typically lower-cost choice compared with RA-GZRS.

Why this answer

GZRS (Geo-Zone-Redundant Storage) is correct because it combines zone redundancy (three copies across availability zones in the primary region) with geo-replication to a paired secondary region, but crucially does not enable read access to the secondary region by default. This satisfies the requirement to survive a zone failure, provide disaster recovery to a paired region, and prevent reads from the secondary during normal operations, all at a lower cost than RA-GRS which includes secondary read access.

Exam trap

The trap here is that candidates often confuse GZRS with RA-GRS, assuming geo-replication always includes read access to the secondary region, but GZRS explicitly omits that read-access feature to lower cost while still providing zone and geo redundancy.

Why the other options are wrong

A

LRS only replicates data within a single datacenter, so it cannot survive a zone failure in the primary region, which is a requirement in the question.

B

ZRS protects against zone failures but does not replicate data to a paired region, failing the disaster recovery requirement for a secondary region.

When would these options actually be correct?

A

For a non-critical application where data loss is acceptable and cost is the primary concern, such as temporary logs or cached data that can be regenerated, and no zone or regional redundancy is needed.

B

A question where the requirement is only to survive a zone failure within a single region, with no need for geo-replication or disaster recovery across regions.

Why candidates pick the wrong answer

A

Candidates may mistakenly think LRS is sufficient because it is the cheapest option, overlooking the specific requirement for zone failure protection.

B

Candidates see 'zone failure' in the question and immediately think ZRS, overlooking the additional requirement for geo-replication to a paired region.

383
MCQeasy

A monthly report file must automatically move to a cheaper online tier after 90 days in Azure Blob Storage. Which feature should the administrator configure?

A.Blob lifecycle management
B.Archive rehydration policy
C.Snapshot retention
D.Storage account failover
AnswerA

Blob lifecycle management is the correct answer because a lifecycle management policy can automatically transition blobs from hot to cool or cool to archive based on the last modification date, with rules filtered by prefix or blob index tags. This minimizes manual administrative effort and operational cost by enforcing tier changes on a schedule without requiring operator intervention.

Why this answer

Blob lifecycle management is the correct feature because it allows administrators to define rules that automatically transition blobs to a cheaper access tier (e.g., from Hot to Cool) after a specified number of days. This policy operates at the storage account or container level and can move data to the Cool or Archive tier based on age, meeting the requirement of moving the report file after 90 days without manual intervention.

Exam trap

The trap here is that candidates may confuse 'archive rehydration' (which moves data from Archive to a cheaper tier? No, it moves to an online tier) with lifecycle management, or think snapshot retention can handle tiering, but snapshots are only for versioning and recovery, not cost-based tier transitions.

Why the other options are wrong

B

Archive rehydration policy is used to change the access tier of a blob from Archive to a hot or cool tier, not to automatically move blobs to a cheaper tier after a set period.

C

Snapshot retention manages the lifecycle of blob snapshots, not the tiering of the base blob itself. The question requires moving the base blob to a cheaper tier after 90 days, which is not controlled by snapshot retention.

D

Storage account failover is a disaster recovery feature that switches the primary region to a secondary region, not a data tiering or cost optimization feature. It does not move blobs to cheaper tiers based on age.

When would these options actually be correct?

B

An administrator needs to retrieve archived data for immediate access and must configure the priority and duration of the rehydration process.

C

A question asking how to automatically delete old snapshots of blobs after a specified number of days to reduce storage costs would have snapshot retention as the correct answer.

D

An administrator needs to ensure that if the primary region becomes unavailable, the storage account automatically switches to a paired secondary region to maintain availability. In that scenario, configuring storage account failover would be the correct answer.

Why candidates pick the wrong answer

B

Candidates may confuse 'rehydration' (changing from archive to hot/cool) with 'lifecycle management' (moving between tiers over time), as both involve tier changes.

C

Candidates may confuse snapshot retention with lifecycle management because both involve time-based policies, but snapshot retention specifically targets snapshots, not the base blob's tier.

D

Candidates may confuse failover with lifecycle management because both involve automatic actions on storage accounts, but failover is about regional redundancy, not cost-efficient data movement.

384
Matchingmedium

Match each access scenario to the SAS or key type that best fits it.

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

Concepts
Matches

User delegation SAS

Service SAS

Account SAS

Storage account key

Why these pairings

Interactive logins use user delegation SAS; automated backups use system-assigned managed identity; cross-tenant access requires a service principal with certificate; VM patching uses system-assigned managed identity; app access to SQL uses user-assigned managed identity; key rotation uses storage account access keys.

385
MCQhard

You are deploying a stateless web application on Azure virtual machines. The solution must automatically add and remove instances based on CPU demand and allow all instances to be managed as one logical group. Which Azure compute feature should you deploy?

A.A Virtual Machine Scale Set
B.An availability set
C.A Recovery Services vault
D.Boot diagnostics
AnswerA

A Virtual Machine Scale Set is the appropriate solution because it deploys and manages a fleet of identical VM instances that can automatically scale in or out based on CPU, memory, or custom metrics, ideal for a stateless web application. It integrates with Azure Load Balancer or Application Gateway to distribute traffic, and it supports centralized OS and app configuration, allowing uniform updates across all instances. Because the workload is stateless, instances can be freely added or removed without data-affinity concerns, making autoscaling seamless.

Why this answer

A Virtual Machine Scale Set (VMSS) is the correct Azure compute feature because it automatically manages a group of identical, load-balanced VMs that can scale in and out based on CPU demand using autoscale rules. It treats all instances as a single logical group, enabling unified management, patching, and application deployment, which is exactly what the stateless web application requires.

Exam trap

The trap here is that candidates often confuse an availability set (which provides high availability) with a scale set (which provides both high availability and automatic scaling), leading them to select availability set when the question explicitly requires automatic scaling and logical group management.

Why the other options are wrong

B

An availability set only provides high availability by distributing VMs across fault and update domains, but it does not support automatic scaling or management as a single logical group for a stateless web application.

C

A Recovery Services vault is used for backup and disaster recovery, not for scaling or managing virtual machines as a group.

D

Boot diagnostics is a feature for troubleshooting VM boot failures by capturing serial console output and screenshots, not for scaling or managing instances as a group.

When would these options actually be correct?

B

You need to ensure that two or more VMs hosting a critical database remain available during planned maintenance and hardware failures. An availability set would be the correct choice to distribute VMs across fault and update domains.

C

You need to protect Azure VMs by enabling backup and restore capabilities, including application-consistent backups and long-term retention policies.

D

You need to troubleshoot why a specific Azure VM is not booting properly after a configuration change. Boot diagnostics would be the correct feature to enable to capture boot logs and screenshots for analysis.

Why candidates pick the wrong answer

B

Candidates may confuse availability sets with scale sets because both involve multiple VMs, and they might think availability sets also provide scaling capabilities.

C

Candidates may confuse 'Recovery Services' with 'scaling' or 'management' due to the word 'Services', or think it provides some form of group management for VMs.

D

Candidates may confuse boot diagnostics with a management or monitoring feature, thinking it helps manage multiple instances, but it is solely for debugging boot issues on individual VMs.

386
MCQeasy

Based on the exhibit, which restore option should the administrator use to recover only the deleted file while keeping the VM online?

A.Restore the entire virtual machine to the latest recovery point.
B.Use File Recovery from the Recovery Services vault.
C.Redeploy the VM from the original image.
D.Disable backup protection and then re-enable it.
AnswerB

File Recovery is designed for exactly this scenario: recovering one or more files or folders from a VM backup without restoring the whole virtual machine. The VM stays online, users can continue working, and the administrator mounts the recovery point to copy back only the missing spreadsheet. This minimizes downtime and avoids overwriting unrelated data on the VM.

Why this answer

Azure Backup's File Recovery feature allows you to mount a recovery point as a drive on the VM, enabling you to browse and restore individual files without affecting the running VM. This avoids the need to restore the entire VM or take it offline, which is essential for recovering only the deleted file while maintaining availability.

Exam trap

The trap here is that candidates may assume restoring the entire VM is the only way to recover files, overlooking the File Recovery option that provides granular, online file-level restore without impacting the running VM.

Why the other options are wrong

A

Restoring the entire VM would overwrite the current VM state, causing downtime and potential data loss, and it does not target only the deleted file while keeping the VM online.

C

Redeploying the VM from the original image would replace the entire VM with a fresh copy from the base image, losing all data changes and the deleted file cannot be selectively recovered. It also requires the VM to be stopped or redeployed, not kept online.

D

Disabling backup protection and re-enabling it does not restore any data; it only stops future backups and starts a new backup chain. It cannot recover a deleted file while keeping the VM online.

When would these options actually be correct?

A

When the question requires recovering a VM that has failed completely (e.g., OS corruption or hardware failure) and the goal is to restore the entire VM to its latest consistent state, accepting downtime.

C

If the question asked for recovering a VM that has become unresponsive due to underlying host issues, and the goal is to restore the VM to its original state without preserving any data changes, then redeploying from the original image would be correct.

D

This option would be correct if the question asked to stop backing up a VM permanently and then start a fresh backup chain, for example, after changing the backup policy or moving the VM to a different vault.

Why candidates pick the wrong answer

A

Candidates may think that restoring the entire VM is the simplest way to recover a deleted file, not realizing it causes unnecessary downtime and does not support granular file recovery.

C

Candidates may think redeploying is a quick way to restore the VM to a known good state, similar to resetting a PC, but they overlook that it does not recover deleted files and disrupts the VM's operation.

D

Candidates may think that toggling backup protection triggers a restore or resets the backup state, confusing the backup lifecycle with recovery operations.

387
MCQmedium

A Windows file server VM must mount an Azure file share by using domain credentials instead of a storage account key. The organization already manages users in Active Directory Domain Services. Which authentication option should be configured for Azure Files?

A.Shared key authentication, because it is the default for Azure file shares.
B.Identity-based authentication with Active Directory Domain Services.
C.A service SAS created for the share and mapped as a network drive.
D.Anonymous access with public network restrictions disabled.
AnswerB

Azure Files can use identity-based authentication so Windows clients access the share with their domain identities instead of storage keys. In an environment that already has Active Directory Domain Services, that is the appropriate configuration for SMB-based access. It supports centralized identity management, aligns with existing Windows admin practices, and avoids embedding account keys in scripts or connection strings.

Why this answer

Azure Files supports identity-based authentication using Active Directory Domain Services (AD DS), which allows domain-joined Windows VMs to mount Azure file shares using their existing domain credentials instead of a storage account key. This enables Kerberos-based authentication and preserves NTFS permissions, meeting the requirement to avoid shared key access.

Exam trap

The trap here is that candidates may confuse shared key authentication (Option A) as the only supported method for Azure Files, overlooking the identity-based authentication capability that integrates with on-premises AD DS for domain-joined VMs.

Why the other options are wrong

A

Shared key authentication uses the storage account key, not domain credentials, so it does not meet the requirement to mount the share using domain credentials.

When would these options actually be correct?

A

When the question asks for the simplest method to authenticate to an Azure file share without requiring domain services, and the environment does not have Active Directory Domain Services or Azure AD DS.

Why candidates pick the wrong answer

A

Candidates may assume that the default authentication method (shared key) is sufficient, overlooking the specific requirement for domain credentials.

388
MCQhard

An administrator has already increased the size of a managed data disk attached to a running Windows VM. Azure now shows the larger disk size, but the application still cannot use the new capacity. What should the administrator do next?

A.Detach the disk, shrink it, and reattach it to refresh the filesystem.
B.Expand the partition or volume inside the guest operating system.
C.Convert the data disk to a shared disk so Windows can auto-detect the size increase.
D.Redeploy the virtual machine to apply the new disk size.
AnswerB

After Azure grows the managed disk, the operating system still needs to recognize and consume that extra space. Expanding the partition or volume inside the guest OS is the required next step so the application can use the larger capacity.

Why this answer

When a managed data disk attached to a running Windows VM is resized in Azure, the underlying virtual hard disk (VHD) expands, but the guest operating system does not automatically recognize the new unallocated space. The administrator must use the Disk Management tool (diskmgmt.msc) or the diskpart command to extend the volume or partition into the unallocated space. This is a standard operating system task, not an Azure control-plane action.

Exam trap

The trap here is that candidates assume Azure automatically applies the size change to the guest OS, when in fact the administrator must manually extend the partition inside the operating system using disk management tools.

Why the other options are wrong

A

Shrinking the disk would reduce capacity, not help the OS recognize the increased size. The filesystem refresh is not achieved by detaching and shrinking; the OS must extend the partition to use the new space.

C

Converting a data disk to a shared disk does not cause Windows to auto-detect a size increase; shared disks are for multi-VM access, not for resizing. The guest OS still requires manual partition expansion.

D

Redeploying a VM moves it to a new host but does not resize or refresh the disk partition inside the guest OS; the OS still sees the old partition size.

When would these options actually be correct?

A

If the question stated that the disk was over-provisioned and needed to be reduced to save costs, or if the disk was corrupted and needed to be reinitialized after shrinking to a smaller size, then detaching, shrinking, and reattaching might be part of the process.

C

When you need to attach the same managed disk to multiple VMs for clustered applications (e.g., SQL Server FCI, Scale-out File Server). In that scenario, enabling shared disk allows concurrent read/write from multiple VMs.

D

If a VM is experiencing hardware-level issues (e.g., host failure, connectivity problems) and you need to restore it to a healthy host, redeploying is the correct action.

Why candidates pick the wrong answer

A

Candidates may think that detaching and reattaching forces the OS to re-scan the disk and recognize the new size, similar to how a reboot can refresh hardware detection, but this is not the case for partition size changes.

C

Candidates may think 'shared' implies automatic synchronization or detection of changes, or they confuse the disk sharing feature with automatic resizing capabilities.

D

Candidates may think redeploying refreshes all VM resources, similar to rebooting, and assume it will apply the new disk size automatically.

389
MCQmedium

A contractor must import data into one blob container for six hours. The contractor should not receive the storage account key, and access must be limited to that container only. Which credential should the administrator generate?

A.A storage account access key, because it can be copied into the import tool.
B.A user delegation SAS, because it is signed with Microsoft Entra credentials and is time limited.
C.A shared key connection string, because it works with any tool that needs blob access.
D.A managed identity token, because the contractor can use it outside Azure directly.
AnswerB

A user delegation SAS is the most appropriate credential when you want temporary, scoped access to blob data without exposing the storage account key. It is generated using Microsoft Entra authorization, can be constrained to a specific container, and can expire after six hours. That combination gives the contractor only the access needed for the import task while keeping the underlying account credentials protected.

Why this answer

A user delegation SAS is signed with Microsoft Entra credentials (formerly Azure AD) and can be scoped to a specific blob container with a time limit. This meets the requirement of granting the contractor access only to that container for six hours without exposing the storage account key.

Exam trap

The trap here is that candidates often confuse a user delegation SAS with a service SAS or account SAS, mistakenly thinking any SAS is sufficient, but only a user delegation SAS avoids using the storage account key and can be precisely scoped to a single container with time-bound access.

Why the other options are wrong

A

A storage account access key grants full administrative access to the entire storage account, not just a single container, and it cannot be time-limited. The question requires access limited to one container for six hours without exposing the account key.

C

A shared key connection string includes the storage account access key, which the contractor should not receive, and it does not limit access to a single container.

D

A managed identity token is used for Azure resources to authenticate to Azure services without storing credentials, but it cannot be used outside Azure directly. The contractor is external and needs access from outside Azure, so a managed identity token is not applicable.

When would these options actually be correct?

A

When the question asks for a credential that provides full access to all storage account resources (e.g., for a backup tool that needs to manage multiple containers) and there is no requirement for time limitation or container-level restriction.

C

When an application needs to access a storage account using a tool that requires a connection string, and the user is trusted with full account access (e.g., an internal admin performing bulk operations).

D

An administrator needs to grant an Azure VM (or other Azure resource) access to a specific blob container for a limited time, without managing keys. The VM uses a managed identity to obtain a token for blob access, and the administrator assigns RBAC roles to the identity scoped to the container.

Why candidates pick the wrong answer

A

Candidates may think the access key is the simplest way to authenticate tools for data import, overlooking the security and scoping requirements in the question.

C

Candidates may think a connection string is a convenient way to grant access without understanding that it exposes the account key and provides unrestricted access to the entire storage account.

D

Candidates may think managed identities provide secure, token-based access without keys, but they forget that managed identities are tied to Azure resources and cannot be used by external users or non-Azure workloads.

390
MCQmedium

An administrator is deploying a new storage account for an application. The account must support blob containers, an Azure Files share, lifecycle rules for blobs, and standard access tiers. The application does not need premium performance for a single data service. Which storage account kind should be chosen?

A.BlobStorage, because it is optimized only for block blob workloads.
B.General-purpose v1, because it can host any storage object type.
C.General-purpose v2, because it supports blobs, files, access tiers, and lifecycle management.
D.BlockBlobStorage, because it is the best choice for any application that stores files.
AnswerC

General-purpose v2 is the recommended all-purpose storage account type for most Azure workloads. It supports blobs and files in the same account, offers Hot, Cool, and Archive access tiers, and supports lifecycle management for blobs. That combination matches the application requirements without forcing a premium specialized account.

Why this answer

General-purpose v2 (GPv2) storage accounts are the correct choice because they support all storage object types (blobs, files, queues, tables), standard access tiers (hot, cool, archive), and lifecycle management policies for blobs. This meets all the stated requirements without needing premium performance for a single data service.

Exam trap

The trap here is that candidates often confuse BlobStorage (which supports only blobs and lifecycle management) with General-purpose v2 (which supports blobs, files, lifecycle management, and access tiers), leading them to select BlobStorage when the requirement includes Azure Files shares.

Why the other options are wrong

A

BlobStorage accounts support only block blobs and append blobs, not Azure Files shares or standard access tiers with lifecycle management, which are required by the question.

B

General-purpose v1 does not support access tiers or lifecycle management, which are explicitly required by the question.

D

BlockBlobStorage is designed for premium block blob performance and does not support Azure Files shares, lifecycle management, or standard access tiers, which are all required by the question.

When would these options actually be correct?

A

A question that asks for a storage account optimized for block blob workloads only, with no need for Azure Files, access tiers, or lifecycle management, and where premium performance is not required.

B

A question that requires a storage account for blobs, files, tables, and queues, but does not require access tiers or lifecycle management, and the application can tolerate lower performance and fewer features.

D

A question requiring ultra-low latency for block blob workloads (e.g., high-frequency transaction logging) and explicitly stating that premium performance is needed, while not requiring Azure Files or lifecycle management.

Why candidates pick the wrong answer

A

Candidates may see 'blob containers' in the requirements and assume BlobStorage is the correct choice, overlooking the additional requirements for Azure Files and lifecycle management.

B

Candidates may recall that GPv1 supports all storage services (blobs, files, tables, queues) and assume it meets all requirements, overlooking the missing access tier and lifecycle management features.

D

Candidates may assume 'BlockBlobStorage' is a general-purpose blob storage option due to its name, or think it supports all blob-related features, overlooking its premium-only nature and lack of file share support.

391
MCQmedium

Two virtual networks were created in different subscriptions. VNet-A uses 10.4.0.0/16 and VNet-B uses 10.4.128.0/17. You try to create peering between them, but Azure rejects the request. What is the best fix?

A.Enable gateway transit on both VNets before creating the peering.
B.Add a route table to one VNet so the address spaces no longer overlap.
C.Change one VNet to a non-overlapping address range, then create the peering again.
D.Create a private endpoint between the two VNets instead of peering.
AnswerC

VNet peering requires that the address spaces of the two VNets do not overlap, because overlapping ranges create routing ambiguity that Azure cannot resolve. To fix this, you must modify one VNet so its address space no longer overlaps the other—this can be done by removing the conflicting range if no subnets use it and adding a new non-overlapping range. After the address space is updated, you can then create the peering between the two VNets, even if they are in different subscriptions.

Why this answer

VNet peering requires that the address spaces of the two virtual networks do not overlap. VNet-A uses 10.4.0.0/16, which covers 10.4.0.0 to 10.4.255.255, and VNet-B uses 10.4.128.0/17, which falls entirely within that range (10.4.128.0 to 10.4.255.255). Azure rejects the peering because overlapping address spaces would cause routing conflicts.

The only correct fix is to change one VNet's address space to a non-overlapping range, then recreate the peering.

Exam trap

The trap here is that candidates may think adding a route table or enabling gateway transit can fix the overlap, but Azure enforces a strict non-overlapping address space requirement for VNet peering at the time of creation, and no routing configuration can bypass this fundamental constraint.

Why the other options are wrong

A

Azure VNet peering requires non-overlapping address spaces; enabling gateway transit does not resolve address overlap, and peering will still fail.

D

Private endpoints are used for secure access to PaaS services over a private IP, not for connecting two VNets; they cannot replace VNet peering for inter-VNet connectivity.

When would these options actually be correct?

A

In a scenario where two VNets have non-overlapping address spaces and you need to allow a VPN-connected on-premises network to access resources in both VNets via a single VPN gateway, enabling gateway transit on one VNet and using the other as a spoke would be correct.

D

A question where you need to connect an on-premises network to an Azure PaaS service (e.g., Azure Storage, SQL Database) privately, without exposing it to the public internet, and the service is in a different VNet.

Why candidates pick the wrong answer

A

Candidates may confuse gateway transit as a solution for overlapping address spaces, or think that enabling it somehow bypasses the address space requirement.

D

Candidates may confuse private endpoints with VNet peering, thinking both provide private connectivity between VNets, but private endpoints are for service-specific access, not general VNet-to-VNet routing.

392
MCQmedium

A company wants to peer a new spoke virtual network to an existing hub VNet. The hub uses 10.40.0.0/16, and the new spoke was created with 10.40.128.0/17 because that range seemed available in the branch office plan. Peering creation fails. What should the administrator do?

A.Add a second address prefix to the spoke VNet and keep the overlapping range.
B.Change the spoke VNet to a non-overlapping address space before peering.
C.Enable gateway transit on the hub VNet before retrying peering.
D.Create custom DNS records for the spoke VNet so the address ranges no longer conflict.
AnswerB

VNet peering enforces a hard constraint: the address spaces of peered VNets must not overlap, because overlapping ranges make IP traffic semantically ambiguous at L3. To fix the spoke, you must remove the conflicting prefix from its address space before adding a non-overlapping one. Ensure no existing subnets or resources are deployed in the overlapping range, since you cannot delete an address space that is currently in use. Only then can the hub-spoke peering establish successfully.

Why this answer

VNet peering requires that the address spaces of the peered virtual networks do not overlap. The hub uses 10.40.0.0/16, and the spoke uses 10.40.128.0/17, which is a subset of the hub’s range. Azure blocks peering when there is any overlap to prevent routing conflicts.

The correct fix is to change the spoke VNet to a non-overlapping address space, such as a different RFC 1918 range like 10.1.0.0/16, before attempting to peer.

Exam trap

The trap here is that candidates assume a subnet range like 10.40.128.0/17 is 'available' because it is not used by the hub’s subnets, but Azure VNet peering checks the entire VNet address space, not just the subnets, so any overlap at the VNet level causes failure.

Why the other options are wrong

A

Azure VNet peering requires non-overlapping address spaces. Adding a second prefix to the spoke VNet does not resolve the existing overlap with the hub's 10.40.0.0/16, and the overlapping range (10.40.128.0/17) remains, causing peering to fail.

C

Gateway transit enables a spoke to use the hub's VPN/ExpressRoute gateway, but it does not resolve IP address overlap. Peering fails due to conflicting address spaces (10.40.0.0/16 and 10.40.128.0/17), not gateway configuration.

D

Peering fails due to overlapping address spaces (10.40.0.0/16 and 10.40.128.0/17), not DNS resolution. DNS records do not resolve IP address conflicts; Azure VNet peering requires non-overlapping address spaces.

When would these options actually be correct?

A

This option would be correct if the spoke VNet had no address space overlap but needed to communicate with an additional on-premises network that uses an overlapping range. Adding a second prefix to the spoke VNet and configuring appropriate routes could enable connectivity without changing the original range.

C

If the question stated that the hub has a VPN gateway and the spoke needs internet access through the hub, enabling gateway transit on the hub and using the spoke as a gateway spoke would be correct. The spoke would then route traffic via the hub's gateway.

D

In a scenario where VNet peering succeeds but resources in the spoke cannot resolve names in the hub (or vice versa), and custom DNS servers are needed. For example, when using Azure-provided DNS and you need to resolve private IPs across peered VNets without Azure DNS resolution.

Why candidates pick the wrong answer

A

Candidates may think they can work around the overlap by adding more address space, misunderstanding that peering strictly prohibits any overlap between the peered VNets' address spaces.

C

Candidates may confuse peering prerequisites with gateway transit requirements, thinking that enabling transit is necessary for any peering to succeed, or they may misattribute the failure to missing gateway settings rather than address overlap.

D

Candidates may confuse IP address overlap with name resolution issues, thinking that custom DNS records can somehow 'hide' or work around the overlapping ranges, or they misunderstand that DNS is separate from network addressing.

393
MCQeasy

You want to let a support engineer restart only the virtual machines in the Prod-Apps resource group, and any VM added later to that group should also be covered. Where should you assign the role?

A.At the subscription scope, because it will cover the resource group and future VMs.
B.At the Prod-Apps resource group scope, because the assignment will inherit to all VMs in that group.
C.At each VM resource scope, because role assignments never inherit.
D.At the management group scope, because it is the only scope that applies to VMs.
AnswerB

This is correct because the resource group is the narrowest scope that still covers all VMs in Prod-Apps, including any future VMs created there. Assigning the role at the group scope keeps access limited to the intended set of resources while still taking advantage of Azure RBAC inheritance for child resources.

Why this answer

Assigning the 'Virtual Machine Contributor' role at the Prod-Apps resource group scope ensures that the support engineer can restart all current and future VMs within that group. Role assignments in Azure RBAC are inherited by all child resources, so any VM added later to the resource group automatically receives the same permissions. This is the most efficient and maintainable approach for managing access to a dynamic set of resources.

Exam trap

The trap here is that candidates often confuse scope inheritance with the need to assign roles at the subscription level to cover future resources, not realizing that resource group scope inheritance already covers all current and future child resources within that group.

Why the other options are wrong

A

Assigning the role at the subscription scope would grant the support engineer restart permissions on all VMs in the subscription, not just those in the Prod-Apps resource group, violating the principle of least privilege.

C

Role assignments in Azure do inherit to child resources, so assigning at each VM scope is unnecessary and violates the requirement that future VMs added to the resource group are automatically covered.

D

Assigning at the management group scope would apply the role to all subscriptions and resource groups under that management group, not just the Prod-Apps resource group, thus granting broader permissions than intended.

When would these options actually be correct?

A

If the requirement were to allow the support engineer to restart VMs across multiple resource groups within the subscription (e.g., all VMs in the subscription), then assigning the role at the subscription scope would be correct.

C

If the question required granting a role to a specific VM only, with no inheritance to other VMs, and explicitly stated that role assignments do not inherit (e.g., a custom scenario where inheritance is blocked), then assigning at the VM scope would be correct.

D

If the requirement was to allow the support engineer to restart VMs across multiple subscriptions (e.g., all subscriptions under a management group), and any new subscriptions added to that management group should also be covered, then assigning the role at the management group scope would be correct.

Why candidates pick the wrong answer

A

Candidates may think that assigning at a higher scope (subscription) is simpler and still covers the resource group and future VMs, overlooking the broader access it grants.

C

Candidates may mistakenly believe that role assignments do not inherit in Azure, or they may think that assigning at the resource level is the only way to ensure precise control, overlooking the inheritance mechanism.

D

Candidates may think management group scope is the most efficient way to cover future resources, but they overlook that it applies to a wider hierarchy than just a single resource group.

394
MCQeasy

Based on the exhibit, a shared resource group contains a production virtual machine and a storage account. Administrators must be able to update settings, but they must not be able to delete either resource by mistake. Which lock should be applied at the resource group scope?

A.ReadOnly lock, because it prevents all changes and keeps resources fully protected.
B.CanNotDelete lock, because it allows updates but blocks deletion.
C.No lock is needed because Azure RBAC already prevents deletion by default.
D.Management group lock, because all changes in the tenant must be blocked centrally.
AnswerB

CanNotDelete is the correct choice when administrators still need to modify resource settings but must be prevented from deleting the resources. Applied at the resource group scope, it protects both the VM and the storage account from accidental deletion while preserving normal update operations.

Why this answer

The CanNotDelete lock (option B) is correct because it allows administrators to update settings on the production VM and storage account while preventing accidental deletion of either resource. This lock operates at the resource group scope, applying to all resources within it, and is the appropriate choice for the stated requirement of allowing updates but blocking deletions.

Exam trap

The trap here is that candidates often confuse ReadOnly locks with CanNotDelete locks, mistakenly thinking that preventing all changes is safer, but the question explicitly requires allowing updates, making ReadOnly locks too restrictive.

Why the other options are wrong

A

The question requires that administrators can update settings, but a ReadOnly lock prevents all updates, which is too restrictive for the stated requirement.

C

Azure RBAC does not prevent deletion by default; the Contributor role, for example, allows deletion. A lock is required to explicitly block deletion while allowing updates.

D

Management group locks apply to all subscriptions within a management group hierarchy, not to a single resource group. The question specifies a resource group scope, so a management group lock is too broad and would affect other resources unnecessarily.

When would these options actually be correct?

A

A ReadOnly lock would be correct in a scenario where the requirement is to prevent any changes to resources, such as protecting a critical production database from accidental modifications while still allowing read access.

C

If the question stated that administrators already have a custom RBAC role that denies delete actions, and the requirement is to prevent any further changes, then no additional lock is needed.

D

A management group lock would be correct if the question asked for a lock that prevents deletion of all resources across multiple subscriptions under a management group, such as when enforcing a policy that no resources in the entire organization can be deleted.

Why candidates pick the wrong answer

A

Candidates may think ReadOnly lock is the safest choice to prevent accidental deletion, overlooking that it also blocks necessary updates.

C

Candidates may confuse RBAC permissions with resource locks, assuming that default roles like Contributor already block deletion, which is incorrect.

D

Candidates may confuse management group locks with resource group locks, thinking that applying a lock at a higher scope is more effective or simpler, without considering the scope requirements of the question.

395
Multi-Selectmedium

A contractor must manage only VM1 and VM2 in rg-prod. The contractor must not be able to manage any other resource in the resource group. Which two role assignment scopes should you create? Select two.

Select 2 answers
A.Assign the role at the VM1 resource scope.
B.Assign the role at the VM2 resource scope.
C.Assign the role at the rg-prod resource group scope.
D.Assign the role at the subscription scope.
E.Assign the role at the management group scope.
AnswersA, B

In Azure RBAC, a role assignment scoped to a specific resource applies only to that resource. Assigning the Virtual Machine Contributor role (or similar) on VM1's resource ID gives the contractor permission to manage VM1 without inheriting any access to VM2 or any other resource in rg-prod. This satisfies least privilege for VM1, and when combined with an identical assignment on VM2, the contractor's effective scope is exactly those two VMs. This is a correct approach because resource-scope assignments cannot affect sibling resources.

Why this answer

Assigning the role at the VM1 resource scope (Option A) is correct because Azure RBAC allows you to scope a role assignment to an individual resource, such as a virtual machine. This grants the contractor permissions to manage only VM1, without affecting any other resources in the resource group. The same logic applies to VM2, making the resource-level scope the precise way to restrict management to just those two VMs.

Exam trap

The trap here is that candidates often default to assigning roles at the resource group scope for simplicity, overlooking that resource-level scoping is available and required when the goal is to restrict access to individual resources within a group.

Why the other options are wrong

C

Assigning the role at the rg-prod resource group scope would grant the contractor permissions to manage all resources in that resource group, not just VM1 and VM2.

E

Assigning the role at the management group scope would grant the contractor permissions to manage all resources in all subscriptions under that management group, far exceeding the requirement to manage only VM1 and VM2 in rg-prod.

When would these options actually be correct?

C

If the requirement were to grant the contractor permissions to manage all resources within rg-prod (e.g., VMs, storage, networking), then assigning the role at the resource group scope would be appropriate.

E

A question where a user must manage all resources across multiple subscriptions that belong to the same management group, and the requirement is to grant broad administrative access at a high level.

Why candidates pick the wrong answer

C

Candidates may think that assigning a role at the resource group scope is a convenient way to cover multiple VMs, overlooking that it also grants access to other resources in the group.

E

Candidates might think management group scope is a convenient way to apply permissions to multiple resources, but they overlook that it applies to all resources under that hierarchy, not just the specified VMs.

396
MCQmedium

You create a private endpoint for an Azure Storage account. Virtual machines in VNet-App must resolve the storage account name to the private IP address of the endpoint. What should you configure?

A.A private DNS zone linked to VNet-App
B.A user-defined route on the subnet
C.An additional public IP address
D.An Azure Firewall policy
AnswerA

A private DNS zone (e.g., `privatelink.blob.core.windows.net` for Azure Blob) stores an A record mapping the storage account's FQDN to the private IP assigned to the endpoint. Linking that zone to VNet-App enables VMs to resolve the account name via the private IP, ensuring traffic uses the private endpoint instead of the public endpoint. Without this link, the DNS query falls back to the public endpoint and the private path is not used.

Why this answer

A private DNS zone linked to VNet-App is required because Azure Private Endpoint uses a private IP address from the virtual network, but the storage account's fully qualified domain name (FQDN) must resolve to that private IP within the VNet. By linking a private DNS zone (e.g., `privatelink.blob.core.windows.net`) to VNet-App and configuring an A record for the endpoint's private IP, VMs can resolve the storage account name to the correct private address. Without this, DNS resolution would fall back to the public IP, defeating the purpose of the private endpoint.

Exam trap

The trap here is that candidates often confuse network-level controls (like UDRs or firewalls) with DNS resolution, assuming they can force traffic to a private IP without configuring name resolution, but private endpoints require explicit DNS configuration to ensure the FQDN resolves to the private IP.

Why the other options are wrong

C

An additional public IP address is not needed because the private endpoint already provides a private IP for the storage account; the goal is name resolution to that private IP, not public connectivity.

D

An Azure Firewall policy controls inbound/outbound traffic filtering and does not provide DNS resolution or name-to-IP mapping for private endpoints.

When would these options actually be correct?

C

When you need to assign a second public IP to an Azure VM for outbound SNAT or to host multiple SSL websites on the same port, you would configure an additional public IP address on the VM's NIC or load balancer.

D

When the question asks how to centrally filter and log traffic from VNet-App to the internet or between spokes, and you need to enforce security rules across multiple subscriptions.

Why candidates pick the wrong answer

C

Candidates may think that adding a public IP is required for connectivity, confusing the need for private name resolution with public IP assignment.

D

Candidates may think Azure Firewall is needed to route traffic to the private endpoint or to enforce DNS policies, confusing network security with name resolution.

397
MCQmedium

The team already exports subscription activity logs to a Log Analytics workspace and wants an alert that can ignore delete operations performed by a known automation account. What should they create?

A.An activity log alert at the subscription scope
B.A scheduled query alert in Log Analytics using the AzureActivity table
C.A metric alert on the subscription
D.A diagnostic setting on the resource group
AnswerB

Because the activity logs are already in Log Analytics, a scheduled query alert gives the team full KQL flexibility. They can filter by operation name and exclude actions performed by the automation account before firing the alert. This is the best choice when alert logic must be more specific than a standard activity log rule.

Why this answer

A scheduled query alert in Log Analytics can query the AzureActivity table to filter out delete operations performed by a specific automation account. This allows the alert to ignore those operations by excluding them in the query logic, which is not possible with activity log alerts that lack such granular filtering.

Exam trap

The trap here is that candidates often assume activity log alerts can filter by caller identity, but they only support static conditions like operation name or severity, not dynamic exclusion of specific principals.

Why the other options are wrong

A

An activity log alert at subscription scope cannot filter out specific operations (like delete) from a known automation account; it alerts on all matching operations without exclusion logic.

C

Metric alerts monitor performance metrics (e.g., CPU, memory) and cannot filter or alert on specific activity log operations like delete actions from a known automation account.

D

A diagnostic setting on the resource group sends logs to a destination (like Log Analytics or storage), but it does not create alerts. The question requires an alert that can filter out specific operations, which diagnostic settings cannot do.

When would these options actually be correct?

A

If the requirement was to alert on any delete operation in the subscription without needing to exclude specific actors, an activity log alert at subscription scope would be appropriate.

C

A metric alert on the subscription would be correct if the team needed to alert on a metric threshold, such as when the number of failed deployments exceeds a certain count, or when resource usage spikes above a defined limit.

D

A diagnostic setting on the resource group would be correct if the question asked: 'The team needs to route resource group-level activity logs to a Log Analytics workspace for long-term retention and analysis.' In that case, the diagnostic setting enables the data flow, not alerting.

Why candidates pick the wrong answer

A

Candidates may think activity log alerts can filter by operation and caller, but they lack the query flexibility to exclude specific accounts, leading them to choose this simpler option.

C

Candidates may confuse metric alerts with activity log alerts, thinking they can monitor operational events, or they may assume 'subscription' scope implies activity log monitoring.

D

Candidates may confuse diagnostic settings with alerting, thinking that enabling log collection automatically triggers alerts, or they may misread the question as asking about log collection rather than alert creation.

398
MCQmedium

A production virtual machine is experiencing intermittent performance spikes. The operations team wants an alert when average CPU usage stays above 80 percent for 10 minutes and wants email and SMS notifications sent automatically. What should the administrator configure in Azure Monitor?

A.Create a log search alert on the VM performance data and attach a resource lock.
B.Create a metric alert on Percentage CPU and associate an action group with email and SMS receivers.
C.Assign an Azure Policy definition to the VM to stop it when CPU exceeds the threshold.
D.Enable diagnostic settings on the VM and send the data only to a storage account.
AnswerB

Metric alerts are the best fit for near real-time threshold monitoring of Azure platform metrics such as CPU. An action group delivers the notification channels, such as email and SMS, when the alert fires. This design meets both parts of the requirement: detect sustained CPU pressure and notify the operations team automatically without needing log ingestion or manual polling.

Why this answer

Azure Monitor metric alerts can evaluate real-time performance counters like Percentage CPU against a threshold (e.g., 80%) over a specified duration (e.g., 10 minutes). By associating an action group with email and SMS receivers, the alert automatically triggers the desired notifications without requiring log ingestion or complex queries.

Exam trap

The trap here is that candidates confuse metric alerts (which evaluate live performance counters) with log search alerts (which require log ingestion and are slower), or mistakenly think Azure Policy can react to performance metrics instead of enforcing configuration rules.

Why the other options are wrong

A

A log search alert requires log data from the VM, but the question specifies using 'average CPU usage' which is a metric, not log data. Additionally, a resource lock prevents accidental deletion or modification, not alerting.

C

Azure Policy is used for governance and compliance, not for real-time monitoring or alerting. It cannot trigger email or SMS notifications based on performance metrics like CPU usage.

D

Diagnostic settings send performance data to a storage account, but they do not create alerts or trigger notifications. The question requires an alert with email and SMS, which diagnostic settings alone cannot provide.

When would these options actually be correct?

A

This option would be correct if the question required alerting based on custom log data (e.g., application logs) and also needed to prevent the alert rule from being deleted or modified, where a resource lock on the alert rule would be appropriate.

C

An administrator needs to enforce a rule that all VMs in a subscription must have a specific tag or must be deployed in a particular region. Azure Policy would be used to audit or enforce such compliance requirements.

D

If the question asked for long-term archival of VM performance data for compliance or historical analysis, enabling diagnostic settings to send data to a storage account would be correct. For example: 'A company needs to store VM metrics for 3 years for auditing purposes.'

Why candidates pick the wrong answer

A

Candidates may confuse log search alerts with metric alerts, or think that resource locks are part of alert configuration, not understanding that locks are for governance, not notification.

C

Candidates may confuse Azure Policy with Azure Monitor alerts, thinking that policies can enforce actions based on performance thresholds, but policies are for resource configuration compliance, not operational alerts.

D

Candidates may think diagnostic settings are necessary for alerting because they enable data collection, but they confuse data collection with alert rule creation, overlooking that alerts require separate metric or log search rules.

399
MCQmedium

Your company has two subscriptions named Dev-Sub and Prod-Sub. A new administrator must be able to create resource groups only in Dev-Sub and must not have any permissions in Prod-Sub. What should you do?

A.Assign Contributor to the administrator at the management group scope.
B.Assign Contributor to the administrator at the Dev-Sub scope.
C.Assign Owner to the administrator at the resource group scope in Dev-Sub.
D.Assign Reader to the administrator at the Prod-Sub scope and Contributor at the tenant root group.
AnswerB

Assigning Contributor at the Dev-Sub subscription scope grants the administrator permission to create and manage all resource types within that subscription, including resource groups and any resources inside them, without granting access to other subscriptions. Contributor deliberately excludes the 'Manage Access' permission, so the administrator cannot delegate roles to others, aligning with the principle of least privilege. This scope exactly matches the requirement to administer Dev resources, and because the role assignment is scoped to the subscription, it cannot affect Prod-Sub or any other Azure scope.

Why this answer

Assigning the Contributor role at the Dev-Sub scope grants the administrator full permissions to create and manage resource groups within that subscription, while the role assignment is scoped exclusively to Dev-Sub, ensuring no permissions in Prod-Sub. Azure RBAC is hierarchical, so a role assigned at a subscription scope applies to all resource groups within it, but does not cross subscription boundaries. This meets the requirement of allowing resource group creation only in Dev-Sub with no access to Prod-Sub.

Exam trap

The trap here is that candidates often confuse the scope required to create resource groups (subscription-level write permission) with the ability to manage existing resource groups (resource group-level permission), leading them to incorrectly choose Option C (Owner at resource group scope) which only allows management of that specific resource group, not creation of new ones.

Why the other options are wrong

A

Assigning Contributor at the management group scope grants permissions to all subscriptions under that management group, including Prod-Sub, which violates the requirement that the administrator must have no permissions in Prod-Sub.

C

The Owner role at the resource group scope in Dev-Sub grants full access, including the ability to assign permissions, which exceeds the requirement to only create resource groups. Additionally, it does not prevent the administrator from gaining permissions in Prod-Sub through inheritance if the management group hierarchy includes both subscriptions.

D

Assigning Reader at Prod-Sub scope grants read-only permissions in Prod-Sub, violating the requirement that the administrator must have no permissions in Prod-Sub. Additionally, assigning Contributor at the tenant root group would grant Contributor access to all subscriptions, including Prod-Sub.

When would these options actually be correct?

A

This option would be correct if the requirement was to grant the administrator the ability to create resource groups in all subscriptions under a management group (e.g., both Dev-Sub and Prod-Sub) and no restriction on Prod-Sub permissions existed.

C

This option would be correct if the requirement was for the administrator to have full control over a specific resource group in Dev-Sub, including the ability to manage role assignments and resources within that group, and no restrictions on permissions in other scopes.

D

If the requirement were to allow the administrator to create resource groups in Dev-Sub while having read-only access to Prod-Sub (e.g., for monitoring purposes), then assigning Reader at Prod-Sub and Contributor at the tenant root group (or Dev-Sub) would be appropriate.

Why candidates pick the wrong answer

A

Candidates may think that assigning a role at a higher scope (management group) is more efficient and still allows creating resource groups in Dev-Sub, overlooking that it also grants permissions to other subscriptions.

C

Candidates may think that assigning Owner at the resource group scope is sufficient to allow resource group creation within that group, but they overlook that the Contributor role is the minimum required for creating resource groups, and Owner provides unnecessary elevated privileges.

D

Candidates may think that combining a restrictive role (Reader) on Prod-Sub with a broader role (Contributor) at a higher scope (tenant root group) would limit permissions, but they overlook that the higher scope grants Contributor to all subscriptions, including Prod-Sub.

400
MCQeasy

An administrator needs two non-overlapping VNets in the same region to communicate directly over private IP addresses without deploying a gateway. What should be configured?

A.VNet peering between the two virtual networks.
B.A site-to-site VPN gateway connection.
C.A service endpoint on both subnets.
D.A route table with default routes to each VNet.
AnswerA

Azure VNet peering connects the two virtual networks directly over the Microsoft backbone, using private IP addresses with no gateway, VPN tunnel, or public internet traversal. Because the address spaces are non-overlapping, each peered VNet can route traffic to the other's prefix using automatically injected system routes, and unicast traffic can flow in both directions with low and consistent latency. This is the appropriate native mechanism for private VNet-to-VNet communication in the same region, and it can also work globally.

Why this answer

VNet peering enables direct connectivity between two Azure virtual networks using private IP addresses across the Microsoft backbone, without requiring a gateway or public internet. It supports non-overlapping address spaces in the same region and provides low-latency, high-bandwidth communication. This matches the requirement exactly.

Exam trap

The trap here is that candidates confuse VNet peering with VPN gateways or service endpoints, assuming a gateway is always required for cross-VNet communication or that service endpoints can connect VNets, when in fact peering is the direct, gateway-free solution for private IP connectivity.

Why the other options are wrong

B

A site-to-site VPN gateway connection requires a gateway and routes traffic over the internet or ExpressRoute, not directly over private IPs, and incurs additional cost and complexity.

C

Service endpoints secure Azure service access from a VNet but do not enable direct private IP communication between two VNets; they only provide a direct path to PaaS services, not VNet-to-VNet connectivity.

D

Route tables with default routes to each VNet do not enable direct private IP communication between VNets; they only control traffic within a VNet or to forced-tunneling destinations. VNet peering is required for direct connectivity.

When would these options actually be correct?

B

When connecting on-premises networks to Azure, or connecting VNets across regions or subscriptions where VNet peering is not supported or desired, a site-to-site VPN gateway connection would be correct.

C

A question asks: 'How to ensure traffic from a subnet to an Azure Storage account stays on the Microsoft backbone and does not traverse the internet?' — here, configuring a service endpoint on the subnet would be correct.

D

A route table with default routes to each VNet would be correct in a scenario where you need to force-tunnel traffic from both VNets through a network virtual appliance (NVA) or on-premises firewall for inspection, using user-defined routes (UDRs).

Why candidates pick the wrong answer

B

Candidates may confuse site-to-site VPN with VNet peering, thinking both provide connectivity, but overlook the 'without deploying a gateway' and 'private IP' constraints in the question.

C

Candidates may confuse service endpoints with VNet peering, thinking both provide direct connectivity, but service endpoints are for accessing Azure services, not for VNet-to-VNet communication.

D

Candidates may think that adding routes to the other VNet's address space in a route table is sufficient to enable cross-VNet communication, misunderstanding that route tables alone do not establish connectivity without a peering or gateway.

401
MCQmedium

A web API running in an Azure App Service needs to read and write blobs in a storage account. The operations team does not want to store secrets in app settings or rotate credentials manually. What should they enable on the App Service?

A.A storage account access key stored in Key Vault
B.A system-assigned managed identity
C.A shared access signature embedded in the application settings
D.A service endpoint on the App Service integration subnet
AnswerB

A system-assigned managed identity creates a first-party Azure AD identity for the App Service instance, which can then be granted the Storage Blob Data Reader (or similar) role on the storage account's data plane. The runtime requests an Azure AD token through the instance metadata endpoint, and no embedded keys or tokens ever appear in code or configuration, so there is no credential rotation to manage.

Why this answer

A system-assigned managed identity allows the App Service to authenticate to Azure Storage without storing any secrets. The identity is automatically managed by Azure AD, and the App Service can use it to obtain an OAuth 2.0 token for accessing blob storage via RBAC. This eliminates the need for manual credential rotation and secret storage.

Exam trap

The trap here is that candidates often confuse managed identities with Key Vault integration, thinking that storing a key in Key Vault solves the secret rotation problem, but the access key itself is still a long-lived secret that requires manual rotation and is stored in the app settings as a reference.

Why the other options are wrong

A

Using a storage account access key stored in Key Vault still requires the App Service to retrieve and manage the key, which involves secrets and manual credential rotation, contradicting the requirement to avoid storing secrets and rotating credentials manually.

C

A shared access signature (SAS) embedded in application settings still requires manual rotation and exposes a secret, contradicting the requirement to avoid storing secrets or rotating credentials manually.

D

A service endpoint on the App Service integration subnet restricts network access to the storage account but does not provide authentication or authorization for the App Service to read/write blobs. It does not eliminate the need for secrets or credentials.

When would these options actually be correct?

A

If the question required accessing a storage account that does not support Azure AD authentication (e.g., legacy storage) and the team was willing to manage secrets but wanted to centralize them, storing the access key in Key Vault and using a managed identity to retrieve it would be correct.

C

If the question required granting time-limited, scoped access to specific blobs without using managed identities (e.g., for external clients or cross-tenant access), a SAS token stored securely (e.g., in Key Vault) would be appropriate.

D

A service endpoint would be correct if the question asked: 'How to restrict network access to a storage account so that only traffic from a specific App Service subnet is allowed?'

Why candidates pick the wrong answer

A

Candidates may think Key Vault eliminates secret management entirely, but the App Service still needs to authenticate to Key Vault and handle the key, which introduces secret handling and rotation complexity.

C

Candidates may think SAS tokens are a secure way to grant access without storing full access keys, but they still involve secret management and rotation, which the question explicitly wants to avoid.

D

Candidates may confuse service endpoints with managed identities, thinking that securing the network path also handles authentication, or they may believe that service endpoints grant access permissions.

402
MCQeasy

A production resource group must not be deleted accidentally, but administrators still need to update resources inside it. Which lock should you apply to the resource group?

A.ReadOnly lock
B.CanNotDelete lock
C.Contributor role
D.Azure Policy deny assignment
AnswerB

A CanNotDelete lock blocks delete operations on the resource group and all contained resources while allowing normal read and update activities, making it the right control to prevent accidental deletion. It is enforced by Azure Resource Manager after RBAC authorization, so even users with delete permissions (such as Owner) will be denied the delete operation as long as the lock is present. Since the question concerns only accidental deletion, this lock provides the exact protection without affecting ongoing administration.

Why this answer

The CanNotDelete lock (option B) is correct because it prevents deletion of the resource group while still allowing all other operations, including updates to resources within it. This lock type is specifically designed to protect against accidental deletion without blocking read, write, or modify actions, which aligns perfectly with the requirement that administrators need to update resources inside the group.

Exam trap

The trap here is that candidates often confuse RBAC roles (like Contributor) with resource locks, mistakenly thinking that assigning a role can prevent deletion, whereas locks are a separate governance mechanism that override role-based permissions for specific operations.

How to eliminate wrong answers

Option A is wrong because a ReadOnly lock prevents all write operations, including updates to resources, which would block administrators from modifying resources inside the group. Option C is wrong because the Contributor role is an Azure RBAC role that grants permissions to manage resources but does not provide a lock mechanism to prevent deletion; it can be overridden by other permissions or bypassed by users with higher roles. Option D is wrong because an Azure Policy deny assignment is used to enforce compliance rules (e.g., restricting resource types or locations) and is not designed to block deletion of a resource group; it can be complex to configure and may inadvertently block updates if not scoped correctly.

403
MCQmedium

A hub VNet already has a VPN gateway connected to on-premises. A spoke VNet must send on-premises traffic through the hub gateway without deploying its own gateway. Which peering settings are needed?

A.Enable forwarded traffic on both peerings and add a route table to the spoke subnet.
B.Enable gateway transit on the hub peering and use remote gateways on the spoke peering.
C.Create a private endpoint in the spoke VNet and route on-premises traffic through it.
D.Deploy a second VPN gateway in the spoke and connect it in active-active mode.
AnswerB

In VNet peering, setting 'Allow gateway transit' on the hub-side peering and 'Use remote gateways' on the spoke-side peering allows the spoke VNet to leverage the hub's VPN gateway for on-premises connectivity without deploying any gateway in the spoke. This configures the peering to advertise the hub gateway routes to the spoke, and the spoke's route table will contain the on-premises prefix as propagated via the hub. It is the only option that satisfies the requirement of using the existing hub gateway while avoiding a dedicated gateway in the spoke.

Why this answer

It enables gateway transit on the hub-side peering connection and uses remote gateways on the spoke-side peering connection. This configuration allows the spoke VNet to route on-premises traffic through the hub's VPN gateway without deploying its own gateway, leveraging the hub as a transit point.

Exam trap

The trap here is that candidates often confuse 'forwarded traffic' with 'gateway transit' — forwarded traffic only allows VNet-to-VNet traffic forwarding, while gateway transit specifically enables a spoke to use a hub's VPN gateway for external connectivity.

Why the other options are wrong

A

Option A is wrong because enabling forwarded traffic alone does not allow the spoke to use the hub's VPN gateway; it only permits traffic to be forwarded between VNets. The correct approach requires enabling gateway transit on the hub peering and using remote gateways on the spoke peering.

C

A private endpoint is used for secure access to Azure PaaS services over a private IP, not for routing on-premises traffic through a hub VPN gateway. It does not provide transit routing between VNets or to on-premises.

D

Deploying a second VPN gateway in the spoke VNet contradicts the requirement to avoid deploying its own gateway. The goal is to route on-premises traffic through the hub gateway, not add another gateway.

When would these options actually be correct?

A

Option A would be correct in a scenario where a spoke VNet needs to route traffic through a hub VNet's network virtual appliance (NVA) for inspection, without involving a VPN gateway. In that case, you enable forwarded traffic on both peerings and add a route table to the spoke subnet to direct traffic to the NVA.

C

In a scenario where a spoke VNet needs to securely access an Azure Storage account or SQL Database without exposing it to the public internet, and the traffic must stay within the Microsoft backbone, creating a private endpoint in the spoke VNet would be the correct answer.

D

This option would be correct if the question asked for high availability or increased throughput for site-to-site connections from the spoke VNet, requiring an active-active VPN gateway in the spoke itself.

Why candidates pick the wrong answer

A

Candidates may confuse the need for forwarding traffic between VNets with the specific requirement to use a VPN gateway. They might think enabling forwarded traffic is sufficient, not realizing that gateway transit is a separate setting required for VPN gateway sharing.

C

Candidates may confuse private endpoints with network virtual appliances or think that any private IP-based solution can route traffic, misunderstanding the purpose of private endpoints as a routing mechanism.

D

Candidates may think adding a gateway in the spoke provides more control or redundancy, overlooking the explicit requirement to use the hub gateway without deploying a spoke gateway.

404
MCQmedium

An administrator is troubleshooting inbound HTTPS to a VM. The subnet NSG has these custom rules: Deny-Internet-Inbound at priority 150, Allow-HTTPS-Admin at priority 200, and the default deny rules remain in place. The administrator’s client is on the internet and should be able to reach the VM on TCP 443. What change will fix the problem?

A.Move the allow rule to a lower priority number than the deny rule.
B.Change the allow rule source from Internet to Any and keep the same priority.
C.Create a route table to the VM subnet so traffic reaches the VM faster.
D.Associate an application security group with the VM and leave the rules unchanged.
AnswerA

NSG rules are evaluated in priority order, and the lowest number wins. Because the deny rule at 150 is evaluated before the allow rule at 200, inbound HTTPS is blocked even though an allow rule exists. Making the allow rule higher priority than the deny rule, such as 100, lets the permitted traffic match first and be accepted.

Why this answer

Network Security Group (NSG) rules are evaluated in priority order, with lower numbers evaluated first. The Deny-Internet-Inbound rule at priority 150 is evaluated before the Allow-HTTPS-Admin rule at priority 200, so the deny rule blocks the inbound HTTPS traffic before the allow rule can be processed. Moving the allow rule to a lower priority number (e.g., 140) ensures it is evaluated first, permitting the traffic from the internet on TCP 443.

Exam trap

The trap here is that candidates often assume NSG rules are evaluated in the order they are listed or that allow rules automatically override deny rules, but Azure NSGs strictly evaluate by priority number, so a deny rule with a lower number will block traffic even if an allow rule with a higher number exists.

Why the other options are wrong

B

The deny rule at priority 150 explicitly blocks traffic from the Internet, so changing the allow rule's source from Internet to Any does not override the deny; the deny still applies because it has higher priority (lower number).

C

The issue is that the deny rule at priority 150 blocks inbound HTTPS from the Internet before the allow rule at priority 200 can be evaluated. Adding a route table does not affect NSG rule evaluation order; it only influences traffic routing, which is not the problem here.

D

Associating an application security group (ASG) with the VM does not change the NSG rule evaluation order; the deny rule at priority 150 still blocks inbound HTTPS from the Internet, regardless of ASG membership.

When would these options actually be correct?

B

If the NSG had no deny rule blocking Internet traffic, or if the allow rule had a lower priority number than any conflicting deny rule, then setting the source to Any would be correct to allow all inbound HTTPS traffic.

C

This option would be correct in a scenario where traffic to the VM is being dropped due to asymmetric routing or a missing default route, and you need to ensure return traffic uses the same path. For example, if the VM is behind a network virtual appliance and traffic is not reaching it because of incorrect route tables.

D

In a scenario where the NSG has an allow rule referencing an ASG as source or destination, and the VM is added to that ASG, this would be correct. For example, if the allow rule had source set to an ASG containing the admin's client IPs, associating the VM with that ASG would apply the rule.

Why candidates pick the wrong answer

B

Candidates may think that widening the source to Any makes the rule more permissive, but they overlook that priority determines which rule wins when rules conflict.

C

Candidates may think that a route table can override NSG rules or speed up traffic, confusing routing with security filtering. They might also believe that adding a route can bypass the deny rule, which is incorrect.

D

Candidates may think ASGs simplify rule management and automatically override deny rules, or they confuse ASGs with service endpoints or route tables that affect traffic flow.

405
MCQmedium

A finance team stores PDF statements in Azure Blob Storage. The workload must survive a zone failure in the primary region, and if the entire region becomes unavailable, auditors still need read-only access to the copies in the secondary region. Which redundancy option should you choose?

A.ZRS, because it keeps copies across zones but does not replicate to another region.
B.RA-GZRS, because it combines zone redundancy with geo-replication and read access to the secondary region.
C.LRS, because it keeps three copies in a single datacenter and is sufficient for regional resilience.
D.GRS, because it provides geo-replication and always allows direct reads from the secondary region.
AnswerB

RA-GZRS is designed for exactly this requirement. It replicates data across zones in the primary region and also asynchronously replicates to a paired secondary region. The read-access feature means you can still retrieve data from the secondary endpoint if the primary region is unavailable, which is useful for audit or continuity scenarios.

Why this answer

RA-GZRS (Read-Access Geo-Zone-Redundant Storage) is the correct choice because it combines zone redundancy (synchronous replication across Azure availability zones within the primary region) with geo-replication (asynchronous replication to a secondary region), and crucially enables read access to the secondary region even when the primary is unavailable. This meets the requirement to survive a zone failure (via ZRS) and provide read-only access during a full regional outage (via the read-access geo-replication endpoint).

Exam trap

The trap here is that candidates often confuse GRS with RA-GRS, forgetting that standard GRS does not allow direct reads from the secondary region without a manual or automatic failover, while RA-GZRS (and RA-GRS) explicitly provide that read access.

Why the other options are wrong

A

ZRS replicates data synchronously across availability zones in a single region, but does not provide geo-replication to a secondary region. The question requires read-only access in a secondary region after a full regional outage, which ZRS cannot fulfill.

C

LRS only replicates data within a single datacenter, so it cannot survive a zone failure (which spans multiple datacenters in an availability zone) and provides no geo-replication for regional disaster recovery.

D

GRS does not provide read access to the secondary region unless a failover occurs, whereas the question requires auditors to have read-only access to the secondary region even when the primary region is available.

When would these options actually be correct?

A

ZRS would be correct if the requirement was to survive a zone failure within the primary region without needing cross-region replication, such as for a low-latency application that must remain available during a zone outage but does not require disaster recovery in another region.

C

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

D

If the requirement were to have geo-replication for disaster recovery without needing read access to the secondary region during normal operations, and failover would be initiated manually or automatically only when the primary region is down, then GRS would be the correct choice.

Why candidates pick the wrong answer

A

Candidates may choose ZRS because it offers zone redundancy, which partially addresses the 'zone failure' requirement, but they overlook the additional need for geo-replication and read access in a secondary region.

C

Candidates may think LRS is sufficient because it provides three copies, overlooking that these copies are in the same datacenter and thus vulnerable to zone-level or regional outages.

D

Candidates may confuse GRS with RA-GRS, assuming that geo-replication automatically allows reads from the secondary, or they may overlook the 'read-access' requirement in the question.

406
Multi-Selecteasy

A team wants an Azure VM in a subnet to reach a storage account securely without opening the account to the entire internet. Which two configuration choices can be used to achieve this? Select two.

Select 2 answers
A.Private endpoint
B.Service endpoint
C.Enable anonymous blob access
D.Move the account to the Archive tier
E.Apply a delete lock to the storage account
AnswersA, B

A private endpoint assigns the storage account a network interface with a private IP from the virtual network's subnet, so traffic from the VM flows directly to that IP over the Microsoft backbone without leaving the VNet. You must also configure DNS to resolve the storage account's FQDN to that private IP. This removes exposure to the public internet and is the recommended way to establish secure, subnet-scoped connectivity.

Why this answer

Private endpoint (A) assigns a private IP address from the VM's subnet to the storage account, enabling secure connectivity over the Microsoft backbone network without exposing the account to the public internet. Service endpoint (B) extends the virtual network identity to the storage account via its public endpoint but restricts access to traffic originating from the specified subnet, also avoiding full internet exposure. Both options satisfy the requirement for secure, subnet-restricted access.

Exam trap

The trap here is that candidates often confuse service endpoints with private endpoints, thinking both are interchangeable, but service endpoints still use the storage account's public endpoint (just restricted by subnet), while private endpoints use a private IP from the subnet, making private endpoints the more secure choice for scenarios requiring complete isolation from the internet.

Why the other options are wrong

C

Enabling anonymous blob access would allow any internet user to access the storage account without authentication, which violates the requirement to keep the storage account secure and not open to the entire internet.

D

Moving a storage account to the Archive tier does not affect network security; it only changes the access tier for cost optimization, leaving the account still accessible over the internet if not otherwise restricted.

E

Applying a delete lock prevents accidental deletion of the storage account but does not provide secure network access from a VM to the storage account. It does not restrict traffic to a specific subnet or private IP.

When would these options actually be correct?

C

In a scenario where the requirement is to allow public read access to blob data without authentication (e.g., for hosting static websites or sharing public content), enabling anonymous blob access would be correct.

D

A question asks which Azure storage tier is most cost-effective for long-term backup data that is rarely accessed and has a high tolerance for retrieval latency, with a minimum retention period of 180 days.

E

A question asks: 'You need to prevent accidental deletion of a storage account while allowing authorized users to modify its configuration. Which solution should you use?' In that scenario, a delete lock is correct.

Why candidates pick the wrong answer

C

Candidates might think that enabling anonymous access is a way to allow access without opening the entire account, but they overlook that it actually opens the account to the entire internet, which is the opposite of the security requirement.

D

Candidates may confuse 'Archive' with 'isolated' or 'secure', thinking that archiving data somehow hides it from the internet, when in fact it only affects storage cost and retrieval time.

E

Candidates may confuse 'lock' with 'secure access' or think that locking the account somehow restricts network access, not realizing locks only affect management operations, not data plane access.

407
MCQmedium

A route table contains these entries: 10.0.0.0/8 with next hop Virtual appliance, and 10.1.1.0/24 with next hop Virtual network gateway. Which next hop will Azure use for traffic to 10.1.1.5?

A.Virtual appliance, because the broader 10.0.0.0/8 route was created first.
B.Virtual network gateway, because the /24 route is more specific than the /8 route.
C.Internet, because Azure always prefers the default system route for public addresses.
D.None, because Azure ignores overlapping route entries in the same table.
AnswerB

For a destination such as 10.1.1.5, Azure finds all matching routes in the table and then applies longest prefix match. The 10.1.1.0/24 route is more specific than 10.0.0.0/8 because 10.1.1.0/24 has 24 fixed bits versus only 8, so the /24 route's next hop (virtual network gateway) is used. This is true even if the /8 route was defined earlier, because specificity, not creation order, determines the effective route.

Why this answer

Azure uses the most specific route prefix (longest prefix match) to determine the next hop for traffic. For destination 10.1.1.5, the route 10.1.1.0/24 (prefix length 24) is more specific than 10.0.0.0/8 (prefix length 8), so the next hop Virtual network gateway is selected, regardless of the order in which routes were created.

Exam trap

The trap here is that candidates mistakenly believe route creation order or the 'broader' route being created first determines priority, but Azure always uses the most specific prefix match, not the order of route entries.

Why the other options are wrong

A

Azure uses the most specific route prefix (longest prefix match) for traffic, not the order of creation. The /24 route is more specific than the /8 route, so the virtual network gateway is used.

C

Azure uses longest prefix match for routing, not default system routes. The destination 10.1.1.5 matches the more specific /24 route, so the virtual network gateway is used, not the Internet.

D

Azure uses the most specific route (longest prefix match) for traffic, so the /24 route to the virtual network gateway is chosen over the /8 route. Overlapping routes do not cause Azure to ignore them; they are evaluated based on prefix length.

When would these options actually be correct?

A

If the question stated that the route table uses a custom routing algorithm that prioritizes routes by creation order (e.g., first match wins), then the earlier created /8 route would be correct. This is not standard Azure behavior but could appear in a hypothetical scenario.

C

If the destination IP were a public address (e.g., 8.8.8.8) and no more specific route existed, Azure would use the default system route with next hop Internet. This option would be correct in that scenario.

D

This option would be correct if the question described a scenario where two routes have the same prefix length and the same next hop type, but Azure ignores duplicate entries. For example, if a route table had two identical entries for 10.1.1.0/24 with next hop Virtual network gateway, Azure would treat them as one and not fail.

Why candidates pick the wrong answer

A

Candidates may mistakenly think that route priority is determined by the order in which routes are added, similar to some firewall rule processing, rather than understanding Azure's longest prefix match logic.

C

Candidates may mistakenly think Azure always prefers system routes over user-defined routes, or they confuse public IP handling with private IP routing.

D

Candidates may mistakenly think that overlapping routes cause conflicts or errors in Azure, similar to how some routing protocols handle duplicate routes, or they may confuse Azure's behavior with that of on-premises routers that reject overlapping entries.

408
MCQeasy

A security admin wants Key Vault audit logs and metrics sent to a Log Analytics workspace for later search. Which Azure setting should be configured on the vault?

A.Diagnostic settings
B.Azure Policy assignment
C.Network security group
D.Action group
AnswerA

Diagnostic settings are the correct mechanism for sending Key Vault audit logs and metrics to Log Analytics, Event Hubs, or Azure Storage. A diagnostic setting on a Key Vault collects resource logs such as AuditEvent (e.g., successful and failed read/write operations) and platform metrics, then routes them continuously to the configured destination. This is the only option in the list that actually exports telemetry data; without a diagnostic setting, Log Analytics receives no Key Vault logging data.

Why this answer

Diagnostic settings in Azure Key Vault allow you to stream platform logs and metrics to various destinations, including a Log Analytics workspace. By configuring diagnostic settings on the vault, you can send audit logs (e.g., AuditEvent) and metrics (e.g., ServiceApiLatency) to Log Analytics for querying with KQL, enabling security analysis and monitoring.

Exam trap

The trap here is that candidates confuse diagnostic settings (which export logs/metrics) with action groups (which send notifications) or Azure Policy (which enforces rules), leading them to select a wrong option that does not actually stream data to Log Analytics.

Why the other options are wrong

B

Azure Policy assignment enforces compliance rules across resources, but it does not configure data routing for logs and metrics. Diagnostic settings are the specific feature for sending Key Vault audit logs and metrics to a Log Analytics workspace.

C

Network security groups (NSGs) filter network traffic to/from Azure resources, but they do not collect or route audit logs or metrics to Log Analytics. Diagnostic settings are the correct mechanism for sending Key Vault logs and metrics to a Log Analytics workspace.

D

Action groups define notifications and actions (e.g., email, SMS) triggered by alerts, but they do not configure the collection or routing of logs and metrics to a Log Analytics workspace.

When would these options actually be correct?

B

A question asks: 'You need to ensure that all Key Vaults in a subscription have auditing enabled. Which Azure feature should you use?' In that scenario, Azure Policy assignment would be correct to enforce diagnostic settings across vaults.

C

A scenario where a virtual machine's network traffic needs to be restricted to specific IP addresses or ports. In that case, configuring an NSG on the VM's subnet or NIC would be the correct answer.

D

An action group would be correct if the question asked: 'Which Azure setting should be configured to send an email alert when Key Vault audit logs exceed a certain threshold?'

Why candidates pick the wrong answer

B

Candidates may confuse policy enforcement with direct configuration, thinking that assigning a policy can itself route logs, rather than understanding that policy only ensures the diagnostic setting exists.

C

Candidates may confuse network-level security controls (NSGs) with monitoring and logging configurations, assuming that securing network access also enables log collection.

D

Candidates may confuse action groups with diagnostic settings because both involve monitoring and alerts, leading them to think action groups can also route logs to Log Analytics.

409
Multi-Selectmedium

An employee deleted one spreadsheet from a Windows VM that is protected by Azure Backup. The VM must stay online while the administrator recovers only that file. Which two restore methods are supported? Select two.

Select 2 answers
A.Use file recovery from the recovery point in the Azure portal.
B.Use the file recovery script or PowerShell mount workflow from the recovery point.
C.Restore the entire VM to a new VM and copy the file back manually.
D.Restore the disks from backup and attach them to the running VM.
E.Use Azure Site Recovery failover to expose the file.
AnswersA, B

The Azure portal's File Recovery workflow for VM backups provides a managed, point-in-time interface to mount the selected recovery point as an iSCSI target. It generates a script that, when run on the VM, temporarily exposes the backup's file system without requiring a full VM restore or downtime. This is the most direct and least disruptive method because it lets you copy just the deleted spreadsheet back to its original location.

Why this answer

Azure Backup's file-level recovery feature in the Azure portal allows you to mount a recovery point as a drive on the running Windows VM, enabling you to browse and copy individual files without restoring the entire VM. This method supports selective file recovery while the VM remains online, meeting the requirement. Option B is also correct because the file recovery script (or PowerShell mount workflow) performs the same mount operation programmatically, providing an alternative way to access and recover the specific spreadsheet from the recovery point.

Exam trap

The trap here is that candidates often confuse Azure Backup's file-level recovery with full VM restore or disk restore operations, assuming that granular recovery requires stopping the VM or using a separate disaster recovery service like Azure Site Recovery.

Why the other options are wrong

C

Restoring the entire VM to a new VM is not supported for file-level recovery while the original VM stays online; it creates a separate VM and requires manual file copy, which is not a direct file recovery method from a backup.

D

Restoring disks from backup and attaching them to the running VM is not supported for file-level recovery; it would require stopping the VM to attach the restored disk, which violates the requirement that the VM must stay online.

E

Azure Site Recovery is a disaster recovery solution for replicating entire workloads to a secondary region, not for granular file recovery from a backup. It does not provide access to individual files within a backup of a single VM.

When would these options actually be correct?

C

This option would be correct if the question asked for a method to recover the entire VM (not just a file) and the original VM could be taken offline or replaced, such as when the VM is corrupted and needs full restoration.

D

This option would be correct if the question asked to recover an entire VM or multiple disks without requiring the original VM to remain online, and the recovery method involved restoring disks to a new VM or replacing the original VM's disks.

E

This option would be correct if the question asked about recovering an entire VM or application after a regional outage, where the goal is to failover to a secondary site using Azure Site Recovery to restore business continuity.

Why candidates pick the wrong answer

C

Candidates may think that restoring the entire VM and copying the file is a valid file recovery method, overlooking that Azure Backup provides specific file-level recovery options that avoid full VM restoration.

D

Candidates may think that restoring disks and attaching them is a quick way to access files, but they overlook the need to keep the VM online and the complexity of attaching a restored disk to a running VM without downtime.

E

Candidates may confuse Azure Site Recovery with Azure Backup, thinking both can restore files, or they may assume that failover can expose the underlying disks to copy files from.

410
MCQhard

A storage account has a blob private endpoint in VNet-A. A VM in peered VNet-B can reach the storage account by private IP, but name resolution for the storage account still returns the public IP address. The private DNS zone privatelink.blob.core.windows.net is already linked only to VNet-A. What should the administrator do next?

A.Create a second private endpoint in VNet-B for the same storage account.
B.Enable a service endpoint on VNet-B and remove the private endpoint.
C.Add a user-defined route in VNet-B that points the storage FQDN to the private IP.
D.Create a virtual network link from the private DNS zone to VNet-B.
AnswerD

Private endpoint access depends on correct DNS resolution to the private endpoint IP. Because the private DNS zone is linked only to VNet-A, VNet-B does not receive the private name mapping. Linking the zone to VNet-B allows resources in the peered VNet to resolve the blob endpoint name to the private IP as intended.

Why this answer

The private DNS zone `privatelink.blob.core.windows.net` is linked only to VNet-A, so VMs in VNet-B cannot resolve the storage account's FQDN to its private IP. By creating a virtual network link from the private DNS zone to VNet-B, the zone's records become available for resolution in VNet-B, allowing the VM to resolve the storage FQDN to the private endpoint's IP address instead of the public IP.

Exam trap

The trap here is that candidates assume private endpoint connectivity alone ensures name resolution, but they forget that DNS resolution requires the private DNS zone to be linked to the peered VNet, not just the VNet where the endpoint resides.

Why the other options are wrong

A

Creating a second private endpoint in VNet-B for the same storage account is unnecessary and violates the principle of using a single private endpoint with DNS resolution. The issue is DNS resolution, not connectivity; the VM can already reach the storage account via private IP, but name resolution fails because the private DNS zone is not linked to VNet-B.

B

Enabling a service endpoint on VNet-B and removing the private endpoint would break private connectivity for VNet-A and does not resolve DNS resolution; service endpoints do not provide private DNS integration.

C

User-defined routes (UDRs) cannot override DNS resolution; they only control network traffic flow. The issue is name resolution returning the public IP, not routing, so a UDR won't fix the DNS query.

When would these options actually be correct?

A

This option would be correct if the storage account needed to be accessed from VNet-B with a separate private IP (e.g., for isolation or compliance) and the private DNS zone was already linked to both VNets. For example, if each VNet required its own private endpoint for the same storage account to enforce network policies.

B

If the requirement was to access the storage account from VNet-B using the public endpoint but with source IP restricted to VNet-B's subnet, and private endpoint was not needed, then enabling a service endpoint on VNet-B and removing the private endpoint would be correct.

C

A UDR would be correct if the VM could already resolve the storage account to the private IP (e.g., via a custom DNS server), but traffic was still going over the internet due to asymmetric routing or missing effective routes. The UDR would force traffic to the private endpoint IP.

Why candidates pick the wrong answer

A

Candidates may think that adding a private endpoint in VNet-B will automatically resolve DNS, but they overlook that DNS resolution requires the private DNS zone to be linked to the VNet where the client resides.

B

Candidates may confuse service endpoints with private endpoints, thinking both provide similar private connectivity, and assume removing the private endpoint simplifies the setup while still allowing access via service endpoint.

C

Candidates may confuse name resolution with network routing, thinking that a route can redirect DNS queries or that controlling traffic flow will automatically fix DNS resolution.

411
MCQmedium

A storage account has public network access disabled. An application runs on a VM in a VNet and must access the storage account over a private IP address. The team also wants the storage name to resolve to a private address inside the VNet without changing application code. What should the administrator create?

A.A service endpoint on the subnet and a storage account firewall rule allowing that subnet.
B.A private endpoint for the storage account and a corresponding private DNS zone link.
C.An account SAS token with read/write permissions for the application.
D.Allow trusted Microsoft services to bypass the storage firewall.
AnswerB

A private endpoint places the storage service on a private IP inside the VNet, and DNS integration allows the storage FQDN to resolve to that private address. That combination meets both requirements: private connectivity and no application code changes. This is the standard pattern when public network access is disabled.

Why this answer

A private endpoint assigns the storage account a private IP from the VNet, making it accessible over a private IP address. A corresponding private DNS zone link (e.g., privatelink.blob.core.windows.net) ensures the storage account name resolves to that private IP inside the VNet without modifying application code, meeting both requirements.

Exam trap

The trap here is that candidates confuse service endpoints with private endpoints, assuming both provide private IP connectivity, when only private endpoints assign a private IP and require a private DNS zone for name resolution.

Why the other options are wrong

A

Service endpoints do not provide private IP resolution; the storage account's public DNS name still resolves to a public IP. The question requires private IP resolution without changing application code, which only a private endpoint with a private DNS zone can achieve.

C

An account SAS token provides delegated access to the storage account using the public endpoint, but the question requires private IP access and private DNS resolution, which a SAS token cannot achieve.

D

Option D allows trusted Microsoft services to bypass the firewall, but it does not provide private IP connectivity or private DNS resolution. The requirement is for the storage account to be accessed over a private IP address and resolve to a private address inside the VNet, which only a private endpoint with private DNS zone can achieve.

When would these options actually be correct?

A

A service endpoint would be correct if the question asked for securing access from a VNet to a storage account without requiring private IP resolution, and the application could use the public endpoint with firewall rules. For example: 'A storage account must be accessible only from a specific VNet subnet, and the application can use the public endpoint.'

C

An administrator needs to grant a client application time-limited, delegated access to specific storage resources (e.g., blobs or files) without sharing the account key, and the storage account's public network access is enabled. The application can use the SAS token in the connection string or URL.

D

This option would be correct in a scenario where the storage account has public network access disabled, but the application needs to access it from an Azure service (like Azure Backup or Azure Logic Apps) that is listed as a trusted Microsoft service, and the requirement is to allow that service without exposing the storage account to the public internet.

Why candidates pick the wrong answer

A

Candidates often confuse service endpoints with private endpoints, thinking both provide private connectivity. They may overlook the DNS resolution requirement and assume a service endpoint plus firewall rule is sufficient for private access.

C

Candidates may think a SAS token is a secure way to grant access without changing the application code, overlooking that it still uses the public endpoint and does not provide private IP connectivity or DNS resolution.

D

Candidates may think that allowing trusted Microsoft services is a simple way to grant access without changing the network architecture, but they overlook the specific need for private IP connectivity and private DNS resolution in this question.

412
MCQmedium

After a private endpoint for an Azure Blob Storage account is created, VMs in the same VNet still resolve the storage name to the public IP address. The administrator wants the name to resolve to the private endpoint address instead. What should be configured?

A.Link the private DNS zone for blob storage to the virtual network.
B.Create a route table that sends storage traffic to the private endpoint subnet.
C.Enable a service endpoint on the subnet that hosts the VMs.
D.Assign a public IP address to the private endpoint subnet.
AnswerA

Private endpoints require private DNS so clients resolve the storage name to the endpoint's private IP instead of the public address. For Blob Storage, the relevant zone is the privatelink.blob.core.windows.net zone, and it must be linked to the VNet used by the clients. Once linked, Azure can answer DNS queries with the private endpoint address, which makes access work consistently without manual hosts file edits.

Why this answer

When a private endpoint is created for Azure Blob Storage, the private DNS zone (privatelink.blob.core.windows.net) must be linked to the virtual network to enable automatic resolution of the storage account's FQDN to the private endpoint's private IP address. Without this link, VMs in the VNet continue to use public DNS resolution, which returns the public IP. Linking the private DNS zone to the VNet ensures that DNS queries from VMs resolve to the private endpoint address via Azure's DNS infrastructure.

Exam trap

The trap here is that candidates often confuse network-level controls (like route tables or service endpoints) with DNS resolution, assuming they can redirect traffic to the private endpoint without addressing how the name is resolved to an IP.

Why the other options are wrong

B

Route tables control network traffic flow based on IP addresses, but they do not affect DNS resolution. The issue is that the storage account's public DNS name is still resolving to the public IP instead of the private endpoint's private IP, which requires DNS configuration, not routing.

C

Service endpoints do not affect DNS resolution; they only provide direct connectivity to Azure services over the Azure backbone network. The VM still resolves the storage name to the public IP address, so the private endpoint address is not used.

D

Assigning a public IP to the private endpoint subnet does not affect DNS resolution; private endpoints use private IPs, and DNS resolution to the private IP requires a private DNS zone linked to the VNet.

When would these options actually be correct?

B

A route table would be correct if the question asked how to force traffic destined to the storage account's public IP address to go through a network virtual appliance (NVA) or a specific next hop, such as in a hub-and-spoke topology where you want to inspect or filter traffic.

C

A question asks how to ensure traffic from a subnet to an Azure Storage account stays within the Azure network and does not traverse the internet, without requiring a private endpoint. Enabling a service endpoint on the subnet would be the correct answer.

D

If the question asked how to allow a private endpoint to communicate with the internet (e.g., for outbound traffic), assigning a public IP to the subnet (via NAT gateway or load balancer) could be correct.

Why candidates pick the wrong answer

B

Candidates may confuse DNS resolution with network routing, thinking that directing traffic via a route table will also change how the name is resolved, or they may assume that private endpoints require custom routes to function.

C

Candidates may confuse service endpoints with private endpoints, thinking both provide private IP resolution, or they may believe service endpoints automatically change DNS resolution to the private IP.

D

Candidates may think that adding a public IP to the subnet will force traffic through the private endpoint, confusing network address assignment with DNS resolution behavior.

413
MCQmedium

A user accidentally deleted a nested folder tree from an Azure file share yesterday. Other folders were modified after the deletion and must not be rolled back. The administrator wants to restore only the deleted folder tree. What is the best recovery method?

A.Use a file share snapshot and copy the deleted folder tree back into the live share.
B.Delete the current share and restore the whole share from the most recent backup.
C.Change the share’s access tier from Hot to Cool and then refresh the folder view.
D.Enable soft delete for blobs in the same storage account and recover the folder from there.
AnswerA

A snapshot captures the file share at a point in time, which allows the administrator to browse the earlier state and restore only the deleted folders. This is ideal when the goal is targeted recovery without reverting later changes elsewhere in the share.

Why this answer

Azure file share snapshots provide a point-in-time, read-only copy of the entire file share. By mounting a snapshot taken before the accidental deletion, the administrator can browse the snapshot's directory structure and copy only the deleted folder tree back into the live share. This approach restores the lost data without affecting any other files or folders that were modified after the snapshot was taken, meeting the requirement to avoid rolling back other changes.

Exam trap

The trap here is that candidates may confuse Azure file share snapshots with blob soft delete or assume that restoring from a full backup is the only option, failing to recognize that snapshots allow granular, non-destructive recovery of specific folders without affecting other changes.

Why the other options are wrong

B

Deleting the current share and restoring the whole share from the most recent backup would roll back all modifications made after the deletion, which violates the requirement that other folders must not be rolled back.

C

Changing the access tier from Hot to Cool does not restore deleted data; it only affects storage costs and performance. It has no capability to recover deleted files or folders.

D

Azure file shares do not support blob soft delete; soft delete for blobs is a feature of Azure Blob Storage, not Azure Files. The deleted folder tree is in a file share, so blob soft delete cannot recover it.

When would these options actually be correct?

B

This option would be correct if the question stated that no other modifications were made after the deletion, or if the entire share needs to be restored to a specific point in time and all changes after that point are acceptable to lose.

C

An administrator needs to reduce costs for an Azure file share that is rarely accessed, and the data must remain available for retrieval with higher latency. Changing the access tier from Hot to Cool would be the appropriate action.

D

If the question were about recovering accidentally deleted blobs in an Azure Blob Storage container, and the storage account had soft delete enabled, then using soft delete to recover the blobs would be the best method.

Why candidates pick the wrong answer

B

Candidates may think that restoring from backup is the standard recovery method for accidental deletions, without considering the need to preserve subsequent changes to other folders.

C

Candidates may confuse access tier changes with data recovery mechanisms, mistakenly believing that a tier change triggers a restore or that 'refreshing' the view recovers deleted items.

D

Candidates may confuse Azure Files with Azure Blob Storage, or think that soft delete is a universal recovery feature across all Azure storage services, leading them to select this option without recognizing the service mismatch.

414
MCQmedium

You have two virtual networks in the same Azure region named VNet-App and VNet-DB. Resources in the two networks must communicate privately over the Azure backbone without using VPN gateways. What should you configure?

A.Virtual network peering
B.A site-to-site VPN
C.A network security group
D.An Azure Firewall policy only
AnswerA

Virtual network peering is the native Azure connectivity mechanism for connecting two VNets in the same region. It creates a direct, private connection over the Microsoft backbone network, allowing resources in each VNet to communicate using private IP addresses without traversing the public internet, an Azure VPN gateway, or a virtual WAN. The connection is simple to configure, low-latency, and does not require a physical device or gateway, making it the correct answer.

Why this answer

Virtual network peering connects two Azure virtual networks in the same region via the Microsoft backbone infrastructure, enabling private IP communication without a VPN gateway or public internet. This is the correct solution because it meets the requirement for private, low-latency connectivity between VNet-App and VNet-DB using Azure's high-speed backbone.

Exam trap

The trap here is that candidates often confuse network security groups (NSGs) or Azure Firewall as connectivity solutions, when they are only security controls that require an existing network path (like peering) to function.

Why the other options are wrong

B

A site-to-site VPN requires a VPN gateway and connects on-premises networks to Azure, not two Azure virtual networks in the same region. It does not provide private communication over the Azure backbone without a gateway.

C

Network security groups (NSGs) filter traffic but do not establish connectivity between virtual networks; they are not a connectivity solution.

D

An Azure Firewall policy alone does not enable private connectivity between virtual networks; it only controls traffic filtering. To allow private communication over the Azure backbone, you need virtual network peering or a VPN gateway, not just a firewall policy.

When would these options actually be correct?

B

You need to connect an on-premises network to an Azure virtual network securely over the internet. A site-to-site VPN would be the correct choice for hybrid connectivity.

C

You need to control inbound and outbound traffic to/from a subnet or network interface in a virtual network, such as allowing only specific ports or IP addresses.

D

A question that asks: 'You need to centrally inspect and filter traffic between two peered virtual networks in the same region. What should you configure?' In that case, an Azure Firewall policy (with Azure Firewall deployed) would be correct to enforce security rules.

Why candidates pick the wrong answer

B

Candidates may confuse site-to-site VPN with VNet-to-VNet VPN, which can connect VNets but still requires VPN gateways, not the private backbone peering.

C

Candidates may confuse traffic filtering with connectivity, thinking that allowing traffic via NSG rules is sufficient for cross-VNet communication.

D

Candidates may think that a firewall policy can establish connectivity because it controls traffic flow, but it only filters traffic; it does not create network links between VNets.

415
Multi-Selecthard

A reporting server will run an analytics engine that needs 8 vCPUs and 64 GiB of RAM. Average CPU use is expected to stay moderate, but the workload is memory heavy and should not use a burstable SKU. Which two deployment choices best align with the requirement? Select two.

Select 2 answers
A.Select a memory-optimized VM family.
B.Choose a size with at least 8 vCPUs and 64 GiB of RAM.
C.Choose a burstable B-series size to lower cost.
D.Pick a compute-optimized F-series size because CPU use is only moderate.
E.Select the smallest VM size that supports managed disks.
AnswersA, B

Memory-optimized VM families, such as Ev4/Esv4 or M-series, are designed with a high memory-to-vCPU ratio so analytics workloads can cache large datasets in RAM. A reporting analytics engine performs sorts, joins, and aggregations that consume substantial memory, and these SKUs provide this capacity along with high memory bandwidth. Selecting this family directly satisfies the workload's dominant 64 GiB RAM requirement while still delivering 8 vCPUs.

Why this answer

The workload is memory heavy, and memory-optimized VM families (e.g., E-series) are designed with a higher memory-to-vCPU ratio to handle such workloads efficiently. Option B is correct because the requirement explicitly states 8 vCPUs and 64 GiB of RAM, so selecting a size that meets these exact specifications is necessary, regardless of family, as long as it is not burstable.

Exam trap

The trap here is that candidates may assume a moderate CPU workload automatically calls for a compute-optimized SKU (F-series), ignoring the memory-heavy requirement that necessitates a memory-optimized family.

Why the other options are wrong

C

The question explicitly states 'should not use a burstable SKU', so choosing a B-series size violates that requirement. B-series VMs are burstable and not suitable for sustained memory-heavy workloads.

D

The workload is memory-heavy, requiring a memory-optimized VM family. Compute-optimized F-series is designed for CPU-intensive tasks, not memory-intensive ones, and does not prioritize memory performance.

E

The requirement specifies at least 8 vCPUs and 64 GiB of RAM, and the smallest VM size supporting managed disks may not meet these minimums, especially for memory-heavy workloads.

When would these options actually be correct?

C

If the question specified a workload with low average CPU usage and occasional spikes, and cost reduction was a priority without mentioning 'no burstable SKU', then a B-series size would be correct.

D

If the question described a CPU-intensive workload (e.g., batch processing, high-frequency trading) with moderate memory needs and no burstable requirement, then a compute-optimized F-series would be the correct choice.

E

If the question asked for the most cost-effective VM size that supports managed disks for a lightweight application with no specific vCPU or memory requirements, selecting the smallest such size would be correct.

Why candidates pick the wrong answer

C

Candidates may think B-series is cost-effective for moderate CPU usage, overlooking the explicit 'no burstable' constraint and the memory-heavy nature of the workload.

D

Candidates may mistakenly think that 'moderate CPU use' implies a compute-optimized VM is appropriate, overlooking the explicit memory-heavy requirement that demands a memory-optimized family.

E

Candidates may think that any VM supporting managed disks is sufficient, overlooking the explicit resource requirements (8 vCPUs, 64 GiB RAM) and the memory-heavy nature of the workload.

416
MCQmedium

An operations team wants device-generated log messages collected centrally so engineers can review interface changes, warnings, and errors from one place. Which technology is most directly associated with that goal?

A.Syslog
B.NetFlow
C.DHCP relay
D.Port security
AnswerA

Syslog is the standard protocol for centralized event and log reporting. It enables network devices, servers, and firewalls to send timestamped event messages—identified by facility and severity levels—over UDP port 514 or TCP 6514 to a central log collector. This allows the operations team to aggregate, filter, and analyze device-generated logs in a single location, making it the correct answer.

Why this answer

Syslog (A) is the standard protocol for collecting and centralizing log messages from network devices, servers, and other infrastructure. It allows engineers to forward interface changes, warnings, and errors to a central syslog server, enabling unified review and alerting. This directly matches the goal of centralized device-generated log collection.

Exam trap

The trap here is that candidates confuse NetFlow (traffic flow analysis) with syslog (log message collection), because both involve network monitoring, but NetFlow does not capture device-generated log messages like interface changes or errors.

Why the other options are wrong

B

NetFlow is primarily used for monitoring and analyzing network traffic rather than collecting log messages. It provides flow data but does not centralize log messages for review.

C

DHCP relay is primarily used to forward DHCP packets between clients and servers across different subnets, not for collecting log messages. It does not provide centralized logging capabilities for interface changes, warnings, or errors.

D

Port security is a feature used to control access to a switch port by limiting the devices that can connect, but it does not collect or centralize log messages for review. It focuses on securing network access rather than log management.

When would these options actually be correct?

B

If the exam question asked about technologies for monitoring network traffic patterns or analyzing bandwidth usage, then NetFlow would be the correct answer, as it captures and reports on the flow of data packets across the network.

C

If the exam question asked about technologies that facilitate the management of IP address assignments and the forwarding of DHCP requests in a multi-subnet environment, then DHCP relay would be the correct answer, as it plays a crucial role in ensuring DHCP functionality across networks.

D

If the question asked about securing network access and preventing unauthorized devices from connecting to a switch, then port security would be the correct answer. For instance, a scenario where a network administrator needs to implement measures to ensure only authorized devices can communicate on the network would make this option valid.

Why candidates pick the wrong answer

B

Candidates may confuse log collection with traffic analysis, thinking that NetFlow's capabilities in monitoring traffic could be applicable to log message collection, leading them to select it as a plausible option.

C

Candidates may choose DHCP relay due to its association with network management and the assumption that any technology related to network operations could be relevant to log collection, leading to confusion about its specific function.

D

Candidates may choose port security because they associate it with network management and security, thinking it relates to monitoring and controlling network traffic, which can lead to confusion with log collection objectives.

417
MCQmedium

A storage account must stay online for applications, but administrators have a temporary freeze on configuration changes. Users can still view the account, but attempts to change the access tier, create a container, or update networking all fail. What most likely caused the behavior?

A.A CanNotDelete lock was applied to the storage account.
B.A ReadOnly lock was applied to the storage account.
C.An Azure Policy audit assignment was applied to the storage account.
D.The account was moved to a different subscription.
AnswerB

ReadOnly is the correct explanation because it blocks write operations on the locked scope. That includes changing account settings, creating child resources such as containers, and modifying networking configuration. Read-only access still allows users to view the resource, which matches the symptom described in the scenario. This lock is useful when all configuration changes must be paused.

Why this answer

A ReadOnly lock (Azure Resource Manager lock) prevents any modification to the storage account, including changing the access tier, creating containers, or updating networking settings, while still allowing read operations like viewing the account. This matches the described behavior exactly because the lock is applied at the resource scope and blocks all write/delete operations, but does not affect read access.

Exam trap

The trap here is that candidates often confuse CanNotDelete locks with ReadOnly locks, mistakenly thinking that a deletion-prevention lock also blocks modifications, when in fact only ReadOnly locks block all write operations.

Why the other options are wrong

A

A CanNotDelete lock prevents deletion of the resource but does not block configuration changes like changing the access tier or creating containers. The question describes read-only behavior, which is not caused by a CanNotDelete lock.

C

Azure Policy audit assignments only evaluate and report compliance; they do not block configuration changes. The question describes operations failing, which requires an enforcement mechanism like a lock or deny policy.

D

Moving a storage account to a different subscription does not cause configuration changes to fail; it only changes the subscription context. Users can still modify settings after the move.

When would these options actually be correct?

A

A CanNotDelete lock would be correct if the question stated that administrators cannot delete the storage account or its resource group, but all other operations (including configuration changes) are allowed. For example: 'Users can modify settings and add containers, but attempts to delete the storage account fail.'

C

An Azure Policy audit assignment would be correct if the question asked about a scenario where administrators need to track non-compliant changes without preventing them, such as monitoring storage accounts that use blob access tiers other than 'Cool'.

D

If a question states that a storage account is inaccessible or cannot be found after a subscription change, and the account name is still visible in the old subscription, then moving to a different subscription could be the cause due to subscription-level permissions or resource relocation.

Why candidates pick the wrong answer

A

Candidates may confuse CanNotDelete with ReadOnly, thinking that any lock prevents modifications. They might not realize that CanNotDelete only blocks deletion, not updates or creations.

C

Candidates may confuse audit policies with deny policies, assuming that any policy assignment can block operations, or they may overestimate the enforcement capabilities of audit-only policies.

D

Candidates may think that moving a subscription imposes restrictions on the resource, confusing subscription-level changes with resource-level locks or policies.

418
MCQmedium

Based on the exhibit, what does the query return?

A.All successful deallocate operations on virtual machines during the last 24 hours.
B.Failed deallocate operations on virtual machines during the last 24 hours.
C.Any operations related to starting or restarting virtual machines in the last 24 hours.
D.Administrative changes made only from the Azure portal in the last 24 hours.
AnswerB

The query filters the AzureActivity table to the last 24 hours, selects the virtual machine deallocate operation, and then limits results to records whose status is Failed. That combination means it returns only failed deallocation events for virtual machines in the time window shown.

Why this answer

The query filters for 'Status' equal to 'Failed' and 'Operation' equal to 'Deallocate Virtual Machines', returning only failed deallocate operations. The time filter restricts results to the last 24 hours. Therefore, the query returns failed deallocate operations on virtual machines during the last 24 hours.

Exam trap

The trap here is that candidates may overlook the explicit 'Status' filter and assume the query returns all deallocate operations, or confuse 'deallocate' with 'start' or 'restart' operations, leading them to select a wrong answer.

Why the other options are wrong

A

The query filters for 'deallocate' operations with a 'Failed' status, so it does not return successful deallocate operations.

C

The query in the exhibit filters for 'Deallocate VM' operations with a status of 'Failed', not operations related to starting or restarting virtual machines.

D

The query in the exhibit filters for 'deallocate' operations with a failed status, not for administrative changes from the Azure portal. Option D is incorrect because the query does not restrict by source (portal) or operation type (administrative changes).

When would these options actually be correct?

A

If the query were modified to filter for 'Status eq 'Succeeded'' and 'OperationName eq 'Deallocate Virtual Machine'', it would return all successful deallocate operations on virtual machines during the last 24 hours.

C

If the query were modified to filter on operations like 'Start VM' or 'Restart VM' (e.g., with 'OperationName' in ('Start VM', 'Restart VM')), then option C would be correct for returning any such operations in the last 24 hours.

D

Option D would be correct if the query filtered for operations where the 'Caller' is from the Azure portal (e.g., 'Microsoft Azure Portal') and the operation name includes 'write' or 'action' for administrative changes, with a time range of the last 24 hours.

Why candidates pick the wrong answer

A

Candidates may misread the query or assume that the default filter is for successful operations, overlooking the explicit 'Failed' status filter.

C

Candidates may confuse 'deallocate' with 'stop' or 'restart' operations, or they might misread the query and think it captures all VM state changes rather than specifically failed deallocations.

D

Candidates may confuse 'deallocate' with a broader category of administrative changes, or assume that the query's time filter and operation scope implicitly cover all portal changes, overlooking the specific operation and status filters.

419
MCQhard

A stateless API must run 4 to 12 identical Windows VMs, scale out automatically when average CPU stays above 70% for 10 minutes, and distribute instances to improve resiliency. Deployments are defined in Bicep. Which Azure compute service should be used?

A.A single Azure VM with an autoscale setting
B.A virtual machine scale set with autoscale enabled
C.An availability set with manual VM resizing
D.Azure Container Instances running one container per request
AnswerB

A virtual machine scale set with autoscale enabled is the correct choice because it is a native Azure service designed to manage a homogeneous pool of Windows VMs. Autoscale rules can dynamically adjust the instance count between the required minimum of 4 and maximum of 12 based on metrics such as CPU utilization or queue depth, ideal for a stateless API. The scale set distributes incoming traffic across all instances via a load balancer, ensuring identical configuration and enabling horizontal scale-out and scale-in without manual intervention.

Why this answer

A virtual machine scale set (VMSS) with autoscale enabled is the correct choice because it supports running multiple identical Windows VMs, can automatically scale out when average CPU exceeds 70% for 10 minutes, and distributes instances across fault domains and availability zones for resiliency. Bicep deployments natively define VMSS configurations, making it the ideal compute service for stateless, scalable API workloads.

Exam trap

The trap here is that candidates confuse autoscale settings (which only apply to scale sets or PaaS services) with individual VMs, or assume an availability set provides autoscaling, when in fact it only ensures fault tolerance for a static number of VMs.

Why the other options are wrong

A

A single Azure VM cannot scale out to 4-12 instances; autoscale requires a scale set to add or remove VMs, not a single VM.

C

An availability set does not provide autoscaling; it only distributes VMs across fault and update domains for high availability. Manual resizing cannot automatically scale out based on CPU thresholds.

D

Azure Container Instances (ACI) does not support autoscaling based on CPU metrics for Windows containers, nor does it provide a VM-based environment for running Windows VMs; it runs containers, not VMs.

When would these options actually be correct?

A

If the question required a single, stateless VM with automatic scaling within that VM (e.g., scaling application threads) and no need for multiple instances, a single VM with autoscale (via Azure Automation or similar) could be correct.

C

For a stateful application requiring high availability with a fixed number of VMs (e.g., 3 VMs) that must be manually resized to handle planned load changes, an availability set with manual VM resizing would be correct.

D

A question requiring a serverless container service to run stateless Linux containers that scale per request (e.g., HTTP triggers) and do not require VM-level control or Windows OS would make ACI correct.

Why candidates pick the wrong answer

A

Candidates may think 'autoscale' applies to any VM, confusing VM-level scaling (e.g., resizing) with instance-level scaling (adding/removing VMs).

C

Candidates may confuse availability sets with scale sets, thinking that distributing VMs for resiliency automatically includes scaling capabilities, or they may overlook the requirement for automatic scaling based on CPU metrics.

D

Candidates may confuse container instances with VM scale sets, thinking ACI can autoscale VMs, or they may assume 'stateless API' implies containers are always the best choice without considering the requirement for Windows VMs.

420
MCQhard

You need to retain Azure Firewall logs for long-term analysis in a Log Analytics workspace and also archive them in a storage account for compliance. What should you configure on the Azure Firewall resource?

A.Diagnostic settings
B.A resource lock
C.An availability set
D.A VNet peering connection
AnswerA

Diagnostic settings are the Azure-native mechanism that directs Azure Firewall logs, such as the application, network, and DNS proxy rule logs, to a monitoring destination like a Log Analytics workspace, storage account, or Event Hub. By enabling diagnostic settings, you can set custom retention periods for log retention and use KQL queries for long-term analysis. Without this, the firewall only retains logs for the fixed, brief period defined by the service itself.

Why this answer

Diagnostic settings on the Azure Firewall resource allow you to stream platform logs and metrics to a Log Analytics workspace for long-term analysis and to a storage account for archival and compliance. This is the only configuration that simultaneously supports both destinations for the firewall's log data.

Exam trap

The trap here is that candidates may confuse resource locks or VNet peering with logging configurations, but only diagnostic settings provide the dual-destination log routing required for both analysis and compliance archival.

Why the other options are wrong

B

A resource lock prevents accidental deletion or modification of the Azure Firewall resource, but it does not configure log retention or archiving to Log Analytics or storage accounts.

C

An availability set is used to distribute virtual machines across fault and update domains for high availability. It does not manage log retention or archiving for Azure Firewall.

D

VNet peering is used to connect virtual networks, not to configure logging or archiving of Azure Firewall logs. Diagnostic settings on the firewall resource are required to send logs to Log Analytics and storage.

When would these options actually be correct?

B

A resource lock would be correct if the question asked: 'You need to prevent accidental deletion of an Azure Firewall configuration. What should you configure?'

C

When a question asks how to ensure high availability for a set of virtual machines running a critical application, configuring an availability set would be the correct answer to protect against hardware failures and planned maintenance.

D

You need to enable communication between two virtual networks that are in different regions or subscriptions, and you want to route traffic through Azure Firewall. VNet peering would be configured to connect the networks, with the firewall as a central inspection point.

Why candidates pick the wrong answer

B

Candidates may confuse resource locks with retention policies, thinking a lock can help preserve logs, or they may mistakenly believe that locking the resource also locks its associated data.

C

Candidates may confuse availability set with a feature that ensures data availability or retention, mistakenly thinking it applies to log storage rather than VM redundancy.

D

Candidates may confuse network connectivity features with logging and archiving capabilities, or think that peering is needed to send logs across networks.

421
MCQmedium

A company has a virtual machine in a subnet that must access an Azure Storage account. The storage account should remain reachable through its public endpoint, but access must be limited to that subnet, and the traffic should stay on the Azure backbone rather than the internet. Which feature should the administrator configure on the subnet?

A.A private endpoint for the storage account.
B.A service endpoint for Microsoft.Storage.
C.A site-to-site VPN connection to the storage account.
D.An application security group assigned to the storage account.
AnswerB

A service endpoint extends the subnet's identity to the storage service and keeps traffic on the Azure backbone while still using the storage account's public endpoint. This fits when the organization wants network restriction by subnet without introducing a private IP for the service. The storage firewall can then allow only the selected subnet.

Why this answer

A service endpoint for Microsoft.Storage extends the virtual network identity to the storage account, allowing traffic from the subnet to the storage account's public endpoint to be routed over the Azure backbone network rather than the internet. This satisfies the requirement to limit access to the subnet while keeping the public endpoint reachable and traffic within Azure's infrastructure.

Exam trap

The trap here is that candidates often confuse private endpoints with service endpoints, mistakenly thinking a private endpoint is required to keep traffic on the Azure backbone, but a private endpoint removes public endpoint access, whereas a service endpoint preserves it while still routing traffic internally.

Why the other options are wrong

A

A private endpoint assigns the storage account a private IP from the subnet, removing public endpoint access entirely, which contradicts the requirement that the storage account remain reachable through its public endpoint.

C

A site-to-site VPN connects on-premises networks to Azure, not a subnet to a storage account, and it routes traffic over the internet or VPN gateway, not ensuring traffic stays on the Azure backbone.

D

An application security group (ASG) is used to group virtual machines and apply network security rules based on that group, not to restrict access to a storage account from a subnet. It cannot limit traffic to the Azure backbone or provide subnet-level access control to a storage account's public endpoint.

When would these options actually be correct?

A

When the requirement is to completely remove public internet access to the storage account and access it privately from a virtual network, such as for compliance or security reasons where no public endpoint is allowed.

C

A company has an on-premises network that needs secure access to an Azure virtual network and resources like storage accounts, and the traffic must traverse the internet encrypted. A site-to-site VPN would be the correct feature to establish a secure connection between the on-premises network and Azure.

D

An ASG would be correct in a scenario where you need to apply network security group (NSG) rules to a group of VMs based on their application role, such as allowing web servers to communicate only with database servers, without using IP addresses.

Why candidates pick the wrong answer

A

Candidates often confuse private endpoints with service endpoints, thinking both restrict access to a subnet, but private endpoints eliminate public access, which is not what the question asks.

C

Candidates may think a VPN provides secure, private access to Azure resources, but they overlook that the question requires traffic to stay on the Azure backbone and be limited to a specific subnet, which a VPN does not achieve.

D

Candidates may confuse ASGs with service endpoints or think that ASGs can be used to secure outbound traffic to Azure services, because both involve network security and Azure resources.

422
MCQmedium

A spoke VM can connect to a hub VM by IP address after peering is configured, but it cannot resolve internal host names such as app01.corp.local. The hub has a DNS server at 10.50.1.4 that hosts those records. What should the administrator configure so the spoke VMs use that DNS server?

A.Add an NSG rule allowing UDP and TCP port 53 between the VNets.
B.Set the spoke VNet's custom DNS server to 10.50.1.4.
C.Create a private endpoint for the hub DNS server.
D.Enable remote gateways on the spoke peering.
AnswerB

The spoke VNet must be told to use the DNS server that contains the internal zone records. By configuring 10.50.1.4 as the custom DNS server for the spoke VNet, new and existing VMs in that VNet can query the hub-based resolver for names such as app01.corp.local. Peering alone does not change DNS behavior, so the DNS server setting is the missing configuration.

Why this answer

The spoke VNet must be configured to use a custom DNS server to override Azure's default internal name resolution. By setting the spoke VNet's DNS server to 10.50.1.4, all VMs in the spoke will query that server for hostname resolution, including app01.corp.local. This is a VNet-level setting that applies to all VMs in the spoke, and it does not require any changes to NSGs or peering configurations.

Exam trap

The trap here is that candidates often confuse VNet peering with DNS resolution, assuming that peering automatically enables name resolution across VNets, when in fact you must explicitly configure a custom DNS server or use Azure Private DNS Zones to resolve private hostnames.

Why the other options are wrong

A

The issue is DNS resolution, not network connectivity. NSG rules control traffic flow, but the spoke VNet still uses its default Azure DNS, not the hub's DNS server. Adding NSG rules for port 53 does not change the DNS server configuration.

C

A private endpoint is used to securely access Azure PaaS services (like Azure SQL, Storage) over a private IP within a VNet, not to configure DNS resolution for VMs. It does not set a custom DNS server for a VNet.

D

Enabling remote gateways on the spoke peering allows the spoke VNet to use the hub's VPN/ExpressRoute gateway for outbound connectivity, but it does not configure DNS settings. The spoke VMs still need a custom DNS server address to resolve internal host names.

When would these options actually be correct?

A

An administrator configures VNet peering but cannot connect to the hub VM by IP address. The hub VM has a firewall blocking inbound DNS traffic. Adding an NSG rule allowing UDP/TCP 53 on the hub subnet would permit the spoke VMs to reach the hub's DNS server.

C

An administrator needs to securely connect to an Azure SQL Database from a spoke VNet using a private IP address, avoiding public internet exposure. In that scenario, creating a private endpoint for the SQL Database in the hub VNet would be correct.

D

This option would be correct in a scenario where the hub VNet has a VPN gateway or ExpressRoute gateway, and the spoke VNet needs to use that gateway to access on-premises resources or the internet. The question would specify that the spoke VMs need to route traffic through the hub's gateway.

Why candidates pick the wrong answer

A

Candidates often confuse connectivity issues with DNS resolution. Since DNS uses port 53, they assume that allowing this port via NSG will fix name resolution, overlooking that the VNet's DNS server setting must be changed first.

C

Candidates may confuse private endpoints with DNS resolution because both involve private IPs and name resolution, but private endpoints are for PaaS services, not for setting DNS servers for VMs.

D

Candidates may confuse the concept of using a hub's gateway for network connectivity with using a hub's DNS server for name resolution, assuming that enabling remote gateways also forwards DNS queries.

423
MCQmedium

You deploy a Windows VM with an ARM template. During the first boot, it must install IIS, copy application files from storage, and run a bootstrap script. Which Azure feature should you add to the deployment?

A.A VM extension such as Custom Script Extension
B.An availability set
C.A managed disk snapshot
D.A public IP address
AnswerA

A VM extension such as Custom Script Extension is designed specifically to run scripted configuration tasks on an Azure VM during deployment. Defined in the ARM template under Microsoft.Compute/virtualMachines/extensions, it downloads and executes a PowerShell script on Windows—or a shell script on Linux—after the VM is provisioned. This script runs with administrative privileges and can install IIS, copy files, modify registry settings, or perform any other bootstrapping action. Because the extension is part of the deployment resource, it executes when the VM first boots, making it the correct choice.

Why this answer

The Custom Script Extension (CSE) is the correct Azure feature to use because it allows you to execute PowerShell or Bash scripts on a Windows or Linux VM during first boot. By adding the CSE to your ARM template, you can automate the installation of IIS, copy application files from Azure Storage (using the `fileUris` property), and run a bootstrap script after the OS is provisioned, ensuring the VM is fully configured without manual intervention.

Exam trap

The trap here is that candidates often confuse a VM extension (which runs scripts post-deployment) with a VM image (which bakes configuration into the OS disk), leading them to think a snapshot or availability set can achieve the same result, but neither can execute commands during first boot.

Why the other options are wrong

B

An availability set is used to ensure high availability by distributing VMs across fault and update domains, not for installing software or running scripts during deployment.

C

A managed disk snapshot captures the state of a disk at a point in time, but it cannot execute scripts or install software during VM deployment. The question requires running a bootstrap script and installing IIS, which is beyond the capability of a snapshot.

D

A public IP address enables inbound internet connectivity but does not install IIS, copy files, or run scripts during first boot. The question requires a feature that performs post-deployment configuration, which is not provided by a public IP.

When would these options actually be correct?

B

When deploying multiple VMs for a highly available application and you need to guarantee that at least one VM remains available during planned or unplanned maintenance, you would add an availability set to the deployment.

C

A managed disk snapshot would be correct if the question asked for a way to create a consistent backup of a VM's disk before applying updates, or to quickly deploy multiple VMs from a pre-configured disk state without needing to run scripts.

D

A public IP address would be correct in a question asking: 'You deploy a VM that must be accessible from the internet. Which resource must you associate with the VM's NIC?' In that scenario, a public IP is essential for external connectivity.

Why candidates pick the wrong answer

B

Candidates may confuse 'availability' with 'deployment automation' or think that an availability set can trigger post-deployment tasks, not understanding its sole purpose is for VM redundancy.

C

Candidates might think a snapshot can be used to capture a VM after manual configuration and then deploy it, confusing snapshots with custom images or automation features.

D

Candidates may think a public IP is needed to download files from storage or access the VM for configuration, but the question specifies automated tasks during first boot, which do not require internet access.

424
MCQmedium

A hub VNet already has a VPN gateway connected to on-premises. A spoke VNet in the same region must reach on-premises networks through that existing gateway, and you do not want to deploy a separate VPN gateway in the spoke. What peering settings should you use?

A.Create peering only; the spoke will automatically use the hub gateway without extra settings.
B.Enable Use remote gateways on the hub peering and Allow gateway transit on the spoke peering.
C.Enable Allow gateway transit on the hub peering and Use remote gateways on the spoke peering.
D.Create a service endpoint from the spoke VNet to the on-premises network.
AnswerC

In a hub-spoke design, the hub VNet that owns the VPN gateway must allow gateway transit, and the spoke must be configured to use the remote gateway. This lets the spoke route on-premises traffic through the hub without deploying its own gateway. The direction of these settings matters, and reversing them breaks the design.

Why this answer

To enable a spoke VNet to use a hub VNet's VPN gateway for on-premises connectivity without deploying a separate gateway, you must configure the hub peering with 'Allow gateway transit' and the spoke peering with 'Use remote gateways'. This allows the spoke to route traffic through the hub's VPN gateway, leveraging the existing site-to-site VPN connection to on-premises.

Exam trap

The trap here is confusing which peering direction gets which setting: candidates often mistakenly enable 'Use remote gateways' on the hub side and 'Allow gateway transit' on the spoke side, which is the reverse of the correct configuration.

Why the other options are wrong

A

In Azure, a spoke VNet does not automatically use the hub's VPN gateway just by creating peering. You must explicitly configure gateway transit by enabling 'Allow gateway transit' on the hub peering and 'Use remote gateways' on the spoke peering.

B

The settings are reversed: 'Use remote gateways' must be enabled on the spoke peering (from spoke to hub), and 'Allow gateway transit' on the hub peering (from hub to spoke). Option B swaps these, which would not allow the spoke to use the hub's VPN gateway.

D

Service endpoints are used for secure access to Azure services (like Storage or SQL) from a VNet, not for connecting to on-premises networks via VPN. They do not provide IP-level routing or gateway transit capabilities.

When would these options actually be correct?

A

This would be correct if the question stated that the hub VNet already has 'Allow gateway transit' enabled and the spoke VNet has 'Use remote gateways' enabled, and the candidate is asked what additional peering settings are needed—then the answer would be 'none, the settings are already in place'.

B

This option would be correct if the question asked about enabling transit from the hub to the spoke (e.g., allowing the hub to use a gateway deployed in the spoke), or if the roles of hub and spoke were reversed in the peering definitions.

D

A question asks: 'You need to allow a VNet to securely access Azure Storage without using a public IP. What should you configure?' In that case, creating a service endpoint from the VNet to the Storage service is correct.

Why candidates pick the wrong answer

A

Candidates may assume that VNet peering automatically inherits gateway capabilities, similar to how on-premises networks might automatically route through a VPN gateway in a hub-and-spoke topology without explicit configuration.

B

Candidates often confuse which setting goes on which side of the peering, especially when terms like 'gateway transit' and 'remote gateways' sound similar, leading them to swap the configuration.

D

Candidates may confuse 'service endpoint' with 'VPN endpoint' or think any 'endpoint' can connect to on-premises, misunderstanding the scope of service endpoints.

425
MCQeasy

A stateless web application must automatically add VM instances during business hours and remove them at night based on CPU usage. Which Azure service should be deployed?

A.Virtual machine scale set
B.Availability set
C.Azure Bastion
D.Proximity placement group
AnswerA

A virtual machine scale set is designed for identical VM instances that can scale out and scale in based on demand. It works well for stateless applications because instances can be added or removed without needing manual reconfiguration of each server. Autoscale rules can use metrics such as CPU percentage to change capacity automatically.

Why this answer

Virtual Machine Scale Sets (VMSS) are designed to automatically scale the number of VM instances in or out based on metrics like CPU usage, and they support scheduled scaling to align with business hours. This makes them the correct choice for a stateless web application that needs to add instances during business hours and remove them at night, as VMSS can integrate with Azure Autoscale to adjust capacity based on both performance metrics and time schedules.

Exam trap

The trap here is that candidates often confuse an availability set (which provides high availability) with a scale set (which provides auto-scaling), leading them to select availability set when the question explicitly requires automatic scaling based on CPU and time schedules.

Why the other options are wrong

B

An availability set is a logical grouping of VMs to protect against failures within a datacenter, but it does not provide automatic scaling based on CPU usage or schedule.

C

Azure Bastion provides secure RDP/SSH access to VMs without public IPs, but it does not handle auto-scaling or scheduling of VM instances based on CPU usage or time.

D

Proximity placement groups reduce network latency between VMs but do not provide autoscaling or scheduled instance management based on CPU usage, which is required for the stateless web application.

When would these options actually be correct?

B

When the question asks for a solution to ensure high availability for a set of VMs by distributing them across multiple fault domains and update domains within a single region, an availability set is the correct answer.

C

An exam question asks: 'You need to provide secure, seamless RDP/SSH connectivity to Azure VMs without exposing public IP addresses. Which service should you use?'

D

An application requires VMs to be physically close to each other to minimize network latency, such as for a high-performance computing (HPC) workload or a tightly coupled application where inter-VM communication latency is critical.

Why candidates pick the wrong answer

B

Candidates may confuse availability sets with scale sets because both involve multiple VMs, but availability sets focus on redundancy, not auto-scaling.

C

Candidates may confuse Bastion with a scaling solution because it is a managed service that simplifies VM management, but its purpose is access security, not auto-scaling.

D

Candidates may confuse proximity placement groups with scaling solutions, thinking that grouping VMs closely can help manage load, but they do not offer any automatic scaling or scheduling capabilities.

426
Multi-Selecteasy

A team wants a storage option that stays available if one availability zone in the primary region fails. Which two redundancy options meet that requirement? Select two.

Select 2 answers
A.Zone-redundant storage (ZRS).
B.Geo-zone-redundant storage (GZRS).
C.Locally redundant storage (LRS).
D.Geo-redundant storage (GRS).
E.Read-access geo-redundant storage (RA-GRS).
AnswersA, B

Zone-redundant storage (ZRS) synchronously replicates each write across three availability zones within the primary region. Each zone is a physically separate datacenter with independent power, cooling, and networking, so if one zone fails, the other two replicas still serve both reads and writes with no manual failover. This directly satisfies the requirement of staying available when one availability zone fails.

Why this answer

Zone-redundant storage (ZRS) synchronously replicates data across three Azure availability zones within the primary region. If one zone fails, the data remains accessible from the other zones, ensuring high availability without requiring failover to a secondary region.

Exam trap

The trap here is that candidates often confuse geo-redundant options (GRS/RA-GRS) as providing zone-level protection, but they only use LRS in the primary region, which does not survive a single availability zone failure.

Why the other options are wrong

C

Locally redundant storage (LRS) replicates data three times within a single availability zone in the primary region. If that zone fails, the storage becomes unavailable, so it does not meet the requirement of staying available if one availability zone fails.

D

Geo-redundant storage (GRS) replicates data to a secondary region, but within the primary region it uses locally redundant storage (LRS), which does not survive an availability zone failure. Therefore, GRS does not meet the requirement of staying available if one availability zone in the primary region fails.

E

RA-GRS provides read access to the secondary region during a regional failure, but it does not protect against a single availability zone failure in the primary region because it uses LRS within the primary region, which can lose data if that zone fails.

When would these options actually be correct?

C

A question that asks for the lowest-cost redundancy option within a single data center, or for a storage solution that tolerates server failures but not zone failures, such as: 'Which storage redundancy option provides three copies of data within a single availability zone at the lowest cost?'

D

A question that asks for a storage option that remains available if an entire region fails, but does not require availability zone resilience within the primary region. For example: 'Which storage redundancy option provides data durability by replicating to a secondary region, but does not require protection against a single availability zone failure?'

E

A question that requires data to remain readable even if the entire primary region becomes unavailable, such as 'Which storage option allows read access during a regional outage?' would make RA-GRS correct.

Why candidates pick the wrong answer

C

Candidates may mistakenly think LRS provides zone-level redundancy because it replicates data three times, but they overlook that all copies are in the same zone, making it vulnerable to zone failures.

D

Candidates may confuse geo-redundancy with zone-redundancy, thinking that replication to another region inherently protects against local zone failures, or they may overlook that GRS uses LRS in the primary region.

E

Candidates may think RA-GRS offers zone-level redundancy because it has geo-replication, but they overlook that the primary region still uses LRS, which is vulnerable to zone failures.

427
MCQmedium

You plan to run a web application on Azure virtual machines and need protection against a single datacenter failure within an Azure region. Which deployment option should you use?

A.An availability set only
B.Availability zones
C.A proximity placement group
D.A single VM with premium SSD
AnswerB

Availability zones are physically separate datacenters within an Azure region, each with independent power, cooling, and networking. Deploying VMs across zones isolates the workload from a single datacenter failure, so if one zone goes down the application remains available in the others. This is the only option listed that provides datacenter-level resilience.

Why this answer

Availability Zones are physically separate datacenters within an Azure region, each with independent power, cooling, and networking. Deploying your VMs across two or more zones protects against a single datacenter failure because if one zone goes down, the application continues running in the other zone. This meets the requirement for datacenter-level fault tolerance within a single region.

Exam trap

The trap here is that candidates often confuse availability sets (which protect against rack-level failures within one datacenter) with availability zones (which protect against full datacenter failures), leading them to select the cheaper or more familiar option without recognizing the critical difference in fault domain scope.

Why the other options are wrong

A

An availability set protects against failures within a single datacenter (e.g., rack or update domain failures), not against a full datacenter failure within an Azure region. The question requires protection against a single datacenter failure, which spans across datacenters; availability zones are needed for that.

C

A proximity placement group reduces network latency between VMs but does not protect against a single datacenter failure; it may even place VMs in the same datacenter, increasing failure risk.

D

A single VM with premium SSD does not provide protection against a datacenter failure because it is a single instance; if the datacenter hosting that VM fails, the application becomes unavailable.

When would these options actually be correct?

A

If the question asked for protection against hardware failures within a single datacenter (e.g., server rack or maintenance events) and required high availability for IaaS VMs, an availability set would be the correct answer.

C

When the question asks for minimizing network latency between VMs in a tightly coupled workload (e.g., HPC or real-time data processing) within the same Azure region, a proximity placement group is the correct choice.

D

This option would be correct for a question asking for the highest performance storage for a single VM running a latency-sensitive application, where data redundancy is handled at the application layer or via backups, not by Azure infrastructure.

Why candidates pick the wrong answer

A

Candidates often confuse availability sets with availability zones, thinking both provide similar datacenter-level redundancy, but availability sets only protect within one datacenter.

C

Candidates may confuse 'proximity' with 'redundancy' or think that grouping VMs together provides high availability, not realizing it focuses on low latency, not fault tolerance.

D

Candidates may think premium SSD offers high durability and performance, mistakenly believing it alone can protect against datacenter-level failures, confusing storage redundancy with availability guarantees.

428
MCQhard

Third-party support engineers connect from the public internet and need browser-based RDP and SSH access to Azure VMs that have only private IPs. The security team will not allow public IPs on the VMs, inbound 3389 or 22 from the internet, or a client VPN on each laptop. What should you deploy?

A.Azure Bastion
B.VPN Gateway with point-to-site configuration
C.A public load balancer with inbound NAT rules
D.A NAT gateway attached to the VM subnet
AnswerA

Azure Bastion provides secure browser-based RDP and SSH access without exposing the VMs to public IP-based inbound traffic.

Why this answer

Azure Bastion provides secure, seamless browser-based RDP and SSH connectivity to Azure VMs directly from the Azure portal over TLS, without requiring public IPs on the VMs or exposing inbound RDP/SSH ports (3389/22) to the internet. It uses a hardened bastion host deployed in a dedicated subnet, which brokers the connection via the Azure portal, satisfying the security team's constraints of no public IPs on VMs, no inbound internet access to those ports, and no client VPN software.

Exam trap

The trap here is that candidates often confuse Azure Bastion with a NAT gateway or VPN Gateway, mistakenly thinking any 'gateway' solution provides inbound RDP/SSH access, but Bastion is the only option that delivers browser-based connectivity without public IPs, client VPNs, or open inbound ports.

Why the other options are wrong

B

The question requires browser-based RDP/SSH access without client VPN on each laptop. VPN Gateway with point-to-site requires a VPN client on each laptop, violating the 'no client VPN' constraint.

C

A public load balancer with inbound NAT rules would require the VMs to have public IPs or be reachable via the load balancer's frontend IP, which still exposes RDP/SSH ports (3389/22) to the internet, violating the security team's restrictions.

D

A NAT gateway provides outbound internet access for VMs with private IPs, but it does not enable inbound RDP/SSH connections from the internet. The question requires browser-based inbound access, which NAT gateway cannot provide.

When would these options actually be correct?

B

If the requirement were to provide secure, encrypted connectivity from remote users to an Azure VNet without browser-based access, and client VPN installation is acceptable, then VPN Gateway with point-to-site would be correct.

C

You need to distribute incoming RDP/SSH traffic to multiple VMs that have public IPs, and you want to use a single public endpoint with port forwarding (e.g., different frontend ports map to the same backend port on different VMs). The security policy allows inbound 3389/22 from the internet.

D

Deploy a NAT gateway when VMs in a private subnet need to initiate outbound connections to the internet (e.g., for updates or accessing external APIs) while remaining unreachable from the internet. The question would specify 'outbound internet access only' and no inbound requirements.

Why candidates pick the wrong answer

B

Candidates may think point-to-site VPN provides secure remote access to VMs, overlooking the specific requirement for browser-based access without client software.

C

Candidates may think a load balancer can provide secure remote access without public IPs on VMs, but they overlook that the load balancer itself exposes the ports and requires VMs to be reachable from its backend, which still necessitates network connectivity that violates the 'no public IPs' rule.

D

Candidates may confuse NAT gateway with providing inbound access, thinking it translates public IPs to private IPs for inbound connections, similar to port forwarding. However, NAT gateway only supports outbound traffic initiated from the private subnet.

429
MCQmedium

An NSG is associated with a subnet. It contains these inbound rules: - Priority 100: Deny TCP 443 from Internet to Any - Priority 200: Allow TCP 443 from 203.0.113.0/24 to Any A tester at 203.0.113.10 browses to the VM's HTTPS endpoint in that subnet. What happens?

A.The request is allowed because the more specific source range matches first.
B.The request is denied because the priority 100 deny rule matches before the allow rule.
C.The request is denied only if the VM has no public IP address.
D.The request is allowed because default NSG rules always override custom rules.
AnswerB

Azure NSGs evaluate rules by priority, and the lowest number is processed first. Both rules match this HTTPS traffic, but the deny rule at priority 100 is considered before the allow rule at priority 200. Because the first match wins, the packet is blocked even though the source is in the allowed range.

Why this answer

Network Security Group (NSG) rules are evaluated in priority order, from lowest to highest numeric value. The priority 100 rule explicitly denies TCP 443 from the Internet (which includes the 203.0.113.0/24 range), and it is evaluated before the priority 200 allow rule. Since the deny rule matches first, the traffic is blocked regardless of the more specific source IP in the allow rule.

Exam trap

The trap here is that candidates mistakenly believe NSG rules are evaluated based on the specificity of the source or destination (like a firewall with longest-prefix matching), but Azure NSGs strictly use priority-based evaluation where lower numeric priority wins.

Why the other options are wrong

A

NSG rules are evaluated by priority order, not by specificity. The priority 100 deny rule matches all traffic from Internet, including 203.0.113.0/24, so it is applied before the priority 200 allow rule, resulting in denial.

C

NSG rules are stateless and apply to all traffic entering the subnet, regardless of whether the VM has a public IP. The deny rule at priority 100 blocks TCP 443 from Internet (any source), so the tester's request is denied irrespective of the VM's public IP.

D

Default NSG rules have lower priority than custom rules and do not override them; the priority 100 deny rule explicitly blocks the traffic before any default rule could apply.

When would these options actually be correct?

A

This option would be correct if the NSG rules were processed using a 'most specific match' model, similar to route tables. For example, if the question stated that NSG rules are evaluated based on the most specific source IP range, then the allow rule with a more specific range would override the broader deny.

C

If the question involved Azure Firewall or a load balancer with SNAT, where traffic from the internet to a VM without a public IP might be handled differently. For example, if the VM is behind a load balancer and the NSG is on the VM subnet, but the load balancer's source NAT changes the source IP, then the VM's public IP presence could affect routing.

D

If the question stated that no custom rules exist and only default rules are present, then default rules would allow or deny traffic based on their predefined behavior (e.g., default inbound deny all internet traffic).

Why candidates pick the wrong answer

A

Candidates often confuse NSG rule evaluation with route table evaluation, where more specific prefixes take precedence. They incorrectly assume that a more specific source IP range in an allow rule overrides a broader deny rule, regardless of priority.

C

Candidates may confuse NSG behavior with public IP requirements for internet connectivity, thinking that without a public IP, the VM cannot receive internet traffic, so the NSG rule is irrelevant. They overlook that NSGs filter traffic at the subnet level regardless of public IP assignment.

D

Candidates may mistakenly believe that default rules take precedence over custom rules, or they may confuse NSG rule evaluation order with Azure policy or role-based access control hierarchies.

430
MCQmedium

A finance application is deployed in a single resource group named rg-finance-app. The team must manage only the resources in that group and must not receive permissions for other resource groups in the subscription. Where should the Contributor role be assigned?

A.At the management group that contains the subscription.
B.At the subscription scope.
C.At the rg-finance-app resource group scope.
D.At each individual resource in the resource group.
AnswerC

Resource group scope is the narrowest scope that still covers all resources for the finance application. Any resource inside that group inherits the assignment, while resources in other groups remain unaffected. This gives the team exactly the access needed without expanding permissions to unrelated workloads.

Why this answer

The Contributor role must be assigned at the rg-finance-app resource group scope to restrict permissions exclusively to that group. This ensures the team can manage only the resources within that resource group, without inheriting permissions to other resource groups in the subscription. Role assignments in Azure are inherited from higher scopes (management group, subscription) down to lower scopes, so assigning at the resource group scope is the most specific and restrictive level that meets the requirement.

Exam trap

The trap here is that candidates often choose the subscription scope (Option B) thinking it is the simplest way to grant access, but they overlook that it would grant permissions to all resource groups in the subscription, violating the requirement to restrict access to only rg-finance-app.

Why the other options are wrong

A

Assigning Contributor at the management group scope grants permissions to all subscriptions within that management group, not just the rg-finance-app resource group, violating the requirement to restrict access to only that resource group.

B

Assigning the Contributor role at the subscription scope grants permissions to all resource groups in the subscription, not just rg-finance-app, violating the requirement to restrict access to only that resource group.

D

Assigning the Contributor role at each individual resource would be overly granular and inefficient; it violates the principle of least privilege by requiring separate assignments for every resource, and it does not cover future resources added to the group.

When would these options actually be correct?

A

If the requirement were to grant Contributor permissions to all resources in all subscriptions under a management group (e.g., for a central IT team managing multiple subscriptions), assigning the role at the management group scope would be correct.

B

If the requirement were to grant the team Contributor permissions across all resources in the entire subscription, such as for a team managing all deployments in a development subscription, then assigning the role at the subscription scope would be correct.

D

If the requirement were to grant permissions only to specific resources (e.g., a single VM and a single storage account) while explicitly denying access to all other resources in the same resource group, then assigning the role at each individual resource scope would be appropriate.

Why candidates pick the wrong answer

A

Candidates may think management group scope is necessary to cover the subscription, but they overlook that it also includes other subscriptions, thus granting broader access than intended.

B

Candidates may think assigning at the subscription level is simpler and still covers the resource group, overlooking that it also grants access to other resource groups, which is explicitly prohibited in the question.

D

Candidates may think that assigning roles at the resource level provides tighter security, not realizing that resource group scope already limits access to that group and is more manageable.

431
MCQeasy

Two application VMs run in the same Azure region. The business wants to reduce the chance that both VMs are rebooted during planned host maintenance, but a datacenter outage is not part of the requirement. What should the administrator configure?

A.Availability set
B.Availability zone
C.Azure Load Balancer
D.Virtual machine scale set
AnswerA

An availability set spreads VMs across fault domains and update domains within a datacenter. This reduces the chance that all instances are affected by the same host maintenance event. It is the correct choice when the goal is host-level resilience rather than protection against an entire datacenter outage.

Why this answer

An availability set ensures that VMs are placed on different fault domains and update domains within the same Azure datacenter. This configuration guarantees that during planned host maintenance, only one update domain is rebooted at a time, reducing the chance that both VMs are rebooted simultaneously. Since the requirement explicitly excludes a datacenter outage, an availability set is the correct choice to protect against planned maintenance events.

Exam trap

The trap here is that candidates often confuse availability zones (which protect against datacenter outages) with availability sets (which protect against planned maintenance and hardware failures within a single datacenter), leading them to select availability zones even when the requirement explicitly excludes datacenter-level failures.

Why the other options are wrong

B

Availability zones protect against datacenter-level failures, not planned host maintenance within a single datacenter. The question explicitly excludes datacenter outage requirements.

C

Azure Load Balancer distributes traffic across VMs but does not provide any protection against planned host maintenance reboots; it does not ensure VMs are placed on separate update domains.

D

Virtual machine scale sets are designed for scaling out multiple VM instances and provide high availability through distribution across fault domains and update domains, but they are not the simplest solution for just two VMs. The question specifically asks to reduce reboots during planned host maintenance for two VMs, which is best achieved by an availability set that separates VMs into different update domains.

When would these options actually be correct?

B

If the requirement were to protect against a full datacenter outage (e.g., power failure or network cut) while maintaining high availability, deploying VMs across multiple availability zones would be the correct answer.

C

An administrator needs to distribute incoming traffic across multiple VMs for high availability and fault tolerance, but the question does not mention maintenance or datacenter outage requirements.

D

A virtual machine scale set would be correct if the requirement was to automatically scale the number of VM instances based on demand (e.g., CPU load) while maintaining high availability across multiple VMs. For example, a web application that needs to handle variable traffic and requires auto-scaling and load balancing across instances.

Why candidates pick the wrong answer

B

Candidates confuse availability zones with availability sets, thinking both provide similar fault tolerance, but zones address broader failures (datacenter) while sets address host-level maintenance.

C

Candidates may think Load Balancer provides high availability by distributing traffic, confusing network-level load balancing with compute-level fault isolation.

D

Candidates may think a scale set provides high availability by distributing VMs across fault and update domains, and it also offers auto-scaling, which seems like a more advanced solution. However, for a fixed set of two VMs, an availability set is simpler and sufficient.

432
MCQeasy

Based on the exhibit, which identity type should be used so the on-premises build server can authenticate to Azure without using a human account password?

A.System-assigned managed identity
B.User-assigned managed identity
C.Service principal
D.Azure Storage access key
AnswerC

A service principal is the correct choice for non-Azure automation that needs to authenticate to Azure without using a person’s credentials. It can be paired with a certificate or secret and used by build and deployment tools running outside Azure.

Why this answer

A service principal is the correct identity type for an on-premises build server to authenticate to Azure without a human account password because it represents a non-human identity that can be assigned to applications, services, and automation tools. Service principals authenticate using client secrets or certificates, enabling secure, password-less authentication via OAuth 2.0 client credentials grant flow, which is ideal for automated build pipelines.

Exam trap

The trap here is that candidates often confuse managed identities (which are Azure-resource-bound) with service principals (which are application identities), leading them to choose a managed identity option even though the on-premises server cannot host an Azure-managed identity.

Why the other options are wrong

A

System-assigned managed identity is tied to a specific Azure resource (e.g., a VM) and cannot be used by an on-premises build server, which is outside Azure.

B

User-assigned managed identities are tied to Azure resources (e.g., VMs, App Services) and cannot be used by an on-premises build server, which is outside Azure. The question requires an identity that works for an on-premises resource, so a service principal (app registration) is needed.

D

Azure Storage access keys are used to authenticate to Azure Storage services, not to authenticate an on-premises build server to Azure in general. They do not support authentication without a human account password in the context of Azure AD authentication.

When would these options actually be correct?

A

When the question asks for an identity type for an Azure resource (e.g., an Azure VM or App Service) to authenticate to Azure services without managing credentials, system-assigned managed identity is the correct choice.

B

If the build server were an Azure VM or an Azure resource (e.g., Azure DevOps agent running on an Azure VM), a user-assigned managed identity would be correct. The question would specify that the resource is hosted in Azure and needs to authenticate without storing credentials.

D

A question asking 'Which method should be used to securely access Azure Blob Storage from an application without using a user account?' would make D correct, as access keys provide shared key authentication for storage accounts.

Why candidates pick the wrong answer

A

Candidates may confuse managed identities (designed for Azure resources) with service principals (used for external applications), assuming both provide passwordless authentication without considering the location constraint.

B

Candidates may confuse managed identities as a universal solution for passwordless authentication, not realizing they are limited to Azure resources. The term 'managed identity' sounds like it should work anywhere, but it requires an Azure resource context.

D

Candidates may confuse access keys with a form of non-human authentication, thinking they can be used to authenticate any Azure resource, but they are specific to storage and not suitable for general Azure AD authentication.

433
MCQmedium

You need to move infrequently accessed blob data automatically from the Hot tier to the Cool tier after 30 days to reduce cost. What should you configure?

A.Blob soft delete
B.Lifecycle management rules
C.A private endpoint
D.A CanNotDelete lock
AnswerB

Lifecycle management rules are the native Azure Blob Storage feature that automates tier transitions. You define a JSON policy on the storage account that evaluates blobs after a specified number of days (based on last modification) and moves them from Hot to Cool, Cool to Archive, or deletes them. This directly addresses the requirement to automatically shift infrequently accessed data to a lower-cost tier without manual intervention. Rules can filter by blob prefix or type, giving precise control.

Why this answer

Azure Blob Storage lifecycle management rules allow you to automatically transition blobs from the Hot tier to the Cool tier based on age or other conditions. By configuring a rule that moves blobs to the Cool tier after 30 days from creation or last modification, you reduce storage costs for infrequently accessed data without manual intervention.

Exam trap

The trap here is that candidates confuse blob soft delete (which only handles recovery) with lifecycle management (which handles automated tiering and deletion), leading them to choose soft delete when the question asks about cost optimization through tier transitions.

Why the other options are wrong

A

Blob soft delete is used to protect data from accidental deletion or overwrite, not to automate tier transitions based on age. It does not move blobs between access tiers.

C

A private endpoint is used to securely connect to Azure services over a private IP address, not to manage data tier transitions. It does not automate moving blobs between Hot and Cool tiers.

D

A CanNotDelete lock prevents deletion of the storage account or container but does not manage data tier transitions. It cannot move blobs from Hot to Cool tier based on age.

When would these options actually be correct?

A

You need to recover blobs that were accidentally deleted or overwritten within a specified retention period. Configure blob soft delete to enable data recovery after deletion.

C

A question that asks: 'You need to ensure that storage account access is restricted to a virtual network and no public internet access is allowed. What should you configure?' In that case, a private endpoint would be correct.

D

You need to prevent accidental deletion of a critical storage account while still allowing data modifications. A CanNotDelete lock would be the correct answer for a question about protecting a resource from deletion.

Why candidates pick the wrong answer

A

Candidates may confuse 'soft delete' with 'lifecycle management' because both involve time-based actions on blobs, but soft delete focuses on recovery, not cost optimization via tier changes.

C

Candidates might confuse 'private endpoint' with 'access tier' or think it controls data movement, but it is a networking feature unrelated to lifecycle management.

D

Candidates may confuse resource locks with lifecycle management, thinking a lock can control data movement or retention, or they may misapply the concept of 'locking' data to a specific tier.

434
MCQmedium

Based on the exhibit, the company will deploy two identical web server VMs in East US 2 behind a load balancer. The service must keep running if one datacenter in the region becomes unavailable. Which deployment choice best meets the requirement?

A.Place both VMs in an availability set so Azure can spread them across fault domains.
B.Place one VM in each of two availability zones and front them with the load balancer.
C.Place both VMs in one availability zone because all zones in a region share failure domains.
D.Deploy a single VM because Azure automatically replicates it across the region.
AnswerB

Availability zones place each VM in a separate datacenter boundary, which protects against one zone failure. If you distribute the web servers across zones, the load balancer can continue sending traffic to the remaining healthy instance when a zone becomes unavailable. This design matches the requirement to survive a datacenter outage within the region.

Why this answer

Deploying one VM in each of two availability zones within East US 2 ensures that the VMs are physically separated across distinct datacenters, each with independent power, cooling, and networking. If one datacenter (zone) fails, the other zone remains operational, and the load balancer automatically directs traffic to the healthy VM. This meets the requirement of keeping the service running if one datacenter in the region becomes unavailable.

Exam trap

The trap here is that candidates often confuse availability sets (which protect against rack-level failures within one datacenter) with availability zones (which protect against full datacenter outages), leading them to choose Option A as a sufficient solution.

Why the other options are wrong

A

An availability set protects against hardware failures within a single datacenter but does not provide resilience if an entire datacenter becomes unavailable, as it spans only fault domains within one datacenter.

C

Option C is wrong because placing both VMs in one availability zone does not protect against a datacenter failure within that zone; if the zone's datacenter fails, both VMs are affected. The requirement is to survive a single datacenter failure, which requires spreading across zones.

D

Azure does not automatically replicate a single VM across a region; a single VM is a single point of failure and cannot survive a datacenter outage.

When would these options actually be correct?

A

If the requirement were to protect against hardware failures (e.g., server rack or network switch failure) within a single datacenter, placing VMs in an availability set would be correct. For example, a question stating 'The VMs must remain available if a server rack fails' would make this option correct.

C

Option C would be correct if the requirement was to protect against a regional failure (e.g., entire region goes down) by using a single zone, but the question asks about a datacenter failure within a region. Alternatively, if the exam scenario stated that the load balancer can only distribute traffic within one zone, then placing both VMs in that zone would be necessary.

D

If the requirement were to minimize cost for a non-critical application that can tolerate downtime, and the question explicitly stated that automatic replication is not needed, deploying a single VM would be the simplest and cheapest option.

Why candidates pick the wrong answer

A

Candidates often confuse availability sets with availability zones, thinking that spreading across fault domains provides datacenter-level redundancy, not just rack-level.

C

Candidates may mistakenly think that all zones in a region share failure domains (as stated in the option) or that a single zone provides sufficient redundancy, not realizing that availability zones are isolated from each other and a zone can fail independently.

D

Candidates may confuse Azure's built-in high availability features (like availability zones or sets) with automatic replication, or mistakenly believe that Azure VMs are inherently regionally redundant.

435
MCQmedium

Based on the exhibit, which KQL query should you use in a scheduled query alert to trigger only when five or more failed events occur within any 15-minute window?

A.CustomAppLogs_CL | where TimeGenerated >= ago(15m) | where Status_s == 'Failed' | summarize FailedCount=count() by bin(TimeGenerated, 1h) | where FailedCount >= 5
B.CustomAppLogs_CL | where TimeGenerated >= ago(1h) | where Status_s == 'Failed' | summarize FailedCount=count() by bin(TimeGenerated, 15m) | where FailedCount >= 5
C.CustomAppLogs_CL | where TimeGenerated >= ago(1h) | summarize FailedCount=count() by bin(TimeGenerated, 15m) | where FailedCount >= 5
D.CustomAppLogs_CL | where TimeGenerated >= ago(1h) | where Status_s == 'Failed' | summarize FailedCount=count() by bin(TimeGenerated, 15m) | where FailedCount > 0
AnswerB

This query correctly scopes the evaluation to the last hour, applies a precise filter on Status_s to include only failed events, then aggregates the count into 15-minute bins using bin(TimeGenerated, 15m). The final where clause enforces the required threshold of five or more failures per bin, ensuring the alert fires only when the exact condition is satisfied.

Why this answer

It filters for 'Failed' events in the last hour, groups them into 15-minute bins using `bin(TimeGenerated, 15m)`, and then counts them. The `where FailedCount >= 5` condition triggers the alert only when five or more failed events occur within any single 15-minute window, matching the requirement exactly.

Exam trap

The trap here is that candidates often confuse the lookback period (`ago(1h)`) with the aggregation window (`bin(..., 15m)`), leading them to pick Option A with a 1-hour bin, which fails to meet the 'any 15-minute window' requirement.

Why the other options are wrong

A

The query uses a 1-hour bin size, so it counts failed events per hour, not per 15-minute window. This would not trigger correctly for five or more failures within any 15-minute period.

C

The query does not filter for 'Failed' events (missing `where Status_s == 'Failed'`), so it counts all events, not just failed ones, making the alert trigger incorrectly.

D

The query filters for `FailedCount > 0`, which includes any window with at least one failure, not specifically five or more. The alert would trigger on any failed event, not only when five or more occur.

When would these options actually be correct?

A

This query would be correct if the alert required five or more failed events within any 1-hour window, with the time range also set to 1 hour.

C

This query would be correct if the question asked to trigger an alert when five or more total events (regardless of status) occur within any 15-minute window, and the status field was irrelevant.

D

This query would be correct if the requirement was to trigger an alert whenever any failed event occurs within a 15-minute window (i.e., threshold of at least one failure).

Why candidates pick the wrong answer

A

Candidates may mistakenly think that using a larger bin size (1h) still captures the 15-minute requirement, or they overlook the bin size parameter and focus only on the count threshold.

C

Candidates may overlook the need to filter by status, assuming the count is already limited to failed events, or they might mistakenly think the query is equivalent to option B.

D

Candidates may mistakenly think that `FailedCount > 0` is equivalent to `FailedCount >= 5` because they focus on the aggregation and binning but overlook the specific threshold condition.

436
MCQmedium

An NSG attached to a subnet contains these inbound rules: Deny-All-Inbound at priority 200, Allow-HTTPS-Admin at priority 250 from 203.0.113.20/32, and Allow-HTTPS-Internet at priority 300. A VM in the subnet cannot receive HTTPS from the admin workstation even though the source IP is correct. What should the administrator change?

A.Change the protocol from TCP to Any on the allow rule.
B.Move the Allow-HTTPS-Admin rule to a priority number lower than 200.
C.Associate a NAT gateway with the subnet.
D.Enable service endpoint policies on the subnet.
AnswerB

NSG rules are processed in priority order, and the lowest number wins. Because Deny-All-Inbound is at priority 200, it is evaluated before the allow rule at 250 and blocks the traffic. Moving the allow rule to a smaller number than 200 lets the admin workstation's HTTPS traffic match the allow rule first.

Why this answer

The Deny-All-Inbound rule at priority 200 blocks all traffic, including HTTPS from the admin workstation, because NSG rules are evaluated in priority order (lowest number first). The Allow-HTTPS-Admin rule at priority 250 is never reached since the deny rule with a higher priority (lower number) matches first. To allow the admin traffic, the allow rule must have a priority lower than 200 (e.g., 150) so it is evaluated before the deny rule.

Exam trap

The trap here is that candidates assume a higher priority number means higher precedence, but in Azure NSGs, a lower numeric priority value (e.g., 200) is evaluated before a higher one (e.g., 250), so the deny rule blocks the traffic before the allow rule is checked.

Why the other options are wrong

A

The issue is that the Deny-All-Inbound rule at priority 200 blocks HTTPS traffic before the Allow-HTTPS-Admin rule at priority 250 is evaluated. Changing the protocol to Any does not affect the priority order; the deny rule still takes precedence.

C

A NAT gateway provides outbound internet connectivity for private subnets, but does not affect inbound traffic filtering by NSG rules. The issue is that the Deny-All-Inbound rule at priority 200 blocks HTTPS before the Allow-HTTPS-Admin rule at priority 250 is evaluated.

D

Service endpoint policies control access to Azure services (like Storage or SQL) from a subnet, not inbound HTTPS traffic to a VM. They do not affect NSG rule processing or priority, so they cannot resolve the issue where a higher-priority Deny-All rule blocks the admin's HTTPS.

When would these options actually be correct?

A

In a scenario where the allow rule is correctly prioritized but the protocol is set to TCP and the traffic uses a different protocol (e.g., UDP), changing the protocol to Any would ensure the rule matches all protocols.

C

In a scenario where a VM in a private subnet needs to initiate outbound HTTPS connections to the internet and the subnet has no other outbound connectivity, associating a NAT gateway would be correct to enable outbound traffic.

D

A question where a VM in a subnet cannot access an Azure Storage account, and the subnet has a service endpoint enabled for Microsoft.Storage. The correct answer would be to configure a service endpoint policy on the subnet to allow only specific storage accounts, restricting access to others.

Why candidates pick the wrong answer

A

Candidates may think that the protocol mismatch is the issue, overlooking that NSG rules are evaluated in priority order and a higher priority deny rule will block traffic regardless of protocol.

C

Candidates may confuse inbound connectivity issues with outbound connectivity solutions, or think that a NAT gateway can bypass NSG rules for inbound traffic.

D

Candidates may confuse service endpoint policies with general network security controls, thinking they can override NSG rules or manage traffic filtering for all protocols, including HTTPS to a VM.

437
Multi-Selecthard

Two virtual networks are in different subscriptions. VNet-A uses 10.20.0.0/16 and VNet-B uses 10.20.128.0/17. A design review also states that traffic between two spoke VNets should flow through a hub VNet instead of directly between spokes. Which two statements are correct? Select two.

Select 2 answers
A.The two VNets cannot be peered until one address space is changed because the ranges overlap.
B.VNet peering is transitive, so spoke-to-spoke traffic will automatically use the hub peering.
C.To reach another spoke through the hub, you need an explicit design such as gateway transit or routing controls.
D.Overlapping CIDR blocks are allowed if the VNets are placed in separate resource groups.
E.If the hub has a VPN gateway, spoke traffic to other spokes is routed automatically without additional configuration.
AnswersA, C

VNet peering in Azure mandates that connected virtual networks must have unique, non-overlapping IP address spaces. In this scenario, VNet-A (10.20.0.0/16) encompasses the entire address range of VNet-B (10.20.128.0/17). This direct overlap violates the fundamental peering requirement. Consequently, peering cannot be established between VNet-A and VNet-B until one of their address spaces is reconfigured to ensure complete separation.

Why this answer

VNet peering in Azure requires that the address spaces of the peered VNets do not overlap. VNet-A uses 10.20.0.0/16 and VNet-B uses 10.20.128.0/17, which are overlapping ranges (10.20.128.0/17 is a subset of 10.20.0.0/16). Azure will reject the peering request until one of the address spaces is changed to eliminate the overlap.

Exam trap

The trap here is that candidates often assume VNet peering is transitive (like in some other cloud providers) or that a VPN gateway automatically routes spoke-to-spoke traffic, but Azure requires explicit routing configuration for transitive traffic through a hub.

Why the other options are wrong

B

VNet peering is non-transitive; a peered connection between VNet-A and the hub, and between VNet-B and the hub, does not automatically enable direct traffic between VNet-A and VNet-B through the hub.

D

Overlapping CIDR blocks are not allowed for VNet peering even if VNets are in separate resource groups; peering requires non-overlapping address spaces.

E

In Azure, VNet peering is non-transitive; traffic from one spoke to another must be explicitly routed through a hub, typically using a network virtual appliance or gateway transit. A VPN gateway in the hub does not automatically route spoke-to-spoke traffic without additional configuration like user-defined routes.

When would these options actually be correct?

B

In a scenario where the hub VNet is configured as a network virtual appliance (NVA) with IP forwarding enabled, and user-defined routes (UDRs) are applied to the spoke subnets to force traffic through the NVA, then spoke-to-spoke traffic can flow through the hub.

D

If the question asked about using Azure Firewall or Network Virtual Appliances to filter traffic between VNets with overlapping IPs, then placing them in separate resource groups might be acceptable as they are not peered directly.

E

If the question described a hub VNet with a VPN gateway configured for BGP and the spokes were connected via gateway transit (enabled on the peering), then traffic between spokes could be routed automatically through the hub without additional UDRs.

Why candidates pick the wrong answer

B

Candidates often confuse the transitive nature of on-premises routing with Azure VNet peering, which is non-transitive by default, leading them to assume that hub-and-spoke peering automatically enables spoke-to-spoke communication.

D

Candidates may think resource group isolation allows overlapping IPs, but Azure enforces address space uniqueness for peering regardless of resource group or subscription.

E

Candidates may assume that a VPN gateway in the hub acts as a central router that automatically forwards traffic between connected spokes, similar to a traditional hub-and-spoke topology in on-premises networks.

438
MCQeasy

A production workload must continue running if one entire Azure datacenter in the region becomes unavailable. The region supports availability zones, and you want the strongest placement option for a single VM. What should you choose?

A.Availability zone
B.Availability set
C.Proximity placement group
D.Managed disk snapshot
AnswerA

An availability zone is a physically separate datacenter within an Azure region, with its own power, cooling, and network connectivity. By deploying the VM to a zone, you isolate it from a full datacenter failure elsewhere in the region, so the workload can continue running when another zone's datacenter goes down. To actually keep the VM available you would also need a second VM cross-zone and a load balancer, but the zone placement itself is the foundational resiliency choice.

Why this answer

An availability zone protects against an entire datacenter failure by placing the VM in a physically separate zone within the region, each with independent power, cooling, and networking. This is the strongest placement option for a single VM because it guarantees isolation from other zones, ensuring the workload continues if one datacenter fails. Availability sets only protect against rack-level failures within the same datacenter, not a full datacenter outage.

Exam trap

The trap here is that candidates often confuse availability sets (which protect against rack failures) with availability zones (which protect against datacenter failures), leading them to choose the cheaper or more familiar option without recognizing the requirement for full datacenter resilience.

Why the other options are wrong

B

An availability set protects against failures within a datacenter (e.g., rack or hardware failure) but does not protect against an entire datacenter outage, as all VMs in an availability set are in the same datacenter.

C

A proximity placement group reduces network latency between VMs but does not protect against an entire datacenter failure; it can even place VMs in the same datacenter, increasing risk.

D

Managed disk snapshots are point-in-time backups of disks, not a placement or high-availability option. They do not provide continuous availability if a datacenter fails; they only enable recovery from a backup.

When would these options actually be correct?

B

If the question required high availability for multiple VMs within a single datacenter (e.g., a multi-tier application) and asked for the best placement to avoid single points of failure like rack or update domain failures, an availability set would be correct.

C

When the question requires minimizing network latency between multiple VMs in a high-performance computing or tightly coupled workload, and availability is not the primary concern.

D

A question asks: 'You need to create a backup of a managed disk that can be used to create a new VM in a different region. Which option should you use?' In that scenario, a managed disk snapshot is correct.

Why candidates pick the wrong answer

B

Candidates may confuse availability sets with availability zones, thinking both provide datacenter-level redundancy, or they may recall that availability sets offer high availability for VMs without knowing the scope limitation.

C

Candidates may confuse 'placement' with 'availability' and think that grouping VMs together provides redundancy, not realizing it can actually increase co-location risk.

D

Candidates may confuse snapshots with disaster recovery or think that having a snapshot ensures availability, not realizing that snapshots require manual restoration and do not provide automatic failover.

439
MCQeasy

You want to send a storage account's read, write, and delete events to a Log Analytics workspace for later investigation. Which feature should you configure?

A.Diagnostic settings for the storage account
B.An action group
C.A metric alert rule
D.A Recovery Services vault
AnswerA

Diagnostic settings for a storage account are the Azure configuration that exports data-plane logs—including individual read, write, and delete operations—to a Log Analytics workspace, Event Hub, or archival storage. These settings define which log categories to stream (for example, StorageRead, StorageWrite, StorageDelete) and let you build audit queries against the collected events. Unlike monitoring signals, this is the actual mechanism that continuously delivers the operational event stream for analysis.

Why this answer

Diagnostic settings on a storage account allow you to stream resource logs, including read, write, and delete operations (stored in the StorageRead, StorageWrite, and StorageDelete log categories), to a Log Analytics workspace. This is the correct feature for capturing and analyzing these events for later investigation.

Exam trap

The trap here is that candidates often confuse diagnostic settings (which stream logs) with metric alerts (which monitor numeric thresholds) or action groups (which define notification actions), leading them to pick an option that handles alerts rather than log collection.

Why the other options are wrong

B

An action group defines who gets notified (e.g., email, SMS) when an alert fires, but it does not collect or send storage account events to a Log Analytics workspace.

C

Metric alert rules monitor performance metrics (e.g., latency, availability) and trigger actions based on thresholds, but they do not capture or forward read, write, and delete events to Log Analytics.

D

A Recovery Services vault is used for backup and disaster recovery (e.g., Azure Backup, Site Recovery), not for routing storage account events to a Log Analytics workspace.

When would these options actually be correct?

B

You need to configure email/SMS/push notifications for administrators when a specific metric threshold is breached (e.g., when storage account latency exceeds 5 seconds).

C

You need to be notified when the number of storage account transactions exceeds a certain threshold (e.g., 1000 transactions per minute) to detect potential throttling or unusual activity.

D

When the question asks how to protect Azure VMs or files by enabling backup, or how to replicate on-premises workloads to Azure for disaster recovery, configuring a Recovery Services vault is the correct answer.

Why candidates pick the wrong answer

B

Candidates may confuse 'action group' with 'diagnostic settings' because both involve sending data, but action groups are for alert notifications, not log collection.

C

Candidates may confuse 'events' (activity logs/resource logs) with 'metrics' (performance counters) and assume alerts can forward data, not just trigger notifications.

D

Candidates may confuse 'recovery' with 'logging' or think the vault can store event data, not realizing its purpose is backup and recovery, not telemetry collection.

440
MCQeasy

Based on the exhibit, what inbound NSG rule should the administrator add to allow only the web tier to reach the app tier on TCP 8080?

A.Source: WebASG, Destination: AppASG, Protocol: TCP, Port: 8080, Priority: 250
B.Source: Internet, Destination: VirtualNetwork, Protocol: TCP, Port: 8080, Priority: 250
C.Source: AppASG, Destination: WebASG, Protocol: TCP, Port: 8080, Priority: 250
D.Source: WebASG, Destination: AppASG, Protocol: TCP, Port: 8080, Priority: 350
AnswerA

This rule uses application security groups to target the web tier and app tier precisely. Priority 250 is evaluated before the deny rule at 300, so the allowed web-to-app traffic can pass while everything else remains blocked.

Why this answer

The inbound NSG rule must allow traffic from the web tier (source: WebASG) to the app tier (destination: AppASG) on TCP port 8080. A priority of 250 is lower than the default rules (65000+) and ensures this rule is evaluated before any higher-numbered deny rules, while being high enough to leave room for more specific rules if needed.

Exam trap

The trap here is that candidates often confuse the source and destination in NSG rules, mistakenly thinking the rule should allow the app tier to receive traffic from the web tier by setting the source to AppASG and destination to WebASG, which is the reverse of the required direction.

Why the other options are wrong

B

This rule allows inbound traffic from the Internet to any virtual network resource on TCP 8080, which is overly permissive and does not restrict access to only the web tier reaching the app tier.

C

The rule specifies Source: AppASG and Destination: WebASG, which is the reverse direction (app to web) instead of allowing web tier to reach app tier on TCP 8080.

D

Priority 350 is higher than the default deny rule (65000) but lower than the required priority to override any existing rules; however, the question does not specify a need for a specific priority, so priority 250 is acceptable. The real issue is that option D is identical to the correct answer A, so it is not wrong; the question likely expects priority 250 as the correct one, but D is also correct. Actually, the question states correct answer is A, so D is wrong because it has a higher priority number (350) which means lower priority, potentially being overridden by other rules with lower numbers.

When would these options actually be correct?

B

This option would be correct if the question asked for a rule to allow inbound HTTP traffic from the Internet to a web server (e.g., on port 80) within a virtual network, with no requirement to restrict to specific application security groups.

C

If the question asked for an inbound rule to allow the app tier to initiate traffic to the web tier on TCP 8080, this option would be correct.

D

In a scenario where an existing NSG rule with priority 300 already allows traffic from WebASG to AppASG on TCP 8080, and the administrator needs to add a rule that will be evaluated after that rule (e.g., to deny traffic from a specific subnet within WebASG), a higher priority number like 350 would be correct to ensure the new rule is processed later.

Why candidates pick the wrong answer

B

Candidates may mistakenly think that allowing traffic from the Internet is necessary for web tier access, or they overlook the requirement to limit the source to the web tier specifically.

C

Candidates may confuse source and destination when thinking about inbound rules, mistakenly assuming the destination is the source of traffic.

D

Candidates may confuse priority numbering, thinking a higher number means higher priority, or they might assume that any priority works as long as the source/destination are correct, overlooking the importance of rule precedence.

441
MCQmedium

A legal department archived a 120-GB blob three weeks ago. They now need the file available for review later today, and waiting more than a day would delay a court filing. What should the administrator do to make the blob readable as quickly as possible?

A.Copy the blob to a new container and leave it in the Archive tier until the users need it.
B.Start rehydration from Archive and choose High priority.
C.Change the access tier from Archive directly to Cool and then download the blob immediately.
D.Enable soft delete on the container and restore the blob from deleted items.
AnswerB

Archive blobs cannot be read immediately. To make the blob available within the shortest practical time, the administrator should rehydrate it and select High priority so Azure processes the request faster than the standard option.

Why this answer

Rehydrating a blob from the Archive tier with High priority typically makes the blob readable within 1 hour, meeting the urgent same-day requirement. The Archive tier is offline, so the blob must be rehydrated (changed to an online tier like Hot or Cool) before it can be accessed. High-priority rehydration is designed for time-sensitive scenarios like this court filing deadline.

Exam trap

The trap here is that candidates may think changing the access tier directly (Option C) is instantaneous, but Azure requires a rehydration process that can take up to 15 hours for standard priority, making High-priority rehydration (Option B) the only viable choice for same-day access.

Why the other options are wrong

A

Copying the blob to a new container and leaving it in the Archive tier does not make it readable immediately; the blob remains offline and requires rehydration before access, which does not meet the urgent need for same-day availability.

C

Changing the access tier from Archive directly to Cool does not immediately make the blob readable; it initiates a standard-priority rehydration that can take up to 15 hours, which is too slow for the same-day requirement.

When would these options actually be correct?

A

If the question stated that the blob must be preserved in the Archive tier for cost savings and immediate access is not required (e.g., 'users need it in a week'), then copying to a new container in Archive tier would be correct to maintain the original blob's tier while providing a copy for future rehydration.

C

If the question stated that the blob had been archived for more than 30 days and the user could wait up to 15 hours for the data to be available, then changing the tier to Cool (or Hot) with standard priority would be appropriate.

Why candidates pick the wrong answer

A

Candidates may think that copying the blob to a new container somehow bypasses the rehydration process, or they may confuse the Archive tier's offline status with the ability to access it immediately after copying.

C

Candidates may mistakenly believe that changing the tier instantly moves the data, not realizing that rehydration from Archive is a background process that takes time, and they overlook the need for high-priority rehydration for urgent access.

442
MCQmedium

An administrator added a user to an Entra security group that already has Contributor on a resource group. The role assignment is correct, but the user still gets 'You do not have access' in the Azure portal 5 minutes later. What is the most likely next step?

A.Change the role assignment from the group to the subscription.
B.Have the user sign out and sign back in to refresh the access token.
C.Delete and recreate the resource group.
D.Assign Owner directly to the user.
AnswerB

When a user is added to a group that holds a role assignment, the existing access token does not include the new group claim. Entra ID tokens are cached for their lifetime (typically 60-90 minutes), and during that window the Azure portal cannot see the updated membership. Signing out clears the cached token and session state; signing back in forces a fresh token issuance that includes the updated group claims, so RBAC evaluation recognizes the user's new permissions immediately. This is the direct, least-privilege fix.

Why this answer

When a user is added to a security group that already has a role assignment, the new permissions take effect immediately in Azure RBAC, but the user's existing access token (which is cached by the Azure portal) does not include the new group membership claims. The token must be refreshed by signing out and signing back in, or by closing and reopening the browser, to force a new token acquisition that includes the updated role assignments.

Exam trap

The trap here is that candidates assume Azure RBAC changes are instantaneous and overlook the client-side token caching mechanism, leading them to incorrectly modify the role assignment or scope instead of simply refreshing the user's session.

Why the other options are wrong

A

The user already has Contributor permissions via group membership on the resource group; changing the scope to subscription would grant broader access but does not address the token refresh issue causing the 'access denied' message.

C

Deleting and recreating the resource group would remove all resources and is an extreme, unnecessary action. The issue is a stale access token, not a problem with the resource group itself.

D

Assigning Owner directly to the user bypasses group-based management and violates the principle of least privilege, but more importantly, it does not address the root cause: the user's access token has not yet been refreshed to include the new group membership.

When would these options actually be correct?

A

If the question stated that the user needs to manage resources across multiple resource groups in the same subscription, and the current role is only assigned at the resource group level, then assigning Contributor at the subscription scope would be correct.

C

This would be correct if the resource group was corrupted or misconfigured in a way that prevents role assignments from taking effect, and all other troubleshooting steps (like token refresh) have failed. For example, in a scenario where the resource group's metadata is damaged and cannot be repaired.

D

In a scenario where a user requires full control over all resources in a subscription, including role assignments, and group-based assignment is not feasible (e.g., the user is an external contractor needing immediate elevated access), assigning Owner directly to the user would be the correct solution.

Why candidates pick the wrong answer

A

Candidates may think that escalating the role scope (from resource group to subscription) is a quick fix for permission issues, without understanding that the problem is a stale access token, not insufficient permissions.

C

Candidates might think that recreating the resource group will force a fresh evaluation of permissions, or they may assume the group itself is the cause of the access issue, rather than recognizing the token refresh problem.

D

Candidates may think that assigning a higher privilege role like Owner will override any permission issues, or they may assume the Contributor role is insufficient and that Owner is needed to resolve the access problem.

443
MCQmedium

Based on the exhibit, which Azure feature should the administrator use to install software and run the bootstrap script during VM provisioning?

A.Azure VM Custom Script Extension
B.A network security group rule allowing RDP from the Internet
C.An availability set with two fault domains
D.A managed disk snapshot restored as the operating system disk
AnswerA

The Custom Script Extension is designed to run scripts after deployment and is commonly used for first-boot configuration. It can download files, execute installation commands, and automate bootstrap tasks without requiring manual sign-in. This matches the requirement to install IIS, copy application files, and run bootstrap.ps1 as part of provisioning.

Why this answer

The Azure VM Custom Script Extension (CSE) is the correct feature because it allows the administrator to execute scripts (such as installing software or running a bootstrap script) during VM provisioning or after the VM is running. The extension downloads the script from Azure Storage or a public URL and executes it using the local system account, making it ideal for post-deployment configuration tasks.

Exam trap

The trap here is that candidates often confuse network security group rules (which control traffic) or availability sets (which provide redundancy) with the ability to run scripts, but only the Custom Script Extension can execute code during VM provisioning.

Why the other options are wrong

B

A network security group rule allowing RDP from the Internet only controls inbound traffic to the VM, but does not install software or run scripts during provisioning.

C

An availability set with two fault domains is used to ensure high availability by protecting against hardware failures within a datacenter, not for installing software or running scripts during VM provisioning.

D

Restoring a managed disk snapshot as the OS disk provisions a VM from a pre-configured image, but it does not execute a bootstrap script or install software during provisioning; it only replicates the state at snapshot time.

When would these options actually be correct?

B

This option would be correct for a question asking which Azure feature allows remote desktop connectivity to a VM from the internet after deployment.

C

This option would be correct if the question asked: 'Which Azure feature should be used to ensure that at least one VM remains available during planned maintenance or hardware failure?'

D

A question asking how to quickly deploy multiple VMs with identical pre-installed software and configurations, where the software installation is already completed before snapshot creation, would make this option correct.

Why candidates pick the wrong answer

B

Candidates may confuse network access with the ability to perform post-deployment configuration, thinking that allowing RDP enables script execution.

C

Candidates may confuse availability sets with deployment automation, thinking that distributing VMs across fault domains also handles software installation tasks.

D

Candidates may confuse snapshot restoration with a deployment method that includes post-deployment scripting, assuming the snapshot captures the installation process itself rather than just the resulting state.

444
MCQmedium

A company wants to stop users from deploying resources in any region except East US and West US. Users still need to be able to create resources if they choose an approved region. Which Azure feature should the administrator use?

A.Azure RBAC with a Contributor role at the subscription scope.
B.Azure Policy with a deny effect assigned at the appropriate scope.
C.A resource lock at the subscription level.
D.A tag requirement in Azure RBAC.
AnswerB

Azure Policy is designed for compliance and enforcement. A policy that checks the location property and uses a deny effect can block deployments outside the approved regions while still allowing valid deployments in East US or West US. This meets the requirement without changing the users' general ability to create resources.

Why this answer

Azure Policy with a deny effect can enforce that resource deployments are only allowed in specified regions (East US and West US) by evaluating the location property of the resource against a policy definition. When a user attempts to deploy a resource in a non-approved region, the policy engine rejects the request before any resource creation begins, ensuring compliance without blocking approved regions.

Exam trap

The trap here is confusing Azure Policy (which can enforce location restrictions with a deny effect) with Azure RBAC (which controls permissions but not resource properties) or resource locks (which protect against deletion/modification, not creation).

Why the other options are wrong

A

Azure RBAC with a Contributor role grants broad permissions to create and manage resources but does not restrict which regions can be used. It allows resource creation in any region, not just East US and West US.

C

A resource lock at the subscription level prevents deletion or modification of all resources, but does not restrict resource creation to specific regions; it blocks all changes indiscriminately.

D

Tag requirements in Azure RBAC cannot restrict resource deployment by region; they only enforce tagging on resources, not control which regions are allowed.

When would these options actually be correct?

A

An administrator needs to grant a user full management access to all resources in a subscription, but not allow them to change access permissions for others. Assigning the Contributor role at the subscription scope would be correct.

C

An administrator needs to prevent accidental deletion of critical resources in a subscription, such as a production database, while still allowing updates. A resource lock (e.g., CanNotDelete) at the resource group or resource level would be the correct solution.

D

An administrator needs to ensure that all resources in a subscription have a specific tag (e.g., 'CostCenter') applied automatically during creation. Azure Policy with a 'deny' effect for missing tags would enforce this, but if the requirement is to use RBAC, a custom role with a condition requiring the tag could be used, though Policy is more common.

Why candidates pick the wrong answer

A

Candidates may think that assigning a role like Contributor can be used to control resource locations, confusing authorization (who can act) with enforcement (what actions are allowed).

C

Candidates may confuse resource locks with policy-based restrictions, thinking that a lock can block resource creation in disallowed regions, but locks only protect existing resources from deletion or modification.

D

Candidates may confuse tag enforcement with regional restrictions, thinking that requiring a tag like 'Region' could control where resources are deployed, but tags do not prevent deployment in disallowed regions.

445
MCQmedium

Two VNets are peered successfully, and a VM in the spoke can reach a private endpoint in the hub by IP address. However, the VM cannot resolve the storage account name to the private endpoint FQDN. The private DNS zone is linked only to the hub VNet. What should the administrator do?

A.Add a route table to the spoke subnet pointing to the private endpoint IP.
B.Link the private DNS zone to the spoke VNet as well.
C.Enable gateway transit on the peering connection.
D.Create an NSG rule to allow DNS traffic to the storage account.
AnswerB

Private DNS zones must be linked to every VNet that needs to resolve the private endpoint name through Azure-provided DNS behavior. Since the spoke VNet is not linked to the zone, its VM does not receive the private endpoint record and cannot resolve the storage account FQDN correctly. Linking the zone to the spoke VNet allows name resolution to return the private IP.

Why this answer

The VM can reach the private endpoint by IP, confirming that network connectivity (peering and routing) is working. However, name resolution fails because the private DNS zone, which contains the private endpoint FQDN mapping, is linked only to the hub VNet. By linking the private DNS zone to the spoke VNet (option B), the spoke VMs will use Azure-provided DNS to resolve the storage account name to the private IP, enabling seamless name resolution across the peered VNets.

Exam trap

The trap here is that candidates often assume that VNet peering automatically extends DNS resolution for private endpoints, but in reality, each VNet must be explicitly linked to the private DNS zone for name resolution to work across the peering.

Why the other options are wrong

A

The issue is DNS resolution, not routing. The VM can already reach the private endpoint by IP, so adding a route table does not help resolve the storage account name to the private endpoint FQDN.

C

Gateway transit is used to allow a peered VNet to use the hub's VPN/ExpressRoute gateway for connectivity to on-premises networks, not for DNS resolution of private endpoints. The issue here is DNS resolution, not routing or gateway access.

D

The issue is DNS resolution, not network traffic. The VM can already reach the private endpoint by IP, so NSG rules for DNS traffic are irrelevant because DNS queries are sent to the Azure-provided DNS (168.63.129.16) or a custom DNS server, not to the storage account's IP.

When would these options actually be correct?

A

A route table would be correct if the VM could not reach the private endpoint by IP due to asymmetric routing or missing routes, such as when the private endpoint is in a different VNet without proper peering or when using forced tunneling.

C

An administrator needs to enable connectivity from a spoke VNet to on-premises resources via the hub's VPN gateway. The hub has a VPN gateway configured, and the spoke VNet must use it to reach on-premises networks. Enabling 'Use remote gateways' on the spoke peering and 'Allow gateway transit' on the hub peering would be the correct solution.

D

This option would be correct in a scenario where a VM cannot connect to a storage account via private endpoint because the NSG on the subnet is blocking outbound traffic to the private endpoint IP address on the required port (e.g., 443 for HTTPS). Adding an NSG rule to allow that traffic would resolve the connectivity issue.

Why candidates pick the wrong answer

A

Candidates may confuse network connectivity issues with DNS resolution, assuming that if the VM cannot resolve the name, a route is needed to direct traffic to the private endpoint.

C

Candidates may confuse the need for routing traffic to the private endpoint with the need for DNS resolution, or mistakenly think that enabling gateway transit will also forward DNS queries to the hub's DNS servers.

D

Candidates may think that DNS resolution failure is due to traffic being blocked by NSGs, confusing network connectivity issues with DNS resolution issues. They might assume that allowing DNS traffic to the storage account's IP would enable name resolution.

446
MCQmedium

A VM in a spoke subnet must send all traffic destined for 172.16.0.0/12 to a firewall appliance at 10.1.1.4. All other destinations should continue to use Azure system routes. Which user-defined route should the administrator add to the subnet route table?

A.Destination 0.0.0.0/0 with next hop Internet.
B.Destination 172.16.0.0/12 with next hop Virtual appliance and next hop address 10.1.1.4.
C.Destination 172.16.0.0/12 with next hop Virtual network gateway.
D.Destination 172.16.0.0/12 with next hop None.
AnswerB

A UDR should match the exact destination prefix that must be redirected. By adding 172.16.0.0/12 with next hop type Virtual appliance and the firewall private IP, Azure sends only that traffic to the appliance. All other traffic continues to follow the built-in system routes.

Why this answer

A user-defined route (UDR) with destination 172.16.0.0/12 and next hop type 'Virtual appliance' (with IP 10.1.1.4) overrides the default Azure system route for that prefix, forcing all traffic to the 172.16.0.0/12 range through the firewall at 10.1.1.4. This satisfies the requirement while leaving all other destinations (including 0.0.0.0/0) to be handled by Azure's default system routes.

Exam trap

The trap here is that candidates often confuse the 'Virtual appliance' next hop with 'Virtual network gateway' or assume a default route (0.0.0.0/0) is needed, but the requirement specifically limits the forced tunneling to only the 172.16.0.0/12 range, not all traffic.

Why the other options are wrong

A

The question requires traffic to 172.16.0.0/12 to be sent to a firewall, not all traffic. A 0.0.0.0/0 route would send all internet-bound traffic to the firewall, which is not the requirement and would break internet connectivity.

C

The next hop must be a virtual appliance (firewall) at 10.1.1.4, not a virtual network gateway. A virtual network gateway is used for VPN or ExpressRoute connections, not for routing to a firewall.

D

Setting next hop to 'None' drops traffic to 172.16.0.0/12 instead of forwarding it to the firewall at 10.1.1.4, which violates the requirement that all traffic to that range must go through the firewall.

When would these options actually be correct?

A

If the requirement were to force all outbound internet traffic from the subnet through a firewall for inspection, a route with destination 0.0.0.0/0 and next hop Virtual appliance (with the firewall's IP) would be correct.

C

If the question required sending traffic to 172.16.0.0/12 through a VPN or ExpressRoute connection (e.g., on-premises network), then the next hop would be Virtual network gateway.

D

This option would be correct if the requirement was to block all traffic to 172.16.0.0/12 (e.g., for security or compliance reasons) by dropping it at the subnet level, effectively creating a blackhole route.

Why candidates pick the wrong answer

A

Candidates may mistakenly think that a default route is needed to override system routes for the specific destination, or they confuse the need to route all traffic through the firewall with the specific requirement for only 172.16.0.0/12.

C

Candidates may confuse a virtual appliance firewall with a virtual network gateway, or think that any network virtual appliance is a gateway.

D

Candidates might think 'None' means no explicit next hop, so the system route would apply, but in Azure UDR, 'None' explicitly drops traffic, not falls back to system routes.

447
MCQmedium

A policy at the management group denies storage accounts that allow public network access. One legacy storage account in RG-Legacy must stay public for 30 days while a migration runs, and the team does not want to change the policy for everyone else. What should the administrator create?

A.A resource lock on the storage account
B.A policy exemption for that storage account
C.A second policy assignment with higher priority
D.A custom RBAC role for the migration team
AnswerB

A policy exemption is designed for temporary or justified exceptions to an assignment without weakening the control for all other resources. It lets the legacy storage account remain out of compliance for the approved period while the deny policy continues to apply everywhere else under the management group.

Why this answer

A policy exemption allows specific resources to be excluded from the effect of a policy initiative without modifying the original policy definition. In this scenario, the management group policy denies storage accounts with public network access, but the legacy account needs to remain public temporarily. By creating a policy exemption (with 'exempt' category) for that specific storage account, the administrator can bypass the deny effect for 30 days while the policy continues to apply to all other resources.

Exam trap

The trap here is that candidates confuse policy exemptions with resource locks or RBAC, thinking that locking the resource or assigning permissions can bypass policy enforcement, but only a policy exemption can create a targeted exception without altering the policy definition.

Why the other options are wrong

A

A resource lock prevents deletion or modification of the storage account, but it does not override the policy that denies public network access. The lock cannot exempt the account from the policy effect.

C

Policy assignments with higher priority do not override existing policy definitions; Azure Policy uses 'deny' effects that cannot be bypassed by priority. A second assignment would still enforce the deny effect on the storage account.

D

A custom RBAC role controls permissions for users, not policy enforcement. It cannot override a deny policy at the management group scope, so it would not allow the storage account to remain public.

When would these options actually be correct?

A

A resource lock would be correct if the question asked for a mechanism to prevent accidental deletion or modification of a critical resource, such as a storage account that must remain unchanged during a migration.

C

If the question involved multiple policy assignments with conflicting effects (e.g., one allows, one denies) and the administrator needed to ensure a specific assignment takes precedence, then creating a second assignment with a higher priority would be correct.

D

If the question asked for a way to grant the migration team specific permissions to manage storage accounts without giving them full contributor access, a custom RBAC role would be correct.

Why candidates pick the wrong answer

A

Candidates may confuse resource locks with policy exemptions, thinking that locking the resource can protect it from policy enforcement, but locks only affect management operations, not policy evaluation.

C

Candidates may think that policy assignments have a priority order similar to RBAC roles, where a higher-priority assignment can override a lower one, but Azure Policy does not support this for deny effects.

D

Candidates may confuse RBAC roles with policy exemptions, thinking that assigning a custom role to the migration team could bypass the policy, but RBAC does not affect Azure Policy evaluation.

448
MCQhard

Your company has two Azure subscriptions named Dev-Sub and Prod-Sub. You need to ensure that a user can create resource groups only in Dev-Sub and nowhere else. What should you do?

A.Assign the Contributor role at the Dev-Sub subscription scope.
B.Assign the Owner role at the tenant root scope.
C.Assign the Reader role at the Dev-Sub subscription scope.
D.Assign the Contributor role at the management group scope that contains both subscriptions.
AnswerA

Assigning Contributor at the Dev-Sub subscription scope grants the user full management rights over all resources and resource groups inside that subscription, including permission to create new resource groups via Microsoft.Resources/subscriptions/resourceGroups/write. Because the scope is limited to Dev-Sub, this role assignment does not extend to Prod-Sub, and unlike Owner, Contributor cannot modify role assignments. This is the correct least-privilege choice for the stated requirement.

Why this answer

The Contributor role allows a user to create and manage resources, including resource groups, within the assigned scope. By assigning this role at the Dev-Sub subscription scope, the user gains the necessary permissions to create resource groups only in that subscription, as Azure RBAC permissions are inherited downward but not across sibling scopes. This ensures the user cannot create resource groups in Prod-Sub or any other subscription.

Exam trap

The trap here is that candidates often confuse the Contributor role with the Reader role, or incorrectly assume that assigning a role at a management group scope can be used to limit permissions to a single subscription, not realizing that management group scope inheritance applies to all child subscriptions.

Why the other options are wrong

B

Assigning the Owner role at the tenant root scope grants full administrative access to the entire Azure AD tenant, including all subscriptions, which would allow the user to create resource groups in both Dev-Sub and Prod-Sub, not just Dev-Sub.

C

The Reader role only allows read access, not the ability to create resource groups. The user needs write permissions to create resource groups.

D

Assigning Contributor at the management group scope that contains both subscriptions would grant the user Contributor permissions on both Dev-Sub and Prod-Sub, allowing resource group creation in both, which violates the requirement to restrict creation to Dev-Sub only.

When would these options actually be correct?

B

This option would be correct if the requirement was to grant a user full administrative control over the entire Azure AD tenant, including all subscriptions and management groups, such as for a global administrator who needs to manage all resources across the organization.

C

If the question required a user to view resource groups and their properties in Dev-Sub without making any changes, assigning the Reader role at the Dev-Sub subscription scope would be correct.

D

If the requirement were to grant a user the ability to create resource groups in all subscriptions under a management group (e.g., for a centralized DevOps team managing multiple subscriptions), assigning Contributor at the management group scope would be correct.

Why candidates pick the wrong answer

B

Candidates may think that assigning a high-level role like Owner at the tenant scope is a way to grant broad permissions, but they overlook that it grants access to all subscriptions, not just the intended one.

C

Candidates may confuse the Reader role with the Contributor role, thinking that 'Reader' might still allow creation of resource groups, or they may not fully understand the specific permissions granted by each role.

D

Candidates may think that using a management group is a more efficient way to manage permissions across multiple subscriptions, but they overlook that it would grant access to all child subscriptions, not just Dev-Sub.

449
MCQeasy

Based on the exhibit, which image source should the administrator use to deploy the same approved server build again?

A.A public marketplace Windows Server image.
B.A custom image stored in Azure Compute Gallery.
C.A snapshot of the VM operating system disk.
D.A temporary disk attached to the VM.
AnswerB

A custom image in Azure Compute Gallery is intended for repeatable deployment of a standardized, generalized VM build. It preserves the patched operating system, installed agent, and line-of-business software so future VMs can be created from the same baseline across environments and subscriptions.

Why this answer

A custom image stored in Azure Compute Gallery (formerly Shared Image Gallery) is the correct choice because it allows the administrator to capture a generalized VM image that includes the exact OS configuration, applications, and settings of the approved server build. This image can then be used repeatedly to deploy identical VMs, ensuring consistency across deployments. Azure Compute Gallery supports versioning and replication across regions, making it the ideal solution for maintaining and distributing a standardized server build.

Exam trap

The trap here is that candidates often confuse a snapshot with a custom image, not realizing that a snapshot is not generalized and cannot be used to deploy multiple identical VMs without manual Sysprep and conversion to a managed image.

How to eliminate wrong answers

Option A is wrong because a public marketplace Windows Server image is a generic, unconfigured base image that does not include the specific applications, patches, or customizations of the approved server build, so it cannot replicate the same build. Option C is wrong because a snapshot of the VM operating system disk captures the disk state at a point in time but is not generalized (it retains the original computer name, SID, and user accounts), and deploying from a snapshot would create a VM with the same identity, leading to conflicts and not a clean, reusable image. Option D is wrong because a temporary disk attached to the VM is a local, ephemeral disk used for temporary storage (e.g., page files) and is not persisted; it cannot be used to deploy a new VM, let alone replicate a server build.

450
Multi-Selecthard

A web app uses a managed identity to read blobs from a storage account. Security now wants to ensure no future requests can authenticate with shared keys and the app should continue to use secretless access. Which two changes should the administrator make? Select two.

Select 2 answers
A.Assign the Storage Blob Data Reader role to the managed identity on the storage account or container.
B.Disable shared key access on the storage account.
C.Generate a service SAS and place it in an app setting.
D.Rotate the storage account keys weekly.
E.Grant Reader access to the resource group because it includes the storage account.
AnswersA, B

The Storage Blob Data Reader role is a data-plane RBAC role that specifically authorizes read operations against blob containers and blobs. Assigning it to a managed identity at the storage account or container scope grants access based on the identity's Entra ID token, eliminating any need for shared keys or connection strings. This is the fundamental mechanism for secretless, identity-based access, and it works with both system-assigned and user-assigned managed identities.

Why this answer

Assigning the Storage Blob Data Reader role to the managed identity enables Azure RBAC-based, secretless access to blobs. This aligns with the requirement to use managed identities for authentication, eliminating the need for keys or SAS tokens. Option B is correct because disabling shared key access on the storage account enforces the security policy that no future requests can authenticate using shared keys, while the managed identity continues to work via Azure AD authentication.

Exam trap

The trap here is that candidates often confuse disabling shared key access with rotating keys or using SAS tokens, thinking those actions also enforce secretless access, but only disabling shared key access actually blocks key-based authentication while managed identity continues to work seamlessly.

Why the other options are wrong

C

A service SAS uses a shared key to generate the token, which violates the requirement to disable shared key access. The app must use secretless access via managed identity, not a SAS.

D

Rotating storage account keys does not disable shared key access; it only changes the keys. The requirement is to prevent future requests from authenticating with shared keys, which requires disabling shared key access entirely, not just rotating keys.

E

Granting Reader access to the resource group does not grant the managed identity permissions to read blobs; it only allows viewing resource metadata, not data access. The app needs the Storage Blob Data Reader role on the storage account or container.

When would these options actually be correct?

C

If the question required granting temporary, scoped access to a specific blob or container for an external client without using managed identity, and shared key access was still allowed, generating a service SAS would be correct.

D

In a scenario where a security policy mandates periodic rotation of storage account keys to limit exposure of compromised keys, and the question asks for a step to comply with key rotation requirements while maintaining existing authentication methods.

E

If the question asked which role allows a user to view storage account properties and settings but not access blob data, then Reader on the resource group would be correct. For example, an auditor needs to see storage account configuration without reading blobs.

Why candidates pick the wrong answer

C

Candidates may think a SAS is a secure, time-limited token that avoids hardcoding keys, but they overlook that SAS generation still relies on shared keys, which the question explicitly forbids.

D

Candidates may think key rotation is a security best practice that addresses the requirement to prevent shared key access, confusing key rotation with disabling shared key access.

E

Candidates may confuse the Reader role with data access roles, thinking that any reader permission on the storage account or its resource group grants blob read access, but Azure RBAC separates control plane (Reader) from data plane (Storage Blob Data Reader).

Page 5

Page 6 of 14

Page 7