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

Question 500

Cloud governance staff want distinct responses to noncompliant deployments. The deployment checklist assigns one action to resource A and another to resource B: record noncompliance while still permitting the resource operation; change supported resource properties such as tags to meet a policy rule. Which mapping should be used?

  1. Implement Deny policy effect on the first target and DeployIfNotExists effect on the second.
  2. Implement Modify policy effect on the first target and Audit policy effect on the second.
  3. Implement Audit policy effect on the first target and Modify policy effect on the second.
  4. Implement Deny policy effect on the first target and Modify policy effect on the second.
  5. Implement Audit policy effect on the first target and DeployIfNotExists effect on the second.

Explanation

Correct Answer

C:

For A, the selected Audit policy effect achieves the stated result to record noncompliance while still permitting the resource operation; Audit marks matching resources noncompliant without blocking creation; remediation must be handled separately if configuration is to change; the B setting is right: Modify policy effect supplies the ability to change supported resource properties such as tags to meet a policy rule; Modify can add or alter supported properties during requests and remediate eligible resources when identities and remediation prerequisites are configured.

Incorrect Answers

A:

The A selection is incorrect for the need to record noncompliance while still permitting the resource operation: Deny policy effect serves to block a resource creation or update that violates a specified rule; Deny evaluates the applicable request and rejects noncompliant changes; it is preventive rather than a merely informational compliance record; the B selection is incorrect for the need to change supported resource properties such as tags to meet a policy rule: DeployIfNotExists effect serves to deploy a related resource or configuration when an evaluated prerequisite is missing; DeployIfNotExists evaluates a related resource and can trigger a deployment; it requires a properly authorized managed identity for remediation.

B:

A calls for a different mechanism to record noncompliance while still permitting the resource operation; Modify policy effect instead supports the action to change supported resource properties such as tags to meet a policy rule; Modify can add or alter supported properties during requests and remediate eligible resources when identities and remediation prerequisites are configured; the B selection is incorrect for the need to change supported resource properties such as tags to meet a policy rule: Audit policy effect serves to record noncompliance while still permitting the resource operation; Audit marks matching resources noncompliant without blocking creation; remediation must be handled separately if configuration is to change.

D:

The A mapping to Deny policy effect misses the required goal to record noncompliance while still permitting the resource operation; Deny evaluates the applicable request and rejects noncompliant changes; it is preventive rather than a merely informational compliance record; it addresses block a resource creation or update that violates a specified rule instead; the B setting is right: Modify policy effect supplies the ability to change supported resource properties such as tags to meet a policy rule; Modify can add or alter supported properties during requests and remediate eligible resources when identities and remediation prerequisites are configured.

E:

A: Audit policy effect meets the requirement to record noncompliance while still permitting the resource operation; Audit marks matching resources noncompliant without blocking creation; remediation must be handled separately if configuration is to change; the B selection is incorrect for the need to change supported resource properties such as tags to meet a policy rule: DeployIfNotExists effect serves to deploy a related resource or configuration when an evaluated prerequisite is missing; DeployIfNotExists evaluates a related resource and can trigger a deployment; it requires a properly authorized managed identity for remediation.

Question 501

A public-facing application has several domain-record requirements. The team is configuring two independent resources. Resource A needs to publish a text-based proof token for domain ownership validation; resource B needs to delegate authoritative name-server responsibility for a DNS zone or subdomain. Which assignment of capabilities meets both goals?

  1. Implement A record on the first target and TXT record on the second.
  2. Implement NS record on the first target and TXT record on the second.
  3. Implement TXT record on the first target and NS record on the second.
  4. Implement TXT record on the first target and A record on the second.
  5. Implement A record on the first target and NS record on the second.

Explanation

Correct Answer

C:

A: TXT record meets the requirement to publish a text-based proof token for domain ownership validation; TXT records carry verification text and other metadata; they do not direct browsers to a web server IP; b: NS record meets the requirement to delegate authoritative name-server responsibility for a DNS zone or subdomain; NS records identify authoritative DNS servers so resolvers know where to ask; they are not address records for applications.

Incorrect Answers

A:

For A, the proposed A record handles resolve a hostname to a particular IPv4 address, which is not the requested publish a text-based proof token for domain ownership validation outcome; An A resource record maps a name to an IPv4 value and does not alias the name to another hostname; b: TXT record is meant to publish a text-based proof token for domain ownership validation, not to delegate authoritative name-server responsibility for a DNS zone or subdomain; TXT records carry verification text and other metadata; they do not direct browsers to a web server IP.

B:

