Microsoft AZ-104 (Microsoft Azure Administrator) Practice Test 23

Question 220

A web application needs deployment safety without a long maintenance outage. The architect has defined distinct requirements for systems A and B. A needs to keep an environment-specific application setting with its slot during swap; B needs to send a selected fraction of production traffic to a nonproduction deployment slot. Which proposed pairing is technically aligned?

  1. First target: Traffic routing to a slot; second target: Sticky slot setting.
  2. First target: Deployment slot; second target: Traffic routing to a slot.
  3. First target: Sticky slot setting; second target: Deployment slot.
  4. First target: Sticky slot setting; second target: Traffic routing to a slot.

Explanation

Correct Answer

D:

The A setting is right: Sticky slot setting supplies the ability to keep an environment-specific application setting with its slot during swap; Deployment-slot settings are marked sticky so secrets or endpoint values remain associated with their intended slot; b is correctly mapped to Traffic routing to a slot; Routing percentages enable controlled validation of a candidate release without a full production swap.

Incorrect Answers

A:

The A mapping to Traffic routing to a slot misses the required goal to keep an environment-specific application setting with its slot during swap; Routing percentages enable controlled validation of a candidate release without a full production swap; it addresses send a selected fraction of production traffic to a nonproduction deployment slot instead; the B selection is incorrect for the need to send a selected fraction of production traffic to a nonproduction deployment slot: Sticky slot setting serves to keep an environment-specific application setting with its slot during swap; Deployment-slot settings are marked sticky so secrets or endpoint values remain associated with their intended slot.

B:

A: Deployment slot is meant to create an additional live App Service deployment endpoint for staging releases, not to keep an environment-specific application setting with its slot during swap; Slots run in the same plan and let teams validate a version before swapping it into production, in eligible tiers; the B setting is right: Traffic routing to a slot supplies the ability to send a selected fraction of production traffic to a nonproduction deployment slot; Routing percentages enable controlled validation of a candidate release without a full production swap.

C:

At A, Sticky slot setting is appropriate; Deployment-slot settings are marked sticky so secrets or endpoint values remain associated with their intended slot; b calls for a different mechanism to send a selected fraction of production traffic to a nonproduction deployment slot; Deployment slot instead supports the action to create an additional live App Service deployment endpoint for staging releases; Slots run in the same plan and let teams validate a version before swapping it into production, in eligible tiers.

Question 221

A cloud engineering team is maintaining modular Bicep definitions. The deployment owner requests a capability to reference an already deployed Azure resource without declaring a new deployment of it. What satisfies the requirement?

  1. Reapply VM state
  2. Bicep module
  3. Bicep existing keyword
  4. Bicep param declaration

Explanation

Correct Answer

C:

The requested operation is to reference an already deployed Azure resource without declaring a new deployment of it; Bicep existing keyword provides this functionality: The existing keyword provides a symbolic reference to a known resource for properties or relationships; it does not recreate the referenced object.

Incorrect Answers

A:

Reapply VM state would be used to reissue the VM's configuration and extensions to the underlying Azure host; Reapply asks Azure to apply the stored VM model again and can help with provisioning-state problems without a deliberate size change, but the question asks how to reference an already deployed Azure resource without declaring a new deployment of it.

B:

Bicep module serves to reuse another Bicep file as a parameterized deployment unit, whereas this case requires the action to reference an already deployed Azure resource without declaring a new deployment of it; A module encapsulates child resource declarations and outputs; it is not the same as marking an already deployed resource as existing.

D:

Bicep param declaration is designed to expose a deployment-time input with a type and optional default, not to reference an already deployed Azure resource without declaring a new deployment of it in this case; A param supplies environment-specific values into the Bicep file, whereas a var is computed within the file.

Question 222

An incident response team is selecting a corrective VM action with a specific scope. One target has an acceptance criterion to change the Azure compute size to increase or decrease available vCPU and memory. A different target has a criterion to move a VM to a different Azure host when host-specific issues are suspected. Which two choices meet these criteria in sequence?

  1. First target: Redeploy VM; second target: Resize VM.
  2. First target: Resize VM; second target: Redeploy VM.
  3. First target: Restart VM; second target: Redeploy VM.
  4. First target: Reapply VM state; second target: Redeploy VM.

Explanation

Correct Answer

B:

The A setting is right: Resize VM supplies the ability to change the Azure compute size to increase or decrease available vCPU and memory; Resizing changes the VM SKU and may require deallocation or availability of capacity; it does not expand guest partitions automatically; b is correctly mapped to Redeploy VM; Redeploy recreates host placement while preserving managed OS and data disks; temporary disk contents are not durable.

Incorrect Answers

A:

At A, Redeploy VM is mismatched; Redeploy recreates host placement while preserving managed OS and data disks; temporary disk contents are not durable; the requested need is to change the Azure compute size to increase or decrease available vCPU and memory; b calls for a different mechanism to move a VM to a different Azure host when host-specific issues are suspected; Resize VM instead supports the action to change the Azure compute size to increase or decrease available vCPU and memory; Resizing changes the VM SKU and may require deallocation or availability of capacity; it does not expand guest partitions automatically.

C:

A calls for a different mechanism to change the Azure compute size to increase or decrease available vCPU and memory; Restart VM instead supports the action to reboot the guest environment without intentionally changing compute SKU; Restart initiates a power cycle of the current VM and does not address a persistent host placement or resource sizing mismatch; b is correctly mapped to Redeploy VM; Redeploy recreates host placement while preserving managed OS and data disks; temporary disk contents are not durable.

D:

For A, the proposed Reapply VM state handles reissue the VM's configuration and extensions to the underlying Azure host, which is not the requested change the Azure compute size to increase or decrease available vCPU and memory outcome; Reapply asks Azure to apply the stored VM model again and can help with provisioning-state problems without a deliberate size change; b is correctly mapped to Redeploy VM; Redeploy recreates host placement while preserving managed OS and data disks; temporary disk contents are not durable.

Question 223

A storage-connected application must choose a suitable path to a managed Azure service. A rollout covers two separately managed targets: the first must select the correct service subresource, such as blob or file, when creating a private link connection, and the second must secure a supported PaaS public endpoint to specific virtual-network subnets. Which ordered configuration is suitable?

  1. For A, configure Service endpoint; for B, configure Private endpoint target subresource.
  2. For A, configure Private endpoint subnet network policies; for B, configure Service endpoint.
  3. For A, configure Private endpoint target subresource; for B, configure PaaS firewall rule.
  4. For A, configure Private endpoint target subresource; for B, configure Service endpoint.

Explanation

Correct Answer

D:

A is correctly mapped to Private endpoint target subresource; The target subresource determines which part of a Private Link service the endpoint reaches; a blob subresource connection does not by itself cover a separate file endpoint; the B choice, Service endpoint, fits the configured outcome; Service endpoints extend subnet identity to a service and retain the service's public endpoint, unlike Private Link private IP access.

Incorrect Answers

A:

A: Service endpoint is meant to secure a supported PaaS public endpoint to specific virtual-network subnets, not to select the correct service subresource, such as blob or file, when creating a private link connection; Service endpoints extend subnet identity to a service and retain the service's public endpoint, unlike Private Link private IP access; the B mapping to Private endpoint target subresource misses the required goal to secure a supported PaaS public endpoint to specific virtual-network subnets; The target subresource determines which part of a Private Link service the endpoint reaches; a blob subresource connection does not by itself cover a separate file endpoint; it addresses select the correct service subresource, such as blob or file, when creating a private link connection instead.

B:

At A, Private endpoint subnet network policies is mismatched; Private endpoint subnet network policies govern whether NSG or UDR evaluation can apply to private endpoints; the setting does not itself add rules or routes; the requested need is to select the correct service subresource, such as blob or file, when creating a private link connection; the B choice, Service endpoint, fits the configured outcome; Service endpoints extend subnet identity to a service and retain the service's public endpoint, unlike Private Link private IP access.

C:

The A setting is right: Private endpoint target subresource supplies the ability to select the correct service subresource, such as blob or file, when creating a private link connection; The target subresource determines which part of a Private Link service the endpoint reaches; a blob subresource connection does not by itself cover a separate file endpoint; the B mapping to PaaS firewall rule misses the required goal to secure a supported PaaS public endpoint to specific virtual-network subnets; Service firewall rules limit connection sources to configured paths but do not provide client identity or private endpoint creation; it addresses allow specified networks or IP ranges to reach a service's authorized endpoint instead.

Question 224

An analytics division manages blob datasets with sharply different access profiles. During acceptance testing, the operator must minimize capacity charges for long-lived data that can tolerate offline rehydration. Identify the appropriate Azure mechanism.

  1. Customer-managed encryption key
  2. Hot access tier
  3. Cool access tier
  4. Archive access tier

Explanation

Correct Answer

D:

The requested operation is to minimize capacity charges for long-lived data that can tolerate offline rehydration; Archive access tier provides this functionality: Archive keeps blobs offline for normal reads; rehydration into an online tier is required before content can be retrieved.

Incorrect Answers

A:

The proposed Customer-managed encryption key addresses the separate function to control the encryption key through supported Azure Key Vault or Managed HSM integration; A customer-managed key lets an organization manage key access and rotation prerequisites; loss of key availability can disrupt storage operations, which does not meet the stated need to minimize capacity charges for long-lived data that can tolerate offline rehydration.

B:

Hot access tier would be used to store frequently read online blobs with lower access charges and higher storage charges; Hot is designed for active online blob data; it generally trades higher capacity cost for lower access cost than cooler tiers, but the question asks how to minimize capacity charges for long-lived data that can tolerate offline rehydration.

C:

Cool access tier serves to retain online blobs read infrequently while accepting cooler-tier retrieval economics, whereas this case requires the action to minimize capacity charges for long-lived data that can tolerate offline rehydration; Cool stays online but has lower capacity pricing and access and minimum-retention considerations compared with Hot.

Question 225

A systems administrator is designing virtual machine availability across failures. The deployment owner requests a capability to spread supported VMs across physically separate zones in one region. What satisfies the requirement?

  1. Availability zone placement
  2. Virtual Machine Scale Set
  3. Availability set placement
  4. Template variable

Explanation

Correct Answer

A:

To accomplish the specified task to spread supported VMs across physically separate zones in one region, use Availability zone placement; Availability zones isolate datacenter failure domains and can protect distributed workloads from a single zone failure.

Incorrect Answers

B:

Virtual Machine Scale Set serves to manage multiple related VM instances with coordinated provisioning and optional autoscale, whereas this case requires the action to spread supported VMs across physically separate zones in one region; Scale sets simplify homogeneous or flexible instance fleet operations; they are not a substitute for backup of application data.

C:

The request to spread supported VMs across physically separate zones in one region is not fulfilled by Availability set placement; its intended role is to place VMs across fault and update domains within a datacenter-level availability arrangement: Availability sets separate fault and planned maintenance domains but do not distribute machines across geographic regions.

D:

Template variable is designed to calculate or store an intermediate value within the template, not to spread supported VMs across physically separate zones in one region in this case; Variables simplify expressions derived inside the deployment and are not values that operators must pass at deployment time.

Question 226

Operations staff are assessing which Azure role grants the intended storage access. To close separate operations tickets, the operator must first inspect the storage-account resource configuration in Azure Resource Manager and, on another resource, change a storage account's management configuration without relying on its blob data-role grant. Which implementation plan satisfies both?

  1. Implement Reader role on storage account on the first target and Storage Account Contributor on the second.
  2. Implement Reader role on storage account on the first target and Storage Blob Data Reader on the second.
  3. Implement Storage Blob Data Reader on the first target and Storage Account Contributor on the second.
  4. Implement Storage Blob Data Reader on the first target and Storage Blob Data Contributor on the second.
  5. Implement Storage Account Contributor on the first target and Reader role on storage account on the second.

Explanation

Correct Answer

A:

For A, the selected Reader role on storage account achieves the stated result to inspect the storage-account resource configuration in Azure Resource Manager; The management-plane Reader role exposes resource metadata but does not intrinsically authorize reading private blob contents; at B, Storage Account Contributor is appropriate; This role manages storage-account resources; using account keys obtained through permissions is different from direct Microsoft Entra blob data authorization.

Incorrect Answers

B:

The A choice, Reader role on storage account, fits the configured outcome; The management-plane Reader role exposes resource metadata but does not intrinsically authorize reading private blob contents; at B, Storage Blob Data Reader is mismatched; The Blob Data Reader role grants blob data-plane read permissions; Azure resource Reader alone does not provide the same payload access; the requested need is to change a storage account's management configuration without relying on its blob data-role grant.

C:

A: Storage Blob Data Reader is meant to allow read access to blob payloads using Microsoft Entra authorization, not to inspect the storage-account resource configuration in Azure Resource Manager; The Blob Data Reader role grants blob data-plane read permissions; Azure resource Reader alone does not provide the same payload access; the B setting is right: Storage Account Contributor supplies the ability to change a storage account's management configuration without relying on its blob data-role grant; This role manages storage-account resources; using account keys obtained through permissions is different from direct Microsoft Entra blob data authorization.

D:

At A, Storage Blob Data Reader is mismatched; The Blob Data Reader role grants blob data-plane read permissions; Azure resource Reader alone does not provide the same payload access; the requested need is to inspect the storage-account resource configuration in Azure Resource Manager; the B selection is incorrect for the need to change a storage account's management configuration without relying on its blob data-role grant: Storage Blob Data Contributor serves to let an application upload and delete blobs with Microsoft Entra authorization; This data role permits modifying blob data in scope; it does not mean the application can edit storage-account network or SKU settings.

E:

The A selection is incorrect for the need to inspect the storage-account resource configuration in Azure Resource Manager: Storage Account Contributor serves to change a storage account's management configuration without relying on its blob data-role grant; This role manages storage-account resources; using account keys obtained through permissions is different from direct Microsoft Entra blob data authorization; the B selection is incorrect for the need to change a storage account's management configuration without relying on its blob data-role grant: Reader role on storage account serves to inspect the storage-account resource configuration in Azure Resource Manager; The management-plane Reader role exposes resource metadata but does not intrinsically authorize reading private blob contents.

Question 227

A team wants to choose the right Azure execution platform for its container workload. A cloud governance checklist specifies (1) run a short-lived isolated container workload without managing VMs or a Kubernetes cluster; (2) host a web application packaged as a container with App Service deployment features. Select TWO items that belong in the configuration.

  1. Azure Container Instances
  2. Azure Kubernetes Service
  3. Azure Container Apps
  4. Azure App Service Web App for Containers

Explanation

Correct Answers

A:

Azure Container Instances is needed for the specified objective to run a short-lived isolated container workload without managing VMs or a Kubernetes cluster; ACI provides container groups as a service with configurable CPU and memory; it is often suited to jobs or simple tasks, making it one of the requested controls.

D:

Azure App Service Web App for Containers is needed for the specified objective to host a web application packaged as a container with App Service deployment features; Web App for Containers uses App Service plans, custom domains and web deployment mechanisms rather than Kubernetes cluster primitives, making it one of the requested controls.

Incorrect Answers

B:

Azure Kubernetes Service would instead operate a managed Kubernetes-based orchestration environment with Kubernetes APIs; AKS provides cluster-level Kubernetes orchestration and configuration, involving more platform-management responsibility than ACI, which is unrelated to the listed objectives for this item.

C:

Azure Container Apps is intended to run microservices or HTTP/event-driven containers with managed revisions and elastic scaling; Container Apps supplies managed app environments, ingress and scale rules without operating a Kubernetes control plane directly, so it would not implement any of these separate requested outcomes.

Question 228

The operations team wants remote VM management with different exposure constraints. A rollout covers two separately managed targets: the first must connect an individual remote administrator computer into an Azure virtual network, and the second must provide a directly reachable public address for a VM when its firewall permits inbound management. Which ordered configuration is suitable?

  1. On resource A use Point-to-site VPN; on resource B use Just-in-time VM access.
  2. On resource A use Direct VM public IP; on resource B use Point-to-site VPN.
  3. On resource A use Point-to-site VPN; on resource B use Azure Bastion.
  4. On resource A use Point-to-site VPN; on resource B use Direct VM public IP.

Explanation

Correct Answer

D:

At A, Point-to-site VPN is appropriate; P2S establishes a client VPN tunnel to Azure and can enable private-address management paths; it differs from site-to-site gateways; b is correctly mapped to Direct VM public IP; A public IP enables a network path from the internet but increases exposure and should be protected by NSG and authentication controls.

Incorrect Answers

A:

For A, the selected Point-to-site VPN achieves the stated result to connect an individual remote administrator computer into an Azure virtual network; P2S establishes a client VPN tunnel to Azure and can enable private-address management paths; it differs from site-to-site gateways; the B selection is incorrect for the need to provide a directly reachable public address for a VM when its firewall permits inbound management: Just-in-time VM access serves to open restricted management ports for an approved short period after a request; JIT network access limits inbound administrative exposure by managing temporary rules; the VM still needs an actual connection path.

B:

The A mapping to Direct VM public IP misses the required goal to connect an individual remote administrator computer into an Azure virtual network; A public IP enables a network path from the internet but increases exposure and should be protected by NSG and authentication controls; it addresses provide a directly reachable public address for a VM when its firewall permits inbound management instead; the B selection is incorrect for the need to provide a directly reachable public address for a VM when its firewall permits inbound management: Point-to-site VPN serves to connect an individual remote administrator computer into an Azure virtual network; P2S establishes a client VPN tunnel to Azure and can enable private-address management paths; it differs from site-to-site gateways.

C:

A: Point-to-site VPN meets the requirement to connect an individual remote administrator computer into an Azure virtual network; P2S establishes a client VPN tunnel to Azure and can enable private-address management paths; it differs from site-to-site gateways; the B selection is incorrect for the need to provide a directly reachable public address for a VM when its firewall permits inbound management: Azure Bastion serves to connect to a VM over RDP or SSH using a managed service without a public IP on the VM; Bastion provides browser or supported client-based connectivity through its dedicated deployment; it reduces direct VM internet exposure.

Question 229

Networking staff are connecting private DNS records to Azure workloads. An administrator must distinguish two functions during deployment. Function A must register eligible Azure VM records automatically in a linked private DNS zone; function B must send queries for a particular namespace to a designated authoritative or recursive resolver. Choose their correct respective features.

  1. A uses DNS conditional forwarding, whereas B uses Private endpoint DNS zone group.
  2. A uses DNS conditional forwarding, whereas B uses Auto-registration VNet link.
  3. A uses Private endpoint DNS zone group, whereas B uses Auto-registration VNet link.
  4. A uses Private DNS VNet link, whereas B uses DNS conditional forwarding.
  5. A uses Auto-registration VNet link, whereas B uses DNS conditional forwarding.
  6. A uses Auto-registration VNet link, whereas B uses Private endpoint DNS zone group.

Explanation

Correct Answer

E:

A is correctly mapped to Auto-registration VNet link; Auto-registration can populate VM DNS records for a supported linked VNet; it is not used to publish public internet zones; b: DNS conditional forwarding meets the requirement to send queries for a particular namespace to a designated authoritative or recursive resolver; Conditional forwarding directs queries to chosen DNS servers, supporting hybrid name resolution without turning the private zone into a public zone.

Incorrect Answers

A:

The A mapping to DNS conditional forwarding misses the required goal to register eligible Azure VM records automatically in a linked private DNS zone; Conditional forwarding directs queries to chosen DNS servers, supporting hybrid name resolution without turning the private zone into a public zone; it addresses send queries for a particular namespace to a designated authoritative or recursive resolver instead; b: Private endpoint DNS zone group is meant to associate a private endpoint with relevant private DNS zones for supported record management, not to send queries for a particular namespace to a designated authoritative or recursive resolver; DNS zone groups help maintain private endpoint DNS records as the endpoint changes; they complement endpoint connectivity.

B:

A: DNS conditional forwarding is meant to send queries for a particular namespace to a designated authoritative or recursive resolver, not to register eligible Azure VM records automatically in a linked private DNS zone; Conditional forwarding directs queries to chosen DNS servers, supporting hybrid name resolution without turning the private zone into a public zone; b: Auto-registration VNet link is meant to register eligible Azure VM records automatically in a linked private DNS zone, not to send queries for a particular namespace to a designated authoritative or recursive resolver; Auto-registration can populate VM DNS records for a supported linked VNet; it is not used to publish public internet zones.

C:

At A, Private endpoint DNS zone group is mismatched; DNS zone groups help maintain private endpoint DNS records as the endpoint changes; they complement endpoint connectivity; the requested need is to register eligible Azure VM records automatically in a linked private DNS zone; b: Auto-registration VNet link is meant to register eligible Azure VM records automatically in a linked private DNS zone, not to send queries for a particular namespace to a designated authoritative or recursive resolver; Auto-registration can populate VM DNS records for a supported linked VNet; it is not used to publish public internet zones.

D:

The A selection is incorrect for the need to register eligible Azure VM records automatically in a linked private DNS zone: Private DNS VNet link serves to make a private DNS zone resolvable from a selected virtual network; A VNet link enables DNS zone visibility for that network; links alone do not create service private endpoints; b: DNS conditional forwarding meets the requirement to send queries for a particular namespace to a designated authoritative or recursive resolver; Conditional forwarding directs queries to chosen DNS servers, supporting hybrid name resolution without turning the private zone into a public zone.

F:

For A, the selected Auto-registration VNet link achieves the stated result to register eligible Azure VM records automatically in a linked private DNS zone; Auto-registration can populate VM DNS records for a supported linked VNet; it is not used to publish public internet zones; b: Private endpoint DNS zone group is meant to associate a private endpoint with relevant private DNS zones for supported record management, not to send queries for a particular namespace to a designated authoritative or recursive resolver; DNS zone groups help maintain private endpoint DNS records as the endpoint changes; they complement endpoint connectivity.

Question 230

Azure resources already exist and governance needs a controlled corrective process. A rollout covers two separately managed targets: the first must authorize a modifying policy assignment to create or update required resources, and the second must inspect which evaluated resources satisfy the assigned rule. Which ordered configuration is suitable?

  1. For A, configure Policy assignment managed identity; for B, configure Policy evaluation scan.
  2. For A, configure Policy evaluation scan; for B, configure Policy compliance state.
  3. For A, configure Policy assignment managed identity; for B, configure Policy compliance state.
  4. For A, configure Policy compliance state; for B, configure Policy assignment managed identity.

Explanation

Correct Answer

C:

The A setting is right: Policy assignment managed identity supplies the ability to authorize a modifying policy assignment to create or update required resources; Managed identity permissions let deployIfNotExists or modify remediation perform writes; a compliance view alone supplies no authorization; at B, Policy compliance state is appropriate; The compliance state reports evaluated results and reasons; it is observational and does not itself implement missing configurations.

Incorrect Answers

A:

A: Policy assignment managed identity meets the requirement to authorize a modifying policy assignment to create or update required resources; Managed identity permissions let deployIfNotExists or modify remediation perform writes; a compliance view alone supplies no authorization; at B, Policy evaluation scan is mismatched; A compliance scan refreshes evaluation results; remediation of configurable properties remains a separate action; the requested need is to inspect which evaluated resources satisfy the assigned rule.

B:

At A, Policy evaluation scan is mismatched; A compliance scan refreshes evaluation results; remediation of configurable properties remains a separate action; the requested need is to authorize a modifying policy assignment to create or update required resources; at B, Policy compliance state is appropriate; The compliance state reports evaluated results and reasons; it is observational and does not itself implement missing configurations.

D:

A calls for a different mechanism to authorize a modifying policy assignment to create or update required resources; Policy compliance state instead supports the action to inspect which evaluated resources satisfy the assigned rule; The compliance state reports evaluated results and reasons; it is observational and does not itself implement missing configurations; at B, Policy assignment managed identity is mismatched; Managed identity permissions let deployIfNotExists or modify remediation perform writes; a compliance view alone supplies no authorization; the requested need is to inspect which evaluated resources satisfy the assigned rule.

Microsoft Azure Administrator (AZ-104) Practice Tests