Courseiva

AZ-104 (AZ-104) — Questions 175

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

Page 1 of 14

Page 2
1
MCQmedium

Two legacy application VMs must survive planned maintenance and a single host failure. The vendor requires both VMs to stay in the same region, and a datacenter outage is not part of the requirement. What should the administrator use?

A.An availability set that places the VMs in separate fault and update domains.
B.Availability zones with one VM in each zone.
C.A virtual machine scale set in a single zone.
D.A proximity placement group for both VMs.
AnswerA

Availability sets are designed for host-level resilience inside one datacenter. They spread VMs across fault domains and update domains, which helps reduce impact from hardware failures and planned maintenance. Because the requirement does not include surviving a full datacenter outage, an availability set is the right level of protection without the added complexity of zones.

Why this answer

An availability set protects against planned maintenance and single host failures by placing VMs in separate fault domains (different physical hardware) and update domains (different maintenance windows). This ensures that during planned Azure maintenance, only one VM is rebooted at a time, and if a host fails, only VMs in that fault domain are affected. Since the requirement specifies a single host failure (not a datacenter outage) and both VMs must stay in the same region, an availability set is the correct choice.

Exam trap

The trap here is that candidates confuse availability zones (which protect against datacenter outages) with availability sets (which protect against host and rack failures), leading them to choose zones even though the requirement explicitly excludes a datacenter outage.

Why the other options are wrong

B

The requirement is to survive a single host failure, not a datacenter outage. Availability zones protect against datacenter failures, but placing one VM in each zone would not protect against a single host failure because each zone contains multiple hosts, and the VMs could still be on the same host within a zone.

C

A virtual machine scale set in a single zone does not protect against a single host failure because all VMs could be on the same host; it also doesn't meet the requirement of exactly two legacy VMs with separate fault domains.

D

A proximity placement group ensures low network latency between VMs but does not protect against planned maintenance or single host failure, as VMs can still be placed on the same host or fault domain.

When would these options actually be correct?

B

If the requirement were to survive a full datacenter outage (e.g., due to a regional disaster) while keeping VMs in the same region, then availability zones with one VM in each zone would be correct. For example: 'Two VMs must remain available if an entire datacenter fails, but must stay within the same region.'

C

An administrator needs to deploy multiple identical VMs that automatically scale based on load, and high availability across zones is not required; a scale set in a single zone provides load balancing and scaling.

D

An administrator needs to minimize network latency between two VMs for a high-performance computing workload, and availability requirements are met by other means (e.g., application-level replication).

Why candidates pick the wrong answer

B

Candidates may confuse 'host failure' with 'datacenter failure' and think zones provide high availability for any failure, or they may assume that distributing VMs across zones automatically protects against host failures, not realizing that zones are for datacenter-level redundancy.

C

Candidates may think a scale set inherently provides high availability, but without multiple zones or fault domains, it doesn't protect against host failures.

D

Candidates may confuse proximity placement groups with high availability solutions, thinking that placing VMs close together somehow provides redundancy.

2
Matchingeasy

Match each Azure CLI command to the action it performs for a virtual machine.

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

Concepts
Matches

Starts a stopped virtual machine without changing its disks or NICs.

Stops the VM and releases the compute host, which can reduce compute charges.

Moves the VM to a new Azure host to help resolve host-level issues.

Changes the VM size, such as moving from a smaller to a larger SKU.

Why these pairings

Each Azure CLI command performs the corresponding VM lifecycle action: create, start, stop, deallocate (releases resources), delete, or list.

3
MCQmedium

A team needs to deploy 25 identical Ubuntu VMs every month from source control. The deployment must be repeatable, and each VM must include a system-assigned managed identity at creation time. Which approach should be used?

A.Azure portal manual creation of each VM.
B.A Bicep template deployment.
C.An Azure Policy assignment at the subscription level.
D.An Azure Monitor alert rule that triggers VM creation.
AnswerB

A Bicep template is declarative infrastructure as code that can be stored in source control, versioned, and reviewed like application code. It uses a file with resource definitions, and with a simple loop (for i in range(25)) you can deploy 25 identical Ubuntu VMs with consistent identity settings, OS configuration, and networking in an idempotent way. Bicep modules and parameters also let you reuse the same template month after month, with changes tracked in Git history. Since Bicep deployments are deterministic and auditable, it is the correct approach for a recurring, code-driven VM deployment.

Why this answer

A Bicep template is an Infrastructure as Code (IaC) solution that declaratively defines Azure resources, including VMs with system-assigned managed identities. It ensures repeatable, version-controlled deployments of 25 identical Ubuntu VMs every month, meeting the requirements for automation and identity assignment at creation time.

Exam trap

The trap here is confusing Azure Policy (which enforces compliance) with Azure Resource Manager templates (which deploy resources), leading candidates to select Policy thinking it can create VMs, when it only audits or remediates existing ones.

Why the other options are wrong

A

Manual creation via Azure portal is not repeatable and cannot efficiently deploy 25 identical VMs every month, nor does it inherently enforce system-assigned managed identity at scale.

C

Azure Policy can enforce compliance (e.g., require managed identity) but cannot deploy 25 identical VMs from source control; it is not a deployment tool.

D

Azure Monitor alert rules trigger actions based on metrics or logs, not for provisioning resources like VMs. They cannot deploy VMs with specific configurations like managed identities.

When would these options actually be correct?

A

For a one-time deployment of a single VM where the administrator needs to visually configure settings and verify each step, manual portal creation is appropriate.

C

An exam question requiring automatic enforcement of a system-assigned managed identity on all new VMs across a subscription, without manual template deployment, would make Azure Policy the correct answer.

D

An Azure Monitor alert rule would be correct if the question asked for an automated response to scale out VMs when CPU usage exceeds a threshold, using a runbook or webhook to trigger VM creation.

Why candidates pick the wrong answer

A

Candidates may default to the portal due to familiarity, underestimating the need for automation and repeatability in monthly deployments.

C

Candidates may confuse Azure Policy's compliance enforcement capabilities with actual resource deployment, thinking it can create VMs automatically.

D

Candidates may think alert rules can automate VM creation for scaling, but they are designed for monitoring and alerting, not direct resource deployment.

4
Multi-Selectmedium

Finance wants every resource created in one production resource group to receive the tag CostCenter=FINSVC automatically, but deployments should not be blocked if a template omits the tag. Existing resources should be updated when possible. Which two actions should the administrator take? Select two.

Select 2 answers
A.Assign a Modify policy that adds or updates the CostCenter tag.
B.Run a remediation task for noncompliant existing resources.
C.Apply a ReadOnly lock to the resource group to keep tags consistent.
D.Assign Reader to the resource group to ensure tag visibility.
E.Use only an Audit policy so teams can see missing tags.
AnswersA, B

The Modify effect can automatically add or update tags without blocking the deployment. That matches the requirement to keep deployments flowing while enforcing the tag.

Why this answer

A Modify effect policy definition can automatically add or update the CostCenter tag on resources during creation or update, without blocking deployments if the tag is missing. This satisfies the requirement that deployments should not be blocked, as the Modify effect only applies the tag rather than denying non-compliant requests.

Exam trap

The trap here is that candidates often confuse Audit and Modify effects, thinking Audit can automatically fix tags, or they mistakenly believe a ReadOnly lock is needed to enforce consistency, when in fact Modify with remediation is the correct approach for automatic tag application without blocking deployments.

Why the other options are wrong

C

Applying a ReadOnly lock prevents any modifications to resources, including adding or updating tags, which contradicts the requirement to automatically apply tags to new resources and update existing ones.

D

Assigning the Reader role to the resource group ensures tag visibility but does not automatically apply or enforce the CostCenter tag. The requirement is to automatically add the tag to new resources and update existing ones, which requires a policy with a Modify effect, not a role assignment.

E

An Audit policy only reports noncompliance but does not automatically add or update tags. The requirement is to automatically apply the CostCenter tag to new and existing resources, which requires a Modify policy with a remediation task, not just auditing.

When would these options actually be correct?

C

A ReadOnly lock would be correct if the requirement was to prevent any changes to resources in the resource group, such as protecting critical production resources from accidental deletion or modification, and no tag automation was needed.

D

This option would be correct if the question asked: 'Management wants all team members to be able to view tags on resources in a resource group, but not modify them. Which role should be assigned?'

E

This option would be correct if the question asked for a solution that only monitors tag compliance without automatically applying tags, and the organization wants to manually enforce tagging through reports.

Why candidates pick the wrong answer

C

Candidates may think a lock ensures consistency by preventing changes, but they overlook that it also blocks the automatic tag application and remediation needed to meet the requirement.

D

Candidates may confuse role-based access control (RBAC) with Azure Policy, thinking that granting read access to tags will help enforce tagging, or they may assume that visibility is a prerequisite for automatic tagging.

E

Candidates may think an Audit policy is sufficient because it identifies missing tags, but they overlook the requirement for automatic enforcement and remediation of existing resources.

5
MCQeasy

Based on the exhibit, which OS disk option best fits a development VM that is rebuilt often and does not need the disk contents to survive deallocation?

A.A Standard HDD managed OS disk.
B.An ephemeral OS disk.
C.A premium managed data disk used as the OS disk.
D.A shared disk attached to multiple VMs.
AnswerB

An ephemeral OS disk is the best match because it provides very fast local storage for the operating system and does not need to preserve data after deallocation. This is ideal for rebuildable development VMs where performance matters more than retaining the OS disk contents.

Why this answer

An ephemeral OS disk is created on the local VM host and not stored in Azure Storage, so it provides lower latency and is automatically deleted when the VM is deallocated. This makes it ideal for development VMs that are rebuilt often and do not require disk persistence across deallocations.

Exam trap

The trap here is that candidates may assume a Standard HDD managed disk is the cheapest option for a development VM, overlooking that ephemeral disks incur no storage cost and automatically reset the OS on each rebuild, which is more cost-effective and operationally simpler for the described use case.

Why the other options are wrong

A

A Standard HDD managed OS disk persists its contents even after VM deallocation, which contradicts the requirement that disk contents do not survive deallocation. Ephemeral OS disks are designed to be temporary and are lost on deallocation.

C

A premium managed data disk cannot be used as an OS disk in Azure; OS disks must be managed disks attached as OS disks, not data disks. Additionally, premium disks are overkill for a development VM that is rebuilt often and does not need persistence.

D

A shared disk cannot be used as an OS disk; it is only for data disks and requires cluster-aware file systems, so it cannot host the VM's operating system.

When would these options actually be correct?

A

This option would be correct for a development VM that needs to retain its OS disk data across deallocations (e.g., to preserve installed tools or configurations) and has low cost as a priority, with no need for high performance.

C

This option would be correct if the question asked for a high-performance data disk for a production VM running I/O-intensive workloads, where the disk must persist across VM deallocations and be attached as a data disk.

D

A shared disk is correct when the question asks for a shared storage solution for a failover cluster or a horizontally scaled application where multiple VMs need concurrent read/write access to the same data disk, such as for SQL Server FCI or Scale-Out File Server.

Why candidates pick the wrong answer

A

Candidates may think Standard HDD is the cheapest option and suitable for development, overlooking the specific requirement that disk contents should not survive deallocation, which is a key feature of ephemeral disks.

C

Candidates may confuse 'premium' with 'better' for all scenarios, or mistakenly think a data disk can serve as an OS disk, overlooking Azure's disk type restrictions.

D

Candidates may confuse 'shared' with 'ephemeral' or think that attaching a disk to multiple VMs could provide redundancy or cost savings for development, not realizing the OS disk attachment limitation.

6
MCQhard

The subscription activity log is being sent to a Log Analytics workspace. An alert must fire when any resource group is deleted, but delete operations initiated by the automation account rg-cleaner@contoso.com must be ignored. Which query should be used in the alert rule?

A.AzureActivity | where ResourceProviderValue == "Microsoft.Resources" | where OperationName contains "delete"
B.AzureActivity | where OperationNameValue == "Microsoft.Resources/subscriptions/resourceGroups/delete" | where ActivityStatusValue == "Succeeded" | where Caller != "rg-cleaner@contoso.com" | summarize Count = count()
C.Heartbeat | where Computer == "rg-cleaner@contoso.com" | where TimeGenerated > ago(1d)
D.SecurityEvent | where EventID == 4688 | where Account == "rg-cleaner@contoso.com"
AnswerB

This query targets the exact delete operation for resource groups in AzureActivity, limits results to successful deletions, and excludes the automation account caller. A log alert can trigger when the result count is greater than zero. It is the most accurate choice because it filters by both operation identity and exception handling, which prevents false alerts from the known automation runbook.

Why this answer

It filters for the exact operation that deletes a resource group (Microsoft.Resources/subscriptions/resourceGroups/delete), ensures the deletion succeeded, and excludes the caller 'rg-cleaner@contoso.com'. This meets the requirement to fire an alert only when a resource group is deleted by any user except the automation account.

Exam trap

The trap here is that candidates often choose Option A because they see 'delete' in the operation name, but they fail to realize that a broad 'contains' filter will match many unrelated delete operations and does not exclude the automation account's caller identity.

Why the other options are wrong

A

This query does not filter by the specific resource group delete operation (OperationNameValue) and does not exclude the automation account caller. It would trigger alerts for any delete operation on any resource, including non-resource-group deletes and those initiated by rg-cleaner@contoso.com.

C

The Heartbeat table contains agent health data, not resource group deletion events. The query checks if the automation account computer exists, not if a resource group was deleted.

D

SecurityEvent tracks Windows security events (like process creation), not Azure resource deletions. The question requires monitoring Azure subscription activity logs for resource group deletions, which SecurityEvent does not capture.

When would these options actually be correct?

A

This query would be correct if the requirement was to alert on any delete operation (not just resource group deletion) across all resource providers, and no exclusion of specific callers was needed.

C

This query would be correct in an alert rule that monitors the health or connectivity of the automation account 'rg-cleaner@contoso.com' by checking if its heartbeat has been received in the last day.

D

This query would be correct if the question asked to detect when a specific user (e.g., rg-cleaner) initiates a process on a monitored Windows machine, such as alerting on suspicious command execution by that account.

Why candidates pick the wrong answer

A

Candidates may think that checking for 'delete' in the OperationName is sufficient, overlooking the need for precise operation filtering and caller exclusion. The broad match seems easier and appears to cover the requirement.

C

Candidates may mistakenly think the Heartbeat table logs user actions or that the automation account name is a computer name, leading them to believe this query can filter out its operations.

D

Candidates may confuse Azure activity logging with Windows security auditing, or incorrectly assume that user account information from SecurityEvent can be used to filter Azure resource operations.

7
MCQeasy

A reporting application stores files in Azure Blob Storage. The business wants the secondary region to be readable if the primary region becomes unavailable. Which redundancy option should you use?

A.LRS, because it stores all copies in one region only.
B.ZRS, because it replicates across availability zones.
C.RA-GRS, because it provides geo-replication with read access to the secondary endpoint.
D.Archive, because archived blobs are stored cheaply for long-term retention.
AnswerC

RA-GRS (Read-Access Geo-Redundant Storage) replicates your blob data asynchronously to a paired secondary region and, unlike standard GRS, automatically exposes a public read-access endpoint on that secondary copy. This fulfills the requirement of being able to read the reporting data from a secondary region, even while the primary region is operational. The asynchronous replication means the secondary copy is eventually consistent, but that trade-off is acceptable for a reporting application that can tolerate slight read lag.

Why this answer

(RA-GRS) is correct because it provides geo-replication by asynchronously copying data to a secondary region and enables read access to that secondary endpoint. If the primary region becomes unavailable, the application can continue reading from the secondary region, meeting the business requirement for readable secondary access during a primary outage.

Exam trap

The trap here is that candidates often confuse ZRS (zone-redundant within a region) with geo-redundant options, or mistakenly think LRS provides any cross-region resilience, when only RA-GRS offers both geo-replication and read access to the secondary region.

Why the other options are wrong

A

LRS only replicates data within a single data center in the primary region, providing no redundancy for a regional outage. The business requirement is for readable secondary region access, which LRS cannot fulfill.

B

ZRS replicates data synchronously across availability zones within a single region, providing no geo-redundancy or read access to a secondary region if the primary becomes unavailable.

D

Archive is a blob access tier, not a redundancy option. It does not provide replication or read access to a secondary region.

When would these options actually be correct?

A

A question that asks for the lowest-cost redundancy option for non-critical data that can be regenerated, with no need for cross-region or cross-zone durability, and where data loss from a single disk failure is acceptable.

B

A question requiring high availability within a single region, such as 'An application needs to survive an entire Azure datacenter failure but remain in the same region. Which redundancy option should you use?'

D

A question asking for the most cost-effective storage tier for long-term retention of rarely accessed data that must be retained for compliance, with no requirement for immediate retrieval.

Why candidates pick the wrong answer

A

Candidates may confuse LRS with a basic redundancy option and overlook the requirement for secondary region read access, or they may not fully understand the differences between replication options.

B

Candidates may confuse availability zones with regions, thinking ZRS provides cross-region failover, or they may overlook the requirement for a readable secondary region.

D

Candidates may confuse 'Archive' with a redundancy option because it involves storing data in a secondary location, but it is actually a pricing tier for infrequent access.

8
MCQmedium

A production resource group contains several VMs and a storage account. The operations manager wants to prevent accidental deletion of the resource group and its resources, but still allow normal configuration changes during maintenance windows. Which lock should be applied to the resource group?

A.ReadOnly lock at the resource group scope.
B.CanNotDelete lock at the resource group scope.
C.Azure Policy assignment that denies all delete requests.
D.Apply the lock only to individual virtual machines.
AnswerB

CanNotDelete is the correct lock when the goal is to prevent accidental removal while still allowing updates. It blocks delete operations for the resource group and its resources, but it does not stop normal configuration changes such as resizing, tagging, or network updates. That makes it suitable for production protection without freezing administration.

Why this answer

A CanNotDelete lock at the resource group scope prevents the deletion of the resource group and all its resources, while still allowing configuration changes (e.g., modifying VM settings or updating storage account properties). This meets the operations manager's requirement to block accidental deletion but permit normal maintenance operations. ReadOnly locks would block all write operations, which is too restrictive for maintenance windows.

Exam trap

The trap here is that candidates often confuse ReadOnly locks with CanNotDelete locks, mistakenly thinking ReadOnly is safer, but ReadOnly blocks all write operations (including configuration changes), which is too restrictive for maintenance scenarios where updates are required.

Why the other options are wrong

A

A ReadOnly lock prevents all modifications, including configuration changes during maintenance windows, which violates the requirement to allow normal configuration changes.

C

Azure Policy assignments deny or audit actions based on rules, but they do not prevent deletion by default unless a specific deny effect is configured for delete operations. Even then, policy can be overridden by permissions, whereas locks provide a stronger, role-independent restriction.

D

Applying the lock only to individual VMs does not protect the storage account or other resources in the resource group from accidental deletion, failing to meet the requirement to prevent deletion of all resources.

When would these options actually be correct?

A

If the requirement were to prevent any changes (including configuration) to the resource group and its resources, such as for a compliance or audit scenario where the environment must remain static, then a ReadOnly lock would be correct.

C

This option would be correct in a scenario where the organization needs to enforce compliance rules (e.g., requiring specific tags or ensuring all resources are in allowed regions) across all resources, and deletion prevention is just one of many requirements. The question would ask for a governance solution that can audit or deny non-compliant resource creation or modification, not just prevent accidental deletion.

D

If the question specified that only the VMs must be protected from deletion while allowing deletion of other resources (e.g., storage account), then applying a CanNotDelete lock to each VM individually would be correct.

Why candidates pick the wrong answer

A

Candidates may think a ReadOnly lock is sufficient to prevent deletion, but they overlook that it also blocks modifications, which is not desired here.

C

Candidates may think Azure Policy is a catch-all for security and compliance, including deletion prevention, and overlook that locks are specifically designed for protecting against accidental deletion or modification.

D

Candidates may think granular control is better and assume locking individual VMs is sufficient, overlooking that the storage account and other resources remain unprotected.

9
MCQeasy

Based on the exhibit, the web tier can reach the API subnet by name, but the traffic is still blocked. What should the administrator do?

A.Add the API VM NICs to the destination application security group.
B.Increase the priority number of the allow rule so it is evaluated earlier.
C.Replace the ASG with a service endpoint on the API subnet.
D.Remove the web VMs from ASG-Web because ASGs block traffic by default.
AnswerA

The allow rule is written for ASG-Api as the destination, but the exhibit shows that no API NICs are currently members of that ASG. Because NSG rules only match when both source and destination ASG membership is present, traffic will be blocked until the API VM NICs are added to ASG-Api.

Why this answer

The web tier can resolve the API subnet's name, but traffic is still blocked. This indicates that the network security group (NSG) rules are not correctly configured to allow traffic from the web VMs (in ASG-Web) to the API VMs (in ASG-API). By adding the API VM NICs to the destination application security group (ASG), the NSG rule that references ASG-API as the destination will match the API VMs, allowing the traffic.

Without this, the NSG rule may be referencing an empty or incorrect destination, causing the traffic to be denied by the default deny rule.

Exam trap

The trap here is that candidates often confuse name resolution with network connectivity, assuming that if a VM can resolve another VM's name via DNS, traffic must be allowed, but NSG rules are evaluated independently of DNS resolution.

Why the other options are wrong

B

Increasing the priority number (making it higher) would cause the rule to be evaluated later, not earlier, which would not resolve the traffic block. The issue is that the allow rule's destination is not correctly targeting the API VMs, not its priority.

C

Service endpoints secure Azure service access from a subnet, not traffic between VNets or subnets. The issue is east-west traffic blocking, which ASGs solve; service endpoints don't replace ASGs for intra-VNet filtering.

D

ASGs do not block traffic by default; they only define rules for allowed traffic. Removing VMs from an ASG would not resolve the issue of blocked traffic to the API subnet.

When would these options actually be correct?

B

This option would be correct if the allow rule existed but was being overridden by a higher-priority deny rule. In that case, increasing the priority number (making it lower) would allow the allow rule to be evaluated before the deny rule.

C

If the question were about securely accessing an Azure PaaS service (e.g., Azure SQL or Storage) from the API subnet without using a public endpoint, adding a service endpoint on the API subnet would be correct.

D

If the question described a scenario where VMs in an ASG were incorrectly configured with a deny-all rule or the ASG was misapplied, removing them from the ASG could be correct to restore connectivity.

Why candidates pick the wrong answer

B

Candidates may confuse priority numbers with evaluation order, thinking a higher number means higher priority, or they may assume that traffic is blocked due to rule ordering rather than misconfiguration of the destination.

C

Candidates may confuse service endpoints with network security groups, thinking they can replace ASGs for general traffic filtering, or they might assume service endpoints provide broader connectivity control.

D

Candidates may mistakenly think ASGs act like firewalls that block all traffic by default, rather than understanding they are used to group VMs for applying network security rules.

10
MCQhard

An administrator enabled diagnostic settings on a storage account and selected the resource-specific table format for Log Analytics. A coworker later queried AzureDiagnostics and received no rows. What should the administrator tell the coworker to do?

A.Query the dedicated storage resource tables created by the diagnostic setting instead of AzureDiagnostics
B.Recreate the storage account because AzureDiagnostics is only populated by new resources
C.Change the storage account replication type to GRS so diagnostic logs are duplicated
D.Enable Azure Monitor metrics collection on the storage account before querying AzureDiagnostics
AnswerA

Correct. When a diagnostic setting is configured to export logs to a Log Analytics workspace, you choose between the legacy AzureDiagnostics table and resource-specific tables. For storage accounts that have resource-specific mode enabled, logs are written to dedicated tables such as StorageBlobLogs, StorageQueueLogs, and StorageTableLogs, not to AzureDiagnostics. Therefore, to retrieve the logs you must query the appropriate resource-specific table, because AzureDiagnostics will remain empty for these records.