The A mapping to NS record misses the required goal to publish a text-based proof token for domain ownership validation; NS records identify authoritative DNS servers so resolvers know where to ask; they are not address records for applications; it addresses delegate authoritative name-server responsibility for a DNS zone or subdomain instead; b: TXT record is meant to publish a text-based proof token for domain ownership validation, not to delegate authoritative name-server responsibility for a DNS zone or subdomain; TXT records carry verification text and other metadata; they do not direct browsers to a web server IP.

D:

At A, TXT record is appropriate; TXT records carry verification text and other metadata; they do not direct browsers to a web server IP; b: A record is meant to resolve a hostname to a particular IPv4 address, not to delegate authoritative name-server responsibility for a DNS zone or subdomain; An A resource record maps a name to an IPv4 value and does not alias the name to another hostname.

E:

The A selection is incorrect for the need to publish a text-based proof token for domain ownership validation: A record serves to resolve a hostname to a particular IPv4 address; An A resource record maps a name to an IPv4 value and does not alias the name to another hostname; b: NS record meets the requirement to delegate authoritative name-server responsibility for a DNS zone or subdomain; NS records identify authoritative DNS servers so resolvers know where to ask; they are not address records for applications.

Question 502

An operations center wants a ready-made resource-specific monitoring experience. A migration preflight documents two outcomes on different targets: compare capacity, transaction and availability trends across storage accounts; and review health and topology or monitoring information for supported Azure network resources. Which plan implements these in order?

  1. A uses Network Insights, whereas B uses Container Insights.
  2. A uses Container Insights, whereas B uses Storage Insights.
  3. A uses Network Insights, whereas B uses Storage Insights.
  4. A uses Container Insights, whereas B uses Network Insights.
  5. A uses Application Insights Application Map, whereas B uses Network Insights.
  6. A uses Storage Insights, whereas B uses Network Insights.

Explanation

Correct Answer

F:

A: Storage Insights meets the requirement to compare capacity, transaction and availability trends across storage accounts; Storage Insights consolidates Azure Monitor storage metrics and related data; it does not configure blob lifecycle policies; the B setting is right: Network Insights supplies the ability to review health and topology or monitoring information for supported Azure network resources; Network Insights presents network resource visibility and diagnostics rather than updating a subnet address prefix.

Incorrect Answers

A:

At A, Network Insights is mismatched; Network Insights presents network resource visibility and diagnostics rather than updating a subnet address prefix; the requested need is to compare capacity, transaction and availability trends across storage accounts; at B, Container Insights is mismatched; Container Insights provides cluster and container telemetry where supported; it is not a generic VM boot screenshot tool; the requested need is to review health and topology or monitoring information for supported Azure network resources.

B:

The A selection is incorrect for the need to compare capacity, transaction and availability trends across storage accounts: Container Insights serves to monitor supported Kubernetes/container platform performance and operational health; Container Insights provides cluster and container telemetry where supported; it is not a generic VM boot screenshot tool; at B, Storage Insights is mismatched; Storage Insights consolidates Azure Monitor storage metrics and related data; it does not configure blob lifecycle policies; the requested need is to review health and topology or monitoring information for supported Azure network resources.

C:

A calls for a different mechanism to compare capacity, transaction and availability trends across storage accounts; Network Insights instead supports the action to review health and topology or monitoring information for supported Azure network resources; Network Insights presents network resource visibility and diagnostics rather than updating a subnet address prefix; at B, Storage Insights is mismatched; Storage Insights consolidates Azure Monitor storage metrics and related data; it does not configure blob lifecycle policies; the requested need is to review health and topology or monitoring information for supported Azure network resources.

D:

For A, the proposed Container Insights handles monitor supported Kubernetes/container platform performance and operational health, which is not the requested compare capacity, transaction and availability trends across storage accounts outcome; Container Insights provides cluster and container telemetry where supported; it is not a generic VM boot screenshot tool; at B, Network Insights is appropriate; Network Insights presents network resource visibility and diagnostics rather than updating a subnet address prefix.

E:

The A mapping to Application Insights Application Map misses the required goal to compare capacity, transaction and availability trends across storage accounts; Application Map uses available Application Insights dependency telemetry to show relationships and failure or performance hotspots; it is an application observability view, not a VNet topology graph; it addresses visualize the dependencies between instrumented application components and their external calls instead; at B, Network Insights is appropriate; Network Insights presents network resource visibility and diagnostics rather than updating a subnet address prefix.

Question 503

A platform department is reorganizing ownership of deployed Azure environments. Two design notes describe different behaviors: A should transfer supported resources to another resource group without changing the region; B should move supported workloads to another Azure region using an appropriate migration procedure. Which matched combination supports both behaviors?

  1. Task A → Resource move between resource groups; task B → Resource move between subscriptions.
  2. Task A → Resource move between resource groups; task B → Regional resource relocation.
  3. Task A → Regional resource relocation; task B → Resource move between resource groups.
  4. Task A → Subscription management-group change; task B → Resource move between subscriptions.
  5. Task A → Subscription management-group change; task B → Regional resource relocation.

Explanation

Correct Answer

B:

A: Resource move between resource groups meets the requirement to transfer supported resources to another resource group without changing the region; A resource-group move changes the management container while preserving location; move validation identifies unsupported dependencies; for B, the selected Regional resource relocation achieves the stated result to move supported workloads to another Azure region using an appropriate migration procedure; Changing a resource group or subscription is not a regional move; supported services need workload-specific migration or relocation tooling.

Incorrect Answers

A:

The A choice, Resource move between resource groups, fits the configured outcome; A resource-group move changes the management container while preserving location; move validation identifies unsupported dependencies; for B, the proposed Resource move between subscriptions handles transfer selected supported resources and dependencies into a destination resource group in another subscription, which is not the requested move supported workloads to another Azure region using an appropriate migration procedure outcome; Azure Resource Manager moves eligible resources between subscriptions in the same tenant, but does not move the resource-group object itself; the region stays the same.

C:

At A, Regional resource relocation is mismatched; Changing a resource group or subscription is not a regional move; supported services need workload-specific migration or relocation tooling; the requested need is to transfer supported resources to another resource group without changing the region; for B, the proposed Resource move between resource groups handles transfer supported resources to another resource group without changing the region, which is not the requested move supported workloads to another Azure region using an appropriate migration procedure outcome; A resource-group move changes the management container while preserving location; move validation identifies unsupported dependencies.

D:

The A selection is incorrect for the need to transfer supported resources to another resource group without changing the region: Subscription management-group change serves to place a subscription under a different governance parent without moving its resources; Changing the management-group parent changes inherited governance but leaves the subscription and its contained resource IDs in place; for B, the proposed Resource move between subscriptions handles transfer selected supported resources and dependencies into a destination resource group in another subscription, which is not the requested move supported workloads to another Azure region using an appropriate migration procedure outcome; Azure Resource Manager moves eligible resources between subscriptions in the same tenant, but does not move the resource-group object itself; the region stays the same.

E:

A calls for a different mechanism to transfer supported resources to another resource group without changing the region; Subscription management-group change instead supports the action to place a subscription under a different governance parent without moving its resources; Changing the management-group parent changes inherited governance but leaves the subscription and its contained resource IDs in place; the B choice, Regional resource relocation, fits the configured outcome; Changing a resource group or subscription is not a regional move; supported services need workload-specific migration or relocation tooling.

Question 504

A large tenant has a nonstandard least-privilege permission requirement. The team has documented a specific need: create an Azure management role with a deliberately chosen set of permitted actions. Which Azure setting addresses it?

  1. Resource move between subscriptions
  2. Role assignment condition
  3. Role assignment at resource scope
  4. Azure custom role definition

Explanation

Correct Answer

D:

To accomplish the specified task to create an Azure management role with a deliberately chosen set of permitted actions, use Azure custom role definition; Custom role definitions specify actions and assignable scopes; they still need assignments to principals before granting permissions.

Incorrect Answers

A:

Resource move between subscriptions is designed to transfer selected supported resources and dependencies into a destination resource group in another subscription, not to create an Azure management role with a deliberately chosen set of permitted actions in this case; Azure Resource Manager moves eligible resources between subscriptions in the same tenant, but does not move the resource-group object itself; the region stays the same.

B:

For the target required to create an Azure management role with a deliberately chosen set of permitted actions, Role assignment condition is the wrong control: it is used to limit eligible role assignment behavior with supported Azure ABAC conditions; Azure role assignment conditions can add constraints for supported data actions or role-assignment delegation scenarios; they are not a universal substitute for custom roles.

C:

The proposed Role assignment at resource scope addresses the separate function to keep an otherwise valid role from affecting sibling resources in the same resource group; Limiting assignment scope narrows where granted actions apply; changing scope does not modify the underlying role definition, which does not meet the stated need to create an Azure management role with a deliberately chosen set of permitted actions.

Question 505

A global business is planning contingency reads from geo-replicated data. The assigned administrator needs to permit reads against the secondary region while keeping LRS-based primary replication. Which Azure feature should be selected?

  1. User delegation SAS
  2. Storage account failover
  3. Storage account last sync time
  4. Read-access geo-redundant storage (RA-GRS)

Explanation

Correct Answer

D:

Selecting Read-access geo-redundant storage (RA-GRS) meets the requirement to permit reads against the secondary region while keeping LRS-based primary replication; RA-GRS exposes a secondary read endpoint in addition to geo replication; it does not make the asynchronous secondary writable.

Incorrect Answers

A:

User delegation SAS serves to issue a Blob Storage SAS signed using a Microsoft Entra user delegation key, whereas this case requires the action to permit reads against the secondary region while keeping LRS-based primary replication; A user delegation SAS uses Entra-based authorization instead of an account key and is preferred for supported blob scenarios.

B:

The request to permit reads against the secondary region while keeping LRS-based primary replication is not fulfilled by Storage account failover; its intended role is to promote the replicated secondary region to the new primary following a major outage when the account supports failover: Customer-managed account failover changes the primary write endpoint to the replicated secondary location on eligible geo-redundant accounts; some recent writes may be lost because geographic replication is asynchronous.

C:

Storage account last sync time is designed to estimate which primary-region writes are guaranteed to have reached a geo-replicated secondary before a possible failover, not to permit reads against the secondary region while keeping LRS-based primary replication in this case; The Last Sync Time property marks the latest guaranteed secondary-replication point for eligible geo-redundant accounts; later primary writes might not yet be present.

Question 506

Security architects are choosing at-rest encryption boundaries for storage data. A production change must supply a key with supported blob requests for encryption of specific operations. What is the appropriate control or resource?

  1. Microsoft-managed encryption keys
  2. Infrastructure encryption
  3. AzCopy
  4. Customer-provided encryption key

Explanation

Correct Answer

D:

Customer-provided encryption key addresses the request to supply a key with supported blob requests for encryption of specific operations: Customer-provided keys are passed on appropriate requests and are not stored by the storage service for later retrieval.

Incorrect Answers

A:

For the target required to supply a key with supported blob requests for encryption of specific operations, Microsoft-managed encryption keys is the wrong control: it is used to use platform-managed encryption keys for standard Storage Service Encryption; Azure Storage encrypts data at rest by default with Microsoft-managed keys; customers need not operate a key vault for this option.

B:

The proposed Infrastructure encryption addresses the separate function to add a second layer of encryption at the storage infrastructure level; Infrastructure encryption provides an additional independent encryption layer beyond service-level encryption when enabled for a supported account, which does not meet the stated need to supply a key with supported blob requests for encryption of specific operations.

C:

AzCopy would be used to script high-throughput transfers of blobs or files from command-line jobs; AzCopy uses efficient data transfer operations and can authenticate with SAS or supported Entra identities; it suits repeatable bulk-copy scripts, but the question asks how to supply a key with supported blob requests for encryption of specific operations.

Question 507

An application experiences changing traffic and resource pressure. One target has an acceptance criterion to increase per-instance CPU and memory by selecting a larger VM SKU. A different target has a criterion to adjust instance count when monitored measurements cross configured thresholds. Which two choices meet these criteria in sequence?

  1. First target: Vertical VM resize; second target: Horizontal VMSS scale out.
  2. First target: Vertical VM resize; second target: Metric-based autoscale profile.
  3. First target: Horizontal VMSS scale out; second target: Metric-based autoscale profile.
  4. First target: Metric-based autoscale profile; second target: Vertical VM resize.

Explanation

Correct Answer

B:

The A setting is right: Vertical VM resize supplies the ability to increase per-instance CPU and memory by selecting a larger VM SKU; Scaling up changes each instance's capacity and can require maintenance; it does not automatically create redundancy; the B choice, Metric-based autoscale profile, fits the configured outcome; Metric-based autoscale reacts to telemetry and cooldown windows, unlike fixed instance-count schedules.

Incorrect Answers

A:

At A, Vertical VM resize is appropriate; Scaling up changes each instance's capacity and can require maintenance; it does not automatically create redundancy; the B mapping to Horizontal VMSS scale out misses the required goal to adjust instance count when monitored measurements cross configured thresholds; Adding instances increases aggregate capacity when the workload is designed to distribute traffic across them; it addresses increase the count of application VM instances rather than individual VM size instead.

C:

A calls for a different mechanism to increase per-instance CPU and memory by selecting a larger VM SKU; Horizontal VMSS scale out instead supports the action to increase the count of application VM instances rather than individual VM size; Adding instances increases aggregate capacity when the workload is designed to distribute traffic across them; the B choice, Metric-based autoscale profile, fits the configured outcome; Metric-based autoscale reacts to telemetry and cooldown windows, unlike fixed instance-count schedules.

D:

For A, the proposed Metric-based autoscale profile handles adjust instance count when monitored measurements cross configured thresholds, which is not the requested increase per-instance CPU and memory by selecting a larger VM SKU outcome; Metric-based autoscale reacts to telemetry and cooldown windows, unlike fixed instance-count schedules; b: Vertical VM resize is meant to increase per-instance CPU and memory by selecting a larger VM SKU, not to adjust instance count when monitored measurements cross configured thresholds; Scaling up changes each instance's capacity and can require maintenance; it does not automatically create redundancy.

Question 508

The operations team wants remote VM management with different exposure constraints. A cloud governance checklist specifies (1) open restricted management ports for an approved short period after a request; (2) connect an individual remote administrator computer into an Azure virtual network; (3) provide a directly reachable public address for a VM when its firewall permits inbound management. Select THREE items that belong in the configuration.

  1. Point-to-site VPN
  2. Direct VM public IP
  3. Just-in-time VM access
  4. Azure Bastion

Explanation

Correct Answers

A:

The stated condition to connect an individual remote administrator computer into an Azure virtual network calls for Point-to-site VPN; P2S establishes a client VPN tunnel to Azure and can enable private-address management paths; it differs from site-to-site gateways, directly addressing that individual target.

B:

The stated condition to provide a directly reachable public address for a VM when its firewall permits inbound management calls for 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, directly addressing that individual target.

C:

For the target that must open restricted management ports for an approved short period after a request, Just-in-time VM access is a direct match because JIT network access limits inbound administrative exposure by managing temporary rules; the VM still needs an actual connection path, not a different configuration.

Incorrect Answers

D:

Azure Bastion would instead 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, which is unrelated to the listed objectives for this item.

Question 509

A build pipeline manages confidential images and deployment credentials. Before closing the task, the administrator must host private OCI and Docker-compatible container images for Azure deployments. Which selection is appropriate?

  1. App Service autoscale
  2. ACR Tasks
  3. Azure Container Registry
  4. Managed identity registry pull

Explanation

Correct Answer

C:

Azure Container Registry addresses the request to host private OCI and Docker-compatible container images for Azure deployments: ACR supplies a managed image repository with authentication and access control; it does not run the image as a compute workload.

Incorrect Answers

A:

The proposed App Service autoscale addresses the separate function to change worker count automatically based on supported metrics or a schedule; Autoscale uses monitoring conditions or schedules and is not equivalent to switching to a different price tier, which does not meet the stated need to host private OCI and Docker-compatible container images for Azure deployments.

B:

ACR Tasks would be used to build or update container images in managed registry workflows; ACR Tasks can run image builds and supported triggers; registering an image is distinct from deploying a runtime instance, but the question asks how to host private OCI and Docker-compatible container images for Azure deployments.

D:

The request to host private OCI and Docker-compatible container images for Azure deployments is not fulfilled by Managed identity registry pull; its intended role is to let a supported Azure workload pull a private image without a stored registry password: A managed identity with appropriate ACR permissions authenticates image pulls, reducing the need for embedded long-lived credentials.

Question 510

A help desk is preparing distinct account-management procedures. An administrator needs a feature for each of these individual outcomes: (1) provision many new cloud user identities from a prepared file; (2) set a fresh credential for a cloud user who cannot sign in; (3) invalidate refresh tokens and require reauthentication after an incident. What belongs in the design? Choose THREE.

  1. Block a user's sign-in
  2. Bulk user creation
  3. Reset a user's password
  4. Revoke a user's sign-in sessions

Explanation

Correct Answers

B:

Bulk user creation is included because it can provision many new cloud user identities from a prepared file; Bulk user creation imports multiple user records through the Microsoft Entra user-management workflow rather than requiring one interactive creation per account, which fits one of the stated operational goals.

C:

Reset a user's password is included because it can set a fresh credential for a cloud user who cannot sign in; An authorized password-reset operation changes the account credential; it does not remove access assignments or necessarily invalidate every already-issued token, which fits one of the stated operational goals.

D:

The stated condition to invalidate refresh tokens and require reauthentication after an incident calls for Revoke a user's sign-in sessions; Session revocation affects the user's authentication sessions; it is distinct from changing an RBAC assignment on an Azure resource, directly addressing that individual target.

Incorrect Answers

A:

The requirements do not call for Block a user's sign-in, which is used to prevent a departed employee from starting new interactive sign-ins; Disabling sign-in blocks subsequent authentication for that directory account, while existing sessions may need separate revocation or expiry handling, and no listed target requires that distinct use.

Microsoft Azure Administrator (AZ-104) Practice Tests