Courseiva

AZ-104 (AZ-104) — Questions 601675

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

Page 8

Page 9 of 14

Page 10
601
MCQmedium

An operations team maintains a hardened Windows base image that includes patch baseline settings and monitoring agents. They need to publish new versions, replicate the image to another region, and deploy future VMs from the same controlled image source. What should they use?

A.A snapshot of the generalized OS disk.
B.An Azure Compute Gallery image version.
C.A VM extension on an existing VM.
D.An availability set for the image resources.
AnswerB

A Compute Gallery image version is the correct mechanism because it stores a fully generalized VM image as a managed, versioned resource. This lets you maintain multiple versions (e.g., quarterly patch baselines), replicate them to other Azure regions for faster or resilient deployment, and use any version as the source for thousands of identical VMs. It provides controlled rollback and a standardized, repeatable image distribution pipeline.

Why this answer

An Azure Compute Gallery (formerly Shared Image Gallery) is the correct service for managing, versioning, replicating, and deploying custom Windows images across regions. It supports multiple image versions, regional replication, and allows you to deploy VMs from a controlled, hardened base image. Snapshots alone lack versioning and cross-region replication capabilities.

Exam trap

The trap here is that candidates often confuse a simple snapshot or managed disk copy with the versioning, replication, and lifecycle management capabilities that only an Azure Compute Gallery provides.

Why the other options are wrong

A

A snapshot of the generalized OS disk does not support replication to another region or centralized version management for publishing new image versions. Azure Compute Gallery is required for multi-region replication and controlled image versioning.

C

A VM extension is used to configure software or agents on an existing VM, not to publish, replicate, or deploy new VM images from a controlled source.

D

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

When would these options actually be correct?

A

A snapshot would be correct if the question asked for a one-time backup of a generalized VM disk to be used for creating a single VM in the same region, without need for versioning, replication, or sharing across teams.

C

When the question asks how to install monitoring agents or apply patch configurations to existing VMs without modifying the base image, a VM extension would be the correct answer.

D

When the question asks for a way to ensure high availability of a multi-VM application by distributing VMs across isolated hardware within a single region, an availability set would be the correct answer.

Why candidates pick the wrong answer

A

Candidates may think a snapshot is sufficient because it captures the disk state, but they overlook the need for replication and version management, which are not features of snapshots.

C

Candidates may confuse VM extensions with the ability to manage image configurations, thinking extensions can be used to enforce settings on new VMs from a base image.

D

Candidates may confuse availability sets with replication or distribution capabilities, thinking that 'availability' implies making the image available in multiple regions.

602
Multi-Selecthard

An Azure Function App and an Azure Automation runbook both need to upload, read, and delete blobs in one container. You must avoid stored secrets and keep the permissions as limited as possible. Which two configuration choices should you make? Select two.

Select 2 answers
A.Create a user-assigned managed identity that can be attached to both Azure resources.
B.Grant Storage Blob Data Contributor on the target container to that identity.
C.Store the storage account access key in both app settings and runbook variables.
D.Assign Contributor on the storage account because it automatically includes all blob data permissions.
E.Use a shared SAS token without an expiration date for both workloads.
AnswersA, B

A user-assigned managed identity is reusable across resources and avoids storing secrets in application code or configuration.

Why this answer

A user-assigned managed identity provides a secure, credential-free authentication method for Azure resources. It allows both the Function App and Automation runbook to authenticate to Azure Storage without storing any secrets, meeting the requirement to avoid stored secrets.

Exam trap

The trap here is that candidates often confuse the Contributor role on the storage account with data plane permissions, not realizing that Contributor only grants management plane access and does not allow blob operations.

Why the other options are wrong

C

Storing the storage account access key in app settings and runbook variables violates the requirement to avoid stored secrets, as the key is a long-lived secret that must be securely stored and managed.

D

The Contributor role on the storage account includes management plane permissions (e.g., delete the account) but does NOT automatically grant data plane permissions like blob upload/read/delete. You need a separate data role such as Storage Blob Data Contributor.

E

A shared SAS token without an expiration date violates the principle of least privilege and introduces a persistent security risk; the question explicitly requires avoiding stored secrets and limiting permissions.

When would these options actually be correct?

C

If the question allowed stored secrets and required the simplest configuration without managed identities, using the storage account access key would be correct. For example, 'You need to configure an Azure Function App to access a storage account using a key stored in application settings.'

D

If the question required managing the storage account itself (e.g., create/delete containers, configure firewall rules) and did not involve blob data operations, then assigning Contributor on the storage account would be appropriate.

E

This option would be correct if the question asked for a temporary, delegated access solution for a specific blob operation, where the SAS token is generated on-demand with a short expiration and not stored, and the requirement to avoid stored secrets is not present.

Why candidates pick the wrong answer

C

Candidates may think using access keys is straightforward and familiar, overlooking the security requirement to avoid stored secrets and the principle of least privilege.

D

Candidates may mistakenly believe that Contributor on the storage account grants full access to all data within it, confusing management plane roles with data plane roles.

E

Candidates may think a SAS token avoids storing secrets because it is a token, but they overlook the need for an expiration date and the fact that the token itself becomes a stored secret if saved without expiry.

603
MCQhard

Quarterly invoices were moved to the Archive tier by a lifecycle rule. An auditor now needs one specific blob available for download within the next hour. What should the administrator do?

A.Change the lifecycle rule so the blob will automatically move back to Hot on the next run.
B.Set the blob directly to the Hot tier and download it immediately.
C.Start a high-priority rehydration of the blob to the Hot tier, then wait for completion before downloading.
D.Copy the archived blob to another container by using the portal copy command.
AnswerC

Archive tier data is offline and must be rehydrated before it can be read. High-priority rehydration is the fastest recovery option when the blob is needed urgently, and Hot is appropriate when the user wants normal online access after the operation completes.

Why this answer

Blobs in the Archive tier are offline and must be rehydrated to an online tier (Hot or Cool) before they can be accessed. A high-priority rehydration completes within one hour, meeting the auditor's deadline. Changing a lifecycle rule (A) or directly setting the tier (B) does not initiate the necessary rehydration process, and copying an archived blob (D) fails because the blob is offline.

Exam trap

The trap here is that candidates assume you can directly change the tier of an archived blob (like from Cool to Hot) without realizing that Archive-tier blobs are offline and require a separate rehydration step before any tier change or access is possible.

Why the other options are wrong

A

Lifecycle rules operate on a schedule (typically once per day) and cannot be triggered on-demand to move a specific blob within an hour. The blob is already in Archive tier and must be explicitly rehydrated.

B

Blobs in the Archive tier are offline and cannot be directly set to Hot; they must be rehydrated first, which takes time. Setting the tier directly would fail or not make the blob available for immediate download.

D

Copying an archived blob directly via the portal copy command fails because the blob is in the Archive tier and must be rehydrated (moved to a hot tier) before any copy or download operation can succeed.

When would these options actually be correct?

A

If the question asked how to automatically move blobs from Cool to Hot tier on a recurring basis (e.g., monthly), modifying a lifecycle rule would be correct.

B

If the blob were in the Cool tier (not Archive), changing its tier to Hot would be immediate and allow download. This option would be correct for a question where the blob is in Cool and needs to be accessed quickly.

D

This option would be correct if the blob were already in the Hot or Cool tier (not archived), and the task was simply to copy it to another container for organizational purposes without changing its tier.

Why candidates pick the wrong answer

A

Candidates may think lifecycle rules can be manually triggered or that changing the rule will immediately affect existing blobs, misunderstanding that rules apply to new blobs or on the next scheduled run.

B

Candidates may think that changing the tier is a direct, instant operation similar to moving a file between folders, not realizing that Archive blobs are offline and require a rehydration process.

D

Candidates may think the portal copy command can handle any blob regardless of tier, overlooking the fact that archived blobs are offline and require rehydration before any data access.

604
MCQmedium

An internal line-of-business application runs on two VMs in Azure. Users connect only from a peered virtual network and from on-premises through VPN. The application must not be reachable from the internet, but traffic should be balanced across the two VMs. Which configuration should you choose?

A.A public Standard Load Balancer with a public frontend IP.
B.A Standard Load Balancer with a private frontend IP.
C.A NAT gateway attached to the application subnet.
D.A network security group rule allowing TCP 443 from the internet.
AnswerB

A Standard Load Balancer with a private frontend provides load balancing only within the virtual network boundary, which fits an internal application. It can balance traffic from peered VNets or hybrid connections without assigning a public frontend. This is the appropriate pattern when the service must remain private but still needs distribution across backend VMs.

Why this answer

A Standard Load Balancer with a private frontend IP is correct because it distributes traffic to the two VMs using a private IP address that is only reachable from within the peered virtual network and the on-premises network via VPN. This configuration ensures the application is not exposed to the internet while still providing load balancing across the VMs.

Exam trap

The trap here is that candidates often assume a load balancer must have a public frontend IP to function, but Azure Standard Load Balancer fully supports private frontend IPs for internal load balancing without any internet exposure.

Why the other options are wrong

A

A public Standard Load Balancer with a public frontend IP would make the application reachable from the internet, violating the requirement that the application must not be reachable from the internet.

C

A NAT gateway provides outbound internet connectivity for private subnets, not inbound load balancing. The requirement is to balance traffic across two VMs from internal sources only, which a NAT gateway cannot do.

D

A network security group rule allowing TCP 443 from the internet would expose the application to the internet, violating the requirement that it must not be reachable from the internet.

When would these options actually be correct?

A

This option would be correct if the question required the application to be accessible from the internet (e.g., a public-facing web app) and load-balanced across VMs, with no restriction on internet access.

C

If the question required providing outbound internet access to VMs in a private subnet (e.g., for downloading updates) while preventing inbound internet traffic, a NAT gateway attached to the subnet would be correct.

D

If the question required allowing HTTPS traffic from the internet to a specific VM or set of VMs (e.g., a web server), and the application needed to be publicly accessible, then an NSG rule allowing TCP 443 from the internet would be correct.

Why candidates pick the wrong answer

A

Candidates may think a public load balancer is needed for load balancing, overlooking the requirement to block internet access, or they may confuse public frontend IP with private frontend IP.

C

Candidates may confuse NAT gateway with load balancing because both handle traffic, or think that a NAT gateway can distribute inbound connections, not realizing it only translates outbound traffic.

D

Candidates may think NSG rules are sufficient to control traffic and overlook the requirement to block internet access entirely, or they may confuse inbound NSG rules with load balancing solutions.

605
MCQhard

An Azure Automation job running on a VM uses a managed identity to upload and overwrite JSON files in one container named configs. The job must not list, delete, or modify any other containers in the storage account. Which role assignment is the best choice?

A.Storage Blob Data Contributor at the configs container scope
B.Storage Blob Data Owner at the storage account scope
C.Contributor at the resource group scope
D.Storage Queue Data Contributor at the storage account scope
AnswerA

This role grants the blob data permissions the automation job needs while avoiding storage account keys or SAS tokens. Assigning it at the container scope ensures the identity can work only inside the configs container and cannot touch unrelated containers. It is the narrowest assignment that still allows upload and overwrite operations, which makes it the best least-privilege choice.

Why this answer

The Storage Blob Data Contributor role at the container scope grants the managed identity the necessary permissions to upload and overwrite blobs (including JSON files) within the 'configs' container, while explicitly preventing listing, deleting, or modifying other containers in the storage account. This role includes the 'Microsoft.Storage/storageAccounts/blobServices/containers/blobs/write' action, which allows overwriting existing blobs, but does not include any actions on the container itself (like listing or deleting containers) or on other containers. Scoping the role to the specific container ensures the principle of least privilege is strictly followed.

Exam trap

The trap here is that candidates often choose Storage Blob Data Owner at the storage account scope (Option B) because they think 'Owner' is necessary for overwriting files, but they overlook that 'Contributor' at the container scope already includes write permission and avoids granting excessive container management rights.

Why the other options are wrong

B

Storage Blob Data Owner at the storage account scope grants full control over all blobs and containers, including the ability to list, delete, or modify any container, which violates the requirement to restrict actions to only the configs container.

C

Contributor at the resource group scope grants full management access to all resources in the resource group, including the ability to list, delete, or modify any storage containers, which violates the requirement to restrict actions to only uploading/overwriting JSON files in the configs container.

D

Storage Queue Data Contributor grants permissions to queue data (messages), not blob storage. The job needs to upload/overwrite JSON files in a blob container, not interact with queues.

When would these options actually be correct?

B

This option would be correct if the job needed to manage all blobs and containers in the storage account, including setting ownership and ACLs, and the requirement allowed full access to all containers.

C

This role would be correct in a scenario where the job needs full management control over all resources within a resource group, such as deploying and managing VMs, networks, and storage accounts, without needing to restrict permissions to a specific container.

D

An Azure Automation job needs to read, write, or delete messages from a specific storage queue. For example, a job that processes order messages from a queue named 'orders' would require Storage Queue Data Contributor at the queue scope.

Why candidates pick the wrong answer

B

Candidates may think 'Owner' is the most powerful role and assume it's always best, overlooking the principle of least privilege and the specific scope restriction in the question.

C

Candidates may choose Contributor because it is a common, broad role that seems sufficient for 'running a job on a VM', without realizing that the question specifically requires least privilege and container-level scoping.

D

Candidates may confuse 'queue' with 'container' or assume 'Data Contributor' covers all storage data types, not realizing it's specific to queue storage.

606
MCQmedium

A subnet uses a user-defined route that sends 0.0.0.0/0 to a firewall appliance. One server in the subnet must download updates directly from 40.90.10.25 over the Internet, while all other outbound traffic should continue through the firewall. What is the best change?

A.Remove the default route so all traffic uses the system routes.
B.Add a more specific /32 route for 40.90.10.25 with next hop type Internet.
C.Create a service endpoint for the server and the update site.
D.Attach a NAT gateway to the subnet so the server can bypass the firewall.
AnswerB

Azure uses longest-prefix matching when selecting routes. A specific /32 route for one destination is more specific than the broader 0.0.0.0/0 forced-tunnel route, so traffic to that IP can bypass the firewall and go directly to the Internet. This is the cleanest way to create a targeted exception without changing the behavior for all other outbound traffic from the subnet.

Why this answer

Adding a more specific /32 route for 40.90.10.25 with next hop type Internet overrides the default route (0.0.0.0/0) for traffic destined to that specific IP. User-defined routes (UDRs) follow the longest prefix match principle, so the /32 route takes precedence over the /0 route, allowing the server to reach the update site directly via the internet while all other outbound traffic continues through the firewall appliance.

Exam trap

The trap here is that candidates often think a NAT gateway or service endpoint can bypass a firewall for specific traffic, but they fail to understand that route precedence (longest prefix match) is the only way to override a default route for a specific destination in Azure.

Why the other options are wrong

A

Removing the default route would cause all outbound traffic, including the server's update traffic, to use system routes, which would not route through the firewall but also would not allow the server to directly reach 40.90.10.25 without a specific route. This fails to meet the requirement that only the server's traffic to 40.90.10.25 bypasses the firewall.

C

A service endpoint does not bypass the firewall; it only provides direct connectivity to Azure services over the Azure backbone, not to a specific public IP like 40.90.10.25. The requirement is to allow direct internet access for a specific IP, which service endpoints cannot achieve.

D

A NAT gateway provides outbound internet access with source network address translation, but it does not allow selective bypass of the firewall for specific destinations; all traffic would still follow the UDR unless a more specific route is added.

When would these options actually be correct?

A

This option would be correct if the requirement were to allow all outbound traffic to use system routes (i.e., direct internet access) without any firewall inspection, and there was no need to route specific traffic through a firewall. For example, if the question stated: 'All servers in the subnet must have direct internet access; remove any forced tunneling.'

C

If the question required a server in a subnet to securely access an Azure service (e.g., Azure Storage or SQL Database) without going through a firewall or internet, a service endpoint would be the correct answer. For example: 'A subnet routes all traffic through a firewall. A server needs to access Azure Storage directly.

What should you configure?'

D

If the requirement were to provide outbound internet access to all servers in the subnet while hiding their private IPs, and the firewall was not needed, attaching a NAT gateway would be correct. For example, in a scenario where the subnet must access the internet without a firewall, a NAT gateway is the appropriate solution.

Why candidates pick the wrong answer

A

Candidates may think that removing the default route will allow the server to access the internet directly, but they overlook that the default route is needed for general internet access and that a more specific route is required to bypass the firewall for a specific destination.

C

Candidates may confuse service endpoints with a method to bypass routing policies, thinking they provide direct internet access for specific services, when in fact they only optimize connectivity to Azure services and do not override user-defined routes.

D

Candidates may think a NAT gateway can be used to route specific traffic directly to the internet, but they overlook that the UDR still applies to all traffic unless overridden by a more specific route.

607
Drag & Dropmedium

Arrange the steps to deploy an Azure Policy that enforces tagging on resources.

Drag steps to the numbered slots on the right, or tap a step then tap a slot.

Steps
Order
1Step 1
2Step 2
3Step 3
4Step 4

Why this order

Deploying an Azure Policy that enforces tagging requires first navigating to the Azure Policy service, then creating a policy definition with the appropriate rule, assigning it to the desired scope (e.g., subscription or resource group), and finally testing to ensure the policy works as expected. Incorrect orders may lead to errors or ineffective policy enforcement.

608
MCQmedium

A workload uses Azure Blob Storage for customer uploads. The team wants protection against a datacenter failure within the primary region and wants data copied to a paired region for disaster recovery, but they do not need to read from the secondary region during normal operations. Which redundancy option fits best?

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

GZRS protects against zone failure and also replicates data to a paired region for disaster recovery.

Why this answer

GZRS (Geo-Zone-Redundant Storage) is correct because it combines ZRS within the primary region (synchronously replicating data across three Azure availability zones) with asynchronous geo-replication to a paired secondary region. This provides protection against both a datacenter failure (via ZRS) and a full region failure (via geo-replication), while the lack of read access from the secondary during normal operations matches the requirement exactly.

Exam trap

The trap here is that candidates often confuse GRS with GZRS, assuming GRS provides zone-level redundancy, but GRS only uses LRS in the primary region, leaving data vulnerable to a single datacenter failure within that region.

Why the other options are wrong

A

ZRS replicates data synchronously across multiple availability zones within a single region, but does not copy data to a paired region for disaster recovery, failing to meet the requirement for protection against a datacenter failure in the primary region and cross-region DR.

C

RA-GZRS provides read access to the secondary region, but the question states they do not need to read from the secondary during normal operations, making GZRS (without read access) the correct choice.

D

GRS replicates data to a paired region for disaster recovery but does not provide protection against a datacenter failure within the primary region because it uses LRS locally. The question requires protection against a datacenter failure within the primary region, which GRS lacks.

When would these options actually be correct?

A

A question where the requirement is to protect against a datacenter failure within a single region (e.g., an availability zone outage) and there is no need for cross-region replication. For example: 'A workload requires high availability within a single region and can tolerate a zone failure, but does not need geo-redundancy.'

C

A scenario where the workload requires read access to the secondary region for high availability, such as serving read requests from the secondary during a regional outage, would make RA-GZRS correct.

D

GRS would be correct if the question only required disaster recovery to a paired region without needing protection against a datacenter failure within the primary region, and the workload could tolerate potential data loss during a regional disaster.

Why candidates pick the wrong answer

A

Candidates may confuse ZRS with geo-redundant options because ZRS provides redundancy across zones, and they might overlook the requirement for cross-region disaster recovery to a paired region.

C

Candidates may confuse GZRS with RA-GZRS, thinking the 'read-access' feature is always beneficial, or they may overlook the explicit requirement that read access is not needed.

D

Candidates may confuse GRS with GZRS, thinking that GRS also provides zone-level redundancy within the primary region, or they may overlook the requirement for protection against a datacenter failure within the primary region.

609
Drag & Dropmedium

Arrange the steps to create an Azure Storage account with a container and upload a blob.

Drag steps to the numbered slots on the right, or tap a step then tap a slot.

Steps
Order
1Step 1
2Step 2
3Step 3
4Step 4

Why this order

Create storage account, create container, set access, upload blob, generate SAS.

610
MCQmedium

You want Azure to identify security improvements, underutilized resources, and cost-saving opportunities across your subscriptions. Which Azure service should you use?

A.Azure Advisor
B.Azure Policy
C.Azure Backup
D.Virtual network peering
AnswerA

Azure Advisor is a built-in, free service that provides personalized best-practice recommendations by analyzing your Azure resources. It categorizes recommendations into Security, Reliability, Performance, and Cost, and for the security category it surfaces issues such as missing network security group rules, unencrypted storage, and exposed SQL databases, often sourced from Defender for Cloud. It also identifies underutilized virtual machines through metrics like CPU and network usage, giving it the unique ability to fulfill both 'security improvements' and 'underutilized' requirements.

Why this answer

Azure Advisor is the correct service because it provides personalized recommendations across five categories: Reliability, Security, Performance, Operational Excellence, and Cost. It analyzes your deployed resources and usage patterns to identify security improvements (e.g., missing network security groups), underutilized resources (e.g., idle virtual machines), and cost-saving opportunities (e.g., reserved instance purchases). This aligns directly with the question's requirement for a unified service that delivers these insights across subscriptions.

Exam trap

The trap here is that candidates confuse Azure Advisor's proactive recommendations with Azure Policy's reactive compliance enforcement, mistakenly thinking Policy can identify underutilized resources or cost-saving opportunities when it only enforces rules.

Why the other options are wrong

B

Azure Policy enforces compliance rules and governance, but it does not proactively identify security improvements, underutilized resources, or cost-saving opportunities. Those are the specific functions of Azure Advisor.

C

Azure Backup is a service for backing up data and workloads, not for identifying security improvements, underutilized resources, or cost-saving opportunities. The question asks for a service that provides recommendations, which is Azure Advisor's function.

D

Virtual network peering connects virtual networks for traffic routing, but does not provide security recommendations, identify underutilized resources, or offer cost-saving insights.

When would these options actually be correct?

B

Azure Policy would be correct if the question asked: 'You need to enforce tagging standards and ensure resources comply with corporate governance rules across your subscriptions. Which service should you use?'

C

Azure Backup would be correct if the question asked: 'Which Azure service should you use to protect your virtual machines and files from data loss by creating scheduled backups?'

D

When the question asks for connecting two virtual networks in different regions to enable private IP communication with low latency, Virtual network peering is the correct answer.

Why candidates pick the wrong answer

B

Candidates may confuse Azure Policy's role in governance and compliance with Advisor's advisory capabilities, thinking policy can also provide recommendations for optimization.

C

Candidates might confuse 'security improvements' with backup and disaster recovery, thinking that backup contributes to security posture, but Azure Backup does not analyze or recommend optimizations.

D

Candidates may confuse network-level connectivity with advisory services, thinking that peering can help optimize network costs or improve security by segmenting traffic.

611
Multi-Selecteasy

A VM-hosted application must read blobs from Azure Storage without storing any keys or passwords. Which two identity types can the VM use to authenticate to Azure Storage? Select two.

Select 2 answers
A.System-assigned managed identity, because it is tied to one VM and can request tokens without stored secrets.
B.User-assigned managed identity, because it can be reused by multiple resources without embedding credentials.
C.Storage account shared key, because it is the preferred credential when you want to avoid passwords.
D.Basic authentication with a storage account name and password, because Azure Storage supports that model directly.
E.Anonymous public access, because it lets the VM read blobs without any authentication at all.
AnswersA, B

System-assigned managed identity is an Azure AD service principal that is automatically created when the VM is provisioned and deleted when the VM is deleted. The application obtains a token by calling the Azure Instance Metadata Service (IMDS) endpoint at 169.254.169.254, so no connection strings or keys are ever stored in code or configuration. You assign RBAC, such as Storage Blob Data Reader, to that identity for the storage account, and Azure automatically rotates the underlying credentials.

Why this answer

System-assigned managed identity is correct because it is directly tied to a single VM and can request tokens from Azure AD without storing any secrets or keys. The VM uses its managed identity to authenticate to Azure Storage by obtaining an OAuth 2.0 token, which is then passed to the storage service via the Authorization header. This eliminates the need for any stored credentials, meeting the requirement of not storing keys or passwords.

Exam trap

The trap here is that candidates often confuse managed identities with shared access signatures (SAS) or shared keys, thinking that any identity-based method requires storing a secret, or they incorrectly assume that anonymous access is a valid identity type for application authentication.

Why the other options are wrong

C

The question requires the VM to authenticate without storing keys or passwords, but a storage account shared key is a secret that must be stored on the VM, violating the requirement.

D

Azure Storage does not support basic authentication with a storage account name and password; it uses shared keys or tokens. The question requires avoiding stored secrets, and basic authentication would still require embedding a password.

When would these options actually be correct?

C

A question that asks for the simplest way to authenticate a script running on an on-premises server to Azure Storage, where storing a key is acceptable and managed identities are not available.

D

In a scenario where a legacy application requires simple username/password authentication and the storage account is configured to allow basic auth (e.g., using Azure AD with password grant), but this is not standard for Azure Storage.

Why candidates pick the wrong answer

C

Candidates may think shared keys are secure because they are not passwords, but they are still secrets that need to be stored, and the question explicitly forbids storing any keys or passwords.

D

Candidates may confuse Azure Storage authentication with other Azure services that support basic auth, or mistakenly think that storage account name and key are analogous to username and password.

612
Multi-Selecteasy

A Windows VM in Azure must upload log files to a blob container every hour. Security policy forbids storing the storage account key or any long-lived SAS token on the VM. Which two actions should the administrator take? Select two.

Select 2 answers
A.Enable a system-assigned managed identity on the VM.
B.Assign the Storage Blob Data Contributor role to that identity on the storage account or container.
C.Copy the storage account access key into a configuration file on the VM.
D.Assign the Reader role at the resource group scope to the VM identity.
E.Create a shared access signature that never expires and place it on the VM.
AnswersA, B

A system-assigned managed identity gives the VM an Azure identity without storing secrets on the server. It can authenticate to Azure Storage through Microsoft Entra ID.

Why this answer

A system-assigned managed identity on the VM allows it to authenticate to Azure AD without storing any credentials. By assigning the Storage Blob Data Contributor role to that identity on the storage account or container, the VM can upload logs using Azure AD authentication, which satisfies the security policy forbidding storage account keys or long-lived SAS tokens.

Exam trap

The trap here is that candidates often confuse the Reader role (which only grants control plane read access) with data plane roles like Storage Blob Data Contributor, or mistakenly think a non-expiring SAS is acceptable despite the explicit security policy forbidding long-lived credentials.

Why the other options are wrong

C

Copying the storage account access key into a configuration file violates the security policy forbidding storage of keys on the VM, and it exposes the key to potential compromise.

D

The Reader role only allows read access to Azure resources but does not grant permissions to write data to a blob container. The VM needs to upload logs, which requires write permissions, so the Storage Blob Data Contributor role is necessary.

E

A SAS token that never expires violates the security policy forbidding long-lived tokens, and storing it on the VM contradicts the requirement to avoid storing credentials on the VM.

When would these options actually be correct?

C

If the security policy allowed storing keys and the requirement was to use the storage account key for authentication (e.g., legacy applications that cannot use managed identities), then copying the key to a configuration file would be correct.

D

If the question required the VM to only read configuration files or monitor resource properties without writing data, assigning the Reader role at the resource group scope would be correct to allow read-only access to all resources in that group.

E

If the question allowed using a SAS token with a limited expiry (e.g., 1 hour) and the VM could renew it via a secure mechanism (e.g., Azure Key Vault), then creating and using such a token would be correct. The token must have an expiry and not be stored permanently on the VM.

Why candidates pick the wrong answer

C

Candidates may think that using the storage account key is a straightforward way to authenticate, overlooking the security policy and the availability of more secure managed identity options.

D

Candidates may confuse the Reader role with a general permission that enables data access, or they might think that any role assignment to a managed identity is sufficient for authentication, overlooking the specific data actions needed.

E

Candidates may think a non-expiring SAS token is a convenient way to grant access without using account keys, overlooking the security policy against long-lived tokens and the requirement to avoid storing credentials on the VM.

613
MCQmedium

An administrator archived monthly log exports in a blob container six weeks ago. An auditor now needs to open one of those files later today, and the file must be readable from Azure Storage rather than restored from a separate backup copy. What should the administrator do?

A.Open the blob directly from the Archive tier because archived blobs remain online for read access.
B.Start rehydration of the blob to the Hot tier before opening it.
C.Change the blob to the Cold tier, because Cold is designed for archived content.
D.Use a snapshot of the archived blob, because snapshots can be opened even when the base blob is archived.
AnswerB

Archived blobs are not immediately readable, so the administrator must rehydrate the blob back to an online tier first. Hot is appropriate when the file needs to be accessible again as soon as the rehydration completes and may be used actively during the audit. This is the correct operational response when the blob must be read later the same day.

Why this answer

Blobs in the Archive tier are offline and cannot be read directly. To access the data, the blob must first be rehydrated to the Hot or Cool tier, which changes its state to online and readable. Rehydration can take up to 15 hours, so the administrator must start this process well before the auditor needs the file.

Exam trap

The trap here is that candidates assume archived blobs are still readable because they appear in the storage account listing, but Azure's Archive tier explicitly stores data offline, requiring explicit rehydration before any read operation.

Why the other options are wrong

A

Archived blobs are offline and cannot be read directly; they must be rehydrated to an online tier (Hot, Cool, or Cold) before access.

C

The Cold tier is not designed for archived content; it is for data accessed less frequently but still requiring immediate availability. Archived blobs must be rehydrated to Hot or Cool tier before reading, and Cold tier does not support direct reading of archived blobs.

D

Snapshots of an archived blob are also in the Archive tier and cannot be read directly; they require rehydration just like the base blob.

When would these options actually be correct?

A

If the question stated that the blob was in the Cool or Cold tier (online tiers), then opening it directly would be correct because those tiers allow immediate read access.

C

This option would be correct if the question asked: 'An administrator wants to reduce storage costs for monthly logs that are accessed quarterly but must be available within seconds. What tier should they use?' In that scenario, Cold tier is appropriate for infrequent access with low latency requirements.

D

If the question asked about accessing a blob that is in the Hot or Cool tier, and the administrator needed to preserve the original blob state while making a point-in-time copy available, using a snapshot would be correct.

Why candidates pick the wrong answer

A

Candidates may mistakenly believe that the Archive tier still allows read access, confusing it with the Cool or Cold tiers which are online but have lower availability.

C

Candidates may confuse the Cold tier with the Archive tier, thinking 'Cold' implies frozen or archived data, and assume it can directly serve archived blobs without rehydration.

D

Candidates may mistakenly believe that snapshots bypass tier restrictions, thinking they provide a separate, instantly accessible copy regardless of the base blob's tier.

614
MCQeasy

Based on the exhibit, the spoke virtual network must use the hub's existing VPN gateway to reach on-premises networks. Which peering setting should be enabled on the spoke-to-hub peering?

A.Allow forwarded traffic on the spoke peering.
B.Use remote gateways on the spoke peering.
C.Delete the peering and create a virtual network gateway in the spoke.
D.Enable service endpoints on the spoke subnet.
AnswerB

To let the spoke use the hub's VPN gateway, the spoke-to-hub peering must be configured with Use remote gateways enabled. This tells Azure that the spoke should send gateway-bound traffic through the remote VNet's gateway rather than deploying its own gateway. It is the required setting in a hub-and-spoke design with shared VPN connectivity.

Why this answer

The 'Use remote gateways' setting on the spoke-to-hub peering allows the spoke virtual network to use the hub's existing VPN gateway for connectivity to on-premises networks. This setting forwards traffic from the spoke through the hub's gateway, enabling transitive routing without deploying a separate gateway in the spoke. It requires the hub-to-spoke peering to have 'Allow gateway transit' enabled.

Exam trap

The trap here is that candidates often confuse 'Allow forwarded traffic' with 'Use remote gateways', mistakenly thinking that enabling forwarded traffic alone is sufficient to route spoke traffic through the hub's VPN gateway, when in fact 'Use remote gateways' is the specific setting required for gateway transit.

Why the other options are wrong

A

The question requires the spoke to use the hub's VPN gateway, which is achieved by enabling 'Use remote gateways' on the spoke peering, not 'Allow forwarded traffic'. 'Allow forwarded traffic' permits the hub to forward traffic from other networks to the spoke, but does not allow the spoke to use the hub's gateway.

C

Deleting the peering and creating a VPN gateway in the spoke would bypass the hub's existing VPN gateway, which contradicts the requirement to use the hub's gateway for on-premises connectivity. This would also incur additional cost and management overhead.

D

Service endpoints secure Azure service access from a virtual network to specific Azure services (e.g., Azure Storage) by forcing traffic over the Microsoft backbone. They do not enable a spoke VNet to use a hub's VPN gateway for on-premises connectivity; that requires the 'Use remote gateways' peering setting.

When would these options actually be correct?

A

In a scenario where the spoke needs to receive traffic from on-premises networks via the hub, but the spoke itself does not need to initiate connections to on-premises. For example, if the hub has a VPN gateway and the spoke only needs to be reachable from on-premises, enabling 'Allow forwarded traffic' on the spoke peering allows the hub to forward traffic from on-premises to the spoke.

C

This option would be correct if the question stated that the spoke network must have its own independent VPN connection to on-premises, and the hub's gateway is not to be used. For example, if the spoke requires dedicated bandwidth or isolation from hub traffic.

D

Enable service endpoints on the spoke subnet when the question asks how to restrict access to an Azure Storage account so that only traffic from a specific subnet in the spoke VNet is allowed, while blocking all other internet traffic. This is a common scenario for securing PaaS services.

Why candidates pick the wrong answer

A

Candidates may confuse 'Allow forwarded traffic' with 'Use remote gateways' because both involve traffic routing through the hub. They might think that allowing forwarded traffic is necessary for the spoke to use the hub's gateway, but the correct setting for gateway transit is 'Use remote gateways'.

C

Candidates may think that a VPN gateway is needed in the spoke for on-premises connectivity, not realizing that using the hub's gateway via 'Use remote gateways' is the proper design for hub-and-spoke topologies.

D

Candidates may confuse service endpoints with gateway transit because both involve network connectivity and security. They might think enabling service endpoints somehow allows the spoke to 'reach' on-premises networks via the hub, not realizing service endpoints are for Azure service access only.

615
Matchingeasy

Match each VM identity concept to its best use.

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

Concepts
Matches

Best for one VM; the identity is deleted with the VM.

Can be attached to multiple VMs.

Lets an app get Azure tokens without storing secrets.

Grants permissions to an Azure resource at a chosen scope.

Why these pairings

Managed identities (system or user-assigned) eliminate credential management; Azure AD app identity is for custom apps; IMDS provides tokens; role assignments grant access to resources.

616
MCQmedium

A developer deleted a single configuration file on a Windows Azure VM. The administrator wants to restore only that file from the latest backup without replacing the entire VM. Which restore workflow should be used?

A.Restore the entire VM to a new instance
B.Use file recovery from the backup item
C.Create a new storage account and copy the file from there
D.Enable a resource lock on the VM
AnswerB

File recovery lets an administrator mount the backup content and copy back only the deleted file or folder. That is the most efficient option when the VM itself is healthy and only a small set of files needs to be recovered. It avoids downtime and avoids replacing the whole virtual machine or disk set.

Why this answer

Azure Backup provides file-level recovery for Azure VMs using the 'File Recovery' feature. This allows you to mount the recovery point as a drive on the VM (or another machine) and copy individual files without restoring the entire VM. It uses iSCSI to present the backup snapshot directly to the VM for granular file access.

Exam trap

The trap here is that candidates may assume file-level recovery is not possible with Azure VM backups and choose the full VM restore option, not realizing that Azure Backup supports granular file recovery via iSCSI mounting.

Why the other options are wrong

A

Restoring the entire VM to a new instance would replace the whole VM, not just a single file, and would require additional configuration to extract the file, making it inefficient for a single file restore.

C

Creating a new storage account and copying the file from there does not restore the file from a backup; it only provides a storage location. The file must first be recovered from the backup, which is not part of this workflow.

D

Enabling a resource lock on the VM prevents accidental deletion or modification of the VM itself, but it does not provide any mechanism to restore a deleted file from a backup.

When would these options actually be correct?

A

If the question asked for recovering a VM after a catastrophic failure where the VM is completely corrupted or deleted, and you need to restore the entire VM to a new instance with the latest backup, this option would be correct.

C

If the question asked for a method to store backup files for long-term retention or to copy a file from an existing storage account to another location, then creating a new storage account and copying the file would be correct.

D

A question asks: 'An administrator wants to prevent accidental deletion of a critical production VM. Which action should be taken?' In that scenario, enabling a resource lock (specifically a delete lock) on the VM resource would be the correct answer.

Why candidates pick the wrong answer

A

Candidates may think that restoring the entire VM is the only way to access backup data, not realizing that Azure Backup offers file-level recovery for Azure VMs.

C

Candidates may think that backup files are stored in a storage account and that creating a new one allows them to access and copy the file, but they overlook that the file must first be recovered from the backup before it can be copied.

D

Candidates may confuse resource locks with backup/restore capabilities, thinking that locking the VM somehow protects individual files or enables recovery, when in fact locks only prevent changes to the resource settings.

617
MCQmedium

A stateless web application is hosted on an Azure virtual machine scale set. Traffic is predictable: CPU usage stays below 20% overnight, then rises above 70% during business hours. The administrator wants the instance count to increase automatically when average CPU stays high for 10 minutes and to decrease after demand drops. What should be configured?

A.A proximity placement group for the scale set instances.
B.Manual scale operations only.
C.Autoscale rules on the virtual machine scale set.
D.An availability set with three update domains.
AnswerC

Autoscale rules on the virtual machine scale set correctly solve this. Azure VMSS can scale out and in automatically based on a metric such as average CPU percentage, with thresholds and duration windows. The autoscale engine reacts to the changing CPU pattern by adding or removing instances, and because the app is stateless, new instances can serve traffic immediately. This is the only option that provides the required automatic, metric-driven scaling.

Why this answer

Autoscale rules on the virtual machine scale set allow the administrator to define a scale-out condition (e.g., average CPU > 70% for 10 minutes) and a scale-in condition (e.g., average CPU < 20% for a specified duration). This matches the requirement for automatic, metric-based scaling based on predictable traffic patterns.

Exam trap

The trap here is that candidates may confuse availability sets or proximity placement groups with autoscaling, thinking they provide automatic instance count adjustments, when in fact they only address placement or fault tolerance.

Why the other options are wrong

A

A proximity placement group reduces network latency between VMs but does not provide automatic scaling based on CPU usage, which is required to handle the predictable traffic pattern described.

B

Manual scaling requires an administrator to manually change the instance count, which does not meet the requirement for automatic scaling based on CPU thresholds.

D

An availability set with three update domains is used to ensure high availability for VMs during planned maintenance, not for autoscaling based on CPU usage. It does not provide automatic scaling of instance count.

When would these options actually be correct?

A

When the question requires minimizing network latency between VMs in a scale set for a latency-sensitive distributed application, such as a high-performance computing (HPC) workload, a proximity placement group would be the correct choice.

B

If the question specified that the workload is unpredictable and requires human judgment to avoid scaling thrashing, or if the organization has a policy requiring manual approval for all scaling changes, then manual scale operations would be the correct answer.

D

A question asks: 'You need to deploy two VMs running a line-of-business application that must remain available during Azure platform updates. What should you configure?' In that case, an availability set with multiple update domains ensures that not all VMs are updated simultaneously.

Why candidates pick the wrong answer

A

Candidates may confuse placement groups with scaling configurations, thinking that grouping instances together helps with performance during scaling, but they do not automate instance count adjustments.

B

Candidates might think manual scaling is simpler or more reliable, or they may confuse manual scaling with scheduled scaling, not realizing that autoscale rules are needed for automatic response to CPU metrics.

D

Candidates may confuse availability sets with scale sets, thinking that update domains help manage scaling, or they may assume that any high-availability feature can handle load changes.

618
MCQmedium

An NSG outbound rule allows TCP 8443 traffic from ASG-Web to ASG-Api. The web VM NIC is in ASG-Web, but the API VM NICs were deployed into the correct subnet and never added to ASG-Api. The traffic still fails. What should the administrator do?

A.Move the NSG to the web subnet so source membership is automatically detected.
B.Add the API VM NICs to ASG-Api.
C.Change the destination port to 443 because ASGs only work with common HTTPS traffic.
D.Create a service endpoint for the spoke subnet so the NSG rule becomes effective.
AnswerB

Adding the API VM NICs to ASG-Api is the correct fix because the NSG rule's destination object is that ASG, and Azure matches traffic by checking which NICs are currently members of that ASG. The rule only takes effect for traffic whose destination IP is on a NIC that belongs to ASG-Api; without those memberships, the rule's condition cannot be satisfied. Note that ASG membership is assigned at the NIC layer, so the VM's NIC must be explicitly associated with the ASG, independent of the NSG's association to the subnet or VM.

Why this answer

The NSG rule references ASG-Api as the destination, but the API VM NICs were never added to that application security group. ASGs are logical groupings of VM NICs; a rule targeting an ASG only applies to NICs that are members of that ASG. Since the API NICs are not in ASG-Api, the rule does not match them, and traffic fails.

Adding the API VM NICs to ASG-Api resolves the issue by making them valid destinations for the rule.

Exam trap

The trap here is that candidates assume ASGs automatically include all VMs in the same subnet, but ASGs require explicit NIC membership and do not inherit subnet scope.

Why the other options are wrong

A

Moving the NSG to the web subnet does not resolve the issue because the API VM NICs are not in ASG-Api, so the destination ASG membership is not recognized. The NSG rule requires the destination to be ASG-Api, but the API VMs are not members.

C

ASGs (Application Security Groups) have no port restrictions; they work with any TCP/UDP port. Changing the port to 443 is unnecessary and does not address the root cause—the API VM NICs are not in ASG-Api.

D

Service endpoints extend VNet identity to Azure service resources, not to NSG rules. They do not affect NSG destination matching; the NSG rule still requires the destination ASG to contain the target NICs.

When would these options actually be correct?

A

This would be correct if the NSG was applied to the web subnet instead of the web VM NIC, and the source ASG-Web membership was not being detected because the NSG was at the NIC level. Moving the NSG to the subnet allows it to evaluate traffic from all VMs in the subnet, including those in ASG-Web, without requiring NIC-level application.

C

This would be correct if the question stated that the NSG rule was configured for HTTPS (TCP 443) but the application uses a custom port like 8443, and the administrator mistakenly thought ASGs only support common ports. In that scenario, updating the rule to the correct port would fix the issue.

D

A question where traffic to an Azure service (e.g., Azure SQL or Storage) from a subnet is failing, and enabling a service endpoint on that subnet allows the NSG rule to match traffic to the service's public IPs.

Why candidates pick the wrong answer

A

Candidates may think that moving the NSG to the subnet will automatically include all VMs in the subnet in the ASG, but ASGs require explicit membership assignment; subnet-level NSG does not automatically add VMs to an ASG.

C

Candidates may confuse ASG behavior with common security practices where HTTPS (443) is often used, or they might think ASGs have built-in port limitations, leading them to assume the port must be changed.

D

Candidates confuse service endpoints with a general network connectivity feature, thinking they can magically make NSG rules work across subnets without proper ASG membership.

619
MCQhard

Your organization wants all subscriptions under the Corp-MG management group to inherit a policy that blocks deployment of resource types not on an approved list. Which Azure feature should you use?

A.Azure Policy assigned at the management group scope
B.A custom RBAC role assigned at the tenant root
C.A ReadOnly lock on each subscription
D.A budget alert for each subscription
AnswerA

Azure Policy's 'Allowed Resource Types' definition, when assigned to the Corp management group, is inherited by every subscription and applies a Deny effect to deployment requests for any resource type not on the approved list. This gives centralized enforcement that travels down the hierarchy, and with policy effects such as Deny or Audit, you can prohibit or flag non-compliant deployments before they are created. Child scopes can be excluded if needed, preserving flexibility.

Why this answer

Azure Policy assigned at the management group scope is the correct choice because it allows you to enforce governance rules across all subscriptions within a management group hierarchy. By creating a policy definition that blocks deployment of resource types not on an approved list and assigning it to the Corp-MG management group, the policy will be inherited by all child subscriptions, ensuring consistent compliance without manual configuration per subscription.

Exam trap

The trap here is confusing Azure Policy (which enforces rules on resource properties and types) with Azure RBAC (which controls user permissions), leading candidates to incorrectly choose a custom RBAC role when the question explicitly asks about blocking resource types.

Why the other options are wrong

B

Custom RBAC roles control access permissions, not resource deployment restrictions. They cannot block resource types; Azure Policy is required for that.

C

A ReadOnly lock prevents modifications to resources but does not block deployment of unapproved resource types; it only prevents deletion or modification of existing resources.

D

Budget alerts monitor spending and trigger notifications, but they cannot block resource deployments or enforce allowed resource type lists. They are a cost management tool, not a policy enforcement mechanism.

When would these options actually be correct?

B

A custom RBAC role assigned at the tenant root would be correct if the question asked for a way to grant a security team read-only access to all subscriptions in the tenant without assigning roles per subscription.

C

A ReadOnly lock would be correct if the question asked: 'You need to prevent accidental deletion or modification of critical resources in a subscription. Which feature should you use?'

D

A question asks: 'Your organization wants to receive an email notification when any subscription under the Corp-MG management group exceeds its monthly budget. Which Azure feature should you use?' In that scenario, budget alerts assigned at the subscription or management group scope would be correct.

Why candidates pick the wrong answer

B

Candidates may confuse RBAC with Azure Policy because both involve 'roles' and 'assignments,' and the management group scope suggests a broad control mechanism.

C

Candidates may confuse locks with policy enforcement, thinking a ReadOnly lock can block new deployments, but locks only affect existing resources, not new ones.

D

Candidates may confuse cost control with resource governance, thinking that budget alerts can prevent deployments by stopping overspending, but alerts only notify and do not block actions.

620
MCQmedium

A company needs to peer VNet-Prod, which uses 10.30.0.0/16, with VNet-Shared, which uses 10.30.64.0/18. The peering creation fails with an address-space overlap error. The team can renumber the shared environment, but they do not want to change any addresses in VNet-Prod. What should the administrator do before retrying the peering?

A.Add an NSG that allows traffic between the two VNets.
B.Reconfigure VNet-Shared to use a non-overlapping address range, then recreate its subnets and migrate workloads.
C.Rename VNet-Shared so Azure treats it as a different network.
D.Enable gateway transit on both VNets so Azure can route around the overlap.
AnswerB

Azure VNet peering requires the two address spaces to be unique and non-overlapping. If any prefix overlaps, the peering cannot be created. The correct fix is to renumber one VNet by introducing a different address range, rebuilding or moving subnets as needed, and then removing the conflicting range. This addresses the root cause instead of trying to work around it with security or routing settings.

Why this answer

VNet peering requires that the address spaces of the two VNets do not overlap. VNet-Prod uses 10.30.0.0/16, which includes the range 10.30.64.0/18 used by VNet-Shared, causing the overlap error. The only way to resolve this without changing VNet-Prod is to reconfigure VNet-Shared to use a non-overlapping address range, which involves deleting and recreating its subnets and migrating workloads, as stated in option B.

Exam trap

The trap here is that candidates may think gateway transit or NSGs can bypass address space overlap, but Azure strictly enforces non-overlapping address spaces for VNet peering, and no network feature can override this fundamental routing requirement.

Why the other options are wrong

A

NSGs filter traffic but do not resolve overlapping IP address spaces; peering requires non-overlapping ranges to establish routing.

C

Renaming a virtual network does not change its address space; Azure identifies VNets by their address ranges, not names, so the overlap error persists.

D

Gateway transit does not resolve address space overlap; it only enables a VPN gateway in one VNet to route traffic to on-premises or other VNets via the peered VNet. Overlapping IP ranges prevent peering from being established at all.

When would these options actually be correct?

A

An administrator needs to restrict traffic between two peered VNets to specific ports or IPs; adding an NSG on the subnet or NIC would enforce that security policy.

C

If the question involved a naming conflict (e.g., two VNets with the same name in different resource groups) and the goal was to avoid confusion in Azure Portal, renaming one would resolve the conflict without affecting address spaces.

D

This option would be correct if the VNets had non-overlapping address spaces and the goal was to allow VNet-Shared to use a VPN gateway in VNet-Prod for connectivity to on-premises networks, with gateway transit enabled on VNet-Prod and use remote gateways on VNet-Shared.

Why candidates pick the wrong answer

A

Candidates may think NSGs can fix connectivity issues caused by overlapping addresses, confusing network security with address space design.

C

Candidates may mistakenly think Azure uses the VNet name as a unique identifier for peering, similar to how DNS names resolve IP addresses, and that renaming would somehow bypass the overlap check.

D

Candidates may think gateway transit can route around overlaps by using the gateway as a intermediary, but Azure VNet peering requires non-overlapping address spaces regardless of gateway configuration.

621
MCQmedium

You need to ensure that administrators cannot accidentally delete a production virtual network, but they must still be able to update subnet settings. Which Azure feature should you apply?

A.A CanNotDelete lock
B.A ReadOnly lock
C.An Azure Policy deny assignment
D.A budget alert
AnswerA

A CanNotDelete lock is the correct solution because it specifically blocks delete operations on the subnet while leaving all read and update operations untouched. Administrators can continue to modify address ranges or linked resources, but any attempt to delete the subnet fails until the lock is removed. The lock is enforced at the control plane and requires an explicit unlock action, making accidental deletion extremely unlikely.

Why this answer

A CanNotDelete lock (Azure resource lock) prevents accidental deletion of the virtual network while allowing all other operations, including updates to subnet settings. This lock type blocks DELETE requests at the Azure Resource Manager level, but permits PUT and PATCH operations, so administrators can still modify subnet configurations.

Exam trap

The trap here is that candidates often confuse Azure Policy (which enforces rules on resource properties) with resource locks (which control deletion or modification permissions), leading them to select a deny assignment instead of the simpler CanNotDelete lock.

Why the other options are wrong

B

A ReadOnly lock prevents all write operations, including updating subnet settings, which contradicts the requirement that administrators must still be able to update subnet settings.

C

An Azure Policy deny assignment prevents any updates to the resource, including subnet settings, which contradicts the requirement that administrators must be able to update subnet settings.

D

A budget alert only notifies about spending thresholds; it does not prevent deletion or allow subnet updates, so it fails to meet the requirement of preventing accidental deletion while permitting subnet configuration.

When would these options actually be correct?

B

A ReadOnly lock would be correct if the requirement were to prevent any modifications to the virtual network and its subnets, while still allowing read access. For example, to protect a critical network configuration from any changes during an audit period.

C

When the requirement is to prevent any configuration changes to a resource, such as ensuring that no one can modify the network security group rules on a production subnet, while still allowing read access.

D

A budget alert would be correct in a scenario where you need to monitor and receive notifications when spending on a virtual network or its associated resources exceeds a defined cost threshold, without any access control requirements.

Why candidates pick the wrong answer

B

Candidates may think a ReadOnly lock is the only way to prevent deletion, but they overlook that it also blocks updates, which are explicitly required in the question.

C

Candidates may confuse Azure Policy's ability to enforce compliance and prevent modifications with the more granular resource lock, thinking a deny assignment can selectively block deletions while allowing updates.

D

Candidates might confuse budget alerts with governance controls, thinking they can block actions via cost limits, or they may misremember the purpose of budget alerts as a security feature.

622
MCQmedium

An organization has one Azure subscription with separate resource groups for Development and Operations. A contractor must start, stop, and read the properties of virtual machines only in RG-Operations. The contractor must not have access to virtual machines in RG-Development. Where should the role assignment be created?

A.At the subscription scope
B.At the RG-Operations resource group scope
C.At the management group scope
D.At an individual virtual machine scope
AnswerB

Assigning the required role at the RG-Operations resource group scope is the narrowest level that still includes every relevant virtual machine and its supporting resources (like network interfaces and disks) as a single logical unit. Since RBAC assignments are inherited by all resources within the scope, this grants the contractor exactly the access needed for that group, without leaking permissions to other resource groups in the subscription. This adheres to the principle of least privilege because the assignment is limited to the organizational boundary where the contractor actually works.

Why this answer

Role assignments in Azure are inherited from higher scopes (management group, subscription, resource group) down to lower scopes. To grant the contractor the Virtual Machine Contributor role (or a custom role with start/stop/read permissions) only on VMs in RG-Operations and explicitly deny access to RG-Development, the assignment must be scoped to the RG-Operations resource group. Assigning at a higher scope (subscription or management group) would grant access to all resource groups, including RG-Development, violating the requirement.

Exam trap

The trap here is that candidates often assume assigning a role at the subscription scope is simpler and still allows them to control access via resource group membership, but they forget that role assignments at higher scopes are inherited by all child scopes, granting unintended access to resources in other resource groups like RG-Development.

Why the other options are wrong

A

Assigning the role at the subscription scope would grant the contractor permissions to all resource groups, including RG-Development, violating the requirement to restrict access to RG-Operations only.

D

Assigning the role at an individual virtual machine scope would only grant access to that specific VM, not to all VMs in RG-Operations as required. The contractor needs to start, stop, and read properties of all VMs in the resource group, which requires a role assignment at the resource group scope.

When would these options actually be correct?

A

If the question required the contractor to manage virtual machines across all resource groups (e.g., both Development and Operations), then assigning the role at the subscription scope would be correct to provide uniform access.

D

A question where a specific user needs to manage only a single virtual machine (e.g., start, stop, change its properties) and must not have access to any other resources in the same resource group or subscription. The role assignment would be scoped to that individual VM.

Why candidates pick the wrong answer

A

Candidates may think assigning at a higher scope (subscription) is simpler and covers the needed resource group, overlooking that it also grants unintended access to other resource groups.

D

Candidates may think that assigning the role at the VM level is more restrictive and thus more secure, but they overlook that the requirement is to manage all VMs in the resource group, not just one.

623
MCQmedium

Based on the exhibit, what should you configure so the analysts can manage group membership without granting Azure resource permissions?

A.Assign the service desk analysts the User Administrator role in Microsoft Entra ID.
B.Add the service desk analysts as owners of the App-Support group.
C.Create separate local administrator accounts for each analyst.
D.Assign Contributor on the subscription to the service desk analysts.
AnswerB

Adding the analysts as owners of the App-Support group grants them the least-privilege delegation to manage that group's membership in Microsoft Entra ID. Owners can add or remove members, but they receive no Azure RBAC permissions to the resources the group might access, so this satisfies the requirement without exposing broader administrative scope.

Why this answer

Adding the service desk analysts as owners of the App-Support group grants them the ability to manage group membership directly within Microsoft Entra ID (formerly Azure AD) without assigning any Azure RBAC permissions on resources. Group owners can add or remove members from the group, but they do not inherit any permissions to manage Azure resources like VMs or storage accounts.

Exam trap

The trap here is that candidates often confuse Microsoft Entra ID administrative roles (like User Administrator) with the more granular group ownership delegation, assuming that managing group membership requires a broader directory role rather than simply being added as an owner of the specific group.

Why the other options are wrong

A

The User Administrator role grants broad permissions to manage all users and groups in Microsoft Entra ID, including resetting passwords and managing roles, which exceeds the requirement to only manage group membership without granting Azure resource permissions.

C

Creating separate local administrator accounts for each analyst grants local machine administrative privileges, not the ability to manage group membership in Microsoft Entra ID, and does not address the requirement of managing Azure AD groups without granting Azure resource permissions.

D

Assigning Contributor on the subscription grants full management access to all resources, including the ability to create, modify, and delete Azure resources, which goes beyond managing group membership and would grant Azure resource permissions.

When would these options actually be correct?

A

This option would be correct if the question required analysts to manage all user accounts and groups in the directory, including resetting passwords and managing role assignments, and the scope of management was not limited to a single group.

C

This option would be correct in a scenario where analysts need to perform administrative tasks on on-premises or Azure VMs, such as installing software or configuring settings, and the question specifies that they should have local admin rights on those machines without any Azure resource or directory-level permissions.

D

If the question required granting analysts the ability to manage all resources within a subscription (e.g., deploy and manage virtual machines, storage accounts, etc.) without granting administrative roles like Owner, then Contributor would be the correct role.

Why candidates pick the wrong answer

A

Candidates may think that assigning a built-in directory role like User Administrator is the standard way to delegate group management, overlooking that it grants excessive privileges beyond just managing group membership.

C

Candidates may think that local admin accounts are a safe way to grant management capabilities without affecting Azure resources, misunderstanding that the question is about managing Microsoft Entra ID group membership, not local machine administration.

D

Candidates may confuse the Contributor role with a limited management role, not realizing it provides broad resource permissions across the entire subscription, far exceeding the scope of managing group membership only.

624
MCQeasy

Based on the exhibit, a stateless web app must add VM instances during business hours and remove them at night based on CPU usage. Which Azure service should the administrator deploy?

A.An availability set with two virtual machines.
B.An Azure virtual machine scale set.
C.A single Azure VM with a larger size.
D.A recovery services vault.
AnswerB

A virtual machine scale set is designed for identical VM instances that can scale out and scale in automatically. It works well for stateless workloads, and autoscale rules can use CPU thresholds or schedules to adjust capacity over time. This exactly matches the requirement for business-hour scaling.

Why this answer

An Azure virtual machine scale set (VMSS) is the correct choice because it automatically scales the number of VM instances in or out based on CPU usage metrics, and it supports scheduled scaling to add instances during business hours and remove them at night. This aligns with the stateless web app requirement for elastic, automated scaling without manual intervention.

Exam trap

The trap here is that candidates often confuse availability sets (which provide high availability) with scale sets (which provide autoscaling), leading them to pick Option A for a scenario that explicitly requires dynamic scaling based on load and schedule.

Why the other options are wrong

A

An availability set provides high availability for a fixed number of VMs, but does not support automatic scaling based on CPU usage or schedule. It cannot add or remove instances dynamically.

D

A Recovery Services vault is used for backup and disaster recovery, not for scaling VM instances based on CPU usage or scheduling.

When would these options actually be correct?

A

A question requiring high availability for a stateless web app with a fixed number of VMs (e.g., two) during all hours, without any scaling requirements. The scenario would emphasize fault tolerance against hardware failures.

D

An administrator needs to protect Azure VMs by enabling backup and restore capabilities, including cross-region restore and soft delete.

Why candidates pick the wrong answer

A

Candidates may confuse high availability (availability set) with scalability (scale set), or think that adding VMs manually to an availability set can meet scaling needs.

D

Candidates may confuse recovery services with scaling or high availability features, or think it can handle automatic instance management.

625
Multi-Selecthard

A company has an Azure Storage account that stores application files in Blob Storage. VMs in AppSubnet must access the blobs by using the standard storage account name, but traffic must stay private and the public endpoint must not be used. Which two actions should the administrator take? Select two.

Select 2 answers
A.Create a private endpoint for the blob service in AppSubnet.
B.Enable a service endpoint for Microsoft.Storage on AppSubnet.
C.Link a private DNS zone for privatelink.blob.core.windows.net to the VNet.
D.Generate a shared access signature and email it to the VMs.
E.Add a virtual network rule to the storage account and keep the public endpoint open.
AnswersA, C

A private endpoint gives the storage account a private IP address inside the VNet, so the VM traffic stays on private addressing and avoids the public endpoint.

Why this answer

A private endpoint assigns the blob service a private IP address from the AppSubnet, allowing VMs to access the storage account using the standard storage account name (e.g., mystorageaccount.blob.core.windows.net) while keeping all traffic within the Microsoft Azure backbone network and bypassing the public endpoint entirely. This satisfies the requirement that traffic must stay private and the public endpoint must not be used.

Exam trap

The trap here is that candidates often confuse service endpoints with private endpoints, assuming both provide the same level of privacy, but service endpoints still use the public endpoint for the data plane while private endpoints provide a fully private IP address and eliminate public internet exposure.

Why the other options are wrong

B

A service endpoint does not keep traffic private; it still uses the public endpoint of the storage account, only with source IP filtering. The question requires that the public endpoint not be used.

D

A shared access signature (SAS) uses the public endpoint, which violates the requirement that traffic must stay private and the public endpoint must not be used.

E

Keeping the public endpoint open violates the requirement that the public endpoint must not be used. A virtual network rule alone does not block public access; it only restricts access to traffic from the specified subnet, but the public endpoint remains accessible.

When would these options actually be correct?

B

If the requirement were to restrict access to the storage account from a specific subnet while still allowing traffic over the public endpoint (e.g., for compliance or cost reasons), enabling a service endpoint on AppSubnet and adding a virtual network rule would be correct.

D

If the question required granting time-limited access to specific blobs for external users without Azure AD credentials, and the public endpoint is allowed, a SAS would be correct.

E

If the question required restricting access to a specific subnet while still allowing access via the public endpoint (e.g., for hybrid scenarios where on-premises clients need to use the public endpoint), then adding a virtual network rule and keeping the public endpoint open would be correct.

Why candidates pick the wrong answer

B

Candidates often confuse service endpoints with private endpoints, thinking both provide private connectivity, but service endpoints do not remove public exposure.

D

Candidates may think SAS is a secure way to access blobs without realizing it still uses the public endpoint, or they may confuse SAS with private access methods.

E

Candidates may confuse service endpoints with private endpoints, thinking that a virtual network rule alone ensures private connectivity, but they overlook the requirement to disable public endpoint access.

626
MCQeasy

Based on the exhibit, help desk staff must restart virtual machines only in RG-App. What is the narrowest scope where you should assign the role?

A.Assign the role at the subscription scope for Sub-IT-01.
B.Assign the role at the management group scope above the subscription.
C.Assign the role at the RG-App resource group scope.
D.Assign the role at the individual VM scope only.
AnswerC

The RG-App resource group scope is the narrowest scope that still contains both VMs that the help desk staff must restart, while excluding the RG-Shared resource group. Assigning a role at this scope inherits permissions to all VMs within the resource group, so both target VMs receive the Virtual Machine Contributor (or similar) restart permission in a single assignment. This honors least privilege because no resources outside RG-App are affected. It is the most appropriate and efficient scope for this requirement.

Why this answer

The narrowest scope that grants the necessary permissions to restart VMs only in RG-App is the resource group scope. Assigning the Virtual Machine Contributor role at the RG-App resource group level ensures that help desk staff can restart VMs within that specific resource group without having permissions to any other resources in the subscription or management group. This follows the principle of least privilege, limiting access to only what is required.

Exam trap

The trap here is that candidates often choose the subscription scope (Option A) thinking it is simpler, but they overlook the requirement to restrict actions to only one resource group, violating the principle of least privilege.

Why the other options are wrong

A

The question requires the narrowest scope that covers only RG-App. Assigning at the subscription scope (Sub-IT-01) would grant permissions to all resource groups within that subscription, not just RG-App, violating the 'narrowest scope' requirement.

B

The management group scope is broader than the subscription, so assigning the role there would grant permissions to all subscriptions under that management group, not just Sub-IT-01 and specifically RG-App. The question requires the narrowest scope that covers only RG-App, which is the resource group scope.

D

The question requires that help desk staff restart VMs only in RG-App, but assigning the role at the individual VM scope would restrict them to only that specific VM, not all VMs in the resource group. The narrowest scope that covers all VMs in RG-App is the resource group scope.

When would these options actually be correct?

A

This option would be correct if the question asked for the narrowest scope to allow restarting VMs in all resource groups within Sub-IT-01, or if RG-App was the only resource group in the subscription and the requirement was to cover the entire subscription.

B

If the question required granting permissions to restart VMs across multiple subscriptions that are all under the same management group, and the narrowest scope that covers all those subscriptions is the management group, then assigning the role at the management group scope would be correct.

D

This option would be correct if the requirement was to allow help desk staff to restart only a specific VM (e.g., VM-01) and not any other VMs in the same resource group. For example, if the question stated 'help desk staff must restart only VM-01 in RG-App', then assigning the role at the individual VM scope would be the narrowest correct scope.

Why candidates pick the wrong answer

A

Candidates may think the subscription is the smallest logical unit or assume that the role must be assigned at a higher level to ensure coverage, overlooking the resource group scope as a more precise option.

B

Candidates may think that using a management group is a way to apply permissions broadly but still efficiently, or they may confuse management groups with resource groups, not realizing that management groups are higher-level containers that include multiple subscriptions.

D

Candidates may think that assigning the role at the individual VM scope is the most restrictive and thus the 'narrowest' scope, but they overlook that the requirement is to restart all VMs in the resource group, not just one.

627
MCQeasy

A team wants an Azure Storage account to be reachable only from a single Azure virtual network and to use a private IP address inside that network. Which option should the administrator configure?

A.A service endpoint on the subnet.
B.A private endpoint for the storage account.
C.A public IP address with an NSG inbound allow rule.
D.A VPN gateway connection to the storage account.
AnswerB

Unlike other options, a private endpoint (via Azure Private Link) places the storage account on the VNet by assigning it a private IP address from your subnet's address space. This removes the public endpoint from reachability, and when combined with a private DNS zone, traffic resolves only to that private IP. Because all access must traverse the VNet or peered networks, it is the only option that truly restricts access to a private-only path.

Why this answer

A private endpoint assigns a private IP address from the virtual network to the storage account, making it reachable only from that VNet over the Microsoft backbone network. This meets the requirement of exclusive access and private IP usage, unlike a service endpoint which still exposes the storage account to the public internet via its public endpoint.

Exam trap

The trap here is confusing service endpoints with private endpoints: both restrict access to a VNet, but only a private endpoint provides a private IP address and fully removes public internet exposure.

Why the other options are wrong

A

A service endpoint allows access from a specific subnet but does not provide a private IP address for the storage account; the storage account still uses its public endpoint, only restricted to the subnet's traffic.

C

A public IP address with an NSG rule allows inbound traffic from the internet, which contradicts the requirement to restrict access to a single virtual network and use a private IP address.

D

A VPN gateway connection is used for site-to-site or point-to-site connectivity from on-premises networks, not for restricting access to a single Azure virtual network with a private IP address.

When would these options actually be correct?

A

When the requirement is to restrict access to the storage account from a specific subnet without needing a private IP, and the storage account can remain accessible over the public internet from that subnet.

C

This option would be correct if the question asked for a storage account accessible from the internet but only from specific public IP ranges, requiring an NSG to filter inbound traffic.

D

An administrator needs to connect an on-premises network to an Azure Storage account securely over the internet or ExpressRoute, ensuring traffic traverses encrypted tunnels and the storage account is accessible only from the on-premises network.

Why candidates pick the wrong answer

A

Candidates confuse service endpoints with private endpoints, thinking both provide private connectivity, but service endpoints only secure the public endpoint to a subnet.

C

Candidates may think that an NSG rule can restrict access to the storage account, but they overlook that the storage account itself must be publicly exposed for NSGs to apply, which does not meet the private IP requirement.

D

Candidates may confuse VPN gateway with private endpoint, thinking that a VPN provides private connectivity, but it does not assign a private IP address within the virtual network or restrict access to a single VNet.

628
MCQhard

Your organization requires all storage accounts to allow access only from selected networks. You need a governance solution that automatically corrects noncompliant new storage accounts when possible instead of only reporting them. What policy effect should you choose?

A.Audit
B.Disabled
C.DeployIfNotExists
D.Append
AnswerC

DeployIfNotExists is the correct effect because it actively deploys a required configuration—such as a network rule or Service Endpoint—when the policy engine detects that a storage account is noncompliant. This effect supports automatic remediation by triggering a deployment task that brings the resource into compliance without manual intervention, making it the only listed effect that both identifies and fixes the misconfiguration.

Why this answer

The DeployIfNotExists policy effect is correct because it can automatically remediate noncompliant storage accounts by deploying a network rules configuration that restricts access to selected networks. Unlike Audit, which only reports compliance status, DeployIfNotExists actively modifies the resource to meet the policy requirement when possible, aligning with the need for automatic correction.

Exam trap

The trap here is that candidates often choose Append thinking it can modify network rules, but Append only adds properties to the resource (like tags) and cannot change existing network access configurations, whereas DeployIfNotExists can deploy a full remediation template.

Why the other options are wrong

A

Audit only reports noncompliant resources without taking any automatic remediation action, but the requirement is to automatically correct noncompliant storage accounts.

B

Disabled policy effect means the policy is not evaluated, so it cannot automatically correct noncompliant storage accounts. The question requires automatic correction, not ignoring the policy.

D

Append adds configuration to existing resources but cannot deploy new resources like a storage account with network rules; it only modifies existing properties, so it cannot automatically correct noncompliant new storage accounts by deploying the required network rules.

When would these options actually be correct?

A

When the requirement is to log and report noncompliance for audit purposes without automatic remediation, such as for initial compliance assessment or monitoring only.

B

If the organization wants to temporarily turn off a policy without deleting it, for example during maintenance or testing, the Disabled effect would be correct to prevent the policy from applying.

D

Append would be correct if the policy needed to add a tag or a specific setting (like a network ACL rule) to an existing storage account that is already compliant in other aspects, without deploying a new resource or modifying the entire resource configuration.

Why candidates pick the wrong answer

A

Candidates may think Audit is sufficient for governance, overlooking the need for automatic correction specified in the question.

B

Candidates might think 'Disabled' could prevent noncompliant resources by blocking them, but it actually means the policy is inactive and does nothing.

D

Candidates may think Append can 'fix' noncompliant resources by adding missing settings, but they overlook that Append cannot create or deploy new resources; it only modifies existing ones, making it unsuitable for correcting new storage accounts that lack network rules entirely.

629
MCQmedium

You need to expose a web application running on several VMs and distribute traffic across them based on HTTP request attributes such as URL path. Which service should you use?

A.Azure Load Balancer
B.Azure Application Gateway
C.Traffic Manager
D.Network Watcher
AnswerB

Azure Application Gateway is a Layer 7 web traffic load balancer that inspects HTTP requests and can route them based on URL paths, host headers, and query strings. It supports path-based routing, allowing you to direct /api traffic to one backend pool and /images to another. Additional features like SSL termination, cookie-based session affinity, and Web Application Firewall (WAF) make it ideal for web applications on multiple VMs.

Why this answer

Azure Application Gateway is a Layer 7 load balancer that can route traffic based on HTTP request attributes such as URL path, host headers, or query strings. This allows you to distribute incoming web traffic across multiple VMs based on the specific URL path (e.g., /images to one backend pool, /api to another), which is exactly what the question requires.

Exam trap

The trap here is that candidates often confuse Azure Load Balancer (Layer 4) with Application Gateway (Layer 7), assuming any load balancer can route based on HTTP attributes, but only Application Gateway can inspect and route based on URL paths, host headers, or query strings.

Why the other options are wrong

A

Azure Load Balancer operates at Layer 4 (transport layer) and distributes traffic based on IP address and port, not HTTP request attributes like URL path. It cannot perform content-based routing.

C

Traffic Manager operates at the DNS level, distributing traffic based on domain name resolution, not HTTP request attributes like URL path. It cannot inspect or route based on HTTP-level details.

D

Network Watcher is a monitoring and diagnostics service for Azure networks, not a traffic distribution service. It cannot route or load balance HTTP traffic based on request attributes.

When would these options actually be correct?

A

When you need to distribute incoming network traffic across multiple VMs or virtual machine scale sets within a region for high availability, using only TCP/UDP protocols without inspecting HTTP content.

C

You need to distribute traffic across multiple Azure regions based on endpoint health or performance, and you want to route users to the closest or most responsive region. Traffic Manager is the correct choice for global DNS-based traffic routing.

D

You need to monitor network performance, diagnose connectivity issues, or capture packet traces for a virtual network. For example, 'You need to identify a connectivity issue between two VMs in different subnets' would make Network Watcher correct.

Why candidates pick the wrong answer

A

Candidates may confuse load balancing at Layer 4 with Layer 7, assuming all load balancers can route based on HTTP attributes, or they may not be aware of the specific capabilities of Azure Application Gateway.

C

Candidates may confuse Traffic Manager with a load balancer that can handle HTTP traffic, but its DNS-level routing lacks the application-layer awareness needed for URL path-based distribution.

D

Candidates may confuse Network Watcher with a network traffic management tool due to its name, or think it can handle traffic distribution because it deals with network-level operations.

630
MCQeasy

A developer wants to publish an internet-facing web application from source code. The solution must support built-in HTTPS, deployment slots for testing, and autoscale. The team does not want to manage servers. Which Azure service should the administrator recommend?

A.Azure App Service
B.Azure Container Instances
C.Azure Virtual Machine Scale Sets
D.Azure Bastion
AnswerA

Azure App Service is designed for hosting web applications and APIs with minimal infrastructure management. It supports built-in TLS/HTTPS, deployment slots for staging and swap testing, and autoscale for changing demand. Those features make it a strong fit for internet-facing applications that need operational simplicity and common web hosting capabilities without managing virtual machines.

Why this answer

Azure App Service is the correct choice because it provides a fully managed platform for hosting web applications from source code, with built-in support for HTTPS via TLS/SSL certificates, deployment slots for staging and testing, and autoscale capabilities. It eliminates server management, aligning with the requirement for a PaaS (Platform as a Service) solution that handles infrastructure, patching, and scaling automatically.

Exam trap

The trap here is that candidates often confuse Azure Container Instances with Azure App Service for web apps, overlooking that Container Instances lacks built-in deployment slots and autoscale for web applications, and requires additional orchestration for HTTPS and scaling.

Why the other options are wrong

B

Azure Container Instances does not provide built-in HTTPS, deployment slots, or autoscale; it is a serverless container platform without these web app-specific features.

C

Azure Virtual Machine Scale Sets require managing VMs and do not natively support built-in HTTPS or deployment slots; they also lack the platform-as-a-service simplicity for deploying from source code without server management.

D

Azure Bastion is a service for secure RDP/SSH access to virtual machines, not for hosting web applications. It does not support HTTPS, deployment slots, or autoscale for web apps.

When would these options actually be correct?

B

A question requiring a serverless container service to run a single containerized application without managing orchestration, where the app does not need built-in HTTPS, deployment slots, or autoscale, and the team wants to deploy containers directly.

C

An administrator needs to deploy a custom application that requires full control over the operating system, specific software installations, or legacy dependencies, and must support autoscaling and load balancing for high availability.

D

An administrator needs to provide secure, seamless RDP/SSH connectivity to Azure virtual machines without exposing public IP addresses. The solution must use TLS and be accessible via the Azure portal.

Why candidates pick the wrong answer

B

Candidates may confuse serverless containers with platform-as-a-service (PaaS) web hosting, thinking Container Instances offers similar features like autoscale and slots, but it lacks these built-in capabilities.

C

Candidates may confuse autoscaling capabilities with the need for server management, overlooking that App Service provides autoscaling without the overhead of managing VMs.

D

Candidates may confuse Bastion's 'built-in HTTPS' for web app hosting, or think it can serve as a secure gateway for web traffic, but it is only for management access to VMs.

631
MCQhard

Several Azure Monitor alerts across different subscriptions must notify the same on-call group by email, SMS, and webhook whenever they fire. The operations team wants to define the notification target once and reuse it from future metric alerts, log alerts, and activity log alerts. What should be created?

A.An action group that can be attached to multiple Azure Monitor alert rules.
B.A metric alert with the same threshold applied to every resource that needs notification.
C.A diagnostic setting on each resource so the contact list is stored with the logs.
D.A Log Analytics workbook used as the shared notification destination.
AnswerA

An action group is the reusable notification target in Azure Monitor. You define the recipients and actions once, then attach that action group to any metric, log, or activity log alert that should notify the same people. This separates alert detection from alert delivery, which keeps the design consistent across subscriptions and reduces repeated configuration. It is the right feature when the notification method must be shared broadly.

Why this answer

An action group in Azure Monitor is the correct solution because it defines a reusable collection of notification channels (email, SMS, webhook) that can be attached to multiple alert rules across different subscriptions. This allows the operations team to define the on-call group notification target once and reuse it for metric alerts, log alerts, and activity log alerts, ensuring consistent notification behavior.

Exam trap

The trap here is that candidates confuse alert rules (which define the condition to trigger) with action groups (which define the notification destination), leading them to select a metric alert or diagnostic setting instead of the reusable notification container.

Why the other options are wrong

B

A metric alert defines a threshold condition, not a notification target. It cannot be reused across different alert rules or notification channels like email, SMS, and webhook.

C

Diagnostic settings send logs and metrics to storage, Event Hubs, or Log Analytics, but they do not define notification targets like email, SMS, or webhook. They cannot be used to trigger alerts or notify on-call groups.

D

A Log Analytics workbook is a visualization and analysis tool, not a notification destination. It cannot send emails, SMS, or webhooks when alerts fire.

When would these options actually be correct?

B

A metric alert would be correct if the question asked for a rule that fires when a specific metric exceeds a threshold, and the notification method is defined separately (e.g., via an action group).

C

A question asks how to route Azure resource logs and metrics to a Log Analytics workspace for central analysis, or to archive them to a storage account. In that case, creating a diagnostic setting on each resource is the correct answer.

D

When the question asks for a centralized, customizable dashboard to visualize and analyze alert data from multiple sources, a Log Analytics workbook would be the correct answer.

Why candidates pick the wrong answer

B

Candidates may confuse the alert rule itself with the notification configuration, thinking that a single metric alert can serve as a shared notification mechanism across resources.

C

Candidates may confuse diagnostic settings with action groups because both involve 'settings' that can be applied to resources, and they might think storing contact info with logs is a way to reuse notification targets.

D

Candidates may confuse workbooks with action groups because both can be used centrally, but workbooks are for reporting, not alert notifications.

632
MCQhard

A backend VM belongs to AppASG and listens on TCP 8443. The subnet NSG has a deny rule at priority 200 that blocks TCP 8443 from VirtualNetwork to any destination. The backend VM's NIC NSG has an allow rule at priority 100 for TCP 8443 from WebASG to AppASG. Web VMs in WebASG still cannot connect. What should you change to allow only the web tier while keeping other virtual network traffic blocked?

A.Move the NIC NSG allow rule to priority 50.
B.Add an allow rule in the subnet NSG at priority 150 for TCP 8443 from WebASG to AppASG.
C.Replace the subnet deny rule with a rule for the AzureLoadBalancer service tag.
D.Remove the backend VM from AppASG and allow traffic by subnet only.
AnswerB

Adding an allow rule in the subnet NSG at priority 150 for TCP 8443 from WebASG to AppASG works because inbound traffic is first evaluated against the subnet NSG, and a lower priority number (150) is processed before the existing subnet deny rule. This places a more specific allow ahead of the deny, so the connection is permitted. Also, by scoping both source and destination to application security groups, the rule grants only the Web tier access to the backend AppASG on the required port, rather than opening the whole subnet.

Why this answer

In Azure, network security group (NSG) rules are evaluated in priority order, and subnet NSG rules are evaluated before NIC NSG rules for inbound traffic. The subnet NSG has a deny rule at priority 200 that blocks TCP 8443 from VirtualNetwork to any destination, which overrides the NIC NSG allow rule because the subnet deny is evaluated first. To allow traffic from WebASG to AppASG while still blocking other virtual network traffic, you must add an allow rule in the subnet NSG at a higher priority (e.g., 150) than the deny rule, explicitly permitting TCP 8443 from WebASG to AppASG.

Exam trap

The trap here is that candidates often assume NIC NSG rules can override subnet NSG rules due to higher priority, but in Azure, subnet NSG rules are evaluated before NIC NSG rules for inbound traffic, so a subnet deny will always block traffic regardless of NIC allow rules.

Why the other options are wrong

A

The NIC NSG rule at priority 100 already allows traffic from WebASG to AppASG on TCP 8443, but the subnet NSG deny rule at priority 200 blocks it. Since subnet NSG rules are evaluated before NIC NSG rules, traffic is denied regardless of NIC rule priority. Moving the NIC rule to a higher priority does not override the subnet deny rule.

C

The subnet NSG deny rule blocks TCP 8443 from VirtualNetwork to any destination. Replacing it with a rule for AzureLoadBalancer service tag would allow health probe traffic from the load balancer, but it would not allow traffic from WebASG to AppASG because the deny rule is removed, potentially allowing all virtual network traffic, which violates the requirement to keep other traffic blocked.

D

Removing the backend VM from AppASG would break the application security group association, preventing the NIC NSG rule from matching traffic from WebASG. Additionally, allowing traffic by subnet only would permit all VMs in the subnet, violating the requirement to allow only the web tier.

When would these options actually be correct?

A

In a scenario where the subnet NSG has an allow rule for the traffic but the NIC NSG has a deny rule at a higher priority, moving the NIC allow rule to a lower priority number (higher priority) would allow the traffic. For example, if the subnet NSG allows TCP 8443 from WebASG to AppASG and the NIC NSG has a deny rule at priority 200, moving an allow rule to priority 100 would override the deny.

C

This option would be correct in a scenario where the backend VM is behind an Azure Load Balancer and the issue is that health probes from the load balancer are being blocked by a subnet NSG rule. In that case, adding an allow rule for the AzureLoadBalancer service tag at a higher priority would resolve the health probe failure while maintaining other restrictions.

D

This option would be correct in a scenario where the backend VM must be accessible from any VM in the same subnet (e.g., for management or backup purposes), and the use of ASGs is not required or is causing complexity. The question would specify that subnet-level access is acceptable and that ASG-based filtering is unnecessary.

Why candidates pick the wrong answer

A

Candidates often believe that increasing the priority (lowering the number) of a rule makes it more effective, but they overlook that subnet NSG rules are evaluated before NIC NSG rules, so a subnet deny cannot be bypassed by a NIC allow regardless of priority.

C

Candidates may think that since the load balancer is involved (implied by the scenario), the AzureLoadBalancer service tag is the key to allowing traffic, but they overlook that the specific requirement is to allow only web tier traffic while blocking other virtual network traffic, which the service tag rule does not address.

D

Candidates may think that removing the ASG simplifies the configuration and that subnet-level rules are easier to manage, overlooking the need for granular, tier-specific access control.

633
MCQmedium

You need to ensure that a finance analyst can view all resources in the Finance-Sub subscription and also view spending details, but cannot create, modify, or delete any resources. Which built-in Azure RBAC role should you assign?

A.Owner
B.Contributor
C.Reader
D.Virtual Machine Contributor
AnswerC

The Reader role is a built-in Azure RBAC role that grants read-only access to all resources and resource groups, allowing the analyst to view everything they are assigned to without the ability to make any changes. It includes permissions like listing secrets but cannot read secret values for certain services like Key Vault (in older models). This role is ideal for auditing and visibility purposes, ensuring the finance analyst can monitor resources but not alter configurations.

Why this answer

The Reader role is the correct choice because it provides read-only access to all resources in a subscription, including the ability to view resource properties and deployment history, but it does not allow any create, modify, or delete operations. Additionally, the Reader role includes the 'Microsoft.CostManagement/views/read' permission, which enables viewing spending details (cost data) in the Azure portal. This aligns exactly with the requirement to view resources and spending without making changes.

Exam trap

The trap here is that candidates often confuse the Reader role with the Contributor role, assuming Contributor is needed for viewing spending details, but Contributor grants write permissions that violate the 'no create/modify/delete' constraint, while Reader alone provides the required read-only access including cost data.

Why the other options are wrong

A

The Owner role grants full access to all resources, including the ability to create, modify, and delete resources, which violates the requirement that the analyst cannot create, modify, or delete any resources.

B

The Contributor role allows creating, modifying, and deleting resources, which violates the requirement that the analyst cannot perform these actions.

D

Virtual Machine Contributor allows managing virtual machines but does not grant read access to all resources in the subscription, nor does it allow viewing spending details. It also permits creating, modifying, and deleting VMs, which violates the requirement to prevent resource changes.

When would these options actually be correct?

A

Assign the Owner role when you need a user or group to have full control over all resources and the ability to manage access (RBAC) for the subscription, such as for a subscription administrator who must delegate roles to others.

B

Assign the Contributor role when a user needs full management access to resources but cannot manage access or assign roles, such as a developer deploying and managing resources in a subscription.

D

Assign this role when a user needs full management access to virtual machines (e.g., start, stop, resize, configure) but should not have access to other resource types like storage or networking, and should not be able to manage access or billing.

Why candidates pick the wrong answer

A

Candidates may think Owner is needed to view spending details, but Reader with 'Billing Reader' or 'Cost Management Reader' can view costs without full management rights.

B

Candidates may confuse Contributor with Reader, thinking it provides view-only access, but Contributor includes write/delete permissions beyond viewing.

D

Candidates may mistakenly think that a contributor role for a specific resource type (VMs) is sufficient to view all resources, or they may focus on the 'view spending' requirement and incorrectly associate it with VM-related roles.

634
MCQhard

A partner needs temporary read-only access to a single blob in a storage account for the next 24 hours. The partner must not be able to list other blobs or write data. What should you provide?

A.The storage account access key.
B.A service SAS scoped to the blob with read permission and an expiry time.
C.A private endpoint to the storage account.
D.Contributor access to the storage account.
AnswerB

A service SAS is a signed URI that grants time-limited, delegated access to a specific storage resource. Scoping it to the exact blob and setting only the read permission (and an expiry) follows the least-privilege model: the partner can read only that object, only for the window you define, and no other storage resources are exposed. Because the SAS token is embedded in the URL, it is ideal for giving temporary, extranet access without requiring the partner to have an Azure identity. The expiry and permission parameters are enforced by the storage service, so access is revoked automatically once the time passes.

Why this answer

A service SAS scoped to a specific blob with read permission and an expiry time provides the exact temporary, read-only access required. It restricts access to only that blob, prevents listing other blobs, and automatically expires after 24 hours, meeting all security and functional requirements.

Exam trap

The trap here is that candidates often confuse a service SAS with an account SAS or storage account keys, mistakenly thinking any SAS or key can be scoped, but only a service SAS can be scoped to a single blob with precise permissions and expiry.

Why the other options are wrong

A

The storage account access key provides full administrative access to the entire storage account, including the ability to list all blobs and write data, which violates the requirement for read-only access to a single blob and no listing capability.

C

A private endpoint provides secure network access to the storage account but does not enforce read-only or time-limited access to a single blob; it allows full access to the storage account over a private network.

D

Contributor access at the storage account level grants full read/write/list permissions to all blobs, violating the requirement to restrict access to a single blob with read-only and no list capability.

When would these options actually be correct?

A

A question that requires full access to all storage account resources (e.g., for backup or migration) and does not restrict listing or write operations, and where temporary access is not a concern.

C

A question requiring secure, private connectivity to a storage account from a virtual network without exposing it to the public internet, such as 'You need to ensure that a storage account is only accessible from a specific VNet. What should you configure?'

D

A question requiring a partner to manage all blobs in a storage account (e.g., upload, delete, modify) for an indefinite period, with no need to restrict listing or scope to a single blob.

Why candidates pick the wrong answer

A

Candidates may think the access key is a simple way to grant access, not realizing it provides unrestricted control over the entire storage account, far exceeding the limited permissions needed.

C

Candidates may think private endpoints inherently restrict access permissions, confusing network-level security with data-level authorization, and assume it provides granular access control.

D

Candidates may confuse Contributor role with read-only access, or assume that assigning a role is simpler than generating a SAS token, overlooking the granularity needed.

635
MCQmedium

A finance team stores monthly invoice PDFs in Azure and wants the data to remain available if an entire availability zone in the region fails. They do not need read access to a secondary region, and they want to keep the storage service simple. Which redundancy option should they choose for the storage account?

A.Locally redundant storage (LRS), because it protects against a single disk failure inside one datacenter.
B.Zone-redundant storage (ZRS), because it replicates data across zones in the same region.
C.Geo-redundant storage (GRS), because it automatically provides the lowest-cost cross-region protection.
D.Geo-zone-redundant storage (GZRS), because it is required whenever zone resilience is needed.
AnswerB

Zone-redundant storage (ZRS) synchronously copies your data across three Azure availability zones within the same region, so if one entire zone fails, the remaining two zones continue to serve requests with no manual failover. Because each zone is a separate physical location with independent power, cooling, and networking, ZRS meets the requirement to survive a zone outage while avoiding the cost and complexity of geo-replication.

Why this answer

Zone-redundant storage (ZRS) replicates data synchronously across three Azure availability zones within the same region, ensuring durability even if an entire zone fails. This meets the requirement for intra-region zone failure protection without needing a secondary region, and it keeps the storage service simple by avoiding the complexity of geo-replication.

Exam trap

The trap here is that candidates often confuse 'zone failure' with 'regional failure' and incorrectly choose GRS or GZRS, overlooking that ZRS provides sufficient protection within a single region at lower cost and complexity.

Why the other options are wrong

A

LRS only replicates data within a single datacenter, so it does not protect against an entire availability zone failure, which is the requirement in this question.

C

GRS replicates data to a secondary region, which the question explicitly says is not needed, and it does not protect against an entire availability zone failure within the primary region.

D

GZRS is not required for zone resilience; ZRS already provides zone-level redundancy within a single region. GZRS adds geo-replication to a secondary region, which the question explicitly states is not needed, and it is more complex and costly.

When would these options actually be correct?

A

A question where the requirement is to protect against a single disk failure within a datacenter, with no need for zone or region resilience, and cost is the primary concern.

C

A company requires data to remain available during a region-wide outage and can tolerate a short failover time, but does not need zone-level resilience within the primary region. The question would specify a need for cross-region disaster recovery at the lowest cost.

D

A company requires both zone-level resilience within the primary region and cross-region disaster recovery for compliance purposes, and they are willing to accept the higher cost and complexity. For example, a healthcare provider storing patient records that must survive a regional outage.

Why candidates pick the wrong answer

A

Candidates may confuse 'zone failure' with 'disk failure' or assume LRS provides sufficient protection for simple storage needs, overlooking the specific requirement for zone resilience.

C

Candidates may mistakenly believe GRS is the cheapest option that provides any redundancy beyond LRS, or they confuse 'geo' with 'zone' and assume it covers zone failures.

D

Candidates may think that any mention of 'zone' requires the 'zone' in GZRS, or they overestimate the need for geo-redundancy, assuming more redundancy is always better without considering cost and simplicity requirements.

636
MCQhard

A 180-GB blob was moved to the Archive tier last week. A legal team now needs the file available later today for repeated review, and they are willing to pay more to shorten the wait. Which action should the administrator take first?

A.Rehydrate the blob to Cool tier by using Standard priority.
B.Rehydrate the blob to Hot tier by using High priority.
C.Copy the blob into another Archive tier container and wait for replication.
D.Change the storage account redundancy to ZRS so the blob becomes accessible faster.
AnswerB

High priority rehydration is the fastest supported path, and Hot makes the blob ready for repeated access.

Why this answer

The Archive tier requires rehydration (changing the blob tier) before the data can be accessed. Rehydrating to the Hot tier with High priority is the fastest method, typically completing within 1 hour, which meets the legal team's need for later today. Standard priority rehydration can take up to 15 hours, making it too slow for the required timeline.

Exam trap

The trap here is that candidates may think changing redundancy or copying the blob can bypass the rehydration requirement, but Azure Archive blobs must be explicitly rehydrated to an online tier before any read access is possible.

Why the other options are wrong

A

Standard priority rehydration can take up to 15 hours, which does not meet the requirement of having the file available later today. The question specifies the team is willing to pay more to shorten the wait, so High priority (1 hour) is needed.

C

Copying a blob within the Archive tier does not change its access tier; the copy remains in Archive and is not immediately accessible. The legal team needs the data available later today, so this action does not reduce retrieval time.

D

Changing redundancy to ZRS does not affect blob tier or retrieval speed; it only provides zone-level durability. The blob is still in Archive tier and must be rehydrated before access.

When would these options actually be correct?

A

If the question stated the team needed the blob within 24 hours and cost optimization was the primary concern, then rehydrating to Cool tier with Standard priority would be appropriate.

C

If the question asked for a way to create a backup copy of an archived blob without incurring retrieval costs, and immediate access was not required, then copying within the Archive tier would be appropriate.

D

If the question asked how to increase data durability or availability in the event of a datacenter failure, changing to ZRS would be correct. For example: 'A company needs to ensure blob data remains available if an entire Azure datacenter goes down. Which action should they take?'

Why candidates pick the wrong answer

A

Candidates may think Cool tier is sufficient for review and Standard priority is cheaper, overlooking the urgency and the specific time constraint of 'later today'.

C

Candidates may think that copying the blob to a new container triggers some form of replication or makes the data more available, not realizing that the copy remains in the same offline tier.

D

Candidates may confuse redundancy changes with performance improvements, thinking that ZRS provides faster access due to multiple copies, but it does not affect retrieval latency from Archive tier.

637
MCQmedium

A web application runs on three VMs in a backend subnet. The backend team wants the load balancer in the frontend tier to reach the VMs on TCP 8443, and they want the rule to keep working even if the backend VM IP addresses change. What should you use in the NSG rule?

A.Use the individual private IP addresses of each backend VM as the source.
B.Use an application security group for the frontend tier as the source and another ASG for the backend tier as the destination.
C.Use the VirtualNetwork service tag for both source and destination.
D.Create a route table entry that sends TCP 8443 traffic to the backend subnet.
AnswerB

Application security groups let you reference groups of NICs instead of hard-coded IP addresses. That makes the NSG rule resilient when VMs are replaced or reimaged and their private IP addresses change. It also keeps the access model aligned to application tiers rather than infrastructure details, which is the preferred design for maintainable network security rules.

Why this answer

Application Security Groups (ASGs) allow you to define network security rules based on logical groupings of VMs, regardless of their IP addresses. By using an ASG for the frontend tier as the source and another ASG for the backend tier as the destination, the NSG rule remains valid even if backend VM IP addresses change, as ASGs are dynamically updated. This meets the requirement for the load balancer in the frontend tier to reach backend VMs on TCP 8443 without hardcoding IP addresses.

Exam trap

The trap here is that candidates often confuse NSG rules with route tables, thinking a route table entry can control access (Option D), or they assume that using specific IP addresses (Option A) is acceptable despite the requirement for dynamic IP changes, missing the purpose of ASGs for logical grouping.

Why the other options are wrong

A

Using individual private IP addresses as the source would require updating the NSG rule whenever a backend VM's IP changes, failing the requirement for the rule to keep working automatically.

C

The VirtualNetwork service tag allows traffic from any resource within the virtual network, which is too broad and does not restrict traffic to only the frontend tier's load balancer, failing to meet the requirement for a specific source.

D

Route tables control traffic routing between subnets, not security filtering. NSG rules require source/destination based on IP addresses, service tags, or ASGs, not route table entries.

When would these options actually be correct?

A

This option would be correct if the question required restricting traffic to specific, static backend VMs and did not require the rule to adapt to IP changes, such as in a scenario with fixed IP assignments.

C

When the question requires allowing traffic from any resource within the same virtual network to the backend VMs, without needing to restrict to a specific frontend tier, and IP addresses may change.

D

A question where traffic must be forced through a network virtual appliance (NVA) for inspection, e.g., 'You need to ensure all traffic from the frontend to the backend subnet goes through a firewall VM.' Then a route table entry with next hop set to the NVA's IP would be correct.

Why candidates pick the wrong answer

A

Candidates might think that specifying exact IPs provides precise control, overlooking the need for dynamic updates when IPs change due to VM restarts or scaling.

C

Candidates may think service tags are a convenient way to handle dynamic IPs, but they overlook the need for granularity in specifying the frontend tier as the source.

D

Candidates confuse routing (where traffic goes) with security filtering (what traffic is allowed). They think a route table entry can permit traffic, but NSGs are access control lists, not routing tables.

638
MCQeasy

Based on the exhibit, what should the administrator configure so the operations team receives an email when the VM's average CPU stays above 80% for 10 minutes?

A.Create a diagnostic setting on the VM and send platform logs to Log Analytics.
B.Create an action group and attach it to the metric alert rule.
C.Assign a Reader role to the operations team on the VM resource.
D.Enable a resource lock on the VM to prevent CPU spikes.
AnswerB

An action group is the Azure Monitor component that delivers notifications or runs automation when an alert fires. The metric alert already defines the CPU condition, so the missing piece is the action group to email the operations team. Once linked, the alert can evaluate continuously and send the required notification whenever the threshold is met.

Why this answer

To send an email when a metric threshold is breached, you must first create an action group that defines the notification action (e.g., email, SMS). Then, when configuring the metric alert rule for 'Percentage CPU' with a condition of 'greater than 80%' for 10 minutes, you attach that action group to the alert rule. This ensures that when the alert fires, the defined email notification is sent to the operations team.

Exam trap

The trap here is that candidates confuse diagnostic settings (which send data to a destination) with alert rules (which evaluate conditions and trigger notifications), leading them to pick Option A even though it does not include the action group needed for email delivery.

Why the other options are wrong

A

This option does not configure email notification for the alert. Diagnostic settings send logs to Log Analytics for analysis, but they do not trigger email alerts when CPU exceeds a threshold.

C

Assigning a Reader role allows the operations team to view VM metrics but does not enable email notifications for CPU threshold alerts.

D

Resource locks prevent accidental deletion or modification of a resource, not CPU spikes. They do not trigger email notifications based on performance metrics.

When would these options actually be correct?

A

This would be correct if the question asked: 'What should the administrator configure to collect and analyze VM performance metrics over time?' or 'What is needed to enable advanced querying of VM metrics in Azure Monitor?'

C

If the question asked 'What should the administrator configure so the operations team can view the VM's CPU metrics in the Azure portal?' then assigning a Reader role would be correct.

D

A question asks: 'An administrator needs to prevent accidental deletion of a critical production VM. What should they configure?' In that case, enabling a resource lock (e.g., CanNotDelete) would be correct.

Why candidates pick the wrong answer

A

Candidates may confuse diagnostic settings with alert rules, thinking that sending logs to Log Analytics automatically enables alerting, or they may believe that platform logs include metric alerts.

C

Candidates may confuse permissions (who can see alerts) with alerting actions (who gets notified), assuming that granting read access also enables email delivery.

D

Candidates may confuse 'lock' with 'alert' or think a lock can somehow block performance issues, misunderstanding the purpose of resource locks.

639
MCQeasy

Based on the exhibit, which Azure compute service should you deploy for a stateless web app that needs more instances during business hours and fewer at night?

A.A single larger virtual machine.
B.A virtual machine scale set with autoscale rules.
C.An availability set with two VMs.
D.A dedicated host with one VM per host.
AnswerB

A virtual machine scale set is the right choice because it can run multiple identical instances and scale them automatically when demand changes. The exhibit shows predictable workload spikes, and the app is stateless, so instances can be added or removed without affecting user sessions.

Why this answer

A virtual machine scale set with autoscale rules is the correct choice because it automatically adjusts the number of VM instances based on demand, scaling out during business hours and scaling in at night. This matches the stateless web app requirement, as scale sets are designed for stateless workloads where instances can be added or removed without data loss.

Exam trap

The trap here is that candidates often confuse availability sets (high availability) with autoscaling, or think a single large VM can handle variable load by resizing, but autoscaling requires horizontal scaling via VMSS.

Why the other options are wrong

A

A single larger virtual machine cannot scale out to meet variable demand; it only scales up (increase size), which does not automatically adjust instance count based on time or load.

C

An availability set with two VMs provides high availability but does not automatically scale instances based on time or load; it cannot increase or decrease instances to match business hours.

D

A dedicated host provides physical isolation and dedicated resources for compliance or licensing needs, but it does not offer autoscaling to adjust instances based on time-of-day demand. The question requires a solution that scales instances up during business hours and down at night, which a dedicated host cannot achieve.

When would these options actually be correct?

A

This option would be correct for a legacy application that requires a single, powerful VM with high compute or memory resources and does not support horizontal scaling, such as a monolithic database server or a compute-intensive simulation.

C

When the question requires high availability for a critical application (e.g., a database tier) that must survive planned or unplanned downtime, and scaling is not needed.

D

A dedicated host would be correct for a question requiring a solution for a regulated workload that must run on a dedicated physical server (e.g., for compliance with security or licensing requirements) and does not need autoscaling, such as a legacy application that requires fixed hardware resources.

Why candidates pick the wrong answer

A

Candidates may think a larger VM can handle peak loads by upgrading its size, but they overlook the need for automatic scaling across multiple instances to match fluctuating demand.

C

Candidates may confuse high availability (availability set) with scalability, or think that two VMs can be manually started/stopped to match demand, ignoring the need for automated scaling.

D

Candidates may confuse dedicated hosts with high-availability or scaling solutions, thinking that dedicating physical hardware ensures performance during peak times, but they overlook the lack of dynamic scaling capability.

640
MCQhard

Users in Branch01 access an Azure file share over SMB. Performance is poor because frequently used files are downloaded repeatedly across the WAN. You need to keep a local cache on a Windows Server in Branch01 while keeping Azure Files as the central file share. What should you deploy?

A.Azure File Sync
B.Blob versioning
C.Share snapshots
D.A private endpoint
AnswerA

Azure File Sync extends an Azure file share to a Windows Server on-premises, creating a local cache that branch users can access over SMB with low latency. It continuously synchronizes changes bi-directionally between the local server and the Azure file share, keeping the cloud as the central authoritative store. Cloud tiering can be enabled so only frequently used files reside locally, while the rest remain in Azure.

Why this answer

Azure File Sync is the correct solution because it enables caching of Azure file shares on a Windows Server at the branch location, providing local access to frequently used files while keeping Azure Files as the central authoritative store. It uses a sync engine to maintain a local cache and leverages the SMB protocol for access, reducing WAN latency by serving files from the local server.

Exam trap

The trap here is that candidates often confuse Azure File Sync with simply mounting an Azure file share via SMB or using a private endpoint, not realizing that File Sync specifically provides a local caching mechanism on a Windows Server to solve WAN latency issues.

Why the other options are wrong

B

Blob versioning maintains multiple versions of blobs in Azure Storage, but it does not provide local caching or sync capabilities for SMB file shares. It is designed for object-level version control, not for caching files locally to reduce WAN latency.

C

Share snapshots provide point-in-time read-only copies of files for recovery, not local caching or synchronization. They do not keep a local cache on a Windows Server to reduce WAN traffic.

D

A private endpoint provides secure, private connectivity to Azure Files over the Microsoft backbone, but it does not create a local cache on-premises. The requirement is to cache files locally on a Windows Server in Branch01, which Azure File Sync does by syncing files to the server.

When would these options actually be correct?

B

A question requiring protection against accidental deletion or overwrite of blobs in Azure Blob Storage, where you need to preserve, restore, or manage earlier versions of blobs. For example: 'You need to enable the ability to restore a previous version of a blob that was overwritten. What should you configure?'

C

A question asks: 'You need to protect an Azure file share from accidental deletion or corruption by enabling point-in-time restore capabilities. What should you configure?' In that case, share snapshots are the correct answer.

D

A private endpoint would be correct if the question required securely connecting to Azure Files from an on-premises network without exposing the service to the public internet, such as when compliance mandates that all traffic must stay within the Azure backbone and not traverse the internet.

Why candidates pick the wrong answer

B

Candidates may confuse versioning with caching or sync, thinking that maintaining multiple versions could somehow keep a local copy, or they may misapply blob storage concepts to file shares.

C

Candidates may confuse share snapshots with caching or sync features, thinking snapshots can be used to store local copies, but snapshots are read-only and not designed for continuous local access.

D

Candidates may confuse private endpoints with improving performance, thinking that a private connection eliminates WAN latency, but it does not address the need for a local cache to avoid repeated downloads of frequently used files.

641
MCQhard

Your application stores compliance documents in Azure Blob Storage. The documents must be kept in a write-once-read-many state for five years and must not be altered or removed during that time. What should you configure?

A.Blob soft delete
B.Immutable blob storage with a time-based retention policy
C.Blob lifecycle management to move data to Cool tier
D.A shared access signature
AnswerB

Immutable blob storage with a time-based retention policy enforces a Write-Once, Read-Many (WORM) state, meaning blobs can be written but not modified or deleted until the retention interval expires. This satisfies regulatory compliance requirements by locking the data at the container or policy level, with explicit controls to extend the period but not shorten it. The policy is evaluated at the storage service level, so even an authorized user cannot bypass the lock.

Why this answer

Immutable blob storage with a time-based retention policy enforces a write-once-read-many (WORM) state, ensuring that blobs cannot be modified or deleted for a specified retention period. This directly meets the requirement of keeping compliance documents unaltered for five years, as the policy locks the data at the storage level, overriding any user permissions or delete operations.

Exam trap

The trap here is that candidates confuse blob soft delete (which only recovers deleted blobs but does not prevent modification) with immutable storage, or mistakenly think lifecycle management or SAS tokens can enforce a write-once-read-many state.

Why the other options are wrong

A

Blob soft delete protects against accidental deletion or overwriting, but it does not enforce a write-once-read-many (WORM) state; data can still be modified or deleted within the retention period if the soft delete policy is changed.

C

Blob lifecycle management moves data between tiers (e.g., Hot to Cool) based on age, but does not prevent deletion or modification. It cannot enforce a write-once-read-many state or protect against alterations.

D

A shared access signature (SAS) provides delegated access to blobs but does not prevent deletion or modification of blobs; it only controls who can access them, not enforce immutability.

When would these options actually be correct?

A

A question where the requirement is to recover blobs that were accidentally deleted or overwritten within a specified retention period, without needing to prevent intentional modification or deletion by authorized users.

C

A question asks: 'You want to automatically move blobs older than 30 days to Cool tier to reduce costs. What should you configure?' In that scenario, blob lifecycle management is the correct answer.

D

You need to grant a third-party application time-limited, restricted access to download specific blobs from a storage account without exposing the account key. A SAS token with read permissions and an expiry time would be correct.

Why candidates pick the wrong answer

A

Candidates may confuse soft delete with immutable storage because both involve retention periods, but soft delete is designed for recovery, not for enforcing data immutability against modification or deletion.

C

Candidates may confuse lifecycle management with retention policies, thinking that moving data to Cool tier somehow protects it, or they may assume that tiering implies immutability.

D

Candidates may think SAS can restrict write or delete operations by setting appropriate permissions, but SAS permissions apply to the accessor, not to the data itself, and cannot enforce a write-once-read-many state.

642
Matchingmedium

A backup engineer is reviewing policy-related settings in a Recovery Services vault. Match each backup setting to the behavior it controls.

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

Concepts
Matches

Determines when the VM backup job runs, such as daily at a specific time.

Determines how long a recovery point is kept before it expires.

Keeps short-term snapshots available for quick restores before they age out.

Preserves deleted backup data for a recovery window instead of removing it immediately.

Represents the protected VM that is registered in the vault.

Why these pairings

Backup frequency sets how often; retention range sets how long; snapshot retention keeps local copy; schedule sets time; tier defines storage type; alerts notify on issues.

643
Multi-Selectmedium

You are designing a disaster recovery strategy for Azure Blob Storage. The storage account is configured with geo-redundant storage (GRS). Which three of the following statements about GRS and failover are true? (Choose three.)

Select 3 answers
.With GRS, data is replicated asynchronously to a paired secondary region.
.In the event of a regional outage, you can initiate a customer-managed failover to the secondary region.
.After a failover, the secondary region becomes the new primary and replication to the original primary is automatically established.
.GRS provides three copies of your data within the primary region and three additional copies in the secondary region.
.GRS guarantees zero data loss if a failover is triggered.
.Once a failover is completed, you cannot fail back to the original primary region.

Why this answer

Geo-redundant storage (GRS) replicates data asynchronously to a paired secondary region, ensuring durability even during a regional outage. In such an outage, you can initiate a customer-managed failover to promote the secondary region as the new primary. GRS maintains three copies (LRS) in the primary region and three additional copies in the secondary region, providing six total replicas.

Exam trap

The trap here is that candidates often assume GRS provides synchronous replication with zero data loss, but it is asynchronous, and they may also think failover is irreversible, when in fact you can fail back.

644
MCQhard

An organization must retain Azure Key Vault audit data for 18 months, search the data in Log Analytics, and keep a second copy if the workspace retention policy is later shortened. The operations team already has an action group for notifications. What should be configured on the Key Vault?

A.Create an activity log alert and point it at the existing action group.
B.Create a diagnostic setting that streams AuditEvent logs to Log Analytics and a storage account.
C.Create a metric alert on the Key Vault and archive the alert history.
D.Enable only resource metrics and rely on workspace retention for compliance.
AnswerB

A diagnostic setting on the Key Vault can export resource logs to Log Analytics for querying and also to a storage account for durable retention. That meets both investigation and long-term preservation requirements. The action group can still be used separately for notifications, but it does not replace the log collection path. This is the only option that addresses both searchable telemetry and an independent retained copy.

Why this answer

Azure Key Vault audit data is captured via the AuditEvent category in diagnostic settings. By configuring a diagnostic setting to stream AuditEvent logs to both a Log Analytics workspace (for querying and long-term retention up to 18 months) and a storage account (for a second copy independent of workspace retention policy changes), the organization meets all requirements. The existing action group is not needed for this data retention and search scenario.

Exam trap

The trap here is that candidates confuse activity log alerts or metric alerts with diagnostic settings, not realizing that audit data retention and search require streaming the AuditEvent category to Log Analytics and a storage account, not just monitoring or metrics.

Why the other options are wrong

A

Activity log alerts only notify on Azure resource-level operations (e.g., create/delete vault), not on Key Vault audit events like secret access. They cannot stream data to Log Analytics or a storage account for long-term retention.

C

Metric alerts and alert history archiving do not capture Key Vault audit logs (e.g., access attempts, secret operations) required for 18-month retention and searchable Log Analytics storage. Audit logs require diagnostic settings, not metric alerts.

D

Enabling only resource metrics and relying on workspace retention does not meet the requirement to retain audit data for 18 months and keep a second copy if retention is shortened. Metrics do not capture AuditEvent logs, and workspace retention alone cannot guarantee a separate copy.

When would these options actually be correct?

A

If the question required alerting on a Key Vault administrative operation (e.g., vault deletion) and sending notifications to an action group, an activity log alert would be correct.

C

If the question required monitoring Key Vault performance metrics (e.g., request latency, throttling) and retaining alert history for compliance, a metric alert with archive would be correct. For example: 'An organization needs to be notified when Key Vault request latency exceeds 500ms and retain alert history for 12 months.'

D

This option would be correct if the question required monitoring Key Vault performance (e.g., request latency or capacity) and compliance was based solely on workspace retention, with no need for long-term audit log archiving or independent backup.

Why candidates pick the wrong answer

A

Candidates may confuse activity log alerts with diagnostic settings, thinking alerts can also capture and store audit data, or they may overlook the specific requirement to retain and search audit logs.

C

Candidates may confuse metric alerts with activity log alerts or assume alert history provides sufficient audit trail, overlooking that audit events require diagnostic settings for log collection.

D

Candidates may mistakenly think that resource metrics cover all monitoring needs and that workspace retention is sufficient for compliance, overlooking the specific requirement for audit logs and a secondary copy.

645
Multi-Selectmedium

Finance, HR, and Engineering each use separate subscriptions. The compliance team wants a simple hierarchy that lets them apply governance to groups of subscriptions and produce resource ownership reports by department and environment. Which two features should the administrator use? Select two.

Select 2 answers
A.Management groups to organize the subscriptions into a hierarchy.
B.Tags on resources to record department and environment values.
C.Resource locks to group subscriptions by business unit.
D.Availability sets to group applications by department.
E.Private endpoints to separate Finance from HR.
AnswersA, B

Management groups are designed to organize subscriptions above the subscription level. They provide the hierarchy needed to apply governance consistently across sets of subscriptions.

Why this answer

Management groups (A) are correct because they allow you to organize multiple subscriptions into a hierarchical structure for applying governance policies and role-based access control at scale. This directly supports the compliance team's need to apply governance to groups of subscriptions and produce resource ownership reports by department and environment.

Exam trap

The trap here is that candidates often confuse resource locks with management groups for organizational control, or think availability sets or private endpoints can serve as grouping mechanisms for governance, when they are designed for entirely different purposes (high availability and network security, respectively).

Why the other options are wrong

C

Resource locks prevent accidental deletion or modification of resources but do not group subscriptions or support hierarchical governance; they operate at the resource or resource group level, not across subscriptions.

D

Availability sets are used to ensure high availability of virtual machines by distributing them across fault domains, not for grouping applications by department or for governance and reporting purposes.

E

Private endpoints are used to securely connect to Azure services over a private IP address, not to separate subscriptions or create governance hierarchies. They do not help organize subscriptions or produce resource ownership reports.

When would these options actually be correct?

C

A question asks: 'An administrator needs to prevent critical resources in a production subscription from being deleted. Which feature should be used?' Resource locks (e.g., CanNotDelete) would be correct to protect specific resources.

D

A question asks: 'Which feature ensures that at least one VM remains available during planned or unplanned maintenance?' Availability sets would be the correct answer.

E

An administrator needs to ensure that Finance and HR departments access their respective Azure SQL databases privately and securely without exposing them to the public internet. Using private endpoints for each database would be correct.

Why candidates pick the wrong answer

C

Candidates may confuse 'resource locks' with 'management groups' because both involve grouping or controlling resources, but locks are for protection, not organization or governance hierarchy.

D

Candidates may confuse the grouping concept of availability sets with organizational grouping, thinking they can logically group applications by department, but availability sets are strictly for VM redundancy.

E

Candidates may think private endpoints can isolate resources between departments, confusing network isolation with organizational governance and reporting needs.

646
MCQhard

Your company needs to retain Azure Activity Log data longer than the built-in retention period and make it available for future analysis. What should you configure?

A.Diagnostic settings for the Activity Log
B.A CanNotDelete lock on the subscription
C.An availability set
D.An NSG flow log only
AnswerA

Diagnostic settings for the Activity Log are the correct mechanism because they stream the tenant's control-plane events to a Log Analytics workspace, storage account, or Event Hubs. This enables retention beyond the default 90-day portal window; for example, Log Analytics workspaces support up to two years of retention, and a storage account can hold the data indefinitely. The setting also allows export to tools for alerting and analysis, which is exactly what the requirement of retaining data longer demands.

Why this answer

Azure Activity Log has a default retention period of 30 days for Standard tier subscriptions and 90 days for others. To retain data longer, you must configure diagnostic settings to stream the Activity Log to a Log Analytics workspace (for long-term querying) or to an Azure Storage account (for archival). Diagnostic settings allow you to define the retention duration beyond the built-in limit, enabling future analysis.

Exam trap

The trap here is that candidates confuse the default retention period of the Activity Log with the ability to extend it, mistakenly thinking locks or other resource configurations can preserve log data, when only diagnostic settings enable long-term retention and export.

Why the other options are wrong

B

A CanNotDelete lock prevents deletion of resources but does not extend the retention period of Activity Log data, which is the requirement in the question.

C

An availability set is a logical grouping of VMs to ensure high availability, not a data retention or analysis tool. It cannot store or extend the retention of Activity Log data.

D

NSG flow logs capture IP traffic through a network security group, not Azure Activity Log data. They are used for network monitoring and security analysis, not for extending retention of subscription-level operational logs.

When would these options actually be correct?

B

When the question asks for a method to prevent accidental deletion of a critical Azure subscription or resource group, configuring a CanNotDelete lock would be the correct answer.

C

When a question asks how to ensure high availability for virtual machines running a tiered application, such as web and database tiers, by distributing VMs across multiple fault and update domains.

D

When the question asks how to analyze network traffic patterns or detect anomalies in IP flows through a virtual network, configuring an NSG flow log (often with a storage account or Log Analytics workspace) would be the correct answer.

Why candidates pick the wrong answer

B

Candidates may confuse 'retaining data' with 'protecting resources from deletion,' assuming a lock can preserve log data, but locks do not affect data retention policies.

C

Candidates may confuse 'availability' with 'data availability' or mistakenly think that availability sets provide some form of logging or data storage capability.

D

Candidates may confuse 'flow logs' with 'activity logs' due to similar terminology, or assume that any log-related configuration can extend retention of all log types.

647
MCQeasy

A storage account must accept traffic only from a single subnet. The team wants to keep using the storage account's public endpoint and does not want to deploy a private endpoint. What should you configure?

A.A private endpoint and private DNS zone
B.A service endpoint on the subnet and a storage firewall rule that allows that subnet
C.Read-access geo-redundant storage (RA-GRS)
D.Archive access tier for the container
AnswerB

A service endpoint lets the subnet reach the storage account over the public endpoint while the firewall restricts access to that subnet only.

Why this answer

A service endpoint on the subnet extends the virtual network identity to the storage account, and a storage firewall rule that allows that subnet restricts access to only traffic originating from that subnet. This meets the requirement of using the public endpoint without deploying a private endpoint, as the storage account's public endpoint remains accessible but is locked down to the specified subnet via the firewall rule.

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 endpoint, but service endpoints with firewall rules achieve the same goal using the public endpoint.

Why the other options are wrong

A

The question explicitly states the team wants to keep using the public endpoint and does not want to deploy a private endpoint. Option A requires deploying a private endpoint, which contradicts the requirement.

C

RA-GRS provides geo-redundant storage with read access to the secondary region, but it does not restrict network access to a single subnet. It is a replication and data access feature, not a network security control.

D

Archive access tier is for cost-effective storage of rarely accessed data, not for network access control. It does not restrict traffic to a specific subnet.

When would these options actually be correct?

A

This option would be correct if the question required that traffic to the storage account must traverse the Microsoft backbone network and not the public internet, and the team is willing to use a private endpoint. For example: 'You need to ensure that traffic to a storage account from a virtual network never leaves the Microsoft network. You can deploy a private endpoint.'

C

A question asks: 'You need to ensure that storage data is available for read access from a secondary region in case of a regional outage. What should you configure?' In that scenario, RA-GRS would be correct.

D

When the question asks for a cost-optimized storage tier for data that is infrequently accessed and has a high tolerance for retrieval latency, such as long-term backup archives or compliance data.

Why candidates pick the wrong answer

A

Candidates may confuse private endpoints with service endpoints, or think that private endpoints are the only way to restrict access to a specific subnet, not realizing that service endpoints with firewall rules can achieve the same goal without using a private endpoint.

C

Candidates may confuse high-availability features like RA-GRS with network security controls, or they might think that geo-replication inherently restricts access to specific subnets.

D

Candidates may confuse 'archive' with 'restrict' or think that changing the access tier somehow limits network access, due to misunderstanding of storage tiers.

648
MCQmedium

An app running on an Azure VM must access Azure SQL Database over a private IP inside the VNet. The team also wants the SQL server name to resolve to that private address without using custom host-file entries. What should be configured?

A.A service endpoint on the VM subnet and a firewall rule on Azure SQL Database.
B.A private endpoint for Azure SQL Database and a linked private DNS zone.
C.A public IP address on the VM and a SQL server firewall exception.
D.An NSG rule that allows outbound TCP 1433 to the SQL server.
AnswerB

A private endpoint places the service on a private IP in your virtual network, which satisfies the requirement for private network access. Linking the appropriate private DNS zone to the VNet lets the SQL server name resolve to that private IP automatically. This combination gives the application private connectivity and avoids manual host-file updates or reliance on public endpoints.

Why this answer

A private endpoint assigns Azure SQL Database a private IP address from the VM's VNet, enabling traffic to stay within Microsoft's backbone. Linking a private DNS zone automatically resolves the SQL server's FQDN (e.g., server.database.windows.net) to that private IP, eliminating the need for custom host-file entries. This meets both requirements: private IP connectivity and DNS resolution without manual configuration.

Exam trap

The trap here is confusing service endpoints with private endpoints; candidates often think a service endpoint provides a private IP, but it only provides source VNet identity while the destination remains a public endpoint, failing the private IP and DNS resolution requirements.

Why the other options are wrong

A

A service endpoint and firewall rule allow access over the public endpoint using the VM's private IP, but the SQL server name still resolves to a public IP, not a private IP inside the VNet.

When would these options actually be correct?

A

If the requirement is only to restrict access to Azure SQL Database from a specific VNet subnet without needing private IP resolution, a service endpoint on the subnet and a firewall rule on the SQL server would be correct.

Why candidates pick the wrong answer

A

Candidates often confuse service endpoints with private endpoints, thinking both provide private connectivity, but service endpoints do not change DNS resolution to a private IP.

649
MCQmedium

A contractor needs to upload files to one blob container for the next two hours. The contractor must not learn the storage account key, and access should expire automatically without manual cleanup. What is the best way to grant access?

A.Share the storage account key and ask the contractor to stop using it after two hours.
B.Create an account SAS with broad permissions and send it to the contractor by email.
C.Generate a user delegation SAS from Entra ID with only the required container permissions and a two-hour expiry.
D.Assign the contractor the Storage Blob Data Contributor role at the storage account scope.
AnswerC

A user delegation SAS is generated from Entra ID credentials, so the administrator does not expose the storage account key. It can be scoped to a single container, limited to upload permissions, and given a short expiration time. That combination satisfies least privilege and automatic expiration for temporary contractor access.

Why this answer

A user delegation SAS is the correct choice because it is secured with Entra ID credentials rather than the storage account key, ensuring the contractor never learns the key. The SAS can be scoped to exactly the required container permissions and a two-hour expiry, providing automatic, time-limited access without manual cleanup. This approach aligns with the principle of least privilege and eliminates the need to share or rotate storage account keys.

Exam trap

The trap here is that candidates often confuse an account SAS (which still uses the storage account key) with a user delegation SAS (which uses Entra ID), leading them to choose Option B because they think any SAS automatically avoids key exposure, but only the user delegation SAS truly prevents the contractor from learning the key.

Why the other options are wrong

A

Sharing the storage account key grants full access to the entire storage account, not just the container, and does not automatically expire after two hours, violating the requirement for automatic expiry and limited access.

B

An account SAS grants broad permissions (e.g., all containers) and does not automatically expire within two hours unless explicitly set; it also does not prevent the contractor from learning the storage account key because the SAS is derived from the key. The requirement for automatic expiry and no key exposure is not fully met.

D

Assigning the Storage Blob Data Contributor role at the storage account scope does not provide automatic expiry; access would persist until manually revoked, violating the requirement that access expire automatically without manual cleanup.

When would these options actually be correct?

A

If the question required granting full, permanent access to the storage account to a trusted administrator who needs to manage all resources, and automatic expiry is not needed, sharing the storage account key would be appropriate.

B

A question where a user needs temporary access to multiple blobs or containers for a short period, and the storage account key is already known to the administrator but must not be shared. The SAS is generated with a short expiry and sent via email, with no requirement for Entra ID integration or delegation.

D

This option would be correct if the question required granting long-term, revocable access to a contractor who needs to manage blobs (read, write, delete) for an extended period, and the organization uses Azure RBAC for access control with a process to remove the role assignment when no longer needed.

Why candidates pick the wrong answer

A

Candidates may think sharing the key is the simplest method and assume the contractor will stop using it after two hours, overlooking the lack of automatic expiry and the security risk of exposing the key.

B

Candidates may think a SAS is always the best for temporary access, overlooking that an account SAS is tied to the storage account key and offers less granular control than a user delegation SAS. They might also assume email delivery is acceptable without considering security best practices.

D

Candidates may think that Azure RBAC is always the best practice for access control and overlook the specific requirement for automatic expiry, assuming that the role assignment can be removed later, but the question explicitly demands automatic expiration without manual cleanup.

650
MCQmedium

A build pipeline starts a containerized data-processing job every evening. Each run finishes in under 20 minutes, does not need persistent servers, and never receives inbound traffic. Which compute service best fits this workload?

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

Azure Container Instances is the correct choice because it runs containers on-demand without requiring any underlying infrastructure provisioning or cluster orchestration. It starts in seconds, charges only for the duration of the job, and is purpose-built for short-lived, isolated workloads like this data processing pipeline. This serverless model eliminates the need to manage VMs, nodes, or Kubernetes control planes, giving a simple and cost-effective execution environment.

Why this answer

Azure Container Instances (ACI) is the best fit because it allows you to run a containerized job directly in Azure without provisioning or managing any underlying infrastructure. The workload is short-lived (under 20 minutes), requires no persistent servers, and has no inbound traffic, which aligns perfectly with ACI's pay-per-second billing and ability to start containers on demand from a build pipeline.

Exam trap

The trap here is that candidates often choose Azure Kubernetes Service (D) because they associate containers with Kubernetes, overlooking that ACI is the simpler, more cost-effective solution for single, short-lived containerized jobs without orchestration needs.

Why the other options are wrong

A

Azure App Service is designed for hosting web applications and RESTful APIs that require continuous runtime and inbound HTTP traffic, not for short-lived, batch container jobs that finish in under 20 minutes and have no inbound requests.

C

Azure Virtual Machines require persistent servers, incurring costs even when idle, and need manual scaling or additional services for orchestration, making them unsuitable for a short-lived, serverless containerized job that runs under 20 minutes.

D

Azure Kubernetes Service (AKS) is overkill for a short-lived batch job that finishes in under 20 minutes, as it requires a cluster with nodes running continuously, incurring cost and management overhead. The workload does not need orchestration, scaling, or persistent servers.

When would these options actually be correct?

A

A question describes a web application that must run continuously, scale automatically based on HTTP traffic, and support multiple deployment slots for staging and production. Azure App Service would be the correct choice for this scenario.

C

A workload requires a custom operating system configuration, needs to run legacy applications that cannot be containerized, or demands persistent server access for debugging or long-running processes that exceed container limits.

D

A question describing a microservices application with multiple containers that need orchestration, auto-scaling, rolling updates, and service discovery, and where the workload runs for hours or continuously, would make AKS the correct answer.

Why candidates pick the wrong answer

A

Candidates may mistakenly think App Service can run any containerized workload, overlooking that it is optimized for web apps with persistent endpoints and not for ephemeral batch processing.

C

Candidates may think VMs are the default for any compute workload, overlooking the serverless and ephemeral nature of Container Instances, and may not consider cost implications of idle VM resources.

D

Candidates may think AKS is the modern way to run containers, overlooking that for simple, short-lived jobs, Azure Container Instances is simpler and more cost-effective without the complexity of a Kubernetes cluster.

651
MCQeasy

Based on the exhibit, what should the administrator change if the business wants backups to be kept for 30 days instead of 7 days?

A.Change the backup schedule from daily to hourly.
B.Increase the retain daily backup points setting to 30 days.
C.Increase the instant recovery snapshot retention to 30 days.
D.Enable a CanNotDelete lock on the Recovery Services vault.
AnswerB

The requirement is about how long daily recovery points are kept, not how often backups run. The policy setting that controls that is the retention value for daily backup points. Updating it from 7 days to 30 days keeps the restore points available for the required period while leaving the backup schedule unchanged.

Why this answer

The backup retention policy in Azure Backup is configured via the 'Retain daily backup points' setting, which specifies how many days daily recovery points are kept. To change retention from 7 to 30 days, the administrator must increase this value to 30. This directly controls the lifespan of daily backups in the Recovery Services vault.

Exam trap

The trap here is confusing 'instant recovery snapshot retention' (short-term local snapshots) with 'daily backup point retention' (long-term vault retention), leading candidates to incorrectly select option C.

Why the other options are wrong

A

Changing the backup schedule from daily to hourly increases backup frequency, not retention duration. The question asks to keep backups for 30 days instead of 7 days, which is a retention setting, not a scheduling change.

C

The instant recovery snapshot retention setting controls how long snapshots are kept for immediate restores, not the overall backup retention period. The question asks for keeping backups for 30 days, which is managed by the retention policy (e.g., retain daily backup points).

When would these options actually be correct?

A

If the business requirement were to reduce the maximum potential data loss (recovery point objective) from 24 hours to 1 hour, then changing the backup schedule from daily to hourly would be correct.

C

This option would be correct if the question asked: 'The administrator wants to ensure that instant restore snapshots are available for 30 days to speed up recovery.' In that case, increasing instant recovery snapshot retention to 30 days would be the appropriate action.

Why candidates pick the wrong answer

A

Candidates may confuse backup frequency with retention, thinking more frequent backups automatically mean longer retention, or they may misread the question as needing more backup copies rather than longer storage duration.

C

Candidates may confuse 'instant recovery snapshot retention' with overall backup retention, thinking that increasing snapshot retention extends the total backup retention period, or they may not understand the difference between snapshot retention and backup point retention.

652
MCQeasy

Based on the exhibit, what should the administrator create so the storage account is reachable only by private IP from AppSubnet?

A.A private endpoint in AppSubnet for the storage account.
B.A service endpoint on AppSubnet for Microsoft.Storage.
C.A user-defined route to the storage account public IP.
D.An application security group that contains the storage account.
AnswerA

A private endpoint gives the storage account a private IP address in the VNet, which is exactly what the requirement calls for. Because public network access is disabled and DNS is already configured, this completes the private-only access path.

Why this answer

A private endpoint assigns a private IP address from the AppSubnet to the storage account, making it reachable only via private IP within that subnet. This ensures all traffic to the storage account stays within the Microsoft Azure backbone network, eliminating public internet exposure. The private endpoint uses Azure Private Link to map the storage account's PaaS resource to a network interface in the virtual network.

Exam trap

The trap here is confusing service endpoints with private endpoints: service endpoints keep the public endpoint but restrict access via subnet firewall rules, while private endpoints assign a private IP and fully remove public exposure, which is required for reachability only by private IP.

Why the other options are wrong

B

A service endpoint does not make the storage account reachable only by private IP; it allows access from the subnet to the storage account via the Azure backbone but still uses the public endpoint of the storage account, and it does not block public access.

C

A user-defined route (UDR) controls traffic flow to a destination IP, but the storage account's public IP is still publicly accessible. It does not enforce private IP-only access from AppSubnet; traffic would still leave Azure backbone and could be intercepted.

D

An application security group (ASG) is used to group virtual machines by application roles for network security policy enforcement, not to control network access to a storage account. It cannot make a storage account reachable only by private IP from a subnet.

When would these options actually be correct?

B

If the question required allowing the storage account to be accessed from AppSubnet without traversing the internet, but public access from other sources is still permitted, a service endpoint would be correct. For example: 'You need to ensure traffic from AppSubnet to the storage account stays on the Azure backbone.'

C

A question where the goal is to force traffic from a subnet to go through a firewall or NVA before reaching a public endpoint (e.g., storage account). For example: 'You need to ensure all outbound traffic from AppSubnet to a storage account is inspected by a firewall. What should you create?'

D

In a scenario where you need to apply network security group (NSG) rules to specific groups of VMs based on their application tier (e.g., web servers, app servers), and you want to simplify rule management, you would create an ASG and assign it to the VMs' NICs. The correct answer would then be to reference the ASG in NSG rules.

Why candidates pick the wrong answer

B

Candidates confuse service endpoints with private endpoints, thinking both provide private connectivity, but service endpoints do not assign a private IP to the storage account and do not block public access.

C

Candidates may think that routing traffic to the storage account's public IP via a UDR can restrict access to private IPs, but UDRs do not change the destination address or enforce private connectivity.

D

Candidates may confuse application security groups with service endpoints or private endpoints, thinking ASGs can control access to Azure PaaS services like storage, when in fact ASGs only apply to VM-to-VM traffic within a virtual network.

653
MCQmedium

A compliance report must show which department and environment owns each Azure resource, even when the resources are spread across many resource groups and subscriptions. Which feature should the administrator use?

A.Resource group names only.
B.Management groups.
C.Resource tags.
D.Resource locks.
AnswerC

Tags are the correct feature because they attach metadata like department and environment directly to resources. That metadata can then be queried, filtered, and reported across multiple resource groups and subscriptions. Tags are a common Azure governance tool when business ownership must be tracked independently of the resource hierarchy.

Why this answer

Resource tags are metadata key-value pairs that can be attached to Azure resources, resource groups, and subscriptions. They allow administrators to logically organize resources by department, environment, cost center, or any custom category, and this metadata is included in compliance reports. Unlike resource group names or management groups, tags are flexible and can be applied across multiple resource groups and subscriptions, making them the correct choice for this requirement.

Exam trap

The trap here is that candidates confuse management groups (which organize subscriptions for policy and RBAC) with resource tags (which provide per-resource metadata), leading them to select management groups even though they cannot express department or environment ownership at the individual resource level.

Why the other options are wrong

A

Resource group names alone cannot encode ownership metadata like department and environment across multiple subscriptions; they are just naming conventions without enforced queryability or reporting capability.

B

Management groups organize subscriptions for policy and access management but do not provide metadata about department or environment ownership for individual resources.

D

Resource locks prevent accidental deletion or modification of resources but do not provide metadata about ownership or environment. They cannot be used to report which department or environment owns a resource.

When would these options actually be correct?

A

If the question asked for a method to organize resources for policy enforcement or cost management at scale across multiple subscriptions, management groups would be correct.

B

An administrator needs to apply consistent policies (e.g., allowed regions) or RBAC assignments across multiple subscriptions. Management groups would be the correct feature to use.

D

An administrator needs to ensure that critical production resources cannot be deleted or modified by unauthorized users. The question would ask: 'Which feature should be used to prevent accidental deletion of a resource?'

Why candidates pick the wrong answer

A

Candidates may think that naming resource groups with department and environment prefixes is sufficient for compliance reporting, underestimating the need for a flexible, queryable metadata solution like tags.

B

Candidates may confuse management groups with resource organization, thinking they can enforce ownership metadata, but they lack the key-value tagging capability needed for custom attributes like department and environment.

D

Candidates may confuse resource locks with tagging or governance features, thinking locks can also store ownership information, or they may overestimate the capabilities of locks in resource management.

654
MCQhard

Your company wants every subscription under the Corp-MG management group to block the creation of resource groups unless the deployment includes the tags CostCenter and Environment. You need a centralized solution that is inherited by child subscriptions. What should you configure?

A.An Azure Policy assignment at the management group scope
B.A custom RBAC role at the tenant root
C.A CanNotDelete lock on each subscription
D.A subscription budget alert
AnswerA

Management group policy assignments are inherited and can enforce required tags centrally.

Why this answer

Azure Policy at the management group scope is the correct centralized solution because it enforces a policy (e.g., requiring tags) that is inherited by all child subscriptions and resource groups. This ensures that any deployment without the required tags is denied, meeting the requirement for a governance rule that applies across the entire Corp-MG hierarchy.

Exam trap

The trap here is confusing Azure Policy (which enforces rules on resource properties) with RBAC (which controls access) or locks (which prevent deletion), leading candidates to choose a permission-based or operational control instead of a governance policy.

Why the other options are wrong

B

A custom RBAC role at the tenant root controls permissions (who can do what), not resource creation rules. It cannot enforce tag requirements on resource group creation.

C

A CanNotDelete lock prevents deletion or modification of resources but does not enforce tagging requirements on new resource groups. It cannot block creation of resource groups based on missing tags.

D

A subscription budget alert only notifies when spending exceeds a threshold; it does not enforce tagging requirements or block resource group creation.

When would these options actually be correct?

B

A custom RBAC role at the tenant root would be correct if the question asked for a way to grant a specific set of permissions (e.g., read-only access) to all subscriptions in the tenant, inherited by child management groups.

C

You need to prevent accidental deletion of a critical subscription or resource group. An exam question might ask: 'You want to ensure that a production subscription cannot be deleted by administrators. What should you configure?'

D

An exam question asks: 'You need to receive an email when spending in a subscription exceeds $10,000. What should you configure?' In that case, a subscription budget alert with an action group would be correct.

Why candidates pick the wrong answer

B

Candidates may confuse RBAC with Azure Policy, thinking that a custom role can enforce compliance rules, or they may believe that tenant root scope provides inheritance similar to management groups.

C

Candidates may confuse locks with policy enforcement, thinking a lock can block creation or enforce conditions, when locks only protect existing resources from deletion or modification.

D

Candidates may confuse cost management features with governance controls, thinking a budget alert can enforce tagging policies because both relate to cost control.

655
MCQmedium

A VM has an NSG with these inbound rules: Deny-RDP at priority 100 for TCP 3389 from Any, and Allow-RDP-Admins at priority 200 for TCP 3389 from 10.8.1.0/24. Admins from 10.8.1.0/24 still cannot connect by RDP. What change fixes access while keeping all other sources blocked?

A.Change the deny rule to protocol Any so the allow rule will be evaluated first.
B.Add a UDR that sends TCP 3389 traffic to the VM subnet.
C.Move the allow rule to a lower priority number than 100.
D.Associate an application security group with the VM and keep the existing priorities.
AnswerC

NSG rules are evaluated in priority order, where the lowest number wins. Because the deny rule at priority 100 is matched before the allow rule at 200, the connection is blocked even for the admin subnet. Moving the allow rule to a priority such as 90 makes it the first matching rule, while the deny rule still blocks all other sources afterward.

Why this answer

C is correct because NSG rules are evaluated in priority order, with lower numbers evaluated first. The Deny-RDP rule at priority 100 is evaluated before the Allow-RDP-Admins rule at priority 200, so traffic from 10.8.1.0/24 is denied before the allow rule is reached. Moving the allow rule to a priority lower than 100 (e.g., 90) ensures it is evaluated first, allowing the admin traffic while the deny rule still blocks all other sources.

Exam trap

The trap here is that candidates often think changing the protocol or adding a route or ASG can override the priority-based evaluation order, but the core issue is simply that the deny rule has a lower priority number and is evaluated first.

Why the other options are wrong

A

Changing the deny rule to protocol Any does not affect rule evaluation order; NSG rules are evaluated by priority number, not protocol. The deny rule at priority 100 will still block all RDP traffic before the allow rule at priority 200 is evaluated.

B

A User Defined Route (UDR) controls traffic routing between subnets or to on-premises, not NSG rule evaluation. Since the VM is in the same subnet, RDP traffic already reaches the VM; the issue is the NSG deny rule blocking it, not routing.

D

Associating an application security group (ASG) with the VM does not change the priority of existing NSG rules. The deny rule at priority 100 still blocks all RDP traffic, including from the admin subnet, regardless of ASG membership.

When would these options actually be correct?

A

This would be correct if the question stated that the deny rule was blocking traffic due to a protocol mismatch (e.g., the allow rule used TCP but the deny rule blocked UDP), and the goal was to ensure the allow rule applies to the correct protocol.

B

If the VM were in a different subnet or virtual network and RDP traffic was not reaching it due to missing or incorrect routes (e.g., forced tunneling or a network virtual appliance), adding a UDR to direct TCP 3389 traffic to the VM subnet would be correct.

D

This option would be correct in a scenario where the NSG rules reference ASGs as source or destination, and the VM needs to be added to an ASG to be included in an allow rule. For example, if the allow rule specifies an ASG as source, associating the VM with that ASG would permit traffic.

Why candidates pick the wrong answer

A

Candidates may think that changing the protocol to Any makes the rule more general, but they misunderstand that NSG evaluation is based on priority, not rule specificity.

B

Candidates may confuse NSG rule processing with network routing, thinking that a UDR can override NSG rules or that traffic is not reaching the VM due to routing issues rather than explicit deny rules.

D

Candidates may think that ASGs provide a way to bypass or override existing NSG rules, or that associating an ASG automatically adjusts rule priorities, when in fact ASGs are just logical groupings used in rule definitions.

656
MCQmedium

A backend tier runs on three Azure VMs. The VMs are rebuilt frequently and receive new private IP addresses during redeployment. The administrator must allow inbound TCP 1433 from the app tier without rewriting the NSG rule each time the backend VMs change. What should be used?

A.Individual private IP addresses assigned directly in the NSG rule
B.An application security group referenced by the NSG rule
C.A service endpoint enabled on the subnet
D.A load balancer inbound NAT rule on port 1433
AnswerB

Application security groups let you group VMs logically and reference that group in NSG rules. When the backend VMs are rebuilt or their IPs change, the rule still applies as long as the NICs remain members of the ASG, which reduces manual maintenance.

Why this answer

An application security group (ASG) allows you to group VMs logically (e.g., by tier) and reference that group in a network security group (NSG) rule. When backend VMs are rebuilt and receive new private IPs, the ASG membership is automatically updated, so the NSG rule continues to apply without manual changes. This makes ASG the correct choice for dynamic environments where IP addresses change frequently.

Exam trap

The trap here is that candidates often confuse application security groups with network security groups or think that a load balancer or service endpoint can solve dynamic IP changes, but only ASGs provide a logical grouping that automatically follows VM IP changes without manual rule updates.

Why the other options are wrong

A

Individual private IP addresses change each time the VMs are rebuilt, requiring NSG rule updates. This does not meet the requirement to avoid rewriting rules.

C

A service endpoint secures Azure service access from a subnet to a specific service (e.g., Azure SQL Database) and does not filter traffic between VMs within a VNet. It cannot be used to allow inbound TCP 1433 from the app tier to backend VMs with dynamic private IPs.

D

A load balancer inbound NAT rule translates a specific frontend port to a backend VM's private IP and port, but it does not solve the problem of changing private IPs because the NAT rule must be updated each time the backend VM's IP changes, which is the same rewriting issue the question aims to avoid.

When would these options actually be correct?

A

If the backend VMs had static private IP addresses that never change, assigning those IPs directly in an NSG rule would be a valid approach to allow inbound traffic from the app tier.

C

A question where the backend tier is an Azure SQL Database (PaaS) instead of VMs, and the requirement is to restrict access from a specific subnet to the database. In that case, enabling a service endpoint on the subnet and creating a firewall rule for the subnet would be correct.

D

A load balancer inbound NAT rule would be correct if the question required mapping a single public port to a specific backend VM for RDP/SSH access, and the backend VMs had static private IPs or the NAT rule was dynamically updated via automation.

Why candidates pick the wrong answer

A

Candidates may think that specifying IP addresses directly is the most straightforward way to control access, overlooking the dynamic nature of the IPs in this scenario.

C

Candidates may confuse service endpoints with network security groups, thinking they can filter traffic between VMs. They might also recall that service endpoints improve security for Azure services and incorrectly assume they can replace NSG rules for VM-to-VM traffic.

D

Candidates may think a load balancer can handle changing IPs automatically, but inbound NAT rules are static mappings; they confuse load balancing (which distributes traffic) with NAT rules (which target specific VMs).

657
MCQmedium

A platform team must enforce three governance rules across every subscription in a management group: allowed Azure regions, required Environment tags, and approved VM sizes. They want one assignment that groups the rules together and gives a single compliance view. What should they use?

A.A single RBAC role assignment at the management group.
B.A management lock on each subscription.
C.An Azure Policy initiative assigned at the management group.
D.A private endpoint for Azure Resource Manager.
AnswerC

An initiative is the right tool when several related policies must be managed as one governance package. It lets the team assign the region, tagging, and VM size rules together, inherit them across all subscriptions under the management group, and review compliance in one place. This is simpler to operate than assigning each policy separately to each subscription.

Why this answer

An Azure Policy initiative (also known as a policy set) allows you to group multiple individual policy definitions—such as allowed regions, required tags, and approved VM sizes—into a single assignment. When assigned at the management group scope, the initiative enforces all three rules across every subscription within that group and provides a unified compliance view in the Azure Policy dashboard, meeting the team's requirement for consolidated governance.

Exam trap

The trap here is confusing Azure Policy (which enforces rules on resource configurations) with RBAC (which controls user permissions) or management locks (which prevent deletion/modification), leading candidates to select a control that addresses a different aspect of governance.

Why the other options are wrong

A

RBAC role assignments control permissions (who can do what), not governance rules like allowed regions or tags. They cannot enforce resource configurations or provide a compliance view for policies.

B

A management lock prevents deletion or modification of resources but cannot enforce governance rules like allowed regions, tags, or VM sizes. It does not provide a compliance view or group multiple policies together.

D

Private endpoints for Azure Resource Manager restrict network access to Azure Resource Manager endpoints, not enforce governance rules like allowed regions, tags, or VM sizes.

When would these options actually be correct?

A

A question asks: 'A team needs to grant the same contributor permissions to all users in a management group. What should they use?' — A single RBAC role assignment at the management group would be correct.

B

A management lock would be correct in a scenario where the goal is to prevent accidental deletion or modification of critical subscriptions, such as locking a production subscription to protect against unauthorized changes.

D

A question asks how to restrict Azure Resource Manager access to a specific virtual network to prevent management plane access from the internet. In that scenario, a private endpoint for Azure Resource Manager would be the correct answer.

Why candidates pick the wrong answer

A

Candidates may confuse role assignments (permissions) with policy assignments (governance), thinking a single assignment at the management group can enforce rules, but RBAC does not enforce resource properties.

B

Candidates may confuse management locks with policy enforcement, thinking locks can restrict resource configurations, or they may assume locks provide a compliance view similar to policies.

D

Candidates may confuse network-level controls (private endpoints) with policy-based governance, thinking that restricting network access can enforce compliance rules.

658
Multi-Selecthard

A contractor needs Contributor on only VM1 and VM2 in rg-prod. Other resources in rg-prod must remain untouched, and the contractor must not gain access to any other resource groups or subscriptions. Which two role-assignment scopes meet the requirement? Select two.

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

A resource-level assignment limits permissions to VM1 and does not extend to unrelated resources.

Why this answer

Assigning the Contributor role at the VM1 resource scope grants the contractor permissions exclusively to that virtual machine, leaving all other resources in rg-prod and other scopes untouched. This meets the requirement of limiting access to only VM1 and VM2 within rg-prod.

Exam trap

The trap here is that candidates often default to assigning roles at the resource group scope for simplicity, forgetting that this grants access to all resources in that group, not just the specified VMs.

Why the other options are wrong

C

Assigning Contributor at the rg-prod resource group scope would grant the contractor access to all resources in that group, including those that must remain untouched, violating the requirement to limit access to only VM1 and VM2.

D

Assigning Contributor at the subscription scope grants the contractor access to all resources in the subscription, including other resource groups and resources in rg-prod beyond VM1 and VM2, violating the requirement to restrict access to only VM1 and VM2.

When would these options actually be correct?

C

If the requirement were to grant the contractor Contributor access to all resources within rg-prod (e.g., to manage the entire resource group), then assigning the role at the rg-prod resource group scope would be correct.

D

If the requirement were to grant the contractor Contributor access to all resources in the subscription (e.g., for full subscription management), then assigning the role at the subscription scope would be correct.

Why candidates pick the wrong answer

C

Candidates may mistakenly think that assigning at the resource group scope is more efficient and still allows granular control, overlooking that it grants permissions to all resources in the group, not just the specified VMs.

D

Candidates may think subscription scope is necessary to cover multiple VMs, or they may confuse the scope levels and believe subscription is the minimum scope needed for resource access.

659
MCQhard

An Azure subscription contains several resource groups. You need to ensure that users can create virtual machines only in regions approved by the security team. Existing noncompliant VMs can remain unchanged. What should you do?

A.Apply a ReadOnly lock to each resource group.
B.Assign a policy that denies resources in disallowed locations.
C.Create an action group in Azure Monitor.
D.Move all existing VMs to approved regions.
AnswerB

Azure Policy's built-in 'Allowed Locations' definition, applied at the subscription or resource group scope with a deny effect, intercepts deployment requests and rejects any resource whose 'location' property is not in the approved region list. Because enforcement happens during evaluation of new requests, existing VMs already deployed in noncompliant regions remain untouched and continue functioning without requiring migration, making this an elegant, targeted governance mechanism.

Why this answer

Azure Policy can enforce organizational standards by evaluating resources for compliance. The built-in 'Not allowed locations' policy denies the creation of resources in specified regions, ensuring users can only deploy VMs in approved regions. Since the requirement is to allow existing noncompliant VMs to remain unchanged, a deny effect policy (without a 'DeployIfNotExists' or 'Modify' effect) will only affect new deployments, leaving existing resources untouched.

Exam trap

The trap here is that candidates may confuse Azure Policy with Azure RBAC or locks, thinking that restricting permissions or locking resources will control where resources can be created, but only Azure Policy can enforce location-based restrictions at deployment time.

Why the other options are wrong

A

A ReadOnly lock prevents all modifications, including creating new VMs, but does not restrict creation to approved regions; it blocks all VM creation regardless of location.

C

An action group in Azure Monitor is used for sending notifications or executing automated actions based on alerts, not for restricting VM creation to approved regions.

D

Moving all existing VMs to approved regions does not prevent users from creating new VMs in disallowed regions, and the question explicitly states that existing noncompliant VMs can remain unchanged.

When would these options actually be correct?

A

If the requirement was to prevent any changes to existing resources (e.g., to protect critical VMs from accidental deletion or modification), applying a ReadOnly lock to the resource group would be correct.

C

When the question asks how to send email or SMS alerts when a noncompliant VM is created in a disallowed region, creating an action group and linking it to an Azure Policy initiative with a 'deployIfNotExists' effect would be correct.

D

If the requirement were to remediate existing noncompliant VMs by relocating them to approved regions, and the question allowed for moving resources, then moving all existing VMs would be correct.

Why candidates pick the wrong answer

A

Candidates may confuse locks with policies, thinking a ReadOnly lock can restrict actions to specific regions, when it actually blocks all write operations indiscriminately.

C

Candidates may confuse Azure Monitor's action groups with Azure Policy's enforcement capabilities, thinking that alerts can prevent resource creation rather than just notify after the fact.

D

Candidates may think that moving VMs is a straightforward way to enforce compliance, overlooking that the question focuses on preventing future violations, not fixing current ones.

660
Multi-Selectmedium

You are designing a containerized application deployment in Azure. Which three options must you consider when choosing between Azure Container Instances (ACI) and Azure Kubernetes Service (AKS)? (Choose three.)

Select 3 answers
.ACI is ideal for simple, short-lived tasks or burst workloads that do not require orchestration.
.AKS provides built-in auto-scaling, service discovery, and rolling update capabilities.
.ACI supports mounting an Azure Files share as a persistent volume.
.AKS supports only Linux-based container images and cannot run Windows containers.
.ACI automatically manages container orchestration, including load balancing and scaling across nodes.
.AKS requires you to manage the underlying virtual machine infrastructure, including patching the OS.

Why this answer

ACI is correct because it is designed for simple, short-lived tasks or burst workloads that do not require orchestration, making it ideal for scenarios like batch processing or event-driven applications. AKS is correct because it provides built-in auto-scaling, service discovery, and rolling update capabilities, which are essential for managing complex microservices architectures. ACI is correct because it supports mounting an Azure Files share as a persistent volume, enabling stateful workloads to share data across container instances.

Exam trap

The trap here is that candidates may confuse ACI's lack of orchestration with automatic orchestration, or assume AKS requires full VM management, when in fact AKS abstracts node management through managed node pools.

661
MCQmedium

A payroll application in a VNet must access an Azure Storage account containing confidential blobs. The security team requires the storage account to be reachable only over a private IP, and public network access must be disabled. Which feature should the administrator implement?

A.A service endpoint for Microsoft.Storage on the application subnet.
B.A private endpoint for the storage account in the VNet.
C.A shared access signature embedded in the application configuration.
D.A VPN gateway connection between the subnet and the storage account.
AnswerB

A private endpoint gives the storage account a private IP address from the VNet address space, allowing traffic to stay on private connectivity. This matches the requirement to disable public network access while still letting the application reach blob data. The private endpoint also integrates with DNS so the storage FQDN resolves to the private address. That design is the correct choice when access must be restricted to a private path only.

Why this answer

A private endpoint assigns the storage account a private IP address from the VNet, enabling secure access over a private connection while completely disabling public network access. This meets the security team's requirement because traffic never traverses the public internet, and the storage account's firewall can be configured to deny all public traffic.

Exam trap

The trap here is that candidates confuse service endpoints with private endpoints, not realizing that service endpoints still use the public endpoint and cannot disable public network access, whereas private endpoints provide a true private IP and full public access disablement.

Why the other options are wrong

A

A service endpoint does not provide a private IP; it allows access over the public endpoint but restricts it to the VNet. The requirement is to disable public network access entirely, which only a private endpoint can achieve.

C

A shared access signature (SAS) provides delegated access over the public endpoint, but the question requires public network access to be disabled and only private IP access allowed. SAS does not enforce private-only connectivity.

D

A VPN gateway connection does not provide private IP access to the storage account; it only extends the VNet to on-premises networks. The storage account would still be publicly accessible unless additional measures are taken, and it does not disable public network access.

When would these options actually be correct?

A

A service endpoint would be correct if the question required securing access from a VNet to a storage account without disabling public network access, or if the requirement was to restrict access to a specific subnet while still using the public endpoint.

C

An administrator needs to grant a client application time-limited, delegated access to specific blobs in a storage account without exposing the account key, and public network access is allowed. A SAS token embedded in the app configuration would be appropriate.

D

A VPN gateway would be correct if the question required connecting an on-premises network to a VNet to access Azure resources privately, or if the storage account needed to be accessed from on-premises over a private connection without using the public internet.

Why candidates pick the wrong answer

A

Candidates may confuse service endpoints with private endpoints, thinking both provide private connectivity, but service endpoints still use the public IP of the storage service.

C

Candidates may think SAS is a secure way to control access to storage, but they overlook the requirement that public access must be disabled entirely, which SAS cannot enforce.

D

Candidates may confuse VPN gateways with private connectivity solutions, thinking that a VPN tunnel inherently provides private IP access to all Azure services, not realizing that storage accounts require explicit private endpoints for private IP access.

662
MCQeasy

You have already deployed a Windows Server VM. After provisioning, you need to run a PowerShell script once to configure an application and create a registry setting without logging in interactively. Which Azure feature should you use?

A.Custom Script Extension
B.cloud-init
C.Azure Policy
D.Recovery Services vault
AnswerA

This extension can download and run a script on a VM after deployment without requiring interactive logon.

Why this answer

The Custom Script Extension (CSE) is the correct choice because it allows you to run a PowerShell script on a Windows VM after provisioning, without requiring interactive logon. It executes the script as the local system account, making it ideal for one-time configuration tasks like setting registry keys or installing applications. This aligns with the requirement to run a script once non-interactively.

Exam trap

The trap here is that candidates often confuse cloud-init (a Linux-only tool) with the Custom Script Extension, mistakenly assuming cloud-init works on Windows VMs, or they think Azure Policy can execute scripts when it only evaluates and enforces policies.

Why the other options are wrong

B

cloud-init is designed for Linux VM initialization during first boot, not for Windows Server VMs, and it cannot run PowerShell scripts on Windows.

C

Azure Policy is used to enforce compliance rules and audit configurations across resources, not to execute scripts on a single VM after deployment.

D

Recovery Services vault is used for backup and disaster recovery (Azure Backup, Site Recovery), not for executing scripts on a VM after provisioning.

When would these options actually be correct?

B

When deploying a Linux VM that needs to run a script or configuration during initial provisioning (e.g., installing packages, setting hostname) without interactive login, cloud-init is the correct choice.

C

An exam question asking how to enforce that all VMs in a subscription must have a specific registry key or application installed, using a policy definition with a DeployIfNotExists effect that triggers a custom script extension.

D

You need to protect your Azure VMs by enabling backup and configuring retention policies for disaster recovery scenarios.

Why candidates pick the wrong answer

B

Candidates may confuse cloud-init as a generic VM extension similar to Custom Script Extension, not realizing it is Linux-specific and not supported on Windows.

C

Candidates may confuse Azure Policy's ability to enforce configurations with the ability to run scripts, not realizing that Policy itself does not execute code but can trigger remediation tasks.

D

Candidates may confuse Recovery Services vault with Azure Automation or Runbooks, thinking it can run scripts, but its primary purpose is backup/recovery.

663
MCQmedium

A support engineer must start, stop, and restart only one virtual machine named vm-app01. The engineer should not gain permissions on any other virtual machine in the subscription. What is the best scope for the role assignment?

A.The entire subscription that contains vm-app01.
B.The resource group that contains vm-app01.
C.The vm-app01 virtual machine resource itself.
D.The management group that contains the subscription.
AnswerC

Assigning a role at the virtual machine resource scope restricts permissions to exactly the vm-app01 resource. The support engineer can only invoke Microsoft.Compute/virtualMachines/start/action, .../deallocate/action, and .../restart/action on that single VM, and cannot affect other VMs or resource group components. This follows the principle of least privilege, granting the minimal access necessary for the specific operational task.

Why this answer

Azure RBAC allows role assignments to be scoped to individual resources, such as a specific virtual machine. By assigning a role like 'Virtual Machine Contributor' at the vm-app01 resource scope, the support engineer will have permissions to start, stop, and restart only that VM, and no other resources in the subscription or resource group.

Exam trap

The trap here is that candidates often default to the resource group scope because it is the most common level for role assignments, but they overlook that the requirement explicitly restricts access to a single VM, which demands the resource-level scope.

Why the other options are wrong

A

Assigning the role at the subscription scope grants permissions to all virtual machines in the subscription, not just vm-app01, violating the requirement to restrict access to only that VM.

B

Assigning the role at the resource group scope would grant permissions to all virtual machines within that resource group, not just vm-app01, violating the requirement to limit permissions to a single VM.

When would these options actually be correct?

A

If the requirement were to manage all virtual machines in the subscription, or if the support engineer needed to start/stop/restart any VM in the subscription, then subscription scope would be appropriate.

B

If the question required the support engineer to manage all virtual machines within a specific resource group (e.g., start, stop, restart any VM in that group), then assigning the role at the resource group scope would be appropriate.

Why candidates pick the wrong answer

A

Candidates may think subscription scope is the simplest way to grant permissions without realizing it grants access to all resources, not just the intended VM.

B

Candidates may think that since vm-app01 is in a resource group, assigning the role at that level is sufficient, overlooking that it grants permissions to other VMs in the same group.

664
Multi-Selecteasy

An operations team needs one Azure identity that can be attached to several VMs and kept even if a VM is deleted. Which two statements about a user-assigned managed identity are correct? Select two.

Select 2 answers
A.It is created as a separate Azure resource.
B.It can be assigned to more than one VM.
C.It is automatically deleted when the first VM is deleted.
D.It requires a storage account access key to work.
E.It can only be attached to one VM at a time.
AnswersA, B

A user-assigned managed identity is provisioned as a standalone Azure resource of type Microsoft.ManagedIdentity/userAssignedIdentities, living in its own resource group with its own object ID. It is created independently of any virtual machine and can be managed, tagged, and role-assigned on its own, before or after a VM uses it. This is what makes it a resource rather than a property of a VM.

Why this answer

A user-assigned managed identity is created as a separate Azure resource in its own right, independent of any VM. This means it has its own lifecycle and can be managed (created, deleted, assigned) independently from the VMs it is associated with.

Exam trap

The trap here is that candidates often confuse user-assigned managed identities with system-assigned managed identities, which are tied to the VM lifecycle and are automatically deleted when the VM is deleted, leading them to incorrectly select option C.

Why the other options are wrong

C

User-assigned managed identities are independent Azure resources; they persist independently of any VM lifecycle and are not automatically deleted when a VM is deleted.

D

User-assigned managed identities do not require a storage account access key; they authenticate via Azure AD using a service principal, not storage keys.

E

User-assigned managed identities are designed to be independent Azure resources that can be assigned to multiple VMs simultaneously; they are not limited to a single VM.

When would these options actually be correct?

C

For a system-assigned managed identity, which is tied to the VM lifecycle and is automatically deleted when the VM is deleted.

D

In a question about accessing Azure Storage from a VM using a system-assigned managed identity, you might need to configure the storage account firewall to allow access from the VM's subnet, but that does not involve access keys. Alternatively, a question about using storage account access keys directly (not managed identities) would make this correct.

E

This option would be correct if the question asked about a system-assigned managed identity, which is tied to a single resource and cannot be shared across multiple VMs.

Why candidates pick the wrong answer

C

Candidates may confuse user-assigned with system-assigned managed identities, assuming all managed identities are automatically deleted with the associated VM.

D

Candidates may confuse managed identities with storage account access keys because both are used for authentication, but managed identities eliminate the need for keys.

E

Candidates may confuse user-assigned with system-assigned managed identities, assuming all managed identities are bound to one resource only.

665
MCQmedium

A team wants to allow a subnet to access a storage account only from that subnet, but they do not want to create a private endpoint or change DNS. The storage account should still be reachable through its public endpoint, just not from other networks. What should the administrator configure?

A.A private endpoint for the storage account and a private DNS zone.
B.A public IP address for the subnet and a storage account firewall exception.
C.A service endpoint on the subnet and a storage firewall rule allowing that subnet.
D.An NSG rule that permits outbound TCP 443 to the storage account.
AnswerC

Service endpoints keep the public endpoint but restrict access based on the VNet or subnet identity.

Why this answer

A service endpoint on the subnet extends the virtual network identity to the storage account, allowing the storage firewall to restrict access to traffic originating from that specific subnet. This ensures the storage account remains reachable via its public endpoint, but only from the configured subnet, without requiring a private endpoint or DNS changes.

Exam trap

The trap here is that candidates often confuse service endpoints with private endpoints, assuming only private endpoints can restrict access to a storage account, or they mistakenly think NSG rules can control inbound access to PaaS services like storage accounts.

Why the other options are wrong

A

The team explicitly does not want to create a private endpoint or change DNS, and the storage account should remain reachable via its public endpoint. Option A requires a private endpoint and private DNS zone, which contradicts these requirements.

B

The storage account firewall can only filter by source IP address ranges, not by subnet or public IP address of a subnet. Configuring a public IP for the subnet does not enable the firewall to identify traffic from that subnet specifically.

D

An NSG rule controls traffic within the virtual network but does not restrict access to the storage account's public endpoint from other networks; the storage account firewall must be configured to allow only specific subnets.

When would these options actually be correct?

A

This option would be correct in a scenario where the requirement is to ensure that the storage account is accessed privately and completely isolated from the public internet, with no need for public endpoint access, and DNS resolution must be handled privately.

B

If the requirement were to allow access from a specific on-premises public IP address (e.g., a VPN gateway public IP) to a storage account, and the subnet had that public IP assigned via NAT, then adding that IP to the storage firewall rule would be correct.

D

If the question asked how to allow a subnet to access a storage account while blocking all other outbound traffic from that subnet, configuring an NSG rule to permit outbound TCP 443 to the storage account's service tag would be correct.

Why candidates pick the wrong answer

A

Candidates may think that private endpoints are the only way to restrict access to a storage account from a specific subnet, overlooking service endpoints as a simpler alternative that meets the stated constraints.

B

Candidates may think that assigning a public IP to the subnet makes its traffic identifiable by the storage firewall, but the firewall sees only the source IP of each request, not the subnet's public IP unless traffic is NATed to that IP.

D

Candidates may think NSG rules are sufficient for access control and overlook the need for storage firewall configuration, confusing network-level filtering with service-level access restrictions.

666
Multi-Selectmedium

You are designing a storage solution for a large-scale data analytics application that will run in Azure. The solution needs to support high-throughput writes, hierarchical namespace for organizing data, and the ability to assign POSIX-like permissions to directories and files. Additionally, the solution must support lifecycle management policies to tier data to cooler storage tiers after 30 days and enable blob-level versioning. Which four of the following features or services should you include in your design? (Choose all that apply. There are four correct answers.)

Select 4 answers
.Azure Data Lake Storage Gen2
.Azure Files with SMB protocol
.Hierarchical namespace
.Azure Blob Storage lifecycle management
.Azure NetApp Files
.Blob versioning

Why this answer

Azure Data Lake Storage Gen2 (ADLS Gen2) is the correct foundational service because it combines Azure Blob Storage with a hierarchical namespace, enabling POSIX-like access control lists (ACLs) for directories and files. This service is specifically designed for high-throughput analytics workloads, supporting both hierarchical namespace and blob-level operations. Lifecycle management policies and blob versioning are built-in Azure Blob Storage features that work seamlessly with ADLS Gen2 to automate data tiering and maintain data integrity.

Exam trap

The trap here is that candidates often confuse Azure Files or Azure NetApp Files as suitable for analytics workloads with POSIX permissions, but these services lack the hierarchical namespace and blob-level lifecycle/versioning features that are native to ADLS Gen2 and Azure Blob Storage.

667
Multi-Selectmedium

A Linux VM deployed from a custom image shows only a black screen after reboot, and SSH never becomes available. The administrator needs to inspect the startup process without logging into the OS. Which two Azure features should be used? Select two.

Select 2 answers
A.Boot diagnostics
B.Azure Serial Console
C.Azure Site Recovery
D.VM application health extension
E.Azure Backup restore point
AnswersA, B

Boot diagnostics captures the VM's serial log output and host-side screenshots as the OS boots. When a custom Linux image only shows a blank screen, the captured console output reveals exactly where the boot fails—GRUB, kernel panic, missing drivers, or stuck on mounting a filesystem. This log is stored by Azure and can be retrieved from the portal or CLI even if the VM is unreachable. Therefore, it is the primary and most direct tool for observing the startup failure.

Why this answer

Boot diagnostics captures serial console output and screenshots of the VM during boot, allowing you to see kernel panics, driver failures, or bootloader errors even when the OS is unresponsive. Azure Serial Console provides a text-based console connection to the VM at the hypervisor layer, enabling interactive troubleshooting of the boot process (e.g., GRUB recovery, initramfs issues) without requiring network connectivity or SSH.

Exam trap

The trap here is that candidates confuse Azure Serial Console with SSH or RDP, assuming it requires the OS to be running, when in fact it works at the hypervisor level and is available even if the OS has not fully booted.

Why the other options are wrong

C

Azure Site Recovery is a disaster recovery service for replicating and failing over VMs, not for inspecting a VM's startup process or troubleshooting boot issues.

D

The VM application health extension monitors application health and enables automatic repairs, but it does not provide out-of-band access to the OS startup process or console output, which is needed to diagnose a black screen and SSH failure.

E

Azure Backup restore point is used for recovering VM data from backups, not for inspecting the startup process or troubleshooting boot issues without OS access.

When would these options actually be correct?

C

An administrator needs to ensure business continuity for a critical VM in the event of a regional outage. Azure Site Recovery would be the correct service to configure replication and failover to a secondary region.

D

In a scenario where an application running on a VM is unresponsive and you need to automatically detect and recover from application failures, the VM application health extension would be correct, especially when combined with virtual machine scale set automatic repairs.

E

When a VM has failed and needs to be restored to a previous known-good state due to data corruption or misconfiguration, and the question asks for a feature to recover the VM from a backup.

Why candidates pick the wrong answer

C

Candidates may confuse Site Recovery's ability to 'recover' a VM with the ability to diagnose boot problems, or they may think it can restore a VM to a working state after a failed boot.

D

Candidates may think the health extension can diagnose boot issues because it monitors VM health, but it only checks application-level health after the OS is fully booted, not the startup process itself.

E

Candidates may confuse restore points with recovery tools, thinking they can boot from a restore point to inspect the system, but restore points are for data recovery, not live troubleshooting.

668
Multi-Selecthard

A legal team archived a 200-GB blob last quarter. They now need to open it repeatedly later today for review, and waiting more than a day would delay the case. Which two actions should the administrator take? Select two.

Select 2 answers
A.Start a rehydration request and target the Hot tier.
B.Set the rehydration priority to High.
C.Copy the blob directly while it remains in the Archive tier.
D.Change the blob back to the Archive tier after the request starts.
E.Take a snapshot first and expect it to make the archived blob readable immediately.
AnswersA, B

Archive blobs are stored in offline storage and cannot be read or modified until they are moved to an online tier. To make the 200 GB blob accessible, you must issue a rehydration request that changes its tier from Archive to Hot (or Cool). Targeting Hot is appropriate here because the team needs fast, same-day access, and Hot tier provides immediate availability and low-latency reads once the rehydration completes.

Why this answer

Rehydrating a blob from the Archive tier to the Hot tier makes it accessible for frequent reads. The Hot tier is optimized for high-frequency access, which matches the legal team's need to open the blob repeatedly later today. Rehydration is the only way to change the blob's tier from Archive to an online tier like Hot.

Exam trap

The trap here is that candidates may think setting the rehydration priority to High alone is sufficient, but without specifying a target tier (like Hot), the rehydration request is incomplete and the blob remains archived.

Why the other options are wrong

C

You cannot directly copy a blob while it remains in the Archive tier; the blob must first be rehydrated to an online tier (Hot, Cool, or Cold) before any read or copy operation.

D

Changing the blob back to the Archive tier after starting a rehydration request does not accelerate access; the blob must be rehydrated to a hot or cool tier before it can be read. The rehydration process is already in progress, and reverting to Archive would cancel or delay access.

E

Snapshots of an archived blob remain in the Archive tier and are not immediately readable; they must be rehydrated first, which takes time. A snapshot does not bypass the rehydration requirement.

When would these options actually be correct?

C

If the blob were already in the Cool or Hot tier, you could copy it directly without rehydration. For example, a question where a blob is in Cool tier and needs to be copied to another storage account.

D

In a scenario where a blob is accidentally rehydrated and you want to minimize storage costs by returning it to the Archive tier before the rehydration completes, this action would be correct. For example, if a rehydration was started by mistake and the blob is not needed immediately, changing the tier back to Archive stops the process and avoids higher storage costs.

E

If the question asked how to preserve a point-in-time copy of a blob before modifying it, and the blob is in a hot or cool tier (not archive), taking a snapshot would be correct. For example: 'You need to capture the current state of a blob before updating it.'

Why candidates pick the wrong answer

C

Candidates may think that copying an archived blob is possible because they confuse the Archive tier with offline tiers that support direct copy operations, or they assume that Azure handles rehydration automatically during copy.

D

Candidates might think that changing the tier back to Archive after starting rehydration is a way to 'undo' the request or that it somehow helps manage the process, not realizing that the blob must remain in a rehydrated state to be accessible.

E

Candidates may mistakenly believe that snapshots make data instantly accessible or that they override tier restrictions, confusing snapshot functionality with instant read access.

669
MCQeasy

An administrator needs to deploy a VM quickly using the same hardened operating system image that was approved by the security team. What should the administrator use as the source for the new VM?

A.A managed image
B.A network interface
C.A resource lock
D.A public IP address
AnswerA

A managed image captures the OS disk configuration of a prepared VM and can be used as the source for creating new VMs. It is a common way to standardize deployments when the organization has an approved build with hardening already applied. This supports quick and consistent provisioning.

Why this answer

A managed image captures a fully configured, hardened OS disk (including installed software and settings) as a reusable snapshot. When deploying a new VM, specifying this managed image as the source ensures the VM boots with the exact, security-approved OS configuration, meeting the requirement for a quick, consistent deployment.

Exam trap

The trap here is that candidates may confuse a managed image with a snapshot or a VHD, but a managed image is the correct source for deploying a new VM with a specific OS configuration, while a snapshot is used for backup or disk cloning, not direct VM creation.

Why the other options are wrong

B

A network interface is a virtual network adapter that provides connectivity, not a source for deploying a VM's operating system image. It cannot serve as a hardened OS image.

C

A resource lock prevents accidental deletion or modification of a resource, but it cannot serve as a source image for deploying a VM. The question requires a source for the VM's operating system, which a resource lock does not provide.

D

A public IP address is a network resource that provides internet connectivity to a VM, not an operating system image. It cannot be used as a source to deploy a VM with a specific hardened OS image.

When would these options actually be correct?

B

When deploying a VM from an existing VM's network configuration, such as when you need to clone a VM's network settings (e.g., private IP, subnet) to ensure identical network connectivity in a new VM.

C

A resource lock would be the correct answer if the question asked: 'What should an administrator use to prevent a critical VM from being accidentally deleted by team members?' In that scenario, applying a resource lock (e.g., CanNotDelete) is the appropriate solution.

D

When deploying a VM that needs to be directly accessible from the internet, you would assign a public IP address to the VM's network interface. For example, a web server requiring inbound traffic from the internet would need a public IP address.

Why candidates pick the wrong answer

B

Candidates may confuse the network interface with the VM's disk or image, thinking it contains the OS, or they may believe that attaching a network interface from an existing VM will replicate the entire VM.

C

Candidates might confuse resource locks with general protection mechanisms and think they can be used to secure the deployment source, or they may misinterpret the question as asking for a way to protect the VM after deployment rather than the source for creation.

D

Candidates may confuse the need for a public IP address with the source image, thinking that the IP address is part of the VM configuration that includes the OS, or they may misinterpret 'source' as the network endpoint for accessing the VM.

670
MCQmedium

A storage account must be reachable only from Azure VMs in a single subnet. Public network access should not be used, and the team wants the storage service to keep using a private IP address inside the virtual network. Which feature should the administrator configure?

A.A service endpoint on the subnet, because it creates a private IP address for the storage account.
B.A private endpoint for the storage account in the subnet.
C.A shared access signature that is limited to the subnet.
D.Storage account access keys, because they bind access to one subnet automatically.
AnswerB

A private endpoint places the storage service on a private IP address inside the VNet, which matches the requirement to avoid public network access. It is the correct choice when the service should be reachable only through a private address.

Why this answer

A private endpoint assigns the storage account a private IP address from the subnet's address space, using Azure Private Link to route traffic entirely over the Microsoft backbone network. This ensures the storage account is reachable only from VMs in that subnet and blocks all public internet access, meeting both requirements.

Exam trap

The trap here is confusing a service endpoint (which only provides source IP preservation and route optimization but leaves the public endpoint exposed) with a private endpoint (which truly removes public access by assigning a private IP).

Why the other options are wrong

A

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

C

A shared access signature (SAS) provides delegated access to storage resources, but it does not restrict network access to a specific subnet; it controls access via tokens, not network boundaries.

D

Storage account access keys do not restrict access to a specific subnet; they provide full administrative access to the storage account from any network location if the keys are known.

When would these options actually be correct?

A

A service endpoint would be correct if the requirement is to restrict access to the storage account from a specific subnet while still using the public endpoint, and private IP addressing is not required.

C

When the requirement is to grant time-limited, delegated access to a specific storage resource (e.g., a blob or file) for a client outside Azure, without exposing the storage account keys. For example, allowing a third-party application to read a file for 24 hours.

D

A question asking how to securely share storage account access with a team member without using Azure AD, where the requirement is to provide full access to the storage account (not network-restricted), and the solution must involve regenerating keys periodically.

Why candidates pick the wrong answer

A

Candidates may confuse service endpoints with private endpoints, thinking both provide private IP addresses, but only private endpoints assign a private IP from the subnet.

C

Candidates may think a SAS can be scoped to a subnet because it can include IP address restrictions, but those restrictions are for client IPs, not subnet-level network isolation.

D

Candidates may mistakenly believe that access keys inherently bind access to a specific subnet, confusing key-based authentication with network-level restrictions.

671
MCQmedium

A team deployed a private endpoint for an Azure Storage account in VNet-A. The private endpoint is healthy, but VMs in VNet-A still resolve the storage account name to the public IP address. What should the administrator configure next?

A.Add a route table that sends storage traffic to the private endpoint.
B.Link the appropriate private DNS zone to VNet-A.
C.Create a network security group rule that allows outbound HTTPS.
D.Enable service endpoints for Microsoft.Storage on the subnet.
AnswerB

Private endpoints depend on DNS so client requests resolve the service name to the private IP rather than the public endpoint. If VMs in VNet-A still receive the public address, the private DNS zone is not linked or not configured correctly for that VNet. Linking the zone ensures the Azure-provided or custom DNS path returns the private endpoint address, allowing the workloads to reach the storage account privately as intended.

Why this answer

When a private endpoint is deployed, the storage account's FQDN must resolve to the private IP address within the virtual network. By default, Azure Private DNS zones (privatelink.blob.core.windows.net) are not automatically linked to the virtual network. Linking the private DNS zone to VNet-A enables DNS resolution of the storage account name to the private endpoint's IP address instead of the public IP.

Exam trap

The trap here is that candidates often confuse network-level controls (route tables, NSGs, service endpoints) with DNS resolution, assuming that a healthy private endpoint alone will automatically change how the storage account name is resolved.

Why the other options are wrong

A

A route table cannot redirect traffic to a private endpoint because private endpoints use Azure Private Link, which relies on DNS resolution to direct traffic to the private IP, not routing. Route tables affect network traffic based on IP prefixes, but the private endpoint's IP is not a destination prefix that can be routed to; the traffic must first resolve to the private IP via DNS.

C

The issue is DNS resolution, not network traffic filtering. NSG rules control inbound/outbound traffic but do not affect how VMs resolve the storage account's FQDN to an IP address.

D

Service endpoints route traffic to the public IP of the storage account via the Azure backbone, not to a private endpoint. They do not enable private DNS resolution, so VMs would still resolve the storage account to its public IP.

When would these options actually be correct?

A

This option would be correct if the question described a scenario where VMs in VNet-A need to access a storage account via a service endpoint (not private endpoint) and the default route (0.0.0.0/0) is sending traffic to the internet. A route table with a more specific route to the storage account's public IP via the service endpoint would force traffic through the Azure backbone.

C

An administrator needs to allow VMs in a subnet to access a storage account over the internet (public endpoint) while blocking other outbound HTTPS traffic. An NSG rule allowing outbound HTTPS to the storage account's public IP would be correct.

D

In a scenario where the goal is to secure access to the storage account from VMs in a VNet without using a private endpoint, and the storage account's firewall is configured to allow access only from that VNet's service endpoint.

Why candidates pick the wrong answer

A

Candidates may think that since a private endpoint is a network interface, they can add a route to direct traffic to it, similar to how they would add a route to a virtual appliance or NAT device. They overlook that private endpoints rely on DNS resolution, not routing tables, to steer traffic.

C

Candidates may think that since private endpoints use private IPs, an NSG rule is needed to allow traffic to the private endpoint, or they confuse network security with DNS resolution.

D

Candidates may confuse service endpoints with private endpoints, thinking both provide private IP resolution, or they may believe service endpoints are required to route traffic to a private endpoint.

672
MCQhard

A build server in an on-premises datacenter must deploy ARM templates to Azure. The automation must not use a human account password, and Microsoft Entra conditional access for device sign-in is not available because the server is outside Azure. The security team allows a non-human credential but wants the strongest practical option for this scenario. What should the administrator configure?

A.A system-assigned managed identity on the build server.
B.A service principal authenticated with a certificate.
C.A user-assigned managed identity shared with the build server.
D.A resource lock on the target resource group to permit template deployment.
AnswerB

A certificate-based service principal is the correct choice for on-premises automation because it provides non-interactive authentication to Azure AD without storing a password in scripts or configuration files. The certificate is installed on the build server, and the service principal is assigned RBAC permissions (e.g., Contributor) on the target resource group, enabling ARM template deployments. This method is secure, supports automatic rotation, and is specifically designed for scenarios like a build server running outside Azure.

Why this answer

A service principal authenticated with a certificate provides a non-human credential that does not require a human password and is the strongest practical option for an on-premises build server that cannot use managed identities (which are Azure-resource-scoped) or device-based conditional access. Certificate-based authentication for service principals uses asymmetric cryptography (X.509 certificates) with a private key stored securely on the build server, offering higher security than a client secret and meeting the requirement to avoid human account passwords.

Exam trap

The trap here is that candidates often confuse managed identities (which are Azure-only) with service principals, assuming managed identities can be used for on-premises resources, but managed identities require an Azure resource context and cannot be assigned to non-Azure machines.

Why the other options are wrong

A

Managed identities are Azure-resident and cannot be assigned to an on-premises build server; they only work for Azure resources like VMs or App Services.

C

Managed identities cannot be assigned to on-premises servers; they are only available for Azure resources like VMs or App Services. The build server is outside Azure, so a managed identity cannot be used.

D

Resource locks prevent accidental deletion or modification of resources but do not provide any authentication or authorization mechanism for deploying ARM templates. They cannot replace a credential for automation.

When would these options actually be correct?

A

A question where the build server is an Azure VM (e.g., Azure DevOps self-hosted agent on an Azure VM) and the requirement is to deploy ARM templates without managing credentials, with conditional access available.

C

If the build server were an Azure VM (or other Azure resource) and the requirement was to deploy ARM templates without storing credentials, a system-assigned managed identity would be the correct answer, as it provides an automatically managed identity tied to that resource.

D

An administrator needs to prevent accidental deletion of a critical resource group that contains production virtual machines. A resource lock (e.g., CanNotDelete) should be applied to the resource group to protect it from unintended changes.

Why candidates pick the wrong answer

A

Candidates may think managed identities are the simplest non-human credential option and overlook the on-premises constraint, assuming they can be used anywhere.

C

Candidates may think managed identities are the strongest non-human credential option and overlook the on-premises constraint, assuming they can be used anywhere like service principals.

D

Candidates may confuse resource locks with access control or think they can secure deployments by locking resources, misunderstanding that locks do not authenticate or authorize the deployment process itself.

673
MCQhard

Traffic from VM-App01 is unexpectedly reaching the internet through a network virtual appliance. You need to determine which route is currently applied to the virtual machine network interface. Which Azure tool should you use?

A.Effective routes for the network interface
B.NSG flow logs
C.Azure Advisor recommendations
D.Diagnostic settings for the activity log
AnswerA

Effective routes for the network interface display the complete, evaluated routing table applied to app01's NIC, including system routes, BGP routes, and any user-defined routes (UDRs) from the subnet. Because unexpected internet traffic is a data-plane forwarding problem, this view directly reveals which 0.0.0.0/0 next-hop rule is active and whether a UDR's next hop is valid or has fallen back to the system internet route. Checking effective routes is the definitive way to confirm the actual path chosen for outbound traffic.

Why this answer

Effective routes for the network interface show the actual routes applied to a VM's NIC, including system routes, BGP routes, and user-defined routes (UDRs). Since traffic is unexpectedly reaching the internet through an NVA, you need to verify which route (e.g., a UDR with next hop type VirtualAppliance) is currently active. This tool directly displays the effective route table for the specific NIC, allowing you to identify the misconfigured route.

Exam trap

The trap here is that candidates often confuse network security group (NSG) flow logs with routing diagnostics, but NSG flow logs only show traffic filtering decisions, not the path traffic takes based on routes.

Why the other options are wrong

B

NSG flow logs show traffic allowed or denied by network security groups, but they do not reveal which route (e.g., user-defined route) is applied to a network interface. The question asks for the currently applied route, not traffic flow logs.

C

Azure Advisor provides recommendations for best practices (e.g., cost, security, reliability), but it does not show the actual applied routes on a network interface. To determine which route is currently applied, you need to view effective routes, which are specific to the NIC.

D

Diagnostic settings for the activity log capture control-plane operations (e.g., resource creation or deletion), not data-plane traffic routing. They cannot show which route is applied to a VM's network interface.

When would these options actually be correct?

B

When you need to analyze network traffic patterns to identify whether traffic is being allowed or blocked by NSG rules, or to troubleshoot connectivity issues related to NSG rules. For example: 'Users report that VM-App01 cannot connect to the internet. Which tool should you use to see if traffic is being denied by an NSG?'

C

You need to identify if a virtual machine is missing a critical security update or has a configuration that could lead to a security vulnerability. Azure Advisor would analyze the VM's configuration and provide security recommendations.

D

You need to audit who deleted a virtual network or changed a route table. Diagnostic settings for the activity log would capture these management events and send them to a Log Analytics workspace or storage account.

Why candidates pick the wrong answer

B

Candidates may confuse NSG flow logs with route analysis because both involve network troubleshooting, and flow logs provide detailed traffic data that might indirectly hint at routing issues, but they do not show the effective route table.

C

Candidates may think Azure Advisor can diagnose network routing issues because it offers recommendations for various Azure resources, but it does not provide real-time routing information.

D

Candidates may confuse 'diagnostic settings' with network diagnostics, or think activity logs include all network events, not realizing they only cover management operations.

674
MCQeasy

A web app running on an Azure VM must read files from Azure Blob Storage without storing any passwords, secrets, or access keys on the VM. The identity should be tied to that VM and removed automatically if the VM is deleted. What should you enable?

A.A system-assigned managed identity
B.A shared storage account key in the application settings
C.A user account with a local password on the VM
D.A service endpoint on the VM subnet
AnswerA

A system-assigned managed identity is created for one Azure resource, such as a VM, and its lifecycle is tied to that resource. The app can use Azure AD-based authentication to access Blob Storage without storing secrets on the VM. If the VM is deleted, the identity is also removed, which matches the requirement exactly. This is the preferred approach for credential-free access when only one VM needs the identity.

Why this answer

A system-assigned managed identity is the correct choice because it creates an identity in Azure AD that is tied directly to the lifecycle of the VM. When the VM is deleted, the identity is automatically removed. The VM can use this identity to authenticate to Azure Blob Storage via Azure AD without storing any credentials on the VM, using the Azure Instance Metadata Service (IMDS) to obtain tokens.

Exam trap

The trap here is that candidates often confuse service endpoints (which only provide network-level access control) with managed identities (which provide identity-based authentication), leading them to select option D thinking it enables secure access without credentials.

Why the other options are wrong

B

A shared storage account key is a static secret that must be stored on the VM, violating the requirement to avoid storing passwords or keys. It also persists beyond the VM's lifecycle, so it is not automatically removed when the VM is deleted.

C

A user account with a local password on the VM would require storing credentials on the VM, which violates the requirement to avoid storing passwords or secrets. Additionally, it is not automatically removed when the VM is deleted.

D

A service endpoint on the VM subnet secures traffic to Azure Storage but does not provide identity-based access; it still requires a shared key or SAS token for authentication, which violates the requirement to avoid storing secrets on the VM.

When would these options actually be correct?

B

In a scenario where an application needs to access Blob Storage with full account-level access and the security policy allows storing keys in a secure configuration store (e.g., Azure Key Vault) or the application is not tied to a specific VM identity, a shared key might be used.

C

If the question required interactive login to the VM for administrative tasks (e.g., RDP or SSH) and did not mention avoiding stored credentials, enabling a local user account with a password would be appropriate.

D

When the question asks for a method to restrict access to Azure Storage from only a specific virtual network subnet, without requiring identity-based authentication, enabling a service endpoint on that subnet would be correct.

Why candidates pick the wrong answer

B

Candidates may think using a storage account key is a straightforward way to grant access, overlooking the requirement to avoid storing secrets on the VM and the need for automatic identity removal.

C

Candidates may think that a user account can be used to authenticate to Azure Blob Storage via some mechanism, or they may confuse identity management with local user accounts.

D

Candidates may confuse service endpoints with managed identities, thinking that securing the network path eliminates the need for credentials, but service endpoints do not grant access permissions—they only enforce network-level restrictions.

675
MCQmedium

A subnet is associated with a NAT gateway, but outbound traffic from the VMs still leaves through a network virtual appliance because the subnet has a user-defined route for 0.0.0.0/0 with next hop type Virtual appliance. The workload must use the NAT gateway for internet-bound traffic while keeping more specific routes intact. What should the administrator change?

A.Disable the subnet's network security group so the NAT gateway can take effect.
B.Remove the 0.0.0.0/0 user-defined route from the subnet route table.
C.Enable gateway route propagation on the route table.
D.Attach a public IP address to each virtual machine NIC.
AnswerB

A default UDR to a virtual appliance overrides the system default route, so the NAT gateway never becomes the effective internet egress path. Removing that default route restores normal outbound routing, and the NAT gateway can then provide the public source IP for internet-bound traffic. More specific UDRs for private prefixes can remain in place.

Why this answer

The NAT gateway is designed to provide outbound connectivity for VMs in the subnet, but a user-defined route (UDR) for 0.0.0.0/0 with next hop type Virtual appliance overrides the default route to the NAT gateway. By removing that UDR, the subnet's default route reverts to the system route, which directs internet-bound traffic to the NAT gateway's public IP. More specific routes (e.g., to on-premises networks) remain intact because they are not affected by the removal of the 0.0.0.0/0 route.

Exam trap

The trap here is that candidates often think a NAT gateway requires a UDR to function, when in fact the NAT gateway works via the system default route and a UDR for 0.0.0.0/0 with a different next hop type will override it, breaking the NAT gateway's intended behavior.

Why the other options are wrong

A

Disabling the network security group does not affect routing; the NAT gateway is bypassed because the 0.0.0.0/0 UDR with next hop Virtual Appliance overrides the default route to the NAT gateway. NSGs control traffic filtering, not routing.

C

Enabling gateway route propagation adds routes from a VPN gateway or ExpressRoute to the route table, but it does not override the existing 0.0.0.0/0 UDR. The NAT gateway still cannot take effect because the UDR with next hop Virtual appliance remains the preferred route for internet-bound traffic.

D

Attaching a public IP to each VM NIC would bypass the NAT gateway and the network virtual appliance, but the requirement is to use the NAT gateway for internet-bound traffic while keeping more specific routes intact. This option does not address the conflicting 0.0.0.0/0 route that directs traffic to the virtual appliance.

When would these options actually be correct?

A

If a subnet's NSG is blocking outbound traffic that should be allowed through a NAT gateway, and the routing is correctly configured to use the NAT gateway, then disabling or modifying the NSG rules could resolve connectivity issues.

C

In a scenario where a subnet needs to learn on-premises routes via a VPN gateway or ExpressRoute, and the route table does not have a conflicting 0.0.0.0/0 UDR, enabling gateway route propagation would allow those routes to be added automatically.

D

In a scenario where a VM needs direct outbound internet access without going through a NAT gateway or virtual appliance, and the subnet has no conflicting routes, attaching a public IP to the NIC would be correct. For example, if the requirement is to allow a specific VM to have its own public IP for inbound connections while other VMs use a NAT gateway.

Why candidates pick the wrong answer

A

Candidates may confuse the roles of NSGs and route tables, thinking that NSGs can override routing decisions or that disabling security will force traffic through the NAT gateway.

C

Candidates may think that enabling route propagation will allow the NAT gateway's default route to be learned or that it will override the UDR, misunderstanding that gateway propagation only adds routes from a gateway and does not remove existing UDRs.

D

Candidates may think that giving each VM a public IP is a straightforward way to enable outbound internet access, overlooking that the existing route table still overrides the NAT gateway and that the question explicitly requires using the NAT gateway.

Page 8

Page 9 of 14

Page 10