Why this answer

When diagnostic settings are configured to use the 'Resource specific' destination table format, logs are sent to dedicated tables named after the resource type (e.g., StorageBlobLogs, StorageQueueLogs) rather than the legacy AzureDiagnostics table. Querying AzureDiagnostics returns no rows because logs are not written there under this format. The coworker must query the appropriate resource-specific table instead.

Exam trap

The trap here is that candidates assume all diagnostic logs always land in the AzureDiagnostics table, overlooking the 'Resource specific' destination table format option that creates dedicated tables per resource type.

Why the other options are wrong

B

AzureDiagnostics is only populated when diagnostic settings use the AzureDiagnostics table format, not the resource-specific table format. Since the administrator selected resource-specific tables, the data is stored in dedicated tables, not AzureDiagnostics.

C

Changing replication to GRS does not affect Log Analytics table population; diagnostic logs are sent to Log Analytics independently of replication settings.

D

Enabling Azure Monitor metrics collection does not affect the population of AzureDiagnostics or resource-specific tables. Metrics are separate from diagnostic logs and do not generate log entries.

When would these options actually be correct?

B

If a storage account was created after enabling diagnostic settings and the coworker queries AzureDiagnostics immediately, but the diagnostic settings were configured on an existing storage account, the new storage account would not have diagnostic settings enabled, so AzureDiagnostics would be empty. Recreating the storage account would allow enabling diagnostic settings from the start.

C

If the question asked how to ensure storage account durability for disaster recovery scenarios, selecting GRS replication would be correct to maintain data availability across regions.

D

If the question asked how to ensure storage account metrics (e.g., transactions, latency) are available in Azure Monitor for alerting or analysis, enabling metrics collection would be the correct step.

Why candidates pick the wrong answer

B

Candidates may think that diagnostic data is only collected from the moment of resource creation, and that older resources don't populate AzureDiagnostics, leading them to believe recreating the resource is necessary.

C

Candidates may confuse replication as a way to duplicate logs, not realizing that diagnostic settings send data directly to Log Analytics regardless of replication.

D

Candidates may confuse diagnostic settings with metrics collection, thinking that enabling metrics will also populate log tables, or believe that logs require metrics to be enabled first.

11
MCQmedium

A partner company needs write access to a single blob container for 24 hours. The partner does not have an Azure subscription in your tenant, and the team does not want to share the storage account key. Which access method is the best choice?

A.Grant the partner Contributor access on the storage account
B.Create a user delegation SAS with write permission and a short expiration time
C.Share the storage account access key and let the partner create their own token
D.Enable anonymous public write access on the container
AnswerB

A user delegation SAS provides temporary access without exposing the storage account key and can be tightly scoped.

Why this answer

A user delegation SAS is the best choice because it provides time-limited, scoped write access to a specific blob container without exposing the storage account key. It is secured with Azure AD credentials and can be configured with a short expiration time (e.g., 24 hours), meeting the partner's requirement for temporary access. This method ensures the partner does not need an Azure subscription in your tenant and avoids sharing the account key.

Exam trap

The trap here is that candidates often confuse a user delegation SAS with a service SAS or account SAS, or mistakenly think that granting RBAC roles like Contributor is the simplest way to provide access, without realizing it grants far more permissions than needed and violates the principle of least privilege.

Why the other options are wrong

A

Granting Contributor access on the storage account gives the partner full control over the entire storage account, including all containers and blobs, and allows management operations like deleting the account. This exceeds the requirement of write access to a single container for only 24 hours and violates the principle of least privilege.

C

Sharing the storage account access key grants full administrative access to the entire storage account, not just the single container, and violates the requirement to not share the key.

D

Enabling anonymous public write access on the container would allow anyone on the internet to write to the container, violating security requirements and providing uncontrolled access beyond the intended partner.

When would these options actually be correct?

A

This option would be correct if the partner needed full management access to the storage account (e.g., to configure networking or monitoring) for an indefinite period, and the partner had an Azure subscription in the same tenant, allowing RBAC role assignment.

C

If the question required granting full access to the entire storage account for an indefinite period and the partner was fully trusted, sharing the access key might be acceptable, though still not best practice.

D

If the requirement were to allow anonymous read access to a container for public content (e.g., a static website), and write access is not needed, then enabling anonymous public read access would be correct.

Why candidates pick the wrong answer

A

Candidates may think that Contributor access is a standard way to grant permissions in Azure and might overlook that it provides far more access than needed, especially for a temporary and scoped requirement.

C

Candidates may think sharing the key is simpler and still allows the partner to generate their own SAS, overlooking the security risk of exposing the key.

D

Candidates may think anonymous access is simpler than SAS, or confuse public read scenarios with the write requirement, overlooking the severe security risk of public write.

12
Multi-Selecteasy

A storage account should use a private IP address inside a virtual network, and workloads in that VNet must resolve the storage name to the private address. Which two items are required? Select two.

Select 2 answers
A.Create a private endpoint for the storage account in the virtual network so the service gets a private IP.
B.Create and link the appropriate private DNS zone so the storage account name resolves to the private IP.
C.Enable a service endpoint on the subnet, because service endpoints create a private IP for the storage service.
D.Assign a Reader role on the storage account, because RBAC determines the private address used by clients.
E.Disable the storage account firewall, because private endpoints only work when the public endpoint is open.
AnswersA, B

Creating a private endpoint provisions a network interface in your VNet subnet and assigns it a private IP address that is used for all traffic to the storage account. This places the storage service itself on that private IP, so clients inside the VNet can reach it without ever leaving the Microsoft network. Even if the public endpoint is later disabled, the private endpoint continues to work because it uses a separate network path.

Why this answer

A private endpoint assigns a private IP address from the virtual network to the storage account, enabling secure, direct connectivity over the Microsoft backbone without traversing the public internet. This is achieved by creating a network interface in the VNet that receives a private IP from the subnet range, which then routes traffic to the storage service via a private link.

Exam trap

The trap here is that candidates often confuse service endpoints with private endpoints, assuming both provide a private IP, when in fact only private endpoints assign a private IP from the VNet, while service endpoints merely route traffic over the Microsoft backbone using the service's public IP.

Why the other options are wrong

C

Service endpoints do not assign a private IP to the storage account; they provide direct connectivity from the VNet to the service over the Microsoft backbone, but the storage account still uses its public IP address.

D

Assigning a Reader role on the storage account controls permissions to read data or configuration, but does not affect network-level private IP assignment or DNS resolution. Private IPs are assigned via Private Endpoints, not RBAC.

E

Private endpoints do not require the storage account firewall to be disabled; they work independently of the public endpoint. The firewall can remain enabled to block public access while private endpoints provide private connectivity.

When would these options actually be correct?

C

In a scenario where you need to restrict access to a storage account from a specific VNet without requiring a private IP, enabling a service endpoint on the subnet and configuring the storage firewall to allow that subnet would be correct.

D

In a scenario where a user needs to allow a specific client to list storage account keys (e.g., for mounting file shares) without granting full contributor access, assigning the Reader role (or a custom role with 'Microsoft.Storage/storageAccounts/listKeys/action') would be required.

E

In a scenario where you need to allow access from a specific public IP range while blocking all other public traffic, you would configure the storage account firewall to allow that IP range. Disabling the firewall entirely would be incorrect in that case as well; a more accurate scenario is when you need to enable public network access for a specific client, you would add an allow rule, not disable the firewall.

Why candidates pick the wrong answer

C

Candidates may confuse service endpoints with private endpoints, thinking both provide private IPs, or they may believe that service endpoints are sufficient for private connectivity.

D

Candidates may confuse RBAC with network access control, thinking that assigning a role somehow grants private network connectivity, or they may overestimate the role of RBAC in network-level configurations.

E

Candidates may mistakenly think that private endpoints require the public endpoint to be open, or they confuse private endpoints with service endpoints, which do not change the IP address and require the firewall to allow access from the VNet.

13
MCQmedium

A storage account has public network access disabled. A VM in a virtual network must access blob data privately, and the application must resolve the storage endpoint name to a private IP address. What should the administrator deploy?

A.A service endpoint for Microsoft.Storage and a custom hosts file entry on the VM
B.A private endpoint for the storage account plus a private DNS zone linked to the virtual network
C.Allow trusted Microsoft services and keep using the public endpoint
D.A route table that sends traffic for the storage account's public IP to the VPN gateway
AnswerB

A private endpoint places the storage service on a private IP address inside the VNet, which satisfies the private access requirement. A private DNS zone is then needed so the storage account name resolves to that private IP address from within the virtual network. Together, they provide secure, private connectivity with proper name resolution.

Why this answer

A private endpoint assigns the storage account a private IP from the VM's virtual network, enabling direct, secure access over the Microsoft backbone. A private DNS zone linked to the virtual network ensures the storage endpoint name (e.g., mystorageaccount.blob.core.windows.net) resolves to that private IP, meeting the requirement for private name resolution without relying on public DNS or hosts file entries.

Exam trap

The trap here is that candidates confuse service endpoints (which provide source IP preservation but no private IP) with private endpoints (which provide a true private IP and private DNS resolution), leading them to choose Option A or C.

Why the other options are wrong

A

Service endpoints do not provide a private IP address for the storage endpoint; they route traffic over the Microsoft backbone but the DNS name still resolves to a public IP. A custom hosts file entry is not a scalable or managed solution and does not integrate with Azure Private DNS for automatic resolution.

C

This option does not provide private IP resolution; the storage account's public endpoint remains accessible, and 'Allow trusted Microsoft services' bypasses network restrictions but does not enable private connectivity or private DNS resolution.

D

A route table cannot resolve the storage endpoint name to a private IP address; it only controls traffic routing based on IP addresses, not DNS resolution. The question requires private name resolution, which a route table does not provide.

When would these options actually be correct?

A

This option would be correct if the question required accessing the storage account from an on-premises network via a VPN or ExpressRoute, and the goal was to ensure traffic stays within the Microsoft backbone without needing private IP resolution. In that case, a service endpoint combined with a hosts file entry could be a workaround for name resolution.

C

This would be correct if the question required allowing a specific Azure service (e.g., Azure Backup or Azure Logic Apps) to access a storage account with public network access disabled, without needing private IP resolution.

D

An administrator needs to force all traffic from a specific subnet to a storage account's public IP through a VPN gateway or NVA for inspection or logging, while still using the public endpoint. In that case, a route table with a user-defined route would be correct.

Why candidates pick the wrong answer

A

Candidates may confuse service endpoints with private endpoints, thinking both provide private connectivity. The hosts file entry seems like a simple fix for DNS resolution, but they overlook that Azure Private DNS zones automatically manage private IP mapping without manual entries.

C

Candidates may think that enabling trusted Microsoft services is a simple way to grant access without configuring private endpoints, overlooking the requirement for private IP resolution.

D

Candidates may confuse network routing with DNS resolution, thinking that directing traffic to a specific path (like VPN) can also achieve private connectivity and name resolution, but routing alone does not change how the endpoint name is resolved.

14
MCQmedium

A deny policy blocks creation of storage accounts with public network access enabled. A legacy application in RG-Legacy must keep one existing storage account publicly reachable for 45 days while the rest of the subscription remains governed by the policy. What should the administrator configure?

A.A policy exemption at the RG-Legacy scope with an expiration date.
B.A new role assignment that grants Owner on RG-Legacy.
C.A management lock on the storage account.
D.A separate initiative assigned only to RG-Legacy with the deny setting disabled.
AnswerA

A policy exemption at the RG-Legacy scope with an expiration date temporarily waives the deny effect for new storage accounts created in that resource group while the original policy assignment remains active and enforced elsewhere. The expiration date forces a scheduled review, ensuring the exception does not persist indefinitely. This is the only construct that directly addresses the specific scope's non-compliance without altering the policy or permissions.

Why this answer

A policy exemption at the RG-Legacy scope with an expiration date is the correct solution because it allows the specific storage account to bypass the deny policy while keeping the policy enforced for all other resources. The exemption can be scoped to the resource group and set to expire in 45 days, ensuring the legacy application retains public access temporarily without permanently weakening the governance posture. This approach directly addresses the requirement to maintain compliance for the rest of the subscription.

Exam trap

The trap here is that candidates often confuse policy exemptions with role assignments or management locks, mistakenly thinking that granting Owner permissions or locking a resource can override a deny policy, when in fact only a policy exemption (or a policy exclusion at assignment scope) can bypass the deny effect.

Why the other options are wrong

B

A role assignment granting Owner on RG-Legacy does not override a deny policy; deny policies take precedence over role assignments. The storage account would still be blocked by the policy.

C

A management lock prevents accidental deletion or modification of the storage account, but it does not override a deny policy that blocks public network access. The lock cannot exempt the resource from policy enforcement.

D

A separate initiative assigned only to RG-Legacy with the deny setting disabled would remove the deny effect entirely for that resource group, but the question requires the deny policy to remain in effect for all other resources and only allow the existing storage account to be publicly reachable for 45 days. An initiative with the deny setting disabled would allow new storage accounts with public access to be created in RG-Legacy, which violates the policy intent.

When would these options actually be correct?

B

If the question were about granting a user permissions to manage resources in a resource group (e.g., to deploy VMs) without any policy restrictions, assigning the Owner role at the RG scope would be correct.

C

A management lock would be correct if the question asked how to prevent accidental deletion or modification of a critical resource, such as a storage account that must be retained for compliance or audit purposes, without affecting policy compliance.

D

This option would be correct if the question asked for a way to exclude an entire resource group from a policy for an indefinite period, such as when migrating a legacy application and needing to temporarily allow all resources in that group to bypass the policy without an expiration date.

Why candidates pick the wrong answer

B

Candidates may think that granting Owner rights allows bypassing policies, not realizing that deny policies explicitly override allow permissions.

C

Candidates may confuse management locks with policy exemptions, thinking that locking the resource can protect it from policy enforcement, or they may believe that locks can override Azure Policy effects.

D

Candidates may think that assigning a separate initiative with the deny effect disabled is a clean way to exclude a resource group, but they overlook that policy exemptions are the proper mechanism for temporary exceptions with expiration, and that disabling the deny effect in an initiative would allow all resources in that scope to bypass the policy.

15
MCQmedium

You need to deploy a group of identical Azure virtual machines and ensure they are distributed across fault domains and update domains to reduce the impact of host failures and planned maintenance. Which feature should you use?

A.An availability set
B.A proximity placement group
C.A private endpoint
D.A custom script extension
AnswerA

An availability set is the correct choice because it logically groups identical VMs across multiple fault domains and update domains, each with distinct underlying hardware and scheduled maintenance windows. This configuration guarantees that during an Azure datacenter outage or planned maintenance, only a subset of the VMs is affected, preserving overall service availability and meeting the requirement for host-level resiliency.

Why this answer

An availability set is the correct feature because it logically groups VMs to isolate them from each other during host failures and planned maintenance. It distributes VMs across up to 3 fault domains (each with separate power, cooling, and network) and up to 20 update domains (which are rebooted sequentially during maintenance), ensuring that not all VMs are impacted simultaneously.

Exam trap

The trap here is that candidates often confuse availability sets with availability zones, thinking zones are required for fault domain distribution, but availability sets provide fault and update domain isolation within a single Azure region without requiring multiple zones.

Why the other options are wrong

B

A proximity placement group reduces network latency between VMs but does not distribute them across fault domains or update domains for high availability.

C

A private endpoint provides secure connectivity to Azure PaaS services over a private IP address, not fault or update domain distribution for VMs.

D

A custom script extension is used to run scripts on VMs after deployment for configuration or software installation, not to manage fault domain and update domain distribution across a group of VMs.

When would these options actually be correct?

B

When deploying VMs that require low network latency between them, such as for high-performance computing or latency-sensitive applications, a proximity placement group ensures VMs are physically close to each other.

C

You need to ensure that a virtual machine accesses an Azure Storage account privately, without traversing the public internet. The question would specify a requirement for private connectivity to an Azure service.

D

When the question asks how to automatically install software or run a PowerShell script on Azure VMs during or after deployment, such as 'You need to configure a VM to run a custom configuration script on first boot.'

Why candidates pick the wrong answer

B

Candidates may confuse proximity placement groups with availability sets because both involve grouping VMs, but they serve different purposes: one for low latency, the other for high availability.

C

Candidates may confuse 'private' with 'high availability' or think that a private endpoint somehow isolates VMs from failures.

D

Candidates may confuse the 'custom' aspect with the ability to customize VM placement or think that extensions can influence availability features.

16
MCQhard

A Windows VM in Azure is protected by Azure Backup. A developer accidentally deleted one application folder, but the VM must keep serving users while the administrator restores only that folder. What should the administrator do?

A.Restore the entire VM from the latest recovery point into the production resource group.
B.Use File Recovery from the appropriate recovery point and copy the folder back.
C.Restore the managed disk and attach it to the running VM as a second OS disk.
D.Create a new Recovery Services vault and re-protect the VM before restoring anything.
AnswerB

File Recovery is designed for item-level restore from an Azure VM backup. The administrator can mount the recovery point, browse the backed-up contents, and copy the missing folder back without replacing the whole VM. This is the least disruptive option when the machine must remain online and only a small set of files is needed.

Why this answer

Azure Backup's File Recovery feature allows you to mount a recovery point as a drive on the running VM, enabling you to copy specific files or folders without restoring the entire VM or disrupting production. This is the only method that meets the requirement of restoring only the deleted folder while the VM continues serving users.

Exam trap

The trap here is that candidates often assume a full VM restore or disk restore is required for file-level recovery, overlooking the Azure Backup File Recovery feature that is specifically designed for granular, non-disruptive restores.

Why the other options are wrong

A

Restoring the entire VM into the production resource group would overwrite or conflict with the running VM, causing downtime and potential data loss. The requirement is to restore only one folder without disrupting the running VM.

C

Restoring the managed disk and attaching it as a second OS disk would not allow selective folder recovery; it would require mounting the disk and manually copying files, which is more complex and not the intended Azure Backup feature for file-level recovery.

D

Creating a new Recovery Services vault and re-protecting the VM does not restore the deleted folder; it only enables future backups. The existing backup data remains in the original vault and is not accessible via a new vault.

When would these options actually be correct?

A

If the question stated that the VM is completely corrupted and cannot boot, and the goal is to replace the entire VM with minimal downtime, restoring the full VM from a recovery point into the same resource group (after stopping the original VM) would be appropriate.

C

If the question asked to recover an entire VM from a backup when the original VM is deleted or corrupted, and you need to create a new VM from the backup, restoring the managed disk and attaching it to a new VM would be correct.

D

If the question asked: 'An administrator needs to enable Azure Backup for a new VM that is not yet protected. What should they do first?' then creating a new Recovery Services vault and configuring backup protection would be the correct initial step.

Why candidates pick the wrong answer

A

Candidates may think a full VM restore is the simplest and most comprehensive recovery method, overlooking that Azure Backup's File Recovery allows granular restore without affecting the running VM.

C

Candidates may think that attaching the restored disk as a second disk allows direct file access, but they overlook the simpler, built-in File Recovery feature designed exactly for this purpose.

D

Candidates may think that re-protecting the VM is necessary before any restore operation, confusing the setup of backup with the restore process, or they may incorrectly believe that the original vault is corrupted or unavailable.

17
MCQmedium

A security team requires all outbound internet traffic from a workload subnet to pass through an NVA at 10.1.4.4. The subnet is already associated with an NSG that allows the traffic. Which UDR should the administrator add to the route table for that subnet?

A.Destination 10.1.4.4/32 with next hop type Internet.
B.Destination 0.0.0.0/0 with next hop type Virtual appliance and next hop IP 10.1.4.4.
C.Destination 0.0.0.0/0 with next hop type Virtual network gateway.
D.Destination 10.1.4.0/24 with next hop type None.
AnswerB

To force all internet-bound traffic through a network virtual appliance, the route table needs a default route that matches 0.0.0.0/0 and sends traffic to the appliance's private IP. The next hop type must be Virtual appliance, and the next hop IP should be 10.1.4.4. This overrides Azure's default system route for internet traffic from that subnet, while still allowing NSG rules to control whether the traffic is permitted.

Why this answer

A User Defined Route (UDR) with destination 0.0.0.0/0 and next hop type 'Virtual appliance' forces all outbound internet traffic from the subnet to be forwarded to the NVA at 10.1.4.4 for inspection. The 0.0.0.0/0 prefix matches all internet-bound traffic, and the 'Virtual appliance' next hop type enables routing to a private IP address within the virtual network, overriding the default system route that would otherwise send traffic directly to the Internet.

Exam trap

The trap here is that candidates often confuse the 'Virtual appliance' next hop type with 'Virtual network gateway' or mistakenly think a specific destination like the NVA's IP is needed, rather than understanding that 0.0.0.0/0 is required to capture all outbound internet traffic.

Why the other options are wrong

A

The destination 10.1.4.4/32 with next hop type Internet would route traffic destined to the NVA itself to the internet, not through the NVA. The requirement is to route all outbound internet traffic (0.0.0.0/0) through the NVA, not traffic to the NVA.

C

This option sets the next hop to Virtual network gateway, which sends traffic to Azure VPN or ExpressRoute gateways, not to the NVA. The requirement is to route all outbound internet traffic through the NVA at 10.1.4.4, so the next hop must be Virtual appliance with that IP.

D

Destination 10.1.4.0/24 with next hop type None would only affect traffic destined to the NVA's subnet, not all outbound internet traffic. The requirement is to route all outbound internet traffic (0.0.0.0/0) through the NVA, so this route does not apply to internet-bound traffic.

When would these options actually be correct?

A

This option would be correct if the requirement was to force all traffic destined to the NVA's IP address (10.1.4.4) to go out to the internet, for example, to bypass the NVA for management traffic or to test connectivity.

C

This option would be correct if the requirement was to route all outbound internet traffic through an on-premises network via a VPN or ExpressRoute gateway, for example, when using forced tunneling to send internet-bound traffic through a corporate network.

D

This option would be correct if the requirement was to prevent traffic from the workload subnet from reaching the NVA's subnet (10.1.4.0/24), for example, to isolate management traffic. In that case, a route with next hop type None would blackhole traffic to that subnet.

Why candidates pick the wrong answer

A

Candidates may mistakenly think that adding a route to the NVA's IP address will force traffic through it, not understanding that the default route (0.0.0.0/0) is needed to redirect all internet-bound traffic.

C

Candidates may confuse the Virtual network gateway next hop type with the Virtual appliance type, or assume that any gateway can route traffic to the internet, not realizing that Virtual network gateway is specifically for site-to-site connectivity.

D

Candidates might think that specifying the NVA's subnet as the destination is sufficient to route traffic through it, misunderstanding that a default route (0.0.0.0/0) is needed to capture all internet-bound traffic.

18
MCQeasy

A user deleted one Excel file from a file share backed up with Azure Backup. You want to restore only that file, not the entire share. What should you use?

A.A full VM restore
B.A file-level restore from the backup recovery point
C.A metric alert rule
D.A private endpoint
AnswerB

Azure Backup for Azure Files supports granular item-level recovery directly from a recovery point. You can select the specific deleted Excel file in the backup vault's restore flow and either overwrite it in its original share or restore it to an alternate location without touching any other files or workloads. This is the intended mechanism for recovering a single file that was lost, because it reads the file content from the stored share snapshot and writes it back through the SMB/REST data plane, leaving the rest of the share intact.

Why this answer

Azure Backup for Azure Files supports file-level restore from a recovery point. When you select a recovery point in the Azure portal, you can browse the file share contents and restore individual files or folders to the original or an alternate location, without restoring the entire share. This is achieved by mounting the recovery point as a read-only share via the SMB protocol, allowing you to copy the specific file.

Exam trap

The trap here is that candidates may assume Azure Backup only supports full share or VM restores, overlooking the file-level restore capability that is explicitly available for Azure Files backups.

Why the other options are wrong

A

A full VM restore would restore the entire virtual machine, not just a single deleted file from a file share. It is excessive and does not target the specific file.

C

A metric alert rule monitors performance metrics (e.g., CPU, memory) and triggers notifications; it cannot restore files from a backup.

D

A private endpoint provides secure connectivity to Azure services over a private IP address, but it does not enable file-level restore from Azure Backup recovery points.

When would these options actually be correct?

A

When a question asks for recovering an entire virtual machine after a catastrophic failure, such as a VM crash or corruption, where all data and system state need to be restored from a backup.

C

When the question asks how to be notified if the file share's storage usage exceeds a threshold, a metric alert rule would be the correct answer.

D

You need to ensure that backup data for an Azure file share is transferred over a private network, not the public internet. A private endpoint would be the correct choice to restrict access to the backup service to your virtual network.

Why candidates pick the wrong answer

A

Candidates may think that restoring the entire VM is the only way to recover a file, not realizing that Azure Backup supports file-level restore for file shares.

C

Candidates may confuse alerting with recovery actions, thinking an alert could trigger a restore process.

D

Candidates may confuse private endpoints with restore capabilities, thinking that private access implies additional restore features, or they may misapply the concept of private endpoints to data recovery scenarios.

19
MCQhard

Traffic from VM-App01 is taking an unexpected path to the internet through a network virtual appliance. You need to determine which routes are actually applied to the VM network interface. Which Azure feature should you use?

A.Effective routes for the network interface
B.NSG flow logs
C.Azure Policy compliance
D.The subscription activity log
AnswerA

Effective routes for the network interface provide the exact routing table entries that are actively applied to a specific NIC, including system routes, user-defined routes (UDRs), and routes learned via BGP. This blade directly shows the next-hop type and IP for each destination prefix, making it the definitive tool to diagnose why traffic from VM app01 is taking an unexpected path. For example, if a forced-tunneling route or a custom route to a network virtual appliance is misconfigured, it will appear here.

Why this answer

Effective routes for a network interface show the actual routes applied to the VM's NIC after combining all route sources (system routes, BGP, and user-defined routes). This allows you to verify whether traffic is being forced through the NVA or taking an unexpected path, by inspecting the next hop type and IP address for the 0.0.0.0/0 route.

Exam trap

The trap here is that candidates confuse 'effective routes' with 'NSG flow logs' because both involve network troubleshooting, but effective routes solve routing-path issues while flow logs solve firewall/security-rule issues.

Why the other options are wrong

B

NSG flow logs show traffic flows through NSGs, not the actual routes applied to a VM's network interface. They cannot reveal which routes are effective for the VM.

C

Azure Policy compliance evaluates resource configurations against policy rules, not actual applied routes. It cannot show which routes are effective on a VM's network interface.

D

The subscription activity log records management-plane operations (e.g., creating or deleting resources), not data-plane routing information for a specific VM network interface. It cannot show which routes are actually applied to the VM's NIC.

When would these options actually be correct?

B

When you need to analyze traffic patterns, detect anomalies, or troubleshoot connectivity issues through NSGs, such as verifying whether a specific connection is allowed or denied by NSG rules.

C

When a question asks how to enforce or audit that all VMs in a subscription have a specific tag or use a particular SKU, Azure Policy compliance would be the correct feature to use.

D

You need to investigate who deleted a critical virtual network or changed a route table in the last 24 hours. The subscription activity log would show the user, timestamp, and details of the management operation.

Why candidates pick the wrong answer

B

Candidates may confuse flow logs with route analysis, thinking logs can show the path traffic takes, but they only show NSG-level decisions, not routing table entries.

C

Candidates may confuse policy compliance with network route validation, thinking that policies can enforce or verify routing behavior, but policies do not inspect effective routes.

D

Candidates may think the activity log contains all events related to a resource, including routing changes, but it only captures control-plane actions, not the effective data-plane route state.

20
MCQeasy

A web app in Azure needs to upload files to a blob container. The development team wants the app to authenticate without storing a storage account key or password in code. Which approach should the administrator configure?

A.Embed the storage account key in the application settings
B.Assign a managed identity to the app and grant it storage permissions
C.Use the public endpoint and anonymous access
D.Use an archive tier for the container
AnswerB

A managed identity provides the app with an Azure AD identity that Azure automatically manages; your code acquires an OAuth 2.0 token from the instance metadata service with no stored secrets. You then grant that identity the Storage Blob Data Contributor role at the container or storage-account scope via RBAC, which gives least-privilege access for uploads and allows clean rotation and auditing. This is the secure, recommended approach for App Service to Azure Storage.

Why this answer

Azure Managed Identity provides an automatically managed service principal in Azure AD, allowing the web app to authenticate to Azure Blob Storage without storing any credentials in code or configuration. By assigning the managed identity to the app and granting it the appropriate RBAC role (e.g., Storage Blob Data Contributor), the app can obtain an Azure AD token to securely access the blob container.

Exam trap

The trap here is that candidates may confuse managed identity with other authentication methods like SAS tokens or connection strings, or incorrectly assume that embedding keys in app settings is acceptable because it's 'not in code,' but Azure explicitly considers this a security risk for production workloads.

Why the other options are wrong

A

Embedding the storage account key in application settings violates the requirement to avoid storing keys in code, as the key would still be stored in a configurable setting that could be exposed.

C

Using the public endpoint with anonymous access would allow anyone to upload files without authentication, violating the requirement to avoid storing credentials but failing to provide secure, authenticated access.

D

The archive tier is for cost-effective storage of infrequently accessed data with retrieval delays, not for authentication. It does not address the requirement to avoid storing credentials in code.

When would these options actually be correct?

A

If the question specified that the app must use a shared access signature (SAS) token and the storage account key is needed to generate the SAS token server-side, embedding the key in application settings could be acceptable in a tightly controlled environment.

C

When the requirement is to allow public read access to blob data without authentication, such as for hosting static websites or sharing publicly accessible files, and the app does not need to authenticate.

D

A question asks how to minimize storage costs for rarely accessed blob data that can tolerate hours of retrieval latency, such as compliance archives or backup data.

Why candidates pick the wrong answer

A

Candidates may think that storing the key in application settings is secure because it's not in the source code, but they overlook that it still requires managing a secret and does not eliminate credential storage.

C

Candidates may think that anonymous access eliminates the need for credentials, overlooking the security and authentication requirements of the scenario.

D

Candidates may confuse storage tiers with security features, thinking an archive tier somehow eliminates the need for authentication, or they may misapply cost-saving measures to a security requirement.

21
Multi-Selectmedium

You are managing an Azure Storage account that hosts a large number of blobs. You need to ensure that data can be recovered if blobs are accidentally deleted or overwritten. Which three of the following actions should you take? (Choose three.)

Select 3 answers
.Enable soft delete for blobs.
.Enable blob versioning.
.Configure a lifecycle management policy to move blobs to the Cool tier.
.Enable point-in-time restore for block blobs.
.Enable Azure Defender for Storage.
.Set the default access tier to Archive.

Why this answer

Soft delete for blobs preserves deleted blobs for a specified retention period, allowing recovery from accidental deletion. Blob versioning maintains previous versions of a blob, enabling restoration if a blob is overwritten or deleted. Point-in-time restore for block blobs allows reverting the container to an earlier state, recovering from bulk accidental modifications or deletions.

Together, these three features provide comprehensive protection against accidental data loss.

Exam trap

The trap here is that candidates often confuse lifecycle management or tier changes as data protection mechanisms, but they are cost-management features, not recovery features; the correct answers are all specifically designed for data recovery from accidental deletion or overwrite.

22
MCQhard

An NSG rule allows TCP 8443 from ASG-Web to ASG-Api on the API subnet. The web VM NIC is already in ASG-Web, but the API VM was only placed in the subnet and not added to ASG-Api. Traffic still fails. What is the best fix?

A.Add the API VM's NIC to ASG-Api so the NSG rule can match the destination NIC.
B.Add ASG-Api to the API subnet because ASGs are inherited from subnet membership.
C.Lower the rule priority number on the web subnet to make source traffic more specific.
D.Create a user-defined route from AppSubnet to API subnet to bypass the NSG.
AnswerA

Application security groups are assigned to NICs, not to subnets. If the destination NIC is not in ASG-Api, the rule that references ASG-Api never matches, even if the VM sits in the right subnet. Adding the API NIC to the correct ASG allows the NSG rule to evaluate as intended and is the cleanest fix for the blocked 8443 traffic.

Why this answer

The NSG rule specifies ASG-Api as the destination, but NSGs evaluate traffic based on the NIC membership in an ASG, not the subnet. Since the API VM's NIC is not added to ASG-Api, the rule cannot match the destination, so traffic is dropped by default (implicit deny). Adding the NIC to ASG-Api allows the NSG rule to correctly identify the destination and permit TCP 8443 traffic.

Exam trap

The trap here is that candidates assume subnet membership automatically applies ASG rules, but ASGs require explicit NIC association, and NSG rules with ASG destinations will not match VMs that are only in the subnet.

Why the other options are wrong

B

ASGs are not inherited from subnet membership; they must be explicitly assigned to NICs. Adding ASG-Api to the subnet does not associate the API VM's NIC with the ASG, so the NSG rule still cannot match the destination.

C

Lowering the rule priority number makes the rule more specific (higher priority), but the issue is that the destination ASG-Api has no members, so the rule cannot match any traffic. Priority does not fix the missing membership.

D

User-defined routes (UDRs) control traffic routing between subnets, not NSG rule evaluation. The issue is that the NSG rule cannot match the destination because the API VM's NIC is not in ASG-Api; a UDR does not fix NSG rule matching.

When would these options actually be correct?

B

If the question stated that ASGs are automatically applied to all resources in a subnet (e.g., a hypothetical scenario where ASG membership is inherited from subnet configuration), then adding ASG-Api to the subnet would be the correct fix.

C

In a scenario where multiple NSG rules apply to the same traffic and a lower-priority rule (higher number) is incorrectly blocking traffic, lowering the priority number (making it higher priority) of the correct rule would allow it to override the blocking rule.

D

A question where traffic between subnets is failing due to incorrect routing (e.g., traffic is being sent to a network virtual appliance instead of directly to the destination subnet), and you need to override the default system route with a UDR to force traffic to the correct next hop.

Why candidates pick the wrong answer

B

Candidates may confuse ASGs with NSGs, which are applied at the subnet level, and incorrectly assume that ASGs also propagate from subnet membership.

C

Candidates may confuse rule priority with rule effectiveness, thinking that making a rule more specific (higher priority) will fix connectivity issues, without realizing that the rule's conditions (like ASG membership) must be met first.

D

Candidates may confuse NSG rule application with routing, thinking that a UDR can bypass NSG rules or that routing changes can fix application-level connectivity issues caused by NSG misconfigurations.

23
MCQmedium

You deploy 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 instead of the public endpoint. What should you configure?

A.A network security group on the subnet.
B.A private DNS zone linked to VNet-App.
C.A public DNS zone for the storage account name.
D.A user-defined route table on the subnet.
AnswerB

A private DNS zone linked to VNet-App is required for correct name resolution. When you create a private endpoint, the storage account's FQDN must resolve to the assigned private IP instead of the public endpoint. Linking a private DNS zone—such as privatelink.blob.core.windows.net for Blob Storage—to VNet-App and creating an A record for the private endpoint enables clients in that virtual network to resolve the storage name to the private address. Without this DNS zone, name resolution will still return the public IP, breaking connectivity through the private endpoint.

Why this answer

A private endpoint requires DNS resolution to map the storage account's fully qualified domain name (FQDN) to its private IP address. By creating a private DNS zone (privatelink.blob.core.windows.net) and linking it to VNet-App, Azure automatically creates an A-record pointing to the private endpoint's IP, ensuring VMs resolve the storage account name privately instead of via the public endpoint.

Exam trap

The trap here is that candidates confuse network-level controls (NSGs, route tables) with DNS resolution, assuming that restricting traffic or routing will force private IP usage, when in fact DNS configuration is the critical missing piece for name resolution.

Why the other options are wrong

A

A network security group (NSG) controls inbound/outbound traffic rules, not DNS resolution. It cannot make a storage account name resolve to a private IP address.

C

A public DNS zone is used for internet-facing name resolution, but the requirement is to resolve the storage account name to a private IP within VNet-App. Public zones do not provide private IP resolution for private endpoints.

D

A user-defined route table controls network traffic routing at the subnet level, but DNS resolution is not affected by routing tables. The private endpoint requires DNS resolution to map the storage account name to its private IP, which is achieved via a private DNS zone, not routing.

When would these options actually be correct?

A

You need to restrict inbound traffic to a subnet hosting a private endpoint, allowing only specific sources. An NSG on that subnet would filter traffic to the private endpoint's network interface.

C

You need to create a custom domain name for an Azure Storage account that is accessible from the internet, and you want to use Azure DNS to manage the DNS records for that custom domain. In that case, you would configure a public DNS zone.

D

In a scenario where you need to force traffic from a subnet to go through a network virtual appliance (NVA) for inspection or to a specific next hop, you would configure a user-defined route table. For example, to route all outbound traffic from a subnet through a firewall.

Why candidates pick the wrong answer

A

Candidates may think NSGs can influence name resolution or confuse traffic filtering with DNS routing, assuming security groups can redirect traffic to private IPs.

C

Candidates may confuse public and private DNS zones, thinking that any DNS zone can resolve names to private IPs, or they may not fully understand that private endpoints require private DNS zones linked to the virtual network.

D

Candidates may confuse network routing with DNS resolution, thinking that controlling the path of traffic (via routes) can also control how names are resolved to IP addresses.

24
MCQeasy

A line-of-business application must keep running even if one datacenter in an Azure region has an outage. Which deployment option should you choose for the VMs?

A.An availability set
B.A single virtual machine with Premium SSD
C.Availability zones
D.A proximity placement group
AnswerC

Availability zones place VMs in separate physical datacenters within the same region. That gives the workload protection from a datacenter-level failure, which is stronger than an availability set. If one zone goes down, VMs in the other zones can continue serving traffic when the application is designed for zone-aware redundancy.

Why this answer

Availability zones (Option C) are physically separate datacenters within an Azure region, each with independent power, cooling, and networking. Deploying VMs across two or more zones ensures that if one datacenter fails, the application continues running in the other zone, meeting the requirement for resilience against a single datacenter outage.

Exam trap

The trap here is that candidates often confuse availability sets (which protect against rack-level failures) with availability zones (which protect against datacenter-level failures), leading them to choose Option A when the requirement is for datacenter outage resilience.

Why the other options are wrong

A

An availability set protects against failures within a single datacenter (rack/update domain failures), not against an entire datacenter outage within a region.

B

A single virtual machine with Premium SSD does not provide redundancy; if the datacenter hosting that VM fails, the VM becomes unavailable, failing the requirement to keep running during a datacenter outage.

D

A proximity placement group reduces network latency between VMs but does not provide redundancy across datacenters; it cannot keep the application running during a datacenter outage.

When would these options actually be correct?

A

If the question required protecting VMs from hardware failures or maintenance within a single datacenter (e.g., 'ensure VMs are on different racks and update schedules'), an availability set would be the correct answer.

B

This option would be correct for a question asking for the highest performance storage for a single VM with minimal latency, where high availability across datacenters is not required.

D

When the question asks for minimizing network latency between VMs in a single datacenter, such as for a high-performance computing workload that requires low inter-VM latency.

Why candidates pick the wrong answer

A

Candidates often confuse availability sets with availability zones, thinking both provide datacenter-level redundancy, but availability sets only cover intra-datacenter faults.

B

Candidates may think Premium SSD offers high availability due to its high durability and performance, but it does not protect against datacenter-level failures.

D

Candidates may confuse proximity placement groups with high availability features, thinking that grouping VMs together ensures they stay up during failures.

25
MCQmedium

A policy assigned at the management group denies creation of storage accounts with public network access enabled. One legacy storage account in RG-Pilot must stay publicly reachable for 45 days while an application is migrated. What should the administrator configure?

A.Remove the policy assignment from the management group until the migration is finished.
B.Create a policy exemption for the specific storage account with an expiration date.
C.Apply a CanNotDelete lock to the storage account.
D.Assign a Contributor role to the migration team on the storage account.
AnswerB

A policy exemption allows one approved resource to temporarily bypass the deny effect while preserving the policy for everything else. Adding an expiration date ensures the exception is temporary and supports compliance tracking during the migration period.

Why this answer

A policy exemption is the correct tool when a specific resource must temporarily diverge from an enforced policy. The deny policy stays in place for the management group, but the exempted storage account is allowed to remain publicly reachable during the migration window. This keeps governance intact while documenting the exception and its expiration, which is much safer than removing the policy or trying to solve a compliance issue with RBAC.

Why others are wrong: Removing the policy assignment would disable governance for all resources under the management group, not just the one legacy storage account. A CanNotDelete lock protects against deletion only; it does not affect policy evaluation or network access settings. Granting Contributor does not help because Azure Policy is evaluated separately from RBAC, so more permission does not override a deny policy.

Why the other options are wrong

A

Removing the policy assignment from the management group would disable the policy for all subscriptions and resource groups under it, not just the legacy storage account, violating the requirement to deny public network access for other storage accounts.

D

Assigning a Contributor role grants permissions to manage resources but does not override a policy that denies public network access. The policy will still block any creation or update that enables public access, and the existing legacy account's public access is not affected by role assignments.

When would these options actually be correct?

A

If the question stated that the policy was incorrectly assigned and should be removed entirely, or if the requirement was to temporarily allow all resources under the management group to bypass the policy without exceptions, then removing the assignment would be correct.

D

This option would be correct if the question asked: 'The migration team needs to manage resources in the storage account (e.g., read/write blobs) but currently has no access. What should the administrator configure?' In that case, assigning the Contributor role would grant the necessary permissions.

Why candidates pick the wrong answer

A

Candidates may think removing the policy is a quick fix to allow the legacy account, overlooking that it affects all resources under the management group and contradicts the original security intent.

D

Candidates may think that granting a role can bypass policy restrictions, confusing role-based access control (RBAC) with Azure Policy. They might also believe that adding permissions can override deny effects, which is incorrect.

26
MCQeasy

Based on the exhibit, three VMs in different resource groups must use the same Azure identity, and the identity must continue working if one VM is deleted and recreated. What should you use?

A.A system-assigned managed identity on each VM.
B.A user-assigned managed identity attached to all three VMs.
C.A service principal stored in the VM image.
D.A shared access signature assigned to the resource group.
AnswerB

A user-assigned managed identity is correct because it is created independently from any single VM and can be attached to multiple resources. That makes it ideal when several VMs need the same identity and the identity must remain available even if one VM is deleted and recreated.

Why this answer

A user-assigned managed identity is an Azure resource that can be created independently and then assigned to multiple VMs. Because it persists as a separate resource in Azure, deleting and recreating a VM does not affect the identity; you simply reattach the same user-assigned identity to the new VM. This ensures the identity continues working across VM lifecycle changes, meeting the requirement for a shared, resilient identity.

Exam trap

The trap here is that candidates confuse system-assigned managed identities (which are tied to VM lifecycle) with user-assigned managed identities (which are independent resources), leading them to choose Option A despite the requirement for identity persistence across VM deletion and recreation.

Why the other options are wrong

A

A system-assigned managed identity is tied to the lifecycle of each VM; if a VM is deleted and recreated, it gets a new identity, breaking the requirement that the same identity must persist across deletion and recreation.

C

A service principal stored in the VM image would be tied to that specific image and would not persist if a VM is deleted and recreated, as the new VM would need to have the same image or the service principal manually re-configured. It also cannot be shared across multiple VMs in different resource groups without additional configuration.

D

A shared access signature (SAS) is used to delegate access to Azure Storage resources, not to provide an Azure identity for VMs. It cannot be assigned to a resource group and does not persist across VM deletion and recreation.

When would these options actually be correct?

A

A system-assigned managed identity would be correct if each VM needed its own unique identity (e.g., for individual resource access) and the question did not require the identity to survive VM deletion and recreation.

C

This option would be correct if the question asked for a solution to authenticate an application running on a VM to Azure resources using a fixed identity that is embedded in the VM image, and the VMs are never deleted or recreated (e.g., for a static set of VMs using a custom image with pre-configured credentials).

D

A question where you need to grant time-limited, delegated access to a specific storage container or blob for a client application, without sharing the storage account key. For example, 'You need to allow a third-party app to read blobs from a container for 24 hours. What should you use?'

Why candidates pick the wrong answer

A

Candidates may think system-assigned identities are simpler to set up and assume they can be shared, overlooking that they are per-resource and not persistent across deletion.

C

Candidates may think a service principal stored in the image provides a persistent identity that survives VM recreation, but they overlook that the identity is tied to the image, not the VM resource, and that managed identities are the proper Azure feature for this scenario.

D

Candidates may confuse SAS with managed identities because both are used for authentication and authorization in Azure, or they might think SAS can be applied broadly to resource groups for identity purposes.

27
MCQmedium

You need a storage redundancy option that keeps data available if an entire availability zone in the primary region fails, but you do not need cross-region replication. Which redundancy option should you choose?

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

ZRS protects against the loss of a single availability zone in the primary region.

Why this answer

B is correct because Zone-Redundant Storage (ZRS) synchronously replicates data across three Azure availability zones within a single region, ensuring data remains available if an entire zone fails. This meets the requirement of no cross-region replication while providing zone-level fault tolerance.

Exam trap

The trap here is that candidates often confuse ZRS with LRS, thinking LRS provides zone redundancy, but LRS only replicates within one data center, not across zones.

Why the other options are wrong

C

GRS replicates data to a paired secondary region, which provides cross-region replication. The question explicitly states that cross-region replication is not needed, so GRS is unnecessary and does not meet the requirement of keeping data available if an entire availability zone fails without cross-region replication.

D

RA-GRS provides read-access to a secondary region during a regional outage, but the question explicitly states that cross-region replication is not needed. Additionally, RA-GRS does not protect against an entire availability zone failure in the primary region because it relies on LRS within the primary region.

When would these options actually be correct?

C

A question that asks for a redundancy option that keeps data available if an entire region fails, and requires cross-region replication for disaster recovery, would make GRS the correct answer. For example: 'You need to ensure data is available even if the primary region becomes unavailable due to a regional disaster. Which redundancy option should you choose?'

D

A question asks: 'You need to ensure that data remains readable from a secondary region if the primary region becomes unavailable, and you want to minimize cost. Which redundancy option should you choose?' In that scenario, RA-GRS would be correct because it provides read-only access to the secondary region at a lower cost than GRS.

Why candidates pick the wrong answer

C

Candidates may confuse zone-level failures with regional failures, or think that GRS provides zone redundancy within the primary region, not realizing that GRS is primarily for cross-region failover and does not protect against zone failures within the primary region.

D

Candidates may confuse RA-GRS with ZRS, thinking that read-access geo-redundancy provides zone-level protection, or they may overlook the constraint that cross-region replication is not required.

28
MCQeasy

A team deploys a Linux VM that must read secrets from Azure Key Vault without storing any usernames, passwords, or client secrets on the VM. What should the administrator enable on the VM?

A.A system-assigned managed identity
B.A storage account access key
C.A service endpoint on the VM subnet
D.A user account in Entra ID with a stored password
AnswerA

A system-assigned managed identity gives the VM an Azure-managed identity that can authenticate to Azure services without embedded credentials. It is tied to the VM’s lifecycle, so there is no secret to rotate or store on the operating system. This is the simplest secure choice when one VM needs to access Key Vault and the identity should exist only while the VM exists.

Why this answer

A system-assigned managed identity enables the Linux VM to authenticate to Azure Key Vault without any stored credentials. Azure automatically creates a service principal in Entra ID for the VM, and the VM can obtain an access token from the Azure Instance Metadata Service (IMDS) endpoint (169.254.169.254) to authenticate to Key Vault. This eliminates the need to store usernames, passwords, or client secrets on the VM.

Exam trap

The trap here is that candidates often confuse service endpoints (which control network access) with managed identities (which provide identity-based access), leading them to select option C thinking it secures the VM's access to Key Vault without credentials.

Why the other options are wrong

B

A storage account access key is a shared secret that would need to be stored on the VM, violating the requirement to avoid storing any secrets on the VM. It also does not provide a secure, identity-based method for accessing Key Vault.

C

A service endpoint on the VM subnet secures Azure service access to the subnet but does not provide identity or credentials for the VM to authenticate to Key Vault. The VM still needs a way to prove its identity, which a service endpoint alone cannot do.

D

Using a user account in Entra ID with a stored password requires the VM to store credentials, violating the requirement to avoid storing usernames, passwords, or client secrets.

When would these options actually be correct?

B

This option would be correct in a scenario where the VM needs to authenticate to Azure Storage (e.g., to mount a file share) and the question does not prohibit storing secrets on the VM, or when using a connection string with the access key embedded in an application configuration file.

C

A service endpoint would be correct in a scenario where you need to restrict access to an Azure service (e.g., Storage Account) to only traffic from a specific virtual network subnet, ensuring no public internet access. For example, 'You need to ensure that only VMs in a specific subnet can access an Azure Storage account.'

D

If the question required a human user to authenticate interactively to access Key Vault secrets (e.g., via Azure Portal or CLI), enabling a user account with password would be appropriate.

Why candidates pick the wrong answer

B

Candidates may confuse storage access keys with managed identities, thinking that keys can be used for authentication without realizing they must be stored on the VM, which contradicts the no-secret-storage requirement.

C

Candidates may confuse network-level access control (service endpoints) with identity-based access control (managed identities), thinking that restricting network access to Key Vault from the VM subnet is sufficient to allow the VM to read secrets without credentials.

D

Candidates may think that any Entra ID identity can be used for authentication, overlooking the requirement to avoid storing credentials on the VM.

29
MCQmedium

A company is deploying two Linux application VMs in Azure for a production workload. The region supports availability zones, and the business requires the workload to stay online if an entire datacenter in the region becomes unavailable. Which deployment choice best meets this requirement?

A.Place both VMs in the same availability set so Azure separates them across update domains.
B.Deploy the VMs across two availability zones in the same region.
C.Use a single larger VM size with premium SSD storage for better uptime.
D.Deploy the VMs in the same resource group and enable auto-shutdown.
AnswerB

Availability zones place resources in separate datacenters within the same Azure region. That design protects the workload if a full datacenter or zone experiences an outage. For production systems that must survive a zone failure, zones provide stronger resilience than availability sets. This is the best fit when the region supports zones and the application can run with zone-separated instances.

Why this answer

Availability zones are physically separate datacenters within an Azure region, each with independent power, cooling, and networking. Deploying the two Linux VMs across two different zones ensures that if an entire datacenter fails, the VM in the other zone remains online, meeting the requirement for resilience against a full datacenter outage.

Exam trap

The trap here is that candidates confuse availability sets (which protect within a datacenter) with availability zones (which protect against full datacenter failure), leading them to choose option A even though it cannot meet the stated requirement.

Why the other options are wrong

A

An availability set protects against hardware failures within a single datacenter, not against an entire datacenter failure. The requirement is to survive a full datacenter outage, which requires availability zones.

C

Using a single larger VM does not provide redundancy; if the datacenter hosting that VM fails, the workload goes offline, failing to meet the requirement of surviving an entire datacenter outage.

D

Auto-shutdown only powers down VMs on a schedule, not during a datacenter outage, and does not provide high availability or redundancy against zone or datacenter failures.

When would these options actually be correct?

A

If the requirement was to protect against planned maintenance or hardware failures within a single datacenter (e.g., ensuring VMs are on different update and fault domains), an availability set would be the correct choice.

C

This option would be correct if the requirement was to maximize performance for a single VM workload that cannot be distributed, and the question asked for the best way to improve uptime within a single datacenter (e.g., using premium SSD for higher durability and SLA).

D

A question asks for a cost-saving measure for non-production VMs that are only needed during business hours, with no high availability requirement. Enabling auto-shutdown would automatically stop VMs at a specified time to reduce compute costs.

Why candidates pick the wrong answer

A

Candidates may confuse availability sets with high availability across datacenters, or they may think 'update domains' imply geographic separation, but availability sets are limited to one datacenter.

C

Candidates may mistakenly believe that a larger, more resilient VM (with premium storage) alone can withstand datacenter failures, overlooking the need for geographic or zone-level redundancy.

D

Candidates may mistakenly think auto-shutdown provides automatic recovery or failover, confusing scheduled shutdown with disaster recovery or high availability features.

30
Multi-Selecthard

A platform team has a generalized VM image that must be published to East US and West Europe today and patched later without overwriting the original build. They want Azure to keep version history and replicate the image to both regions. Which two actions or resources should they use? Select two.

Select 2 answers
A.Create an Azure Compute Gallery
B.Create an image definition and image version
C.Capture the VM as a single managed image and copy it manually to each region
D.Use an availability set to preserve the image
E.Take a snapshot of the OS disk and deploy VMs directly from the snapshot
AnswersA, B

Azure Compute Gallery (formerly Shared Image Gallery) is a managed service for storing, versioning, and replicating VM images across regions and subscriptions. It provides centralized lifecycle control, replication policies, and supports both specialized and generalized images. This makes it the appropriate foundation for a platform team's generalized VM image needing broad distribution.

Why this answer

Azure Compute Gallery (formerly Shared Image Gallery) allows you to store and manage VM image versions, including version history, and replicate them across multiple Azure regions. By creating an image definition and image version within the gallery, you can publish the generalized VM image to East US and West Europe today, and later create a new image version for patching without overwriting the original build, preserving the version history.

Exam trap

The trap here is that candidates often confuse a single managed image (Option C) with the Azure Compute Gallery’s image version, not realizing that a managed image lacks version history and automated multi-region replication, which are key requirements for this scenario.

Why the other options are wrong

D

An availability set is used to distribute VMs across fault domains and update domains for high availability, not for preserving or replicating VM images across regions.

E

Snapshots capture a point-in-time copy of a disk but do not support versioning, replication across regions, or shared image management. Deploying VMs directly from snapshots lacks the centralized version history and automated replication provided by Azure Compute Gallery.

When would these options actually be correct?

D

In a question asking how to ensure high availability for a set of VMs running the same application, such as a web tier, where you need to protect against hardware failures and planned maintenance within a single region.

E

A question asks for a quick, one-off backup of a single VM's OS disk to be used for disaster recovery in the same region, with no need for versioning or multi-region replication. The snapshot can be used to create a new VM in the same region.

Why candidates pick the wrong answer

D

Candidates may confuse availability sets with image management or replication, thinking that 'preserving' an image relates to availability rather than versioning and distribution.

E

Candidates may think snapshots are a simple way to capture and reuse an image, but they overlook the need for version history and cross-region replication, which are not supported by snapshots.

31
Matchingmedium

Match each storage networking requirement to the Azure storage network control that should be used.

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

Concepts
Matches

Storage firewall with a virtual network rule and service endpoint

Private endpoint with private DNS zone

Trusted Microsoft services exception

Storage firewall IP network rule

Why these pairings

Azure storage network controls: service endpoints for VNet access, private endpoints for private connectivity, IP firewall for public IP restrictions, trusted services exception, route tables for custom routing, and disabling public access for complete lockdown.

32
MCQmedium

A production application runs on three Azure VMs in the same region. The business requires the service to stay available if one entire datacenter in the region becomes unavailable because of a power or network outage. Which configuration best meets the requirement?

A.Place the VMs in the same availability set.
B.Deploy the VMs across availability zones.
C.Use a proximity placement group for the VMs.
D.Attach the VMs to the same Azure Load Balancer backend pool.
AnswerB

Availability zones are physically separate datacenters within an Azure region, each with independent power, cooling, and networking. Spreading the three VMs across zones ensures that if one zone fails, the other two remain available, providing high availability for the production application. This directly mitigates the risk of a full datacenter outage, which is the core requirement here.

Why this answer

Availability Zones are physically separate datacenters within an Azure region, each with independent power, cooling, and networking. By deploying VMs across three zones, the application can survive the failure of an entire datacenter because the other zones remain operational. This meets the requirement for high availability against a full datacenter outage.

Exam trap

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

Why the other options are wrong

A

An availability set protects against rack-level failures within a single datacenter, not against an entire datacenter outage. It does not provide resilience across multiple datacenters.

C

Proximity placement groups reduce network latency between VMs but do not protect against datacenter-level failures; they can even place VMs in the same datacenter, increasing risk.

D

Attaching VMs to the same Azure Load Balancer backend pool distributes traffic but does not protect against a full datacenter failure if all VMs are in the same datacenter. The requirement is for availability during a datacenter outage, which requires physical separation across zones.

When would these options actually be correct?

A

If the requirement was to protect against hardware failures (e.g., server or rack failures) within a single datacenter, while ensuring high availability for the VMs, an availability set would be the correct choice.

C

An application requires the lowest possible network latency between VMs (e.g., for high-performance computing or tightly coupled workloads) and does not need datacenter-level fault tolerance.

D

A question where the requirement is to distribute incoming traffic across multiple VMs for load balancing and high availability within a single datacenter, without needing to survive a full datacenter outage. For example: 'You need to distribute web traffic evenly across two VMs in the same region while providing health probing.'

Why candidates pick the wrong answer

A

Candidates may confuse availability sets with availability zones, thinking both provide datacenter-level redundancy, or they may assume 'availability' in the name implies full datacenter fault tolerance.

C

Candidates may confuse 'proximity' with 'redundancy' or think grouping VMs close together improves availability, not realizing it actually increases co-location risk.

D

Candidates may think that a load balancer inherently provides high availability by distributing traffic, but they overlook that it does not protect against the failure of an entire datacenter if all backend VMs are in that datacenter.

33
MCQmedium

Based on the exhibit, which network feature should you use so only the subnet can reach the storage account while still using the public endpoint?

A.Create a private endpoint and disable the storage account public endpoint.
B.Enable a service endpoint on app-subnet and allow that subnet on the storage firewall.
C.Add a NAT gateway to app-subnet and use the NAT public IP for firewall rules.
D.Peer app-subnet with a new VNet and access the storage account through peering.
AnswerB

A service endpoint is the correct choice when you want the storage account to remain on its public endpoint but only allow traffic from a specific subnet. It extends the subnet identity to the service without requiring static public IP addresses on the VMs.

Why this answer

Enabling a service endpoint on the app-subnet allows traffic from that subnet to reach the storage account over the Azure backbone network while still using the public endpoint. By then adding the subnet to the storage account firewall, you restrict access to only that subnet, ensuring no other internet traffic can reach the storage account. This approach leverages the public endpoint but with subnet-level access control, meeting the requirement.

Exam trap

The trap here is that candidates often confuse service endpoints with private endpoints, thinking that only private endpoints can provide secure access, but service endpoints allow subnet-specific access while keeping the public endpoint enabled.

Why the other options are wrong

A

The question requires using the public endpoint, but option A disables it, which violates the constraint.

C

A NAT gateway provides outbound internet access with a static public IP, but it does not restrict access to the storage account's public endpoint from only the subnet. The storage firewall cannot filter by NAT public IP in this way; it requires service endpoints or private endpoints for subnet-level access.

When would these options actually be correct?

A

When the requirement is to ensure that only traffic from a specific subnet can access the storage account and the public endpoint must be disabled for security reasons, such as in a scenario where all access must go through Microsoft's backbone network to avoid internet exposure.

C

If the question required all outbound traffic from app-subnet to use a single, static public IP for internet access (e.g., for whitelisting on external services), and the storage account allowed access via that specific public IP in its firewall rules, then a NAT gateway would be correct.

Why candidates pick the wrong answer

A

Candidates may think that a private endpoint is the only way to restrict access to a specific subnet, overlooking that service endpoints can achieve similar restriction while keeping the public endpoint enabled.

C

Candidates may think that using a NAT gateway's public IP in the storage firewall can restrict access to the subnet, confusing outbound source NAT with inbound access control, or they may overestimate the firewall's ability to filter by NAT IPs.

34
MCQeasy

A container group runs a one-time import job in Azure Container Instances. After the job finishes successfully, it should not restart. Which restart policy should you choose?

A.Always
B.OnFailure
C.Never
D.Manual
AnswerC

Never is the correct restart policy for a one-time task that should run once and then stop. Azure Container Instances will not try to restart the container after it exits, even if it finishes successfully. That behavior matches import jobs, batch scripts, and other short-lived workloads that should complete and remain stopped.

Why this answer

The 'Never' restart policy ensures that the container group does not restart after the job completes, which is ideal for a one-time import job that should run exactly once. Azure Container Instances supports three restart policies: Always, OnFailure, and Never. For a job that must not restart after successful completion, 'Never' is the correct choice because it prevents any automatic restart regardless of the exit code.

Exam trap

The trap here is that candidates may confuse 'OnFailure' with 'Never' for a successful job, but 'OnFailure' still allows restarts on failure, which violates the 'should not restart' requirement; the question explicitly states the job finishes successfully, so the correct policy is 'Never' to guarantee no restart under any condition.

Why the other options are wrong

A

The 'Always' restart policy restarts the container regardless of exit code, which is inappropriate for a one-time import job that should not restart after successful completion.

B

The 'OnFailure' policy restarts the container only if it exits with a non-zero exit code, but the job completes successfully (exit code 0), so it would not restart. However, the question requires that the container should not restart at all after success, making 'Never' the correct choice.

D

Azure Container Instances does not support a 'Manual' restart policy. The valid policies are Always, OnFailure, and Never.

When would these options actually be correct?

A

Choose 'Always' for a long-running service like a web server or API endpoint that must be automatically restarted if it stops, ensuring high availability.

B

This policy would be correct for a job that should automatically retry on failure, such as a data processing task that must be re-run if it fails due to transient errors. For example, a batch job that imports data from an external source and should restart only if the import fails.

D

If the question were about a Docker container running on a virtual machine or a Kubernetes pod, where you can manually restart the container after it stops, then 'Manual' could be a plausible option. However, for Azure Container Instances, it is not a valid choice.

Why candidates pick the wrong answer

A

Candidates may assume 'Always' ensures the job runs continuously, but they overlook that the job is designed to run once and exit.

B

Candidates may think 'OnFailure' is appropriate because the job is one-time and should not restart on success, but they overlook that the policy still allows restarts on failure, which is not desired here. They confuse 'not restarting after success' with 'not restarting at all'.

D

Candidates might assume that 'Manual' is a standard restart policy similar to Docker's restart policies, but Azure Container Instances has its own set of policies that do not include Manual.

35
MCQeasy

Based on the exhibit, what is the best way to simplify access management for the project team?

A.Keep assigning RBAC roles directly to each user account.
B.Assign the RBAC role to an Entra ID group and manage membership there.
C.Create a resource lock on RG-App.
D.Create an Azure Policy assignment for RG-App.
AnswerB

Assigning the RBAC role to an Entra ID group and managing membership there centralizes access control: when a user is added to or removed from the group, their effective permissions on RG-App update automatically. This leverages Azure's inheritance model, reduces administrative overhead, and enables dynamic membership rules or access reviews to keep entitlements current. It is the best practice for simplifying access at scale.

Why this answer

The best practice is to assign the RBAC role to an Entra ID group instead of individual users. That way, access management is handled by adding or removing members from the group, which is much easier and less error-prone. The role assignment remains stable while team membership changes over time, which is exactly what the requirement describes.

Why others are wrong: A works initially but becomes difficult to maintain as team membership changes. C does not control access at all. D is a governance mechanism, not an authorization mechanism, so it cannot replace group-based RBAC.

Why the other options are wrong

D

Azure Policy is used to enforce organizational standards and assess compliance, not to simplify access management. It does not grant or manage permissions for users.

When would these options actually be correct?

D

If the question asked for a way to enforce that all resources in RG-App must have a specific tag (e.g., 'CostCenter') to prevent non-compliant deployments, then creating an Azure Policy assignment would be correct.

Why candidates pick the wrong answer

D

Candidates may confuse Azure Policy with RBAC, thinking policies can manage access, or they may believe policies can simplify management by automatically applying rules, but policies do not control user permissions.

36
MCQmedium

A developer packages an internal web app as a Linux container. The app must be published with built-in HTTPS, deployment slots, and autoscale, and the team does not want to manage OS patching or container hosts. Which Azure service should the administrator choose?

A.Azure Container Instances
B.Azure App Service
C.Azure Virtual Machines
D.Azure Kubernetes Service
AnswerB

Azure App Service is a fully managed platform-as-a-service (PaaS) that can host Linux containers through Web App for Containers, providing built-in HTTPS, custom domains, deployment slots, and automatic scaling without requiring infrastructure management. The service automatically patches the underlying OS and runtime, freeing the developer from server maintenance. This makes it the ideal choice for an internal web app that needs a managed host with robust web hosting features.

Why this answer

Azure App Service is the correct choice because it natively supports Linux containers, built-in HTTPS via TLS/SSL, deployment slots for staging and production swaps, and autoscale based on metrics or schedules. It also abstracts OS patching and container host management, meeting the team's requirement to avoid managing infrastructure.

Exam trap

The trap here is that candidates often choose Azure Kubernetes Service (D) for containerized apps, overlooking that App Service provides a simpler, fully managed solution with built-in deployment slots and autoscale, while AKS requires cluster management and lacks native slot support.

Why the other options are wrong

A

Azure Container Instances does not provide built-in HTTPS, deployment slots, or autoscale. It is a simple container runtime without the PaaS features required for the web app.

C

Azure Virtual Machines require the team to manage OS patching and container hosts, contradicting the requirement to avoid managing OS patching or container hosts.

D

Azure Kubernetes Service (AKS) requires managing the container orchestration layer and does not provide built-in HTTPS, deployment slots, or autoscale without additional configuration. It also involves managing OS patching for node pools, contradicting the requirement to avoid managing container hosts.

When would these options actually be correct?

A

When the requirement is to run a containerized app quickly without managing orchestration, and features like HTTPS, slots, and autoscale are not needed. For example, a batch job or a simple API that runs on demand.

C

When the question specifies full control over the OS, custom software installations, or legacy app dependencies that cannot be containerized, and the team is willing to manage patching and host maintenance.

D

A question requiring container orchestration, microservices architecture, or complex scaling and rolling updates across multiple containers, where the team has expertise in Kubernetes and needs fine-grained control over container scheduling and networking.

Why candidates pick the wrong answer

A

Candidates may think container instances are sufficient for containerized apps, overlooking the need for built-in HTTPS, deployment slots, and autoscale that App Service provides.

C

Candidates may think VMs are needed for container hosting or custom configurations, overlooking that App Service can run containers with built-in HTTPS, deployment slots, and autoscale without host management.

D

Candidates may associate containers with Kubernetes as the standard orchestration platform, overlooking that simpler services like App Service can host containers with less management overhead and built-in features like HTTPS and deployment slots.

37
MCQmedium

Based on the exhibit, a site-to-site VPN gateway deployment fails. What prerequisite should the administrator provide so the gateway can be created successfully?

A.A public IP address resource that will be associated with the VPN gateway.
B.A NAT gateway on the GatewaySubnet to translate tunnel traffic.
C.A private endpoint in the GatewaySubnet for tunnel termination.
D.A network security group that allows inbound TCP 443 to the subnet.
AnswerA

Azure VPN gateways need a public-facing IP resource so the gateway can accept encrypted tunnels from the on-premises device. The exhibit shows the gateway subnet is already present, but no public IP was attached. Creating and associating the public IP resource satisfies the deployment prerequisite.

Why this answer

A site-to-site VPN gateway in Azure requires a public IP address resource to be associated with it for the tunnel to be established. The VPN gateway uses this public IP as the endpoint for on-premises VPN devices to connect to over the internet. Without a public IP, the gateway cannot be provisioned because it has no routable external address for IPsec/IKE negotiation.

Exam trap

The trap here is that candidates often confuse the prerequisite for a VPN gateway with that of an Azure Firewall or NAT gateway, mistakenly thinking a NAT gateway or NSG is required, when in fact only a public IP is mandatory for the VPN gateway to function.

Why the other options are wrong

B

A NAT gateway is not required for a site-to-site VPN gateway deployment. VPN gateways use public IP addresses for tunnel endpoints, and traffic translation is handled by the VPN gateway itself, not a separate NAT gateway.

C

A private endpoint is used for private connectivity to Azure PaaS services over a private IP, not for terminating site-to-site VPN tunnels. VPN gateways require a public IP and do not use private endpoints in the GatewaySubnet.

D

A network security group (NSG) on the GatewaySubnet is not a prerequisite for VPN gateway creation; NSGs are optional and can be applied after deployment. The failure is due to missing a public IP resource, not NSG rules.

When would these options actually be correct?

B

In a scenario where on-premises network uses overlapping IP addresses with Azure VNet, a NAT gateway on the GatewaySubnet could be used to translate traffic to avoid conflicts, but this is not a prerequisite for basic VPN gateway creation.

C

If the question were about securely accessing an Azure SQL Database from on-premises without exposing it to the internet, a private endpoint in a virtual network (not necessarily GatewaySubnet) would be the correct prerequisite to create.

D

This option would be correct if the question asked: 'After deploying a VPN gateway, users cannot connect. What is missing?' or 'What must be configured to allow management traffic from Azure to the VPN gateway?' — where inbound TCP 443 is required for Azure gateway management.

Why candidates pick the wrong answer

B

Candidates may confuse NAT gateway with the need for public IP translation or think that outbound traffic from the GatewaySubnet requires NAT, but VPN gateways handle their own public IP addressing.

C

Candidates may confuse private endpoints with VPN endpoints, thinking that a private IP termination is needed for security, but VPN gateways inherently use public IPs for tunnel establishment.

D

Candidates may think NSGs are mandatory for security or that inbound 443 is needed for VPN tunnel establishment, confusing management traffic with tunnel traffic.

38
MCQhard

A VM in AppSubnet must reach a database VM in DbSubnet on TCP 1433. AppSubnet's NSG has an outbound deny rule for TCP 1433 to Any at priority 200. DbSubnet's NSG has an inbound allow rule for TCP 1433 from ASG-App to ASG-Db at priority 300. Both NICs are in the correct application security groups. Connectivity tests fail. What should the administrator change?

A.Remove the inbound allow rule from DbSubnet so the default rules can take over.
B.Move the inbound allow rule on DbSubnet to priority 100 so it is evaluated sooner.
C.Create an outbound allow rule on AppSubnet with a lower priority number than 200 for TCP 1433 to ASG-Db.
D.Assign the database VM NIC to ASG-App so the destination rule matches a broader group.
AnswerC

NSG evaluation is priority-based and stateful, but an outbound deny still blocks the initial connection. A higher-priority outbound allow on the source subnet must match before the deny rule. Because the destination rule already allows the traffic, adding or moving the source-side allow above priority 200 resolves the failure without changing the application subnets or ASG design.

Why this answer

The AppSubnet's NSG has an outbound deny rule for TCP 1433 to Any at priority 200, which blocks all outbound traffic on that port regardless of destination. To allow the VM in AppSubnet to reach the database VM in DbSubnet, an outbound allow rule must be created with a lower priority number (e.g., 100) so it is evaluated before the deny rule. This rule should specify the destination as ASG-Db (the application security group of the database VM) to precisely permit the required traffic.

Exam trap

The trap here is that candidates often focus on the inbound rule on the destination subnet, overlooking the outbound deny rule on the source subnet that blocks traffic before it can even reach the destination NSG.

Why the other options are wrong

A

Removing the inbound allow rule would not fix the connectivity issue because the outbound deny rule on AppSubnet is blocking the traffic. Without an explicit outbound allow, the default outbound deny would still block traffic even if the inbound rule is removed.

B

The inbound allow rule on DbSubnet is already at priority 300, which is evaluated before the default deny rule (priority 65000). The issue is the outbound deny rule on AppSubnet at priority 200, which blocks traffic before it reaches DbSubnet. Changing the priority of the inbound rule does not address the outbound block.

D

Assigning the database VM NIC to ASG-App would not help because the inbound rule on DbSubnet's NSG already allows traffic from ASG-App to ASG-Db. The issue is the outbound deny rule on AppSubnet blocking traffic; changing the destination ASG does not address the outbound block.

When would these options actually be correct?

A

This option would be correct in a scenario where the DbSubnet NSG has a high-priority inbound deny rule for TCP 1433 that is blocking traffic, and the default rules would allow the traffic if the explicit deny is removed. For example, if DbSubnet had an inbound deny rule at priority 200 for TCP 1433 from Any, removing it would let the default allow rule (if any) take effect.

B

This option would be correct if the outbound deny rule on AppSubnet did not exist or was not blocking traffic, and the inbound allow rule on DbSubnet was being overridden by a higher-priority inbound deny rule (e.g., priority 200). In that case, moving the allow rule to a lower priority number (e.g., 100) would ensure it is evaluated before the deny rule.

D

This option would be correct if the inbound rule on DbSubnet's NSG specified ASG-App as the destination instead of ASG-Db, and the database VM was not in ASG-Db. Assigning the database VM NIC to ASG-App would then make the rule apply, allowing traffic.

Why candidates pick the wrong answer

A

Candidates may think that removing the inbound rule allows default rules to permit traffic, but they overlook that the outbound deny on AppSubnet is the actual blocker. They might also assume that default rules are permissive, but in this case, the outbound default is deny.

B

Candidates may think that increasing the priority of the inbound allow rule (lower number) will make it more effective, but they overlook that the traffic is blocked by the outbound NSG on the source subnet before it even reaches the destination subnet's NSG.

D

Candidates may think that matching the destination ASG to the VM's group will make the rule apply, but they overlook that the rule already correctly targets ASG-Db and the VM is already in that group. The real problem is the outbound deny rule.

39
MCQhard

A platform team wants one Azure storage account for application logs in Blob containers and a shared working directory for a Windows admin VM and a Linux automation VM. The account must support blob lifecycle rules, standard performance, and future private endpoint access. Which storage account kind should the administrator create?

A.BlobStorage, because it is optimized for blob data and can store logs efficiently.
B.StorageV2 (general-purpose v2), because it supports blobs, Azure Files, lifecycle management, and modern network features.
C.FileStorage, because it is the best option when Azure Files is required.
D.BlockBlobStorage, because it provides the highest performance for operational data.
AnswerB

General-purpose v2 is the correct choice because it supports both Blob storage and Azure Files, includes lifecycle management for blobs, and offers the current feature set expected for private endpoints and standard administration. It is the normal recommendation when you need multiple storage services in one account.

Why this answer

StorageV2 (general-purpose v2) is the correct choice because it supports Blob storage, Azure Files (required for the shared working directory), blob lifecycle management rules, and advanced networking features like private endpoints. It also provides standard performance, meeting all stated requirements. Other storage kinds lack either Azure Files support or lifecycle management capabilities.

Exam trap

The trap here is that candidates often choose BlobStorage because they focus on 'blob lifecycle rules' and 'logs,' forgetting that the shared working directory requires Azure Files, which BlobStorage does not support.

Why the other options are wrong

A

BlobStorage accounts do not support Azure Files, which is required for the shared working directory accessible by both Windows and Linux VMs. They also lack lifecycle management and private endpoint support.

C

FileStorage is a premium-only account kind for Azure Files, lacking blob support and lifecycle management, and does not meet the 'standard performance' requirement.

D

BlockBlobStorage is designed for high-throughput workloads with premium performance and does not support Azure Files, lifecycle management, or standard performance tier, all of which are required in this scenario.

When would these options actually be correct?

A

A question that asks for a storage account optimized solely for storing large amounts of unstructured blob data (e.g., backup archives or log data) with no need for file shares, lifecycle policies, or private endpoints would make BlobStorage correct.

C

A question requiring a premium Azure Files share for high-performance file shares, with no need for blobs or lifecycle rules, and private endpoint access is acceptable.

D

A scenario requiring ultra-low latency for large-scale analytics or IoT telemetry where premium block blob performance is needed, and Azure Files, lifecycle management, and private endpoints are not required.

Why candidates pick the wrong answer

A

Candidates may focus on the 'application logs in Blob containers' requirement and assume BlobStorage is sufficient, overlooking the need for Azure Files and lifecycle management.

C

Candidates see 'shared working directory' and 'Azure Files' and assume FileStorage is the best fit, overlooking the need for blob support and standard performance tier.

D

Candidates may confuse 'block blobs' with 'blob storage' and assume higher performance is always better, overlooking the specific requirements for Azure Files and lifecycle management.

40
MCQmedium

An organization wants a single Azure storage account that can host blob containers, Azure Files shares, and lifecycle management rules for blob data. Which storage account kind should the administrator create?

A.BlobStorage
B.FileStorage
C.General-purpose v2 (StorageV2)
D.BlockBlobStorage
AnswerC

General-purpose v2 is the standard Azure storage account type for most administrative scenarios. It supports blobs and Azure Files, and it includes the features needed for lifecycle management and modern access controls. This makes it the correct choice when an application needs multiple storage services in one account.

Why this answer

General-purpose v2 (StorageV2) is the only storage account kind that supports blobs, Azure Files, and lifecycle management rules for blob data. It provides a unified account for all Azure Storage data services, including blobs, files, queues, and tables, and it natively supports lifecycle management policies to automatically tier or delete blob data based on age or other conditions.

Exam trap

The trap here is that candidates often confuse the specialized storage account kinds (BlobStorage, FileStorage, BlockBlobStorage) with the general-purpose v2 account, mistakenly thinking that a dedicated account type is required for each service, when in fact general-purpose v2 is the Swiss Army knife that supports all of them plus lifecycle management.

Why the other options are wrong

A

BlobStorage accounts support only block blobs and append blobs, not Azure Files shares or lifecycle management rules.

B

FileStorage accounts support only Azure Files shares and do not support blob containers or lifecycle management rules for blob data.

D

BlockBlobStorage is optimized for high-throughput block blob workloads and does not support Azure Files shares or lifecycle management rules for blob data.

When would these options actually be correct?

A

When the requirement is solely for storing block blobs and append blobs, with no need for Azure Files or lifecycle management, and the account must be created with the BlobStorage kind.

B

An organization needs a storage account exclusively for Azure Files shares with high-performance requirements, such as for a file server migration or lift-and-shift scenario, and does not require blob storage or lifecycle management.

D

An organization needs a storage account with the lowest possible latency for high-volume block blob workloads, such as video editing or IoT telemetry ingestion, and does not require Azure Files or lifecycle management.

Why candidates pick the wrong answer

A

Candidates may assume 'BlobStorage' is the correct choice because the question mentions blob containers and lifecycle management, overlooking the additional requirement for Azure Files shares.

B

Candidates may associate 'FileStorage' with Azure Files and assume it can also host blobs, or they may overlook the requirement for blob containers and lifecycle management rules.

D

Candidates may confuse BlockBlobStorage with BlobStorage, thinking it supports all blob features, or assume 'block' implies general-purpose capabilities.

41
Matchingmedium

Match each storage resiliency requirement to the Azure redundancy option that best satisfies it.

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

Concepts
Matches

ZRS

LRS

RA-GRS

RA-GZRS

Why these pairings

LRS replicates within a single datacenter; ZRS across zones; GRS across regions; RA-GRS adds read access to GRS; RA-ZRS adds read access to ZRS. LRS is cheapest, GRS is highest durability.

42
Multi-Selecthard

RG-Prod hosts line-of-business workloads. The business wants to prevent accidental deletion of the resource group during change freezes and also ensure every new resource carries a CostCenter tag for chargeback. Which two governance controls should be used? Select two.

Select 2 answers
A.Apply a CanNotDelete lock to RG-Prod.
B.Apply a ReadOnly lock to RG-Prod.
C.Use Azure Policy with a Modify effect to add the CostCenter tag to new resources.
D.Grant Reader to the finance team on the resource group.
E.Create a private endpoint for RG-Prod.
AnswersA, C

A CanNotDelete lock prevents deletion of the resource group and all child resources while leaving read and update operations fully functional. This lock is enforced at the Azure Resource Manager control plane, so ordinary updates, deployments, and configuration changes continue to work, which aligns with the need to host production workloads without disruption. It is the appropriate choice when the goal is to guard against accidental deletion without restricting administrative changes.

Why this answer

Applying a CanNotDelete lock to RG-Prod prevents the resource group from being deleted during change freezes, which directly meets the requirement to prevent accidental deletion. This lock type allows read and update operations but blocks delete operations, making it ideal for protecting critical resources without impacting ongoing workloads.

Exam trap

The trap here is that candidates often confuse a ReadOnly lock with a CanNotDelete lock, assuming any lock prevents deletion, but ReadOnly locks also block updates, which would break production workloads, while the correct choice is the less restrictive CanNotDelete lock for deletion prevention only.

Why the other options are wrong

B

A ReadOnly lock prevents any changes, including updates and deletions, but the requirement is only to prevent accidental deletion during change freezes, not to block all modifications. Additionally, it does not address the CostCenter tag requirement.

D

Granting Reader permission to the finance team allows them to view resources but does not enforce tagging or prevent deletion. The question requires preventing accidental deletion and ensuring a CostCenter tag on new resources, which Reader cannot achieve.

E

A private endpoint secures network connectivity to a PaaS service (e.g., Storage, SQL) by giving it a private IP in a VNet, not a resource group. It does not prevent deletion or enforce tagging.

When would these options actually be correct?

B

If the business required that no changes (including updates) be made to the resource group or its resources during a freeze period, a ReadOnly lock would be the correct choice to enforce complete read-only access.

D

If the question asked for a control to allow the finance team to view resource costs without making changes, granting Reader access to the resource group would be correct. For example: 'Which role should you assign to the finance team so they can monitor resource usage without modifying resources?'

E

In a scenario where a company needs to ensure that a storage account in RG-Prod is accessed only over a private network from a specific VNet, and all public access must be disabled, creating a private endpoint for that storage account would be the correct governance control.

Why candidates pick the wrong answer

B

Candidates may confuse ReadOnly lock with CanNotDelete lock, thinking any lock prevents deletion, but ReadOnly is more restrictive than needed and fails to meet the tag requirement.

D

Candidates may think Reader is a governance control because it restricts write access, but it does not prevent deletion (locks do) or enforce tagging (policy does). The term 'governance' is broad, leading to confusion between access control and resource governance.

E

Candidates may confuse 'private endpoint' with a general governance tool, thinking it 'locks down' the resource group, or they may misapply the concept of 'private' as a form of access control beyond networking.

43
MCQmedium

A compliance team keeps signed contract scans in blob storage. The files are usually not accessed, but when they are needed they must be available immediately without waiting for rehydration. The team wants the lowest-cost online tier that still allows immediate reads. Which access tier should you choose?

A.Hot
B.Cool
C.Cold
D.Archive
AnswerC

Cold is the correct choice because it is an online access tier designed specifically for infrequently accessed data that must remain immediately readable. It offers substantially lower storage costs than Hot or Cool while still allowing direct access without a rehydration step. For a compliance team retaining signed contract scans that are rarely retrieved but may be needed on demand, Cold balances long-term storage economy with instant availability.

Why this answer

The Cold tier (C) is correct because it is the lowest-cost online access tier that provides immediate read access without requiring rehydration. Unlike the Archive tier, Cold tier data is always online and can be read instantly, while still offering lower storage costs than Cool or Hot tiers for data that is rarely accessed.

Exam trap

The trap here is that candidates often choose Cool or Hot because they assume 'lowest cost' means Archive, forgetting that Archive is offline and requires rehydration, or they overlook the Cold tier as a newer, lower-cost online option.

Why the other options are wrong

A

Hot tier is the highest-cost online tier, not the lowest-cost. The question asks for the lowest-cost online tier that still allows immediate reads, which is Cold, not Hot.

B

Cool tier has higher storage cost than Cold tier and is not the lowest-cost online tier for infrequently accessed data. The question specifically asks for the lowest-cost online tier that allows immediate reads, and Cold tier meets that requirement at a lower storage cost than Cool.

D

Archive tier requires rehydration (which can take hours) before data can be read, violating the requirement for immediate availability without waiting.

When would these options actually be correct?

A

A scenario where the compliance team needs the lowest latency for frequent reads and cost is not the primary concern, such as for active contract negotiations requiring instant access multiple times per day.

B

If the question asked for the lowest-cost tier for data that is accessed moderately frequently (e.g., monthly) and requires immediate availability, Cool tier would be correct. For example: 'You need to store monthly reports that are accessed several times a month and must be available instantly. Choose the most cost-effective online tier.'

D

For long-term backup or compliance data that is rarely accessed and can tolerate hours of retrieval delay, where lowest storage cost is the priority and immediate access is not required.

Why candidates pick the wrong answer

A

Candidates may assume 'Hot' is always the best for immediate access without considering cost, or they may not know that Cold tier also provides immediate reads at lower cost.

B

Candidates may assume Cool is the lowest-cost online tier because it is commonly used for infrequently accessed data, but they overlook that Cold tier is even cheaper for data that is rarely accessed but still needs to be online.

D

Candidates may think Archive is the cheapest option and assume 'rarely accessed' justifies it, overlooking the critical requirement for immediate reads without rehydration.

44
MCQmedium

After applying a custom image, a VM boots to a black screen with a blinking cursor. The OS never reaches the login prompt. The administrator needs the fastest way to inspect the boot process and view serial console output. What should be enabled or checked?

A.Azure Monitor metrics for the VM
B.Boot diagnostics
C.Network watcher packet capture
D.Azure Advisor recommendations
AnswerB

Boot diagnostics is the quickest way to review startup problems because it captures the VM screenshot and serial console output during the boot process. When the operating system is not reaching the login screen, this feature helps identify whether the failure happens before the guest OS loads successfully.

Why this answer

Boot diagnostics captures serial console output and screenshots of the VM during boot. When a VM boots to a black screen with a blinking cursor, the serial console log provides the exact kernel or bootloader messages (e.g., GRUB, initramfs errors) without requiring OS-level access. This is the fastest way to inspect the boot process because it works even when the OS is unresponsive.

Exam trap

The trap here is that candidates confuse boot diagnostics (which captures serial console output) with Azure Monitor metrics (which only track performance counters), leading them to choose a monitoring tool that cannot inspect the boot process.

Why the other options are wrong

A

Azure Monitor metrics provide performance counters (e.g., CPU, memory) but do not capture serial console output or boot logs, so they cannot help inspect the boot process or view the blinking cursor issue.

C

Network Watcher packet capture captures network traffic, not serial console output or boot process logs. It cannot help inspect the boot process or view serial console output for a VM that fails to boot.

D

Azure Advisor provides recommendations for best practices, not real-time boot diagnostics. It cannot inspect the boot process or view serial console output.

When would these options actually be correct?

A

When a question asks for monitoring long-term performance trends, setting alerts for resource utilization, or analyzing historical metrics like CPU percentage or disk IOPS to troubleshoot a performance degradation, Azure Monitor metrics would be the correct choice.

C

When a VM is experiencing network connectivity issues, such as packet loss or high latency, and you need to capture and analyze network packets to diagnose the problem. For example, if a VM cannot connect to a database server, enabling packet capture helps identify dropped packets or misconfigured firewall rules.

D

When asked for a tool that provides personalized recommendations to optimize Azure resources for high availability, security, performance, and cost, Azure Advisor would be the correct answer.

Why candidates pick the wrong answer

A

Candidates may think 'monitoring' includes boot diagnostics, or they confuse Azure Monitor's broad monitoring capabilities with the specific need for serial console output during boot.

C

Candidates may confuse network-level troubleshooting with OS-level boot issues, thinking that capturing network packets could reveal boot problems, or they may overestimate the scope of Network Watcher's capabilities.

D

Candidates may confuse Azure Advisor's monitoring and recommendation capabilities with diagnostic tools, thinking it can help identify boot issues through its insights.

45
Multi-Selectmedium

A reporting application must run on an Azure VM with at least 8 vCPUs and 64 GiB of RAM. The team also wants headroom for short spikes without falling below the requirement. Which two VM sizes meet or exceed the requirement? Select two.

Select 2 answers
A.Standard_E8s_v5
B.Standard_D8s_v5
C.Standard_F8s_v2
D.Standard_M8ms
E.Standard_B8ms
AnswersA, D

Meets the requirement exactly with 8 vCPUs and 64 GiB of memory.

Why this answer

Standard_E8s_v5 is correct because it provides 8 vCPUs and 64 GiB of RAM, meeting the minimum requirement exactly. The E-series is memory-optimized, offering a high memory-to-core ratio suitable for reporting workloads, and the v5 generation includes Intel Xeon Platinum 8370C processors with support for premium storage and accelerated networking, ensuring headroom for short spikes without dropping below the requirement.

Exam trap

The trap here is that candidates often overlook the RAM requirement and select sizes like Standard_D8s_v5 or Standard_B8ms because they see '8 vCPUs' and assume the RAM is sufficient, but the D-series and B-series provide only 32 GiB of RAM, not the required 64 GiB.

Why the other options are wrong

B

The Standard_D8s_v5 has 8 vCPUs and 32 GiB of RAM, which does not meet the 64 GiB RAM requirement.

C

The Standard_F8s_v2 has 8 vCPUs but only 16 GiB of RAM, which is far below the required 64 GiB. It is a compute-optimized VM, not memory-optimized.

E

The Standard_B8ms is a burstable VM series designed for workloads with low average CPU usage but occasional spikes. It does not guarantee sustained performance of 8 vCPUs and 64 GiB RAM, and its baseline CPU performance is lower than required for a reporting application needing consistent resources.

When would these options actually be correct?

B

This option would be correct for a question requiring at least 8 vCPUs and 32 GiB of RAM, with a need for balanced compute and memory for general-purpose workloads.

C

This option would be correct for a question requiring at least 8 vCPUs and 16 GiB of RAM for a compute-intensive batch processing workload that needs high CPU performance but minimal memory.

E

This option would be correct for a question asking for a cost-effective VM for a development/test environment with intermittent usage, where the workload can tolerate lower baseline performance and benefits from burst credits during short spikes.

Why candidates pick the wrong answer

B

Candidates may assume the 'D' series offers sufficient memory because it is a general-purpose series, but they overlook that the specific size has only 32 GiB RAM.

C

Candidates may see 'F' for 'Fast' and assume it meets high-performance requirements, or they overlook the RAM requirement and focus only on vCPUs.

E

Candidates may see '8ms' and assume it meets the vCPU and RAM requirements (8 vCPUs, 64 GiB RAM) without understanding that the B-series is burstable and not suitable for sustained workloads.

46
MCQmedium

Your company has an Azure subscription named Prod-Sub. You create a custom role that allows users to restart virtual machines but not create, delete, or resize them. You need to ensure that members of the VMOperators group can use this custom role only for virtual machines in the RG-Prod resource group. What should you do?

A.Assign the custom role to VMOperators at the subscription scope.
B.Assign the custom role to VMOperators at the RG-Prod scope.
C.Assign the Virtual Machine Contributor role to VMOperators at the RG-Prod scope.
D.Assign the custom role to VMOperators at the management group scope.
AnswerB

Assigning the custom role at the RG-Prod resource group scope ensures the Microsoft.Compute/virtualMachines/restart/action permission applies only to VMs within that resource group. This follows the principle of least privilege because VMOperators receive exactly the restart capability and nothing else, with no ability to influence resources in other resource groups or subscriptions. The role assignment is scoped specifically to the resource group to support the business requirement for production VMs only.

Why this answer

Assigning the custom role at the RG-Prod scope restricts the role's permissions to only the virtual machines within that specific resource group. This meets the requirement that VMOperators can restart VMs but not create, delete, or resize them, and only within RG-Prod.

Exam trap

The trap here is that candidates often confuse the scope of role assignments, thinking a subscription-level assignment can be restricted by a condition, but Azure RBAC does not support conditions for built-in or custom roles without Azure Policy or attribute-based access control (ABAC), which is not mentioned in the question.

Why the other options are wrong

A

Assigning the custom role at the subscription scope would grant the restart permission to all virtual machines in the subscription, not just those in RG-Prod, violating the requirement to scope the role only to RG-Prod.

C

The Virtual Machine Contributor role allows creating, deleting, and resizing VMs, which exceeds the required permission to only restart VMs. Assigning it at RG-Prod scope would grant broader permissions than intended.

D

Assigning the custom role at the management group scope would apply the permission to all subscriptions and resource groups under that management group, not just RG-Prod, violating the requirement to restrict access to only that resource group.

When would these options actually be correct?

A

This option would be correct if the requirement was to allow VMOperators to restart virtual machines across all resource groups within the subscription, without restricting to a specific resource group.

C

This option would be correct if the requirement was to allow VMOperators to fully manage virtual machines (create, delete, resize, restart) within RG-Prod, without needing custom roles.

D

This option would be correct if the requirement was to allow VMOperators to restart VMs across all resource groups in all subscriptions under a specific management group, without needing to assign the role individually to each resource group or subscription.

Why candidates pick the wrong answer

A

Candidates may think that assigning at a higher scope (subscription) is simpler and still covers the target resource group, overlooking the need to restrict permissions to only that resource group.

C

Candidates may think Virtual Machine Contributor is a 'standard' role for VM operations and assume it only allows restart, overlooking its full permissions. They might also incorrectly believe that assigning at resource group scope automatically limits actions to restart only.

D

Candidates may think that assigning at a higher scope (management group) is more efficient and still allows restriction via Azure Policy, but they overlook that role assignments at higher scopes apply to all child resources unless explicitly blocked, which is not the case here.

47
Multi-Selecteasy

A business wants a line-of-business VM workload to keep running if one Azure datacenter in the region goes offline. Which two deployment choices should the administrator use? Select two.

Select 2 answers
A.Deploy the VMs in different availability zones.
B.Place the VMs in the same availability set.
C.Choose an Azure region that supports availability zones.
D.Use a proximity placement group for the VMs.
E.Use a snapshot of the operating system disk.
AnswersA, C

Azure availability zones are physically separate datacenters within an Azure region, each with independent power, cooling, and networking infrastructure. By deploying VM replicas across at least two different zones, you protect the workload from a single datacenter-wide failure, such as a power outage or network cut, because traffic can be shifted to the surviving zone. This is the core mechanism for zone-level resilience and is required to meet the high-availability SLA for IaaS workloads.

Why this answer

Deploying VMs across different availability zones protects against a single datacenter failure. Each availability zone is a physically separate datacenter within an Azure region, with independent power, cooling, and networking. If one zone goes offline, the VM in the other zone remains operational, ensuring business continuity for the line-of-business workload.

Exam trap

The trap here is that candidates often confuse availability sets (which protect against rack-level failures within a single datacenter) with availability zones (which protect against full datacenter outages), leading them to select option B instead of A and C.

Why the other options are wrong

B

Availability sets protect against rack-level failures within a single datacenter, not against an entire datacenter outage. They do not provide cross-datacenter redundancy.

D

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

E

Snapshots are point-in-time copies of a disk used for backup or recovery, not for real-time high availability. They do not provide automatic failover if a datacenter goes offline.

When would these options actually be correct?

B

If the question specified protecting against hardware failures within a single datacenter (e.g., server or rack failure) and required high availability for VMs, deploying them in the same availability set would be correct.

D

For a latency-sensitive workload (e.g., high-performance computing) where VMs must be physically close to minimize network latency, a proximity placement group would be the correct choice.

E

An administrator needs to create a new VM from an existing OS disk for disaster recovery testing or to restore a VM after a failure. Using a snapshot to create a managed disk and then a VM would be 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 not understand the scope of protection each offers.

D

Candidates may confuse 'proximity' with 'redundancy' or think grouping VMs together provides high availability, not realizing it actually increases co-location risk.

E

Candidates may confuse disaster recovery (backup/restore) with high availability (redundancy), thinking a snapshot can be used to quickly spin up a VM in another datacenter during an outage.

48
Matchingmedium

A support engineer is investigating a failed Azure VM backup job in Log Analytics. Match each KQL operator to the result it produces.

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

Concepts
Matches

Keeps only rows that meet the filter condition.

Returns only selected columns and can rename them.

Aggregates rows into totals, counts, or grouped results.

Orders the output by one or more columns.

Why these pairings

These are common KQL operators. 'where' filters, 'project' selects columns, 'extend' adds columns, 'summarize' aggregates, 'join' merges tables, and 'order by' sorts results.

49
Matchingmedium

An administrator is reviewing a KQL query used to investigate failed operations in a Log Analytics workspace. Match each KQL operator to the effect it has on the query output.

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

Concepts
Matches

Filters rows so only records that meet the condition remain in the result.

Returns only selected columns and can rename them for cleaner output.

Aggregates data, such as counting failures by hour or by status code.

Adds a calculated column based on existing fields in each row.

Sorts the result set, such as showing the newest records first.

Why these pairings

These are standard KQL operators used in Log Analytics queries. 'where' filters, 'project' selects columns, 'extend' adds computed columns, 'summarize' aggregates, 'join' merges tables, and 'order by' sorts results.

50
MCQmedium

A storage account must be reachable only from one Azure virtual network. The team wants the storage service to have a private IP in that VNet, public network access disabled, and name resolution to work without using the public endpoint. What should the administrator configure?

A.A service endpoint on the subnet and a storage firewall rule
B.A private endpoint and a private DNS zone linked to the VNet
C.A public IP address and IP-based firewall exceptions
D.A shared access signature and blob container ACLs
AnswerB

A private endpoint places a private IP address for the storage service in the VNet, and the private DNS zone ensures the service name resolves to that private IP. Together, they provide private access while allowing public network access to be disabled.

Why this answer

A private endpoint assigns the storage account a private IP from the VNet's address space, making it reachable only within that VNet. Disabling public network access ensures no traffic can reach the storage account via its public endpoint. A private DNS zone linked to the VNet enables name resolution to resolve the storage account's FQDN to the private IP without using the public endpoint.

Exam trap

The trap here is that candidates confuse service endpoints with private endpoints, assuming a service endpoint provides a private IP and disables public access, when in fact it only routes traffic over the Microsoft backbone while still using the public endpoint.

Why the other options are wrong

A

A service endpoint and firewall rule do not assign a private IP to the storage account; the service endpoint only provides source IP restriction from the VNet, and the storage account still uses its public endpoint, failing the requirement for a private IP and disabled public network access.

C

Option C suggests using a public IP and IP-based firewall exceptions, but the requirement is to disable public network access and use a private IP within the VNet. Public IP and firewall rules still expose the storage account to the internet, violating the 'public network access disabled' condition.

D

A shared access signature (SAS) and blob container ACLs provide granular access control and temporary delegated access, but they do not restrict network access to a single VNet, assign a private IP, or disable the public endpoint. They operate over the public endpoint and do not meet the requirement for private network integration.

When would these options actually be correct?

A

This option would be correct if the requirement was to restrict access to the storage account from a specific VNet while still using the public endpoint, and the team did not need a private IP or to disable public network access entirely.

C

This option would be correct if the question required allowing access from a specific set of public IP addresses (e.g., on-premises or remote locations) while still using the public endpoint, and there was no requirement for private IP or disabling public access.

D

This option would be correct in a scenario where the requirement is to grant time-limited, delegated access to specific blobs or containers for external users or applications, while still using the public endpoint. For example, 'A storage account must allow temporary read access to a specific blob for an external partner without sharing the account key.'

Why candidates pick the wrong answer

A

Candidates may confuse service endpoints with private endpoints, thinking that a service endpoint provides private connectivity, or they may believe that a firewall rule alone can make the storage account unreachable from the internet.

C

Candidates may think that restricting access via IP firewall rules is sufficient to secure the storage account, overlooking the need for a private IP and complete removal of public endpoint access as specified in the question.

D

Candidates may confuse access control mechanisms (SAS, ACLs) with network-level security controls, thinking that restricting access via SAS and ACLs can replace the need for network isolation and private IP assignment.

51
MCQeasy

A company wants to prevent users from creating storage accounts unless the resources include a costCenter tag. Which Azure feature should be used?

A.Azure RBAC, because it controls whether users can create resources.
B.Azure Policy, because it can evaluate and enforce required resource properties.
C.A resource lock, because it can force resources to use tags.
D.A service endpoint, because it can filter which resources are allowed in a subscription.
AnswerB

This is correct because Azure Policy is designed to enforce standards and assess compliance. A policy can require a tag such as costCenter and deny or audit noncompliant resource creation. RBAC could still allow the user to create storage accounts, but Policy adds the configuration rule that controls whether the deployment is compliant.

Why this answer

Azure Policy is correct because it can enforce organizational standards by evaluating resource properties during creation and modification. By defining a policy that requires a 'costCenter' tag on all storage accounts, Azure Policy will deny creation of any storage account that does not include that tag, ensuring compliance without manual intervention.

Exam trap

The trap here is confusing Azure Policy (which enforces resource properties) with Azure RBAC (which controls permissions), as both are governance tools but serve fundamentally different purposes.

Why the other options are wrong

A

Azure RBAC controls permissions to create resources but cannot enforce that created resources include specific tags like costCenter; that requires Azure Policy's evaluation and enforcement capabilities.

C

Resource locks prevent deletion or modification of resources but cannot enforce tagging requirements or evaluate resource properties during creation.

D

Service endpoints restrict network access to Azure services, not enforce resource properties like tags. They cannot prevent storage account creation based on missing tags.

When would these options actually be correct?

A

If the question asked 'Which feature prevents unauthorized users from creating storage accounts?' or 'Which feature grants permissions to create resources?', then Azure RBAC would be correct because it manages access control.

C

A resource lock would be correct if the question asked how to prevent accidental deletion of a critical storage account that already has the required costCenter tag.

D

An exam question asking how to restrict storage account access to only traffic from a specific virtual network would make service endpoints correct, as they enable private connectivity and network-level filtering.

Why candidates pick the wrong answer

A

Candidates may confuse access control (RBAC) with resource compliance enforcement (Policy), assuming that denying creation via RBAC is equivalent to enforcing tags.

C

Candidates may confuse resource locks with policy enforcement, thinking locks can also enforce configuration rules like tags.

D

Candidates may confuse 'filtering' resources with network filtering, assuming service endpoints can filter which resources are allowed in a subscription based on tags or other criteria.

52
Multi-Selecteasy

A company wants to stop users from creating resources in regions that are not approved and also require a Department tag on new resources. Which two tasks are best handled by Azure Policy? Select two.

Select 2 answers
A.Restrict allowed deployment locations.
B.Require a Department tag on resources.
C.Give users Contributor access to the subscription.
D.Create Microsoft Entra ID users for contractors.
E.Place a CanNotDelete lock on every resource group.
AnswersA, B

Azure Policy is designed to enforce configuration standards such as allowed locations. It can block or audit deployments that do not match the approved region list, which is a compliance requirement rather than an access-control requirement.

Why this answer

Azure Policy can enforce organizational standards by evaluating resource properties against business rules. Option A is correct because the 'Allowed Locations' policy definition restricts users from deploying resources to any region not explicitly permitted, directly addressing the requirement to block unapproved regions. Option B is correct because the 'Require a tag and its value on resources' policy definition can enforce that a Department tag must exist on all new resources, ensuring compliance with tagging requirements.

Exam trap

The trap here is that candidates often confuse Azure Policy with Azure RBAC or resource locks, thinking that policy can manage user permissions or prevent deletion, when in fact policy is solely for enforcing rules on resource properties like location and tags.

Why the other options are wrong

C

Azure Policy does not manage role-based access control (RBAC) like granting Contributor access. RBAC is handled by Azure role-based access control, not Azure Policy.

D

Azure Policy does not manage user identities; creating Microsoft Entra ID users is an identity management task handled by Microsoft Entra ID, not Azure Policy.

E

Placing a CanNotDelete lock on every resource group does not address the requirement to restrict regions or enforce tagging; it prevents deletion of resource groups, which is unrelated to the stated goals.

When would these options actually be correct?

C

If the question asked 'Which Azure service should you use to grant users Contributor access to the subscription?', then 'Give users Contributor access to the subscription' would be correct, as it is an RBAC assignment.

D

In a scenario where the question asks about managing user identities or automating user provisioning for contractors, the correct answer would be to create Microsoft Entra ID users, possibly via Microsoft Entra ID administration or automation tools.

E

A company wants to prevent accidental deletion of all resource groups in a subscription. In that scenario, assigning a CanNotDelete lock at the subscription or resource group level would be the correct approach.

Why candidates pick the wrong answer

C

Candidates may confuse Azure Policy with Azure RBAC, thinking policy can assign permissions, or they may mistakenly believe that restricting actions (like creating resources) is the same as granting permissions.

D

Candidates may confuse Azure Policy with broader governance tools, thinking it can handle identity creation, or they may misassociate 'policy' with any administrative task.

E

Candidates may confuse locks with policy, thinking that locks can enforce compliance, or they may overestimate the scope of locks as a governance tool.

53
MCQhard

A storage account must be reachable only from workloads in one Azure subnet. The team wants to keep using the storage account's public FQDN, avoid creating a private IP address in the virtual network, and avoid managing private DNS zones. What should the administrator configure?

A.A private endpoint for the storage account
B.A service endpoint on the subnet and a storage firewall rule for that subnet
C.An NSG rule that allows TCP 443 to the storage account
D.An application security group tied to the storage account
AnswerB

A service endpoint keeps the public endpoint in place while extending the subnet's identity to the storage service. Combined with a storage firewall rule that allows only that subnet, it restricts access without assigning a private IP or requiring private DNS management. This exactly matches the stated design goals.

Why this answer

A service endpoint on the subnet and a storage firewall rule for that subnet is correct because it allows the storage account to be reachable only from workloads in one Azure subnet while still using the storage account's public FQDN. Service endpoints extend the virtual network identity to the storage account over the Microsoft backbone, and the firewall rule restricts access to that specific subnet. This avoids creating a private IP address in the virtual network and eliminates the need to manage private DNS zones, as the public endpoint is retained.

Exam trap

The trap here is that candidates often confuse service endpoints with private endpoints, assuming that only private endpoints can restrict access to a single subnet, but service endpoints combined with a storage firewall rule achieve the same goal without private IPs or DNS management.

Why the other options are wrong

A

A private endpoint creates a private IP in the VNet and requires managing private DNS zones, which contradicts the requirement to avoid both.

C

NSG rules control traffic at the subnet or NIC level within a virtual network, but they cannot filter traffic to a storage account's public endpoint from outside the subnet. The question requires restricting access to only one subnet, and NSGs alone cannot enforce that the storage account rejects traffic from other sources.

D

An application security group (ASG) is used to group virtual machines and apply NSG rules based on those groups, not to control access to a storage account. It cannot restrict storage account access to a specific subnet without a private endpoint or service endpoint.

When would these options actually be correct?

A

When the requirement is to access the storage account privately from a VNet without using its public endpoint, and the team is willing to manage private DNS zones or use Azure Private DNS.

C

An NSG rule allowing TCP 443 to the storage account would be correct if the goal is to permit outbound traffic from a subnet to the storage account's public endpoint, while other outbound traffic is denied. For example, in a scenario where the storage account is publicly accessible but you need to control which VMs can initiate connections to it, an NSG rule on the subnet would suffice.

D

An administrator needs to allow outbound traffic from a specific set of VMs (grouped in an ASG) to the internet while denying all other outbound traffic. The ASG is referenced in an NSG rule to permit traffic only from those VMs.

Why candidates pick the wrong answer

A

Candidates may confuse private endpoints with service endpoints, thinking both provide private connectivity, but private endpoints involve more management overhead.

C

Candidates often confuse network security groups with service-level access controls, assuming that an NSG rule can restrict access to a specific Azure service endpoint. They may also think that allowing HTTPS (TCP 443) is sufficient to secure access, overlooking that NSGs do not authenticate or authorize the destination resource.

D

Candidates may confuse ASGs with network security controls for PaaS services, thinking they can be used to restrict access to storage accounts similarly to how they control VM-to-VM traffic.

54
MCQmedium

A contractor needs to upload data into one specific blob container for six hours. The administrator must avoid sharing the storage account key and should grant only the minimum permissions needed. Which access method should be used?

A.A service SAS scoped to the container with write permission and an expiry time in six hours.
B.The storage account access key, because it is easier to revoke later.
C.A shared key rotation policy, because it grants time-limited access to one container.
D.A user-assigned managed identity assigned to the contractor’s laptop.
AnswerA

A service SAS can be scoped to a single container, limited to the needed permissions, and set to expire automatically. That makes it the best fit for temporary contractor upload access without exposing the full storage account key.

Why this answer

A service SAS scoped to the container with write permission and an expiry time of six hours is correct because it provides time-limited, delegated access to a specific blob container without exposing the storage account key. This meets the requirement of granting only the minimum permissions needed (write) for the six-hour duration, and the SAS can be revoked by regenerating the storage account key if necessary.

Exam trap

The trap here is that candidates often confuse a service SAS with a stored access policy, or they mistakenly think a managed identity can be assigned to an external device, when in reality managed identities are only for Azure resources and require Azure AD integration.

Why the other options are wrong

B

The storage account access key grants full access to the entire storage account, not just one container, and does not have a built-in time limit. This violates the requirement to grant only minimum permissions and avoid sharing the key.

C

A shared key rotation policy is not a valid Azure access method; it refers to rotating storage account keys, not granting time-limited access to a specific container.

D

A user-assigned managed identity cannot be assigned to a contractor's laptop; managed identities are designed for Azure resources like VMs or App Services, not external devices. It also requires complex authentication setup and does not inherently provide time-limited access to a specific container.

When would these options actually be correct?

B

A question where the administrator needs to grant full access to all storage account resources (e.g., multiple containers, tables, queues) to a trusted internal team for an indefinite period, and key revocation is a planned administrative action.

C

If the question asked for a method to automatically rotate storage account keys on a schedule to meet compliance requirements, then a shared key rotation policy would be correct.

D

A user-assigned managed identity would be correct if the contractor's workload runs on an Azure VM or Azure App Service that needs to access the blob container, and the administrator wants to avoid managing credentials while granting minimum permissions via role-based access control (RBAC).

Why candidates pick the wrong answer

B

Candidates may think the access key is simple to use and revoke, overlooking that it provides excessive permissions and cannot be scoped to a single container or time-bound.

C

Candidates may confuse 'shared key rotation policy' with a SAS policy or think it provides time-limited access, but it is not a real access control mechanism for containers.

D

Candidates may think managed identities provide a secure, keyless way to grant permissions, but they overlook that managed identities are not assignable to non-Azure devices like laptops.

55
MCQhard

A storage account must be accessible only from one Azure subnet. The security team does not want a private endpoint or private DNS zone, and they are fine with the storage account continuing to use its public FQDN. Which configuration should you use?

A.Create a service endpoint on the subnet and allow that subnet in the storage account firewall.
B.Create a private endpoint for the storage account and disable public network access.
C.Use an NSG rule to allow only the subnet to reach port 443 on the storage account.
D.Associate a route table that sends storage traffic to an Azure firewall appliance.
AnswerA

A service endpoint is the correct design because it restricts access to a specific subnet without creating a private IP address for the storage account. The storage account can continue to use its public FQDN, which matches the requirement. By enabling the service endpoint on the subnet and then permitting that subnet in the storage firewall, traffic is locked down while avoiding private endpoint and private DNS complexity.

Why this answer

A service endpoint extends the virtual network identity to the Azure Storage service, allowing the storage account firewall to restrict access to traffic originating from the specific subnet. This meets the requirement of limiting access to one Azure subnet without using a private endpoint or DNS zone, and the storage account continues to use its public FQDN.

Exam trap

The trap here is that candidates often confuse service endpoints with private endpoints, assuming that restricting access to a subnet requires a private IP address, when in fact service endpoints provide subnet-level access control while preserving the public endpoint.

Why the other options are wrong

B

The question explicitly states the security team does not want a private endpoint or private DNS zone, and they are fine with the storage account using its public FQDN. Option B requires a private endpoint and disabling public network access, which contradicts these requirements.

C

NSG rules control traffic at the subnet or NIC level but do not restrict access to the storage account's public endpoint from other subnets; the storage account firewall must explicitly allow only the desired subnet.

D

Associating a route table that sends storage traffic to an Azure firewall appliance does not restrict access to only one subnet; it only redirects traffic but does not enforce subnet-level access control. The storage account would still be accessible from any subnet unless additional firewall rules are applied.

When would these options actually be correct?

B

This option would be correct in a scenario where the security team requires the storage account to be completely isolated from the public internet, using a private endpoint for connectivity, and they are willing to manage private DNS zones for name resolution.

C

If the question required restricting inbound traffic to a virtual machine's public IP on port 443 from only a specific subnet, an NSG rule on the subnet would be the correct answer.

D

This option would be correct in a scenario where the requirement is to inspect or filter all traffic to the storage account through a central firewall for security monitoring, while still allowing access from multiple subnets or on-premises networks.

Why candidates pick the wrong answer

B

Candidates may think that a private endpoint is the only way to restrict access to a single subnet, overlooking that service endpoints combined with firewall rules can achieve the same goal without private endpoints or DNS zones.

C

Candidates may think NSGs can restrict access to Azure PaaS services like storage, but NSGs only filter traffic within the virtual network, not to the storage account's public endpoint.

D

Candidates may think that routing traffic through a firewall provides granular access control, but they overlook that the storage account's public endpoint remains open to all subnets unless explicitly restricted by firewall rules or service endpoints.

56
MCQmedium

A company is building a hub-and-spoke Azure network. The hub VNet already uses 10.50.0.0/16. A new spoke VNet will later be peered to the hub and connected to on-premises through VPN. What is the most important planning step before creating the peering?

A.Reuse 10.50.0.0/16 in the spoke so routing to the hub is simpler.
B.Choose a non-overlapping address space for the spoke and reserve room for future subnets.
C.Create a route table first so peering can learn the spoke routes.
D.Enable a service endpoint to allow the spoke to communicate with the hub.
AnswerB

A peered VNet must have an address space that does not overlap the hub or any other VNet in the mesh, because Azure uses the destination prefix to select the correct next hop. Using a unique range like 10.x.x.x (or whatever is free) avoids ambiguous routing and lets peering exchange routes automatically. Reserving room for future subnets means you define a larger /16 or /20 now, so when you need to add application tiers or integration subnets later you won't have to rearchitect the address plan. This is the accepted Azure design pattern for hub-spoke scalability.

Why this answer

Azure VNet peering requires non-overlapping address spaces to establish connectivity. If the spoke uses the same address space as the hub (10.50.0.0/16), routing conflicts will occur, and the peering will fail or cause unpredictable traffic behavior. Additionally, reserving room for future subnets ensures the spoke can scale without needing to re-architect the network.

Exam trap

The trap here is that candidates often think reusing the same address space simplifies routing (Option A), but Azure explicitly forbids overlapping address spaces for VNet peering, making non-overlapping address planning the critical first step.

Why the other options are wrong

A

Reusing 10.50.0.0/16 in the spoke would cause an IP address overlap with the hub, preventing successful VNet peering and VPN connectivity to on-premises due to routing conflicts.

C

Route tables are not required for peering to learn spoke routes; Azure VNet peering automatically exchanges routes between peered VNets. Creating a route table first is unnecessary and does not affect peering route learning.

D

Service endpoints allow private access to Azure services (e.g., storage, SQL) from a VNet, but they do not enable or affect VNet peering communication. Peering relies on direct network connectivity, not service endpoints.

When would these options actually be correct?

A

In a scenario where the spoke VNet is isolated and does not require connectivity to the hub or on-premises, and the goal is to simplify management by using the same address space, reusing the hub's CIDR could be acceptable.

C

In a scenario where you need to force-tunnel traffic from the spoke to on-premises via the hub, you would create a route table with a default route (0.0.0.0/0) pointing to the hub's VPN gateway, and associate it with the spoke subnets before or after peering.

D

In a scenario where a spoke VNet needs to securely access an Azure PaaS service (like Azure Storage) without using a public IP, enabling a service endpoint on the spoke subnet would be the correct step.

Why candidates pick the wrong answer

A

Candidates may think reusing the same address space simplifies routing and configuration, overlooking the fundamental requirement for non-overlapping IP ranges in peered VNets.

C

Candidates may think that explicit route tables are needed to control traffic flow in peered networks, confusing the automatic route exchange of peering with the manual route configuration required for forced tunneling or custom routing.

D

Candidates may confuse service endpoints with VNet peering, thinking both are methods to connect networks, or they may believe service endpoints are required for cross-VNet communication.

57
MCQmedium

A VM-hosted automation tool must call Azure APIs without storing a password or certificate on disk. The identity should disappear automatically when the VM is deleted. Which identity should the administrator assign?

A.A user-assigned managed identity
B.A service principal with a client secret
C.A system-assigned managed identity
D.A storage account access key
AnswerC

A system-assigned managed identity is tied directly to the VM lifecycle, so it is created with the VM and removed when the VM is deleted. It allows the automation tool to authenticate to Azure services without storing passwords, secrets, or certificates on disk, which is the secure pattern requested.

Why this answer

A system-assigned managed identity is tied directly to the lifecycle of the Azure VM — when the VM is deleted, the identity is automatically removed. It allows the VM to authenticate to Azure APIs without storing any credentials (password or certificate) on disk, using Azure AD tokens obtained via the Azure Instance Metadata Service (IMDS) endpoint at 169.254.169.254.

Exam trap

The trap here is that candidates confuse user-assigned and system-assigned managed identities, failing to recognize that only system-assigned identities are automatically deleted with the VM, while user-assigned identities persist independently.

Why the other options are wrong

A

A user-assigned managed identity persists independently of the VM lifecycle; it does not disappear automatically when the VM is deleted, failing the requirement for automatic cleanup.

B

A service principal with a client secret requires storing the secret on disk or in environment variables, which violates the requirement of not storing a password or certificate on disk. Additionally, it does not automatically disappear when the VM is deleted; the service principal persists independently.

D

A storage account access key is used for authenticating to Azure Storage, not for calling Azure APIs in general, and it does not provide an identity that disappears when the VM is deleted.

When would these options actually be correct?

A

A user-assigned managed identity is correct when multiple Azure resources (e.g., multiple VMs or an App Service) need to share the same identity, or when the identity must be pre-created and assigned to resources across different subscriptions.

B

This option would be correct if the question required an identity that can be used across multiple VMs or resources, or if the automation tool needs to run outside Azure (e.g., on-premises) and must authenticate without relying on Azure infrastructure. It would also be correct if the question explicitly allowed storing secrets in a secure vault like Key Vault.

D

A question asks: 'Which credential should an application use to access a specific storage account when no other authentication method is available?' In that context, a storage account access key would be correct.

Why candidates pick the wrong answer

A

Candidates may confuse user-assigned with system-assigned managed identities, assuming both are 'managed' and thus automatically deleted, without realizing that user-assigned identities have a separate lifecycle.

B

Candidates may confuse service principals with managed identities, thinking a service principal is the only way to authenticate to Azure APIs. They might also overlook the 'no password stored on disk' constraint, focusing only on the need for an identity without considering lifecycle management.

D

Candidates may confuse storage account access keys with managed identities, thinking any key-based authentication can be used for Azure API calls, or they may not understand the scope of access keys.

58
MCQmedium

A company has a hub virtual network that contains a custom DNS server at 10.20.0.4. A new spoke virtual network is peered to the hub. VMs in the spoke can reach other resources in Azure, but they cannot resolve internal names such as app01.corp.local. What should the administrator configure to fix name resolution for the spoke VMs?

A.Add a user-defined route that sends DNS traffic to the hub virtual network.
B.Set the spoke virtual network's custom DNS server to 10.20.0.4.
C.Create an NSG rule that allows UDP port 53 from the spoke subnet to the hub subnet.
D.Enable gateway transit on the hub peering so name resolution flows through the VPN gateway.
AnswerB

This directs VMs in the spoke to query the hub DNS server for internal names. In a hub-and-spoke design, peering alone does not make Azure use a custom DNS server automatically. Configuring the spoke VNet to use 10.20.0.4 ensures clients send DNS queries to the server that already hosts the corporate zone records.

Why this answer

The spoke virtual network must be configured to use the hub's custom DNS server (10.20.0.4) as its own DNS server. Azure virtual networks do not automatically inherit DNS settings from a peered hub; each virtual network must explicitly specify its DNS server. By setting the spoke's custom DNS server to 10.20.0.4, VMs in the spoke will send DNS queries to that server, enabling resolution of internal names like app01.corp.local.

Exam trap

The trap here is that candidates often confuse DNS resolution with network connectivity (NSG rules or UDRs) or assume that VNet peering automatically propagates DNS settings, when in fact each VNet must be explicitly configured with its own DNS server.

Why the other options are wrong

A

A user-defined route (UDR) controls traffic flow, not DNS resolution. The spoke VMs can already reach Azure resources, so routing is fine; the issue is that they are not using the custom DNS server at 10.20.0.4 for name resolution.

C

The issue is DNS resolution, not network connectivity. NSG rules control traffic flow, but the spoke VMs can already reach Azure resources, indicating connectivity exists. The problem is that the spoke VMs are not using the custom DNS server, so allowing UDP 53 does not fix the DNS configuration.

D

Gateway transit is used to allow spoke VMs to use the hub's VPN gateway for outbound connectivity, not for DNS resolution. It does not configure DNS servers for the spoke virtual network.

When would these options actually be correct?

A

A UDR would be correct if the spoke VMs could not reach the custom DNS server at 10.20.0.4 due to missing routing, e.g., if the hub and spoke are in different regions and the DNS server is not reachable via the default route. In that case, a UDR with next hop to the hub's virtual appliance would fix connectivity.

C

If the spoke VMs could not resolve any names (including Azure internal names) and connectivity tests showed that traffic to the hub DNS server was blocked, then creating an NSG rule to allow UDP 53 from the spoke subnet to the hub subnet would be correct.

D

If the question asked how to allow spoke VMs to access on-premises resources through the hub's VPN gateway, enabling gateway transit on the hub peering and using remote gateways on the spoke peering would be correct.

Why candidates pick the wrong answer

A

Candidates may confuse DNS resolution with network routing, thinking that if VMs cannot resolve names, traffic to the DNS server must be routed differently, rather than configuring the DNS server address on the spoke virtual network.

C

Candidates often confuse DNS resolution issues with network security rules, assuming that blocking DNS traffic is the cause when the actual problem is incorrect DNS server configuration on the spoke virtual network.

D

Candidates may confuse gateway transit with DNS forwarding, thinking that enabling transit allows DNS queries to flow through the hub's gateway to a DNS server on-premises.

59
MCQmedium

Based on the exhibit, which KQL query should you use to find failed storage account delete operations in the last hour and count them by caller?

A.AzureActivity | where TimeGenerated > ago(1h) | where OperationNameValue has 'Microsoft.Storage/storageAccounts/delete' | where ActivityStatusValue == 'Failed' | summarize Failures=count() by Caller
B.AzureActivity | where TimeGenerated > ago(1h) | where OperationNameValue has 'Microsoft.Storage/storageAccounts/delete' | where ActivityStatusValue == 'Succeeded' | summarize Failures=count() by Caller
C.SecurityEvent | where EventID == 4670 | summarize count() by Account
D.AzureActivity | where TimeGenerated > ago(1h) | where OperationNameValue has 'Microsoft.Storage/storageAccounts/delete' | summarize Failures=count() by Caller
AnswerA

The query correctly scopes to the AzureActivity table, which records Azure Resource Manager control-plane operations, then applies a 1-hour TimeGenerated filter to narrow the window. It uses the `has` operator to match the exact resource-provider operation string for storage account deletion, followed by an ActivityStatusValue of 'Failed' to isolate only unsuccessful attempts. The final summarize groups by Caller and counts each failed deletion, producing a per-identity failure count that directly answers the incident investigation. This pipeline is efficient because filters are applied before aggregation, reducing the dataset to the relevant failed deletes.

Why this answer

It filters AzureActivity logs to the last hour using `TimeGenerated > ago(1h)`, targets only storage account delete operations with `OperationNameValue has 'Microsoft.Storage/storageAccounts/delete'`, restricts to failed operations via `ActivityStatusValue == 'Failed'`, and then counts failures by caller using `summarize Failures=count() by Caller`. This precisely meets the requirement to find failed storage account delete operations in the last hour and count them by caller.

Exam trap

The trap here is that candidates may forget to filter by `ActivityStatusValue == 'Failed'` (as in Option D) or mistakenly filter for `'Succeeded'` (as in Option B), both of which fail to meet the requirement for counting only failed operations.

Why the other options are wrong

B

The query filters for 'Succeeded' status instead of 'Failed', so it counts successful delete operations, not failed ones as required.

C

This query queries the SecurityEvent table for EventID 4670 (permissions change), not the AzureActivity table, and does not filter for storage account delete operations or failures.

D

This option does not filter by ActivityStatusValue == 'Failed', so it counts all delete operations (including successful ones) instead of only failed operations as required.

When would these options actually be correct?

B

This option would be correct if the question asked to count successful storage account delete operations by caller in the last hour.

C

This query would be correct for a question asking: 'Which KQL query should you use to find all permission change events (EventID 4670) in the last hour, grouped by account?'

D

If the question asked to count all storage account delete operations (both successful and failed) in the last hour by caller, this query would be correct because it omits the status filter.

Why candidates pick the wrong answer

B

Candidates may mistakenly think 'Succeeded' is the correct status to check for failures, or they may misread the question and assume 'failed' refers to the operation itself rather than the status.

C

Candidates may confuse security events with Azure activity logs, or think that EventID 4670 covers delete operations, but it actually tracks permission changes, not resource deletions.

D

Candidates may overlook the requirement to filter by 'Failed' status, assuming that the operation name alone implies failure, or they may forget to include the status filter due to haste.

60
MCQmedium

A partner organization needs write access to a single blob container for 24 hours. You want to avoid sharing the storage account key and minimize access scope. Which access mechanism should you provide?

A.A storage account key
B.A user delegation SAS
C.A container stored access policy without a token
D.An Azure Policy assignment
AnswerB

A user delegation SAS is the least-privilege option because it is signed with Azure AD credentials rather than a shared key, and its scope can be restricted to a single blob with only the write permission. You can also set a short expiration time and optionally restrict the client IP so the partner has exactly the access needed and no more. This is the only option that provides a concrete, revocable data-plane credential that satisfies the requirement.

Why this answer

A user delegation SAS is the correct choice because it provides time-limited, delegated access to a specific blob container using Azure AD credentials, without exposing the storage account key. It allows you to grant write access for exactly 24 hours to a single container, minimizing the access scope as required.

Exam trap

The trap here is that candidates may confuse a user delegation SAS with a service SAS or account SAS, but the key distinction is that a user delegation SAS uses Azure AD for signing, avoiding the need to share the storage account key while still providing scoped, time-limited access.

Why the other options are wrong

A

Sharing the storage account key grants full access to all storage account resources, including all containers and blobs, with no time or permission restrictions. This violates the requirement to minimize access scope and avoid sharing the key.

C

A container stored access policy without a token does not provide any access; it only defines constraints. To grant access, a SAS token must be generated and attached to the policy, which is not done here.

D

Azure Policy assignments enforce compliance rules across resources but do not grant direct write access to a blob container. They cannot provide time-limited, scoped access to a specific container.

When would these options actually be correct?

A

A storage account key would be correct if the question asked for full administrative access to all storage resources for a trusted internal team, with no need to limit scope or duration.

C

A container stored access policy would be correct if the question required defining access permissions and constraints (e.g., expiry time, permissions) for multiple SAS tokens without embedding them in the token itself, allowing revocation by modifying the policy.

D

An Azure Policy assignment would be correct if the question asked how to enforce that all storage accounts in a subscription must use HTTPS only, or to audit storage accounts that do not have network restrictions enabled.

Why candidates pick the wrong answer

A

Candidates may default to using a storage account key because it is a familiar and simple method for granting access, without considering the need for scoped, temporary permissions.

C

Candidates may think a stored access policy alone grants access, confusing the policy definition with the actual access token, or believe it minimizes scope without realizing a token is still needed.

D

Candidates may confuse Azure Policy with RBAC or SAS, thinking it can grant permissions, or they may overestimate Policy's ability to control data access at the container level.

61
MCQeasy

A build pipeline needs to run a Linux container for 10 to 15 minutes at a time. The team does not want to manage servers, clusters, or an always-on VM. Which Azure service should be used?

A.Azure Container Instances
B.Azure Kubernetes Service
C.Azure Virtual Machine
D.Azure App Service
AnswerA

Azure Container Instances is well suited for short-lived, isolated container runs without cluster management. It lets the team start a container on demand, run the job, and stop paying for a continuously running server once the task is complete. For scheduled or event-driven container workloads that do not need orchestration features, it is a simple and practical choice.

Why this answer

Azure Container Instances (ACI) is the correct choice because it allows you to run a Linux container directly on Azure without provisioning or managing any underlying infrastructure. ACI is ideal for short-lived, burstable workloads like a build pipeline that runs for 10–15 minutes, as it supports per-second billing and automatic startup/shutdown without the overhead of a cluster or VM.

Exam trap

The trap here is that candidates often confuse Azure Container Instances with Azure Kubernetes Service, assuming that any container workload requires a full orchestration platform, but ACI is purpose-built for simple, short-lived container execution without cluster management.

Why the other options are wrong

B

Azure Kubernetes Service (AKS) is designed for managing containerized applications across a cluster of VMs, requiring ongoing cluster management and incurring costs even when not actively running containers. For short-lived tasks (10-15 minutes) without server management, AKS is overkill and not cost-effective.

C

Azure Virtual Machine requires managing an always-on VM, which contradicts the requirement to not manage servers or an always-on VM. It also incurs costs even when not in use, unlike the short-lived container needs.

D

Azure App Service is a fully managed platform for hosting web apps, APIs, and mobile backends, but it requires the app to be deployed as a web application, not a standalone container. It does not support running a Linux container for a short duration without an always-on app or server management.

When would these options actually be correct?

B

A question requiring orchestration of multiple containers, scaling, rolling updates, or high availability for a production application would make AKS correct. For example: 'A company needs to deploy a microservices application with auto-scaling and self-healing capabilities, and the team wants to minimize operational overhead for cluster management.'

C

A question requiring a persistent, customizable environment with full OS control, such as running a legacy application that needs specific OS configurations or installing custom software that cannot be containerized.

D

A question asks: 'Which Azure service should be used to host a web application that requires automatic scaling, high availability, and supports both Windows and Linux environments, without managing the underlying infrastructure?' In that scenario, Azure App Service is the correct answer.

Why candidates pick the wrong answer

B

Candidates may associate containers with Kubernetes as the standard orchestration platform, overlooking that Azure Container Instances is simpler and more suitable for short-lived, single-container tasks without cluster management.

C

Candidates may think a VM is needed to run a Linux container, not realizing that Azure Container Instances can run containers without managing the underlying VM.

D

Candidates may think App Service can run containers easily because it supports containerized web apps, but they overlook that it is designed for continuous web hosting, not ephemeral container runs, and still requires an app to be deployed and running.

62
Matchingmedium

Match each lifecycle management requirement to the blob tier transition or action that should be configured.

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

Concepts
Matches

Transition to Cool

Transition to Archive

Rehydrate from Archive

Delete blob

Why these pairings

Lifecycle management rules define actions (tier changes or deletion) based on age or access. The actions correspond to moving to cooler tiers (cool, cold, archive) or deleting, and can apply to snapshots.

63
MCQeasy

A line-of-business app requires protection against a datacenter outage in a region that supports zones. You want the strongest placement resilience available for the VMs. What should you choose?

A.Availability set
B.Availability zone
C.Virtual machine scale set
D.Resource lock
AnswerB

Availability zones are physically separate datacenters within an Azure region, each with independent power, cooling, and networking. Deploying the application's VMs across multiple zones, or using zone-redundant services (such as Azure Load Balancer or Azure SQL Database), isolates the workload from a single datacenter failure. This is the correct answer because an availability zone is the only option here that explicitly spans datacenter boundaries while remaining in the same region, enabling continued operation if one zone goes down.

Why this answer

Availability zones are physically separate datacenters within an Azure region, each with independent power, cooling, and networking. Deploying VMs across zones provides the strongest resilience against a datacenter outage because if one zone fails, the other zones remain operational. This is the highest level of protection available within a single region for IaaS VMs.

Exam trap

The trap here is that candidates often confuse availability sets (which protect against rack-level failures) with availability zones (which protect against full datacenter outages), leading them to choose the weaker option when the question explicitly demands the strongest placement resilience.

Why the other options are wrong

A

An availability set protects against failures within a single datacenter (rack/update domain failures), not against a full datacenter outage across zones. The question requires resilience across zones, which availability sets do not provide.

C

Virtual machine scale sets provide scaling and load balancing, not the strongest placement resilience against a datacenter outage. They distribute VMs across fault domains within a region but do not isolate across zones, so a single zone failure can affect all VMs.

D

Resource locks prevent accidental deletion or modification of resources but do not provide any placement or availability resilience against datacenter outages.

When would these options actually be correct?

A

If the question asked for protection against hardware failures or maintenance within a single datacenter (e.g., 'You need high availability for VMs in a single region without zone support'), an availability set would be the correct answer.

C

A question asks for a solution to automatically scale the number of VM instances based on demand, while maintaining high availability within a single region. The correct answer would be Virtual machine scale set with a minimum instance count spread across fault domains.

D

In a scenario where you need to protect critical resources (e.g., a storage account or a virtual network) from accidental deletion or modification by users, a resource lock (CanNotDelete or ReadOnly) would be the correct answer.

Why candidates pick the wrong answer

A

Candidates often confuse availability sets with zone-level resilience, thinking 'set' implies broader protection, or they may not fully understand that availability sets only span fault domains within one datacenter.

C

Candidates may confuse scale sets' fault domain distribution with zone-level resilience, or think that the 'set' implies grouping for availability, but scale sets prioritize scaling over isolation from zone failures.

D

Candidates may confuse 'protection' in the question with resource protection mechanisms like locks, rather than understanding it refers to high availability and fault tolerance against datacenter failures.

64
MCQeasy

A company wants its file share data to be automatically copied to a paired Azure region, and administrators want to read the secondary copy during a disaster test. Which redundancy option should they use?

A.ZRS
B.LRS
C.RA-GRS
D.Cool
AnswerC

RA-GRS (read-access geo-redundant storage) synchronously replicates data three times within the primary region and then asynchronously copies it to a paired secondary region. Crucially, it exposes a readable secondary endpoint, so during a disaster exercise you can mount or inspect the secondary copy without waiting for a failover. This is the only listed option that provides both geo-replication and secondary read access, making it the correct fit for the requirement to automatically copy data and verify the replica.

Why this answer

RA-GRS (Read-Access Geo-Redundant Storage) is correct because it replicates data to a paired secondary region asynchronously and provides read-only access to that secondary copy. This allows administrators to read the secondary copy during a disaster test without impacting the primary region. ZRS and LRS do not replicate to a paired region, and Cool is a tier, not a redundancy option.

Exam trap

The trap here is that candidates confuse 'redundancy options' with 'access tiers' (like Cool) or assume that any geo-replication option (like GRS) automatically provides read access, but only RA-GRS explicitly enables reading the secondary copy without initiating a failover.

Why the other options are wrong

A

ZRS replicates data synchronously across availability zones within a single region, not to a paired Azure region, so it does not meet the requirement for cross-region disaster recovery.

B

LRS only replicates data within a single datacenter in the primary region, so it does not copy data to a paired Azure region, failing the requirement for automatic cross-region replication.

D

Cool is an access tier for Azure Blob Storage, not a redundancy option for Azure Files. It does not provide replication to a paired region or read access to a secondary copy.

When would these options actually be correct?

A

ZRS would be correct if the question required high availability within a single region by replicating across availability zones, and did not require cross-region replication or read access to a secondary copy.

B

LRS would be correct if the question specified that cost is the primary concern and the data does not need to be available in another region, or if the application can handle its own cross-region replication.

D

A question asks about cost-effective storage for infrequently accessed data in Azure Blob Storage, where the data can tolerate lower availability and higher retrieval costs. Cool tier would be the correct answer.

Why candidates pick the wrong answer

A

Candidates may confuse 'zone-redundant' with 'geo-redundant' or think ZRS provides cross-region redundancy, when it only protects against zone failures within one region.

B

Candidates may confuse LRS with geo-redundant options, or think that local redundancy is sufficient for disaster recovery without reading the requirement for a secondary copy in a paired region.

D

Candidates may confuse 'Cool' with a redundancy option because it sounds like a storage class that might involve replication, or they may mistakenly think it relates to disaster recovery due to the word 'cool' implying low activity.

65
MCQmedium

An on-premises application connects to Azure through an existing site-to-site VPN. The application must access an Azure Storage account, public network access on the storage account is disabled, and the company does not want the storage account exposed through a public endpoint. Which solution should the administrator implement?

A.Create a private endpoint for the storage account in a VNet reachable over the VPN and configure private DNS.
B.Enable a service endpoint on the on-premises network and allow the storage account firewall to trust it.
C.Generate a shared access signature and use it from the on-premises application.
D.Associate a NAT gateway with the on-premises VPN connection.
AnswerA

A private endpoint gives the storage account a private IP in a VNet, and that private address can be reached from on-premises over the existing VPN. Because public network access is disabled, this is the correct design for private-only access. Private DNS ensures the application resolves the storage name to the private IP rather than the public endpoint.

Why this answer

A private endpoint assigns the storage account a private IP from a VNet that is reachable over the site-to-site VPN, effectively bringing the storage account into the on-premises network without exposing a public endpoint. Private DNS zones ensure that the storage account's FQDN resolves to the private IP, enabling seamless connectivity from on-premises while public network access remains disabled.

Exam trap

The trap here is that candidates confuse service endpoints with private endpoints, assuming that enabling a service endpoint on the VNet and trusting it in the firewall will allow on-premises traffic, but service endpoints do not provide private IP connectivity and still require the public endpoint to be enabled.

Why the other options are wrong

B

Service endpoints expose the storage account to the entire VNet subnet, but the on-premises network is not a VNet; service endpoints cannot be applied to on-premises networks directly. Additionally, the storage account firewall trusts service endpoints only from VNets, not from on-premises.

C

A shared access signature (SAS) provides access to a storage account via its public endpoint, but the question states public network access is disabled, so SAS cannot be used.

D

A NAT gateway provides outbound internet connectivity for virtual networks but does not enable private access to a storage account with public network access disabled. It cannot route traffic from on-premises over VPN to a private endpoint.

When would these options actually be correct?

B

If the on-premises application were hosted in an Azure VNet (e.g., via ExpressRoute or VPN-connected VNet) and the storage account needed to be accessed from that VNet without a private endpoint, enabling a service endpoint on the VNet subnet and configuring the storage firewall to trust that VNet would be correct.

C

A question where public network access is enabled but the company wants to grant time-limited, delegated access to a specific storage resource (e.g., a blob) without exposing the account key, and the client can connect over the internet.

D

A NAT gateway would be correct in a scenario where virtual machines in a subnet need outbound internet access with a static public IP, and the requirement is to avoid using a public load balancer or default outbound access.

Why candidates pick the wrong answer

B

Candidates may confuse service endpoints with private endpoints, thinking both provide secure access from on-premises, or they may incorrectly assume that service endpoints can be extended to on-premises networks via VPN.

C

Candidates may think SAS is a secure way to grant access without a public endpoint, but they overlook that SAS still uses the public endpoint and requires public network access to be enabled.

D

Candidates may confuse NAT gateway with a method to provide private connectivity, thinking it can translate on-premises traffic to access Azure resources without public endpoints.

66
Multi-Selecthard

A backup administrator manages three Recovery Services vaults. They need a single place to review the latest job outcome across all vaults, and then drill into the failed job details for one VM. Which two Azure experiences should they use? Select two.

Select 2 answers
A.Azure Backup center
B.Recovery Services vault > Backup jobs
C.Azure Monitor metric chart
D.Azure Activity Log
E.Resource Health
AnswersA, B

Azure Backup center is the ideal choice because it serves as a single, unified management pane that aggregates backup jobs, alerts, and inventory across all three Recovery Services vaults, even if they reside in different subscriptions or regions. It provides a consolidated view of the entire backup estate, allowing you to quickly identify any failed or in-progress jobs without navigating between each vault. This centralization is exactly what an administrator managing multiple vaults needs for efficient day-to-day monitoring.

Why this answer

Azure Backup center provides a single, unified dashboard to monitor backup jobs across multiple Recovery Services vaults, enabling you to quickly view the latest job outcome for all protected workloads. From the Backup center, you can drill into a specific failed job for a VM by selecting it, which navigates to the detailed job view within the associated Recovery Services vault's Backup jobs blade. This combination meets the requirement for a centralized review and granular drill-down.

Exam trap

The trap here is that candidates often assume a single Recovery Services vault's Backup jobs blade is sufficient for multi-vault oversight, but the question explicitly requires a single place to review across all vaults, which only Backup center provides, while the vault-specific blade is needed for the drill-down step.

Why the other options are wrong

C

Azure Monitor metric chart provides performance metrics and alerts, but does not show backup job outcomes or allow drill-down into failed job details for a specific VM.

D

The Azure Activity Log tracks control-plane operations (e.g., create/delete vaults) and does not include backup job outcomes like success/failure for individual VMs. It cannot provide a consolidated view of job status across multiple vaults.

E

Resource Health provides health status of Azure resources (e.g., VM, storage) but does not show backup job outcomes or allow drilling into failed job details across multiple Recovery Services vaults.

When would these options actually be correct?

C

When the question asks for monitoring backup performance trends (e.g., backup duration, data transfer rate) across multiple vaults over time, and does not require job-level failure details.

D

An administrator needs to audit who deleted a Recovery Services vault or modified backup policy settings. The Azure Activity Log would be the correct tool to review these control-plane audit events for compliance or security investigation.

E

When the question asks: 'You need to monitor the overall health and availability of a specific Azure VM, including any platform or service issues affecting it.' Resource Health would be the correct tool to view the VM's health history and current status.

Why candidates pick the wrong answer

C

Candidates may think Azure Monitor is a central monitoring tool that can aggregate backup job status, but it lacks the specific backup job reporting and drill-down capabilities needed here.

D

Candidates may assume the Activity Log records all Azure operations, including backup job results, but it only captures resource management actions, not data-plane job outcomes.

E

Candidates may confuse Resource Health with backup health monitoring, thinking it aggregates job statuses, but it only reports resource-level health, not backup-specific job outcomes.

67
MCQmedium

Based on the exhibit, the security team needs 30 days of searchable log data for a storage account and wants to create queries that can be used in workbooks and alerts. The current configuration only sends data to an archive location. What should the administrator configure?

A.Add a Log Analytics workspace destination to the diagnostic setting.
B.Change the storage account redundancy to RA-GRS.
C.Enable a CanNotDelete lock on the storage account.
D.Configure a private endpoint for the storage account.
AnswerA

The diagnostic setting's primary purpose is to route log data to one or more configurable destinations. A Log Analytics workspace destination enables the security team to run KQL queries, build workbooks, and create log-based alert rules against the operational data. Because the requirement asks for 30 days of queryable audit data, this destination is the only one that natively supports that workflow.

Why this answer

The current diagnostic setting only archives logs to a storage account, which does not support interactive querying, workbooks, or alert rules. By adding a Log Analytics workspace destination to the same diagnostic setting, logs are sent to a centralized workspace where they become searchable via KQL, enabling real-time queries, workbook visualizations, and alert triggers. This meets the security team's requirement for 30 days of searchable log data without changing the existing archive destination.

Exam trap

The trap here is that candidates may think archiving logs to a storage account is sufficient for querying, but Azure Storage does not provide native log search or alerting capabilities—only Log Analytics workspaces enable interactive queries, workbooks, and alerts.

Why the other options are wrong

B

RA-GRS provides geo-redundant storage for durability, not searchable log data retention or query capabilities. The requirement is for 30 days of searchable logs and workbook/alert queries, which requires a Log Analytics workspace.

C

Enabling a CanNotDelete lock prevents accidental deletion of the storage account but does not affect log data retention, searchability, or query capabilities in workbooks and alerts.

D

Configuring a private endpoint for the storage account provides network isolation by enabling private connectivity, but it does not affect log data retention or query capabilities. The requirement is for searchable log data and queries in workbooks/alerts, which requires a Log Analytics workspace, not a private endpoint.

When would these options actually be correct?

B

When the question asks for a storage account configuration to ensure data remains available during a regional outage, or to meet a compliance requirement for geo-redundant storage of audit logs.

C

In a scenario where an administrator needs to protect a critical storage account from accidental deletion while maintaining existing configurations, a CanNotDelete lock would be the correct answer.

D

A question where the requirement is to ensure that a storage account is only accessible over a private network and not over the public internet, while maintaining compliance with data exfiltration protection policies. For example: 'You need to ensure that a storage account is only accessible from a virtual network and cannot be reached from the internet. What should you configure?'

Why candidates pick the wrong answer

B

Candidates may confuse redundancy with data retention or think that changing redundancy affects log availability, not understanding that RA-GRS is about replication, not log search or query capabilities.

C

Candidates may confuse resource locks with data retention or access controls, thinking that preventing deletion also preserves log data or enables querying.

D

Candidates may confuse network security with log management, thinking that a private endpoint enhances security and thus might be needed for compliance or data protection, but it does not address the logging and query requirement.

68
MCQhard

You need to run a stateless web workload on Azure virtual machines and automatically increase or decrease instance count based on demand. You also want a single management boundary for the VM instances. Which solution should you deploy?

A.A Virtual Machine Scale Set
B.An availability set with individual VMs
C.Azure Backup
D.A Recovery Services vault
AnswerA

A Virtual Machine Scale Set is the correct IaaS compute option because it is purpose-built to run a stateless web workload across many identical VM instances as a single collective resource. It provides native autoscaling based on CPU, memory, or custom metrics, integrates with Azure Load Balancer or Application Gateway for traffic distribution, and supports rolling image upgrades—making it far simpler to operate than dozens of individually managed VMs. For stateless applications, scale sets can also scale to zero, which individual VMs cannot do.

Why this answer

A Virtual Machine Scale Set (VMSS) is the correct solution because it provides an autoscaling group of identical VMs that can automatically increase or decrease instance count based on demand (e.g., CPU or memory metrics). It also offers a single management boundary, allowing you to manage, monitor, and scale all instances as a unified resource rather than individually.

Exam trap

The trap here is that candidates often confuse an availability set (which provides high availability but no scaling) with a Virtual Machine Scale Set (which provides both scaling and a single management boundary), or they mistakenly think backup/recovery services can manage compute scaling.

Why the other options are wrong

B

An availability set with individual VMs does not provide automatic scaling based on demand; it only ensures high availability by distributing VMs across fault and update domains. It lacks the built-in autoscaling and single management boundary of a scale set.

C

Azure Backup is a backup service for protecting data, not a compute scaling solution. It does not provide automatic scaling or a management boundary for VM instances.

D

A Recovery Services vault is used for backup and disaster recovery, not for scaling or managing compute instances. It does not provide automatic scaling or a management boundary for VM instances.

When would these options actually be correct?

B

You need to ensure high availability for a set of VMs running a critical application, with no requirement for automatic scaling. The question specifies that VMs must be placed in separate fault and update domains to protect against hardware failures and maintenance events.

C

An exam question asking for a solution to back up Azure VMs, including application-consistent backups and long-term retention, would make Azure Backup the correct answer.

D

A Recovery Services vault would be correct in a scenario where you need to centrally manage backups and perform disaster recovery for Azure VMs, such as implementing Azure Backup for multiple VMs or configuring site recovery replication.

Why candidates pick the wrong answer

B

Candidates may confuse availability sets with scale sets, thinking both provide scaling capabilities, or they may focus on the 'management boundary' aspect without realizing that availability sets do not offer a unified management interface for scaling.

C

Candidates may confuse backup with scaling, thinking that backup services can handle workload changes, or they may misread the question as asking for a disaster recovery solution.

D

Candidates may confuse Recovery Services vault with a management boundary for VMs because it can hold backup data and replication settings, but it does not manage compute resources or scaling.

69
MCQmedium

A developer wants to publish an internet-facing application from source code. Required capabilities include built-in HTTPS, deployment slots, and autoscale, but the team does not want to manage the operating system. Which Azure service should the administrator choose?

A.Azure Container Instances
B.Azure Virtual Machines
C.Azure App Service
D.Azure Kubernetes Service
AnswerC

Azure App Service is the best fit for a code-based internet-facing application that needs managed HTTPS, deployment slots, and autoscale without operating system administration. It provides a platform service for web hosting, which reduces operational work while supporting the common web app features named in the requirement.

Why this answer

Azure App Service is the correct choice because it provides a fully managed platform for hosting web applications with built-in HTTPS support, deployment slots for staging and swapping, and autoscale capabilities. It abstracts the underlying operating system, allowing the team to focus on code without managing infrastructure.

Exam trap

The trap here is that candidates often confuse Azure App Service with Azure Container Instances or Azure Kubernetes Service because they all support containers, but only App Service provides built-in deployment slots and OS abstraction without requiring container orchestration management.

Why the other options are wrong

A

Azure Container Instances lacks built-in HTTPS, deployment slots, and autoscale; it is designed for simple container workloads without these PaaS features.

B

Azure Virtual Machines require managing the operating system, which contradicts the requirement that the team does not want to manage the OS. Additionally, VMs do not natively provide built-in HTTPS, deployment slots, or autoscale without additional configuration.

D

Azure Kubernetes Service (AKS) requires managing the operating system and Kubernetes control plane, which contradicts the requirement of not managing the OS. Additionally, AKS is overkill for a simple internet-facing application from source code and does not natively provide deployment slots.

When would these options actually be correct?

A

A question requiring fast, serverless container deployment without managing orchestration, where the app does not need HTTPS termination, slots, or autoscale, and the team wants to run a single container instance.

B

An organization needs to run a legacy application that requires full control over the operating system, custom software installations, or specific OS configurations. The question would specify that the team is willing to manage the OS and needs maximum flexibility.

D

A question requiring container orchestration, microservices architecture, or complex scaling across multiple containers, where the team is comfortable managing Kubernetes but wants Azure to manage the control plane. For example: 'Which service should be used to deploy a containerized microservices application with automated scaling and rolling updates?'

Why candidates pick the wrong answer

A

Candidates may confuse container instances with a fully managed PaaS, overlooking that App Service provides the required features like HTTPS, slots, and autoscale out-of-the-box.

B

Candidates may think VMs are the only way to get full control over the application environment, overlooking PaaS options like App Service that provide the required features without OS management.

D

Candidates may think AKS is the only option for containerized applications or assume it provides built-in HTTPS and autoscale, overlooking that App Service offers these features without container orchestration complexity.

70
Matchingmedium

A production team wants to match common Azure Monitor components to the action each one performs. Match each item on the left to the best description on the right.

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

Concepts
Matches

Triggers when a numeric metric such as CPU percentage crosses a defined threshold.

Sends notifications or starts responses such as email, SMS, webhook, or automation.

Reports an Azure platform incident, advisory, or planned maintenance that affects a region or subscription.

Shows whether one specific Azure resource is currently healthy, degraded, or unavailable.

Exports a resource's logs and metrics to destinations such as Log Analytics or Storage.

Why these pairings

Log Analytics workspace stores logs centrally; Azure Monitor Metrics handles numeric time-series data; Application Insights focuses on application performance; Activity Log tracks control plane events; Alerts send notifications; Workbooks create interactive reports.

71
MCQmedium

An application runs on an Azure VM in a subnet and must access a storage account over the public endpoint without using a private IP address. The administrator wants to restrict access so only that subnet can reach the account. What should be configured?

A.Create a private endpoint for the storage account and disable the public endpoint.
B.Enable a service endpoint for Microsoft.Storage on the subnet and add the subnet to the storage account network rules.
C.Allow trusted Microsoft services to bypass the firewall.
D.Add a user-defined route that points storage traffic to the virtual network gateway.
AnswerB

A service endpoint lets the subnet reach the storage account over the Azure backbone while still using the storage account's public endpoint. Adding the subnet to the storage firewall allows only that subnet to connect. This meets the requirement to avoid a private IP while restricting access to a specific subnet.

Why this answer

A service endpoint for Microsoft.Storage extends the virtual network identity to the subnet, allowing the storage account firewall to accept traffic from that subnet via its public endpoint. This meets the requirement of restricting access to the storage account's public endpoint without using a private IP address.

Exam trap

The trap here is that candidates confuse service endpoints with private endpoints, assuming that restricting access to a subnet requires a private IP, when service endpoints can achieve subnet-level restriction over the public endpoint without changing the IP addressing.

Why the other options are wrong

A

The question requires access over the public endpoint, but a private endpoint assigns a private IP address from the subnet, bypassing the public endpoint entirely. This contradicts the requirement to use the public endpoint.

C

The question requires restricting access to the storage account's public endpoint to only a specific subnet. Allowing trusted Microsoft services bypasses the firewall, which would grant access to other Azure services (e.g., Azure Backup, Azure Logic Apps) that are not part of the subnet, violating the restriction.

D

A user-defined route (UDR) directing storage traffic to a virtual network gateway would force traffic through the gateway, but the question requires access over the public endpoint without using a private IP. UDRs do not restrict access to a specific subnet; they only control routing, not firewall rules.

When would these options actually be correct?

A

When the requirement is to access the storage account using a private IP address from the subnet, ensuring traffic never traverses the public internet. For example, an application must access storage with low latency and enhanced security by keeping traffic within the Microsoft backbone.

C

A question where the storage account has a firewall enabled, and the administrator needs to allow specific Azure platform services (e.g., Azure Backup, Azure Site Recovery) to access the storage account for operational purposes, without exposing it to all internet traffic.

D

An organization has a hub-and-spoke network topology and wants to force all outbound traffic from a spoke subnet to the internet through a central firewall (NVA) in the hub. In this case, a UDR with next hop set to the virtual appliance would be correct to enforce security inspection.

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 use private IPs and disable public access, which is not what the question asks.

C

Candidates may think that enabling trusted Microsoft services is a way to allow access from within Azure, but they overlook that this option grants broad access to many Azure services, not just the specific subnet required in the question.

D

Candidates may confuse routing control with access control, thinking that directing traffic through a gateway or appliance can restrict access, or they may overcomplicate the solution by adding unnecessary routing when a simple service endpoint suffices.

72
MCQmedium

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

A.A private DNS zone linked to VNet-Prod
B.A user-defined route
C.An Azure Firewall policy
D.A Recovery Services vault
AnswerA

A private DNS zone linked to VNet-Prod is correct because the storage account FQDN (e.g., myaccount.blob.core.windows.net) must resolve to the private endpoint's private IP address for clients inside the virtual network. The zone (privatelink.blob.core.windows.net) is linked to VNet-Prod and contains an A record mapping the storage endpoint to the private IP, allowing traffic to stay within the Microsoft backbone. Without this zone, clients would still use the public IP, defeating the isolation benefits of the private endpoint.

Why this answer

A private endpoint uses a private IP address from the VNet, but DNS resolution must be explicitly configured to map the storage account's FQDN to that private IP. By creating a private DNS zone (privatelink.blob.core.windows.net) linked to VNet-Prod, Azure automatically creates an A record for the private endpoint IP, enabling VMs to resolve the storage account name to the private IP instead of the public IP.

Exam trap

The trap here is that candidates confuse network-level traffic control (UDRs or firewalls) with DNS resolution, assuming that routing or filtering traffic is sufficient to force private connectivity, when in fact DNS must be explicitly configured to resolve to the private IP.

Why the other options are wrong

B

A user-defined route (UDR) controls network traffic flow by overriding default routing, but it does not provide DNS resolution. The question requires resolving the storage account name to a private IP, which is a DNS function, not a routing one.

C

An Azure Firewall policy controls outbound/inbound traffic filtering and does not manage DNS resolution or private endpoint name resolution.

D

A Recovery Services vault is used for backup and disaster recovery (Azure Backup, Site Recovery), not for DNS resolution or private endpoint connectivity. It does not provide DNS resolution for storage account names to private IP addresses.

When would these options actually be correct?

B

A user-defined route would be correct in a scenario where you need to force traffic from a subnet to go through a network virtual appliance (e.g., firewall) for inspection, such as when you want to route all outbound traffic from VNet-Prod through an Azure Firewall.

C

When the question asks how to filter traffic from VNet-Prod to the internet or to on-premises networks, and you need to enforce security rules and logging, an Azure Firewall policy would be the correct answer.

D

A Recovery Services vault would be the correct answer in a question about configuring backup for Azure VMs or on-premises machines, or setting up replication (Azure Site Recovery) between regions. For example: 'You need to back up Azure virtual machines to a central location. Which Azure resource should you create?'

Why candidates pick the wrong answer

B

Candidates may confuse private endpoint connectivity with routing, thinking that a UDR is needed to direct traffic to the private endpoint, but DNS resolution is the actual requirement here.

C

Candidates may confuse network security features, thinking a firewall policy can also handle DNS resolution or private endpoint connectivity, when its role is strictly traffic filtering.

D

Candidates may confuse Recovery Services vault with Azure Private Link or DNS features, thinking it can manage network connectivity or name resolution, due to its role in protecting resources.

73
Multi-Selecteasy

Which two settings can you configure in an Azure Backup policy for a virtual machine? Select two.

Select 2 answers
A.Backup schedule
B.Retention period
C.Virtual network peering
D.Network security group rules
E.Public IP allocation
AnswersA, B

The backup schedule determines how and when the Azure Backup service initiates a recovery point creation for the protected resource. You can choose between daily and weekly frequencies, and specify the exact time of day or day of week for the backup job to run. This setting is a core policy component because it directly controls the recovery point objective (RPO) for your data protection SLA. Without a configured schedule, the policy cannot automate backup execution.

Why this answer

An Azure Backup policy for a virtual machine includes a 'Backup schedule' setting that defines how often (e.g., daily or weekly) and at what time the backup job runs. This schedule controls the frequency of recovery point creation, which is essential for meeting recovery point objectives (RPOs).

Exam trap

The trap here is that candidates confuse Azure Backup policy settings with other Azure resource configurations, such as networking or IP addressing, because the exam often includes distractor options from different domains (networking, security, compute) to test whether you know the exact scope of a backup policy.

Why the other options are wrong

C

Azure Backup policies for virtual machines only include backup schedule and retention period settings; virtual network peering is a networking configuration unrelated to backup policies.

D

Network security group rules are not configurable within an Azure Backup policy; they control inbound/outbound traffic to the VM, not backup settings.

E

Public IP allocation is a setting for network interfaces, not for Azure Backup policies. Backup policies only control backup schedule and retention, not IP configuration.

When would these options actually be correct?

C

In a question about configuring connectivity between virtual networks, such as 'Which setting allows resources in different VNets to communicate?', virtual network peering would be the correct answer.

D

This option would be correct in a question about configuring network security for a VM, such as 'Which resource can you use to filter network traffic to and from Azure resources?'

E

In a question about configuring a virtual machine's network interface, 'Public IP allocation' would be correct when asking which settings can be configured for a NIC, such as static vs. dynamic allocation.

Why candidates pick the wrong answer

C

Candidates may confuse backup policies with broader VM configuration settings, mistakenly thinking network-related options like peering are part of backup policy configuration.

D

Candidates may confuse backup policies with general VM configuration settings, thinking NSG rules are part of backup protection.

E

Candidates may confuse backup policy settings with general VM configuration settings, mistakenly thinking that IP-related options are part of backup policies.

74
MCQmedium

A web app running in Azure App Service must upload files to a blob container. The team wants to avoid storing any secrets in application settings and wants the app to authenticate without a password or access key. What should the administrator configure?

A.Store the storage account key in the app configuration and use it from the application
B.Enable a system-assigned managed identity for the app and grant it a storage data role
C.Create an anonymous public container so the app can upload without authentication
D.Use a shared access signature generated from the storage account root key
AnswerB

Enabling a system-assigned managed identity for the App Service and granting it the Storage Blob Data Contributor (or Owner) role lets the app authenticate to Azure Storage using Microsoft Entra ID. This is the recommended approach because the App Service runtime automatically obtains an OAuth 2.0 token from the managed identity endpoint, requiring no credentials in code or configuration. The identity is tied to the app's lifecycle, so secrets are never stored, rotated, or leaked. This provides fine-grained, auditable access to the specific storage container, fully satisfying the requirement for controlled, credential-free uploads.

Why this answer

A system-assigned managed identity allows the App Service to authenticate to Azure Storage without storing any secrets. By granting the identity the 'Storage Blob Data Contributor' role via Azure RBAC, the app can upload files using Azure AD authentication, eliminating the need for passwords or access keys.

Exam trap

The trap here is that candidates often confuse managed identities with SAS tokens or access keys, assuming any form of shared secret is acceptable, but the question explicitly requires no secrets in application settings and no password or access key.

Why the other options are wrong

A

The question explicitly requires avoiding secrets in application settings and authenticating without a password or access key. Storing the storage account key in app configuration violates both requirements, as the key is a secret and must be stored securely.

C

The question requires authenticated uploads without secrets; anonymous public containers allow unauthenticated access, violating the requirement to avoid secrets and potentially exposing the container to unauthorized uploads.

D

The question requires passwordless authentication without secrets, but a shared access signature (SAS) is derived from a storage account key, which is a secret. The SAS itself must be stored or generated at runtime, introducing a secret management issue.

When would these options actually be correct?

A

This option would be correct if the question allowed storing secrets in application settings and did not mandate passwordless authentication. For example, if the requirement was simply to connect to blob storage from App Service without specifying secretless methods, using the storage account key in app settings would be a valid approach.

C

If the question asked for a solution to allow public read access to blobs (e.g., for a static website) without requiring authentication, and the app only needs to read files, then an anonymous public container would be correct.

D

This option would be correct if the question asked for a time-limited, delegated access method for a specific blob container without requiring the app to have a managed identity, and the SAS could be generated externally (e.g., by a separate secure service) and passed to the app.

Why candidates pick the wrong answer

A

Candidates may default to using storage account keys because it's a familiar and straightforward method for accessing Azure Storage, and they might overlook the specific requirement to avoid secrets and use passwordless authentication.

C

Candidates may think anonymous access simplifies authentication by removing the need for keys, but they overlook the security implications and the requirement for authenticated uploads.

D

Candidates may think SAS provides secure, keyless access because it can be scoped and expired, but they overlook that generating a SAS requires a key, which violates the 'no secrets' constraint.

75
Multi-Selecteasy

A helpdesk engineer wants to determine whether a VM issue is caused by a Microsoft platform problem or a problem limited to one specific VM. Which two Azure features should they use? Select two.

Select 2 answers
A.Azure Advisor
B.Backup center
C.Resource Health
D.Service Health
E.Log Analytics workspace
AnswersC, D

Resource Health is the correct tool because it provides a personalized dashboard of the actual health of a specific Azure VM, surfacing ongoing or past platform and guest OS issues that directly impact that resource. It distinguishes between platform-initiated events and customer-caused problems, with statuses like Available, Degraded, Unavailable, and Unknown. For a helpdesk engineer investigating a single VM, this is the fastest way to see if Azure's infrastructure is the root cause.

Why this answer

Resource Health (C) provides a personalized dashboard showing the health of your individual Azure resources, including VMs, and can indicate whether an issue is specific to that resource. Service Health (D) provides a global view of Azure service availability across regions and can identify platform-wide outages or planned maintenance. Together, they allow the engineer to differentiate between a problem limited to one VM and a broader Azure platform problem.

Exam trap

The trap here is that candidates often confuse Resource Health with Service Health, thinking they are interchangeable, when in fact Resource Health focuses on individual resources while Service Health covers the entire Azure platform, and both are needed together to isolate the scope of a problem.

Why the other options are wrong

A

Azure Advisor provides personalized recommendations for best practices in cost, security, reliability, and performance, but it does not offer real-time health status or incident information to differentiate between platform-wide and VM-specific issues.

B

Backup center is used for managing and monitoring backups, not for diagnosing live VM issues or platform problems. It does not provide real-time health status of Azure services or individual resources.

E

Log Analytics workspace is used for collecting and analyzing telemetry data, not for determining whether a VM issue is caused by a platform problem or a VM-specific problem. It does not provide real-time health status of Azure services or individual resources.

When would these options actually be correct?

A

When a question asks: 'Which Azure service provides recommendations to improve the reliability, security, and cost-effectiveness of your Azure resources?' Azure Advisor would be the correct answer.

B

A question asks: 'Which Azure feature provides a centralized interface to monitor backup jobs, configure backup policies, and track backup compliance across multiple resources?' In that scenario, Backup center would be the correct answer.

E

A question asks: 'Which Azure service should you use to query and analyze performance and diagnostic logs from multiple VMs to identify trends and anomalies?' In that scenario, Log Analytics workspace would be the correct answer.

Why candidates pick the wrong answer

A

Candidates may confuse Advisor's recommendations for improving reliability with the ability to diagnose ongoing issues, or they might think Advisor can detect platform problems because it monitors resource configurations.

B

Candidates may confuse Backup center with a general monitoring tool, assuming it can help identify VM issues because it provides some operational data, but its focus is solely on backup-related activities.

E

Candidates may think Log Analytics can help diagnose the root cause of VM issues by analyzing logs, but it does not directly indicate whether the problem is platform-wide or VM-specific.

Page 1 of 14

Page 2