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

Question 170

A compliance team needs to route Azure platform logs into different systems. The deployment owner requests a capability to stream diagnostic records toward external event processing or SIEM consumers. What satisfies the requirement?

  1. Log Analytics workspace
  2. Action group email receiver
  3. Storage account destination
  4. Event Hubs destination

Explanation

Correct Answer

D:

For the work item that must stream diagnostic records toward external event processing or SIEM consumers, Event Hubs destination is appropriate: Event Hubs supplies an event-streaming endpoint for receivers and does not provide a historical KQL workspace by itself.

Incorrect Answers

A:

Log Analytics workspace would be used to store supported diagnostic log records for KQL exploration and alert queries; A workspace offers searchable log retention and analytical queries; collection depends on configured diagnostic settings or agents, but the question asks how to stream diagnostic records toward external event processing or SIEM consumers.

B:

Action group email receiver serves to send alert notifications to identified email recipients, whereas this case requires the action to stream diagnostic records toward external event processing or SIEM consumers; Email receivers deliver notifications when referenced by an alert action, rather than evaluating the originating metric condition.

C:

The request to stream diagnostic records toward external event processing or SIEM consumers is not fulfilled by Storage account destination; its intended role is to archive supported diagnostic records for long-term retention and downstream retrieval: A storage destination persists emitted logs as storage objects rather than providing the full Log Analytics interactive query engine.

Question 171

A large tenant has a nonstandard least-privilege permission requirement. The architect has defined distinct requirements for systems A and B. A needs to create an Azure management role with a deliberately chosen set of permitted actions; B needs to grant a narrowly defined set of read-only management-plane operations. Which proposed pairing is technically aligned?

  1. Task A → Azure custom role definition; task B → Role assignment at resource scope.
  2. Task A → Built-in Reader role; task B → Azure custom role definition.
  3. Task A → Role assignment condition; task B → Built-in Reader role.
  4. Task A → Azure custom role definition; task B → Built-in Reader role.
  5. Task A → Role assignment condition; task B → Azure custom role definition.

Explanation

Correct Answer

D:

A: Azure custom role definition meets the requirement to create an Azure management role with a deliberately chosen set of permitted actions; Custom role definitions specify actions and assignable scopes; they still need assignments to principals before granting permissions; b: Built-in Reader role meets the requirement to grant a narrowly defined set of read-only management-plane operations; Reader is a predefined Azure RBAC role; no custom definition is necessary for straightforward resource viewing.

Incorrect Answers

A:

A is correctly mapped to Azure custom role definition; Custom role definitions specify actions and assignable scopes; they still need assignments to principals before granting permissions; the B mapping to Role assignment at resource scope misses the required goal to grant a narrowly defined set of read-only management-plane operations; Limiting assignment scope narrows where granted actions apply; changing scope does not modify the underlying role definition; it addresses keep an otherwise valid role from affecting sibling resources in the same resource group instead.

B:

For A, the proposed Built-in Reader role handles grant a narrowly defined set of read-only management-plane operations, which is not the requested create an Azure management role with a deliberately chosen set of permitted actions outcome; Reader is a predefined Azure RBAC role; no custom definition is necessary for straightforward resource viewing; b: Azure custom role definition is meant to create an Azure management role with a deliberately chosen set of permitted actions, not to grant a narrowly defined set of read-only management-plane operations; Custom role definitions specify actions and assignable scopes; they still need assignments to principals before granting permissions.

C:

The A mapping to Role assignment condition misses the required goal to create an Azure management role with a deliberately chosen set of permitted actions; 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; it addresses limit eligible role assignment behavior with supported Azure ABAC conditions instead; b: Built-in Reader role meets the requirement to grant a narrowly defined set of read-only management-plane operations; Reader is a predefined Azure RBAC role; no custom definition is necessary for straightforward resource viewing.

E:

At A, Role assignment condition is mismatched; 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; the requested need is to create an Azure management role with a deliberately chosen set of permitted actions; b: Azure custom role definition is meant to create an Azure management role with a deliberately chosen set of permitted actions, not to grant a narrowly defined set of read-only management-plane operations; Custom role definitions specify actions and assignable scopes; they still need assignments to principals before granting permissions.

Question 172

A platform observer is choosing an Azure Monitor signal for a specific question. Two operations are being approved together but applied separately. For task A the team must capture detailed service-emitted operational records in an eligible destination; for task B it must analyze structured records collected in a workspace using KQL. Which configuration pair passes the review?

  1. Implement Azure Activity log on the first target and Platform metric on the second.
  2. Implement Resource log on the first target and Azure Activity log on the second.
  3. Implement Log Analytics query on the first target and Resource log on the second.
  4. Implement Platform metric on the first target and Log Analytics query on the second.
  5. Implement Resource log on the first target and Log Analytics query on the second.

Explanation

Correct Answer

E:

For A, the selected Resource log achieves the stated result to capture detailed service-emitted operational records in an eligible destination; Resource logs contain supported service events or requests and usually need diagnostic settings to route data into a chosen sink; at B, Log Analytics query is appropriate; Log Analytics supports queries and aggregation across log tables; it requires the relevant records to be ingested first.

Incorrect Answers

A:

A: Azure Activity log is meant to audit control-plane operations and subscription-level service events, not to capture detailed service-emitted operational records in an eligible destination; The Activity log records Azure Resource Manager events such as resource writes and policy outcomes, not every guest application event; at B, Platform metric is mismatched; Azure Monitor metrics hold time-series measurements suitable for thresholds and near-real-time analysis; they are not the same as detailed event logs; the requested need is to analyze structured records collected in a workspace using KQL.

B:

At A, Resource log is appropriate; Resource logs contain supported service events or requests and usually need diagnostic settings to route data into a chosen sink; at B, Azure Activity log is mismatched; The Activity log records Azure Resource Manager events such as resource writes and policy outcomes, not every guest application event; the requested need is to analyze structured records collected in a workspace using KQL.

C:

The A selection is incorrect for the need to capture detailed service-emitted operational records in an eligible destination: Log Analytics query serves to analyze structured records collected in a workspace using KQL; Log Analytics supports queries and aggregation across log tables; it requires the relevant records to be ingested first; at B, Resource log is mismatched; Resource logs contain supported service events or requests and usually need diagnostic settings to route data into a chosen sink; the requested need is to analyze structured records collected in a workspace using KQL.

D:

A calls for a different mechanism to capture detailed service-emitted operational records in an eligible destination; Platform metric instead supports the action to plot numeric resource performance samples at supported time grains; Azure Monitor metrics hold time-series measurements suitable for thresholds and near-real-time analysis; they are not the same as detailed event logs; at B, Log Analytics query is appropriate; Log Analytics supports queries and aggregation across log tables; it requires the relevant records to be ingested first.

Question 173

Operations staff are standardizing control attachment across Azure subnets. Two design notes describe different behaviors: A should apply an NSG policy to every eligible NIC traffic flow in a subnet; B should provide shared outbound SNAT from instances using a designated subnet. Which matched combination supports both behaviors?

  1. Task A → Enable service endpoint on subnet; task B → Associate NAT Gateway to subnet.
  2. Task A → Associate NSG to subnet; task B → Associate NAT Gateway to subnet.
  3. Task A → Associate NAT Gateway to subnet; task B → Associate route table to subnet.
  4. Task A → Associate NAT Gateway to subnet; task B → Associate NSG to subnet.
  5. Task A → Associate route table to subnet; task B → Associate NAT Gateway to subnet.

Explanation

Correct Answer

B:

A: Associate NSG to subnet meets the requirement to apply an NSG policy to every eligible NIC traffic flow in a subnet; Subnet NSGs evaluate traffic entering or leaving the associated subnet and can coexist with NIC NSGs; the B choice, Associate NAT Gateway to subnet, fits the configured outcome; NAT Gateway supplies outbound translation to configured public addresses; it does not act as inbound load balancer.

Incorrect Answers

A:

The A mapping to Enable service endpoint on subnet misses the required goal to apply an NSG policy to every eligible NIC traffic flow in a subnet; A service endpoint is enabled on a subnet for a service type and supports service-side virtual-network access rules; it addresses extend subnet identity to a supported PaaS service endpoint for firewall integration instead; the B choice, Associate NAT Gateway to subnet, fits the configured outcome; NAT Gateway supplies outbound translation to configured public addresses; it does not act as inbound load balancer.

C:

At A, Associate NAT Gateway to subnet is mismatched; NAT Gateway supplies outbound translation to configured public addresses; it does not act as inbound load balancer; the requested need is to apply an NSG policy to every eligible NIC traffic flow in a subnet; the B mapping to Associate route table to subnet misses the required goal to provide shared outbound SNAT from instances using a designated subnet; Route tables select next hops for a subnet; they do not create explicit port-specific filtering rules; it addresses apply custom routes to all applicable resources in a subnet instead.

D:

The A selection is incorrect for the need to apply an NSG policy to every eligible NIC traffic flow in a subnet: Associate NAT Gateway to subnet serves to provide shared outbound SNAT from instances using a designated subnet; NAT Gateway supplies outbound translation to configured public addresses; it does not act as inbound load balancer; the B mapping to Associate NSG to subnet misses the required goal to provide shared outbound SNAT from instances using a designated subnet; Subnet NSGs evaluate traffic entering or leaving the associated subnet and can coexist with NIC NSGs; it addresses apply an NSG policy to every eligible NIC traffic flow in a subnet instead.

E:

A calls for a different mechanism to apply an NSG policy to every eligible NIC traffic flow in a subnet; Associate route table to subnet instead supports the action to apply custom routes to all applicable resources in a subnet; Route tables select next hops for a subnet; they do not create explicit port-specific filtering rules; the B choice, Associate NAT Gateway to subnet, fits the configured outcome; NAT Gateway supplies outbound translation to configured public addresses; it does not act as inbound load balancer.

Question 174

A help desk is preparing distinct account-management procedures. An operations ticket requires a solution to invalidate refresh tokens and require reauthentication after an incident. Select the relevant feature.

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

Explanation

Correct Answer

A:

Revoke a user's sign-in sessions addresses the request to invalidate refresh tokens and require reauthentication after an incident: Session revocation affects the user's authentication sessions; it is distinct from changing an RBAC assignment on an Azure resource.

Incorrect Answers

B:

The request to invalidate refresh tokens and require reauthentication after an incident is not fulfilled by Bulk user creation; its intended role is to 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.

C:

Reset a user's password is designed to set a fresh credential for a cloud user who cannot sign in, not to invalidate refresh tokens and require reauthentication after an incident in this case; An authorized password-reset operation changes the account credential; it does not remove access assignments or necessarily invalidate every already-issued token.

D:

For the target required to invalidate refresh tokens and require reauthentication after an incident, Resource group scope is the wrong control: it is used to grant access to every resource in one named resource group and its future children; Resource group assignments are inherited by resources in that group; they do not cover a different group in the same subscription.

Question 175

A compliance team needs to route Azure platform logs into different systems. Before closing the task, the administrator must archive supported diagnostic records for long-term retention and downstream retrieval. Which selection is appropriate?

  1. Azure Monitor partner integration
  2. Storage account destination
  3. Recovery-point restore
  4. Event Hubs destination

Explanation

Correct Answer

B:

To accomplish the specified task to archive supported diagnostic records for long-term retention and downstream retrieval, use Storage account destination; A storage destination persists emitted logs as storage objects rather than providing the full Log Analytics interactive query engine.

Incorrect Answers

A:

The proposed Azure Monitor partner integration addresses the separate function to deliver supported monitoring data to an integrated partner destination; Partner routing connects telemetry to an eligible integrated service and requires supported destination configuration, which does not meet the stated need to archive supported diagnostic records for long-term retention and downstream retrieval.

C:

Recovery-point restore serves to recover protected data or disks from a selected earlier backup instance, whereas this case requires the action to archive supported diagnostic records for long-term retention and downstream retrieval; Restoring selects an existing recovery point and target configuration; it is not equivalent to merely increasing retention.

D:

The request to archive supported diagnostic records for long-term retention and downstream retrieval is not fulfilled by Event Hubs destination; its intended role is to stream diagnostic records toward external event processing or SIEM consumers: Event Hubs supplies an event-streaming endpoint for receivers and does not provide a historical KQL workspace by itself.

Question 176

A team is comparing Azure traffic-control services and route mechanisms. In a scheduled configuration update, the first service must refer to groups of VM network interfaces in NSG source or destination rules, while a different service must steer packets toward a configured next hop rather than directly decide allowed protocols and ports. Select the appropriate two-part plan.

  1. On resource A use Application security group; on resource B use Route table.
  2. On resource A use Route table; on resource B use Application security group.
  3. On resource A use Application security group; on resource B use Azure Firewall.
  4. On resource A use Application security group; on resource B use Network security group.

Explanation

Correct Answer

A:

The A setting is right: Application security group supplies the ability to refer to groups of VM network interfaces in NSG source or destination rules; ASGs simplify NSG policy membership for application tiers; an ASG alone does not filter traffic without an NSG rule; at B, Route table is appropriate; A route table selects forwarding paths using prefixes; it does not replace an NSG's port-specific permit or deny rules.

Incorrect Answers

B:

A calls for a different mechanism to refer to groups of VM network interfaces in NSG source or destination rules; Route table instead supports the action to steer packets toward a configured next hop rather than directly decide allowed protocols and ports; A route table selects forwarding paths using prefixes; it does not replace an NSG's port-specific permit or deny rules; at B, Application security group is mismatched; ASGs simplify NSG policy membership for application tiers; an ASG alone does not filter traffic without an NSG rule; the requested need is to steer packets toward a configured next hop rather than directly decide allowed protocols and ports.

C:

For A, the selected Application security group achieves the stated result to refer to groups of VM network interfaces in NSG source or destination rules; ASGs simplify NSG policy membership for application tiers; an ASG alone does not filter traffic without an NSG rule; at B, Azure Firewall is mismatched; Azure Firewall offers centralized filtering and routing integration, unlike per-NIC NSGs; traffic must traverse it to be inspected; the requested need is to steer packets toward a configured next hop rather than directly decide allowed protocols and ports.

D:

The A choice, Application security group, fits the configured outcome; ASGs simplify NSG policy membership for application tiers; an ASG alone does not filter traffic without an NSG rule; at B, Network security group is mismatched; An NSG enforces stateful allow/deny rules for traffic at attached network interfaces or subnets; it is not an application proxy; the requested need is to steer packets toward a configured next hop rather than directly decide allowed protocols and ports.

Question 177

A business must link branch offices and individual users to Azure VNets. A change board is assessing two scopes of work. On the first, engineers will connect an on-premises network gateway to Azure over an IPsec tunnel. On the second, they will use a private provider-connected circuit for enterprise connectivity to Microsoft cloud services. Which selection is valid?

  1. On resource A use Site-to-site VPN; on resource B use VNet-to-VNet VPN gateway connection.
  2. On resource A use VPN Gateway BGP routing; on resource B use ExpressRoute.
  3. On resource A use Site-to-site VPN; on resource B use ExpressRoute.
  4. On resource A use ExpressRoute; on resource B use Site-to-site VPN.

Explanation

Correct Answer

C:

A: Site-to-site VPN meets the requirement to connect an on-premises network gateway to Azure over an IPsec tunnel; S2S VPN establishes network-to-network connectivity through configured VPN gateways and public internet transport; at B, ExpressRoute is appropriate; ExpressRoute provides private connectivity through a service provider and separate circuit/gateway configuration, not an internet IPsec tunnel.

Incorrect Answers

A:

For A, the selected Site-to-site VPN achieves the stated result to connect an on-premises network gateway to Azure over an IPsec tunnel; S2S VPN establishes network-to-network connectivity through configured VPN gateways and public internet transport; b: VNet-to-VNet VPN gateway connection is meant to connect two Azure virtual networks through an IPsec VPN gateway tunnel instead of direct peering, not to use a private provider-connected circuit for enterprise connectivity to Microsoft cloud services; A VNet-to-VNet VPN connection links Azure VNets using supported virtual network gateways and encrypted tunnels; this differs from direct backbone VNet peering.

B:

The A mapping to VPN Gateway BGP routing misses the required goal to connect an on-premises network gateway to Azure over an IPsec tunnel; Border Gateway Protocol exchanges reachable route prefixes over supported gateway connections and avoids maintaining every learned prefix as a static route; it addresses exchange dynamic network routes with an eligible on-premises router using supported VPN gateway configurations instead; at B, ExpressRoute is appropriate; ExpressRoute provides private connectivity through a service provider and separate circuit/gateway configuration, not an internet IPsec tunnel.

D:

At A, ExpressRoute is mismatched; ExpressRoute provides private connectivity through a service provider and separate circuit/gateway configuration, not an internet IPsec tunnel; the requested need is to connect an on-premises network gateway to Azure over an IPsec tunnel; at B, Site-to-site VPN is mismatched; S2S VPN establishes network-to-network connectivity through configured VPN gateways and public internet transport; the requested need is to use a private provider-connected circuit for enterprise connectivity to Microsoft cloud services.

Question 178

A services team is matching storage durability to its failure tolerance. A rollout covers two separately managed targets: the first must synchronously withstand the loss of an availability zone within the primary region, and the second must replicate data to a paired secondary region for geographic disaster recovery. Which ordered configuration is suitable?

  1. On resource A use Geo-zone-redundant storage (GZRS); on resource B use Geo-redundant storage (GRS).
  2. On resource A use Geo-redundant storage (GRS); on resource B use Zone-redundant storage (ZRS).
  3. On resource A use Zone-redundant storage (ZRS); on resource B use Locally redundant storage (LRS).
  4. On resource A use Zone-redundant storage (ZRS); on resource B use Geo-redundant storage (GRS).

Explanation

Correct Answer

D:

At A, Zone-redundant storage (ZRS) is appropriate; ZRS synchronously replicates across availability zones in supported regions without maintaining a geographic secondary region copy; b is correctly mapped to Geo-redundant storage (GRS); GRS adds asynchronous replication to a secondary region beyond LRS primary-region copies; normal reads use the primary endpoint.

Incorrect Answers

A:

For A, the proposed Geo-zone-redundant storage (GZRS) handles combine primary-region zone resilience with asynchronous secondary-region replication, which is not the requested synchronously withstand the loss of an availability zone within the primary region outcome; GZRS provides primary-region ZRS and secondary-region geo replication; it combines protection from zone and regional disruption; b is correctly mapped to Geo-redundant storage (GRS); GRS adds asynchronous replication to a secondary region beyond LRS primary-region copies; normal reads use the primary endpoint.

B:

The A mapping to Geo-redundant storage (GRS) misses the required goal to synchronously withstand the loss of an availability zone within the primary region; GRS adds asynchronous replication to a secondary region beyond LRS primary-region copies; normal reads use the primary endpoint; it addresses replicate data to a paired secondary region for geographic disaster recovery instead; b calls for a different mechanism to replicate data to a paired secondary region for geographic disaster recovery; Zone-redundant storage (ZRS) instead supports the action to synchronously withstand the loss of an availability zone within the primary region; ZRS synchronously replicates across availability zones in supported regions without maintaining a geographic secondary region copy.

C:

A: Zone-redundant storage (ZRS) meets the requirement to synchronously withstand the loss of an availability zone within the primary region; ZRS synchronously replicates across availability zones in supported regions without maintaining a geographic secondary region copy; b calls for a different mechanism to replicate data to a paired secondary region for geographic disaster recovery; Locally redundant storage (LRS) instead supports the action to keep three copies of data within a single physical location in a region; LRS provides synchronous replication within one datacenter and does not provide zone-level or cross-region disaster resilience.

Question 179

A help desk is preparing distinct account-management procedures. The deployment checklist assigns one action to resource A and another to resource B: provision many new cloud user identities from a prepared file; invalidate refresh tokens and require reauthentication after an incident. Which mapping should be used?

  1. For A, configure Block a user's sign-in; for B, configure Revoke a user's sign-in sessions.
  2. For A, configure Revoke a user's sign-in sessions; for B, configure Bulk user creation.
  3. For A, configure Bulk user creation; for B, configure Revoke a user's sign-in sessions.
  4. For A, configure Bulk user creation; for B, configure Reset a user's password.

Explanation

Correct Answer

C:

The A setting is right: Bulk user creation supplies the ability to 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; b is correctly mapped to 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.

Incorrect Answers

A:

A: Block a user's sign-in is meant to prevent a departed employee from starting new interactive sign-ins, not to provision many new cloud user identities from a prepared file; Disabling sign-in blocks subsequent authentication for that directory account, while existing sessions may need separate revocation or expiry handling; the B setting is right: Revoke a user's sign-in sessions supplies the ability to invalidate refresh tokens and require reauthentication after an incident; Session revocation affects the user's authentication sessions; it is distinct from changing an RBAC assignment on an Azure resource.

B:

At A, Revoke a user's sign-in sessions is mismatched; Session revocation affects the user's authentication sessions; it is distinct from changing an RBAC assignment on an Azure resource; the requested need is to provision many new cloud user identities from a prepared file; b calls for a different mechanism to invalidate refresh tokens and require reauthentication after an incident; Bulk user creation instead supports the action to 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.

D:

A is correctly mapped to Bulk user creation; Bulk user creation imports multiple user records through the Microsoft Entra user-management workflow rather than requiring one interactive creation per account; b calls for a different mechanism to invalidate refresh tokens and require reauthentication after an incident; Reset a user's password instead supports the action to 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.

Question 180

A compliance platform is comparing ways of moving blob content between accounts. A rollout covers two separately managed targets: the first must run an administrator-initiated data copy between selected storage locations, and the second must transition or expire matching source blobs as their age changes. Which ordered configuration is suitable?

  1. On resource A use AzCopy copy job; on resource B use Copy Blob REST operation.
  2. On resource A use Blob object replication policy; on resource B use Blob lifecycle policy.
  3. On resource A use Blob lifecycle policy; on resource B use AzCopy copy job.
  4. On resource A use AzCopy copy job; on resource B use Blob lifecycle policy.

Explanation

Correct Answer

D:

At A, AzCopy copy job is appropriate; AzCopy transfers selected data when the job executes; it is not itself a persistent asynchronous object-replication policy; b is correctly mapped to Blob lifecycle policy; Lifecycle policies manage data retention and tiers in an account; they do not create a separate account's replicated destination objects.

Incorrect Answers

A:

For A, the selected AzCopy copy job achieves the stated result to run an administrator-initiated data copy between selected storage locations; AzCopy transfers selected data when the job executes; it is not itself a persistent asynchronous object-replication policy; the B selection is incorrect for the need to transition or expire matching source blobs as their age changes: Copy Blob REST operation serves to copy an individual Azure blob from an authorized source to a specified destination through a data-plane request; The Copy Blob API starts a data-plane copy between source and destination blobs, potentially asynchronously; it does not create a standing object replication policy.

B:

The A mapping to Blob object replication policy misses the required goal to run an administrator-initiated data copy between selected storage locations; Object replication uses policy mappings and versioning prerequisites; it is different from an entire account's geo-redundancy setting; it addresses asynchronously copy eligible block blob changes between configured source and destination accounts instead; the B setting is right: Blob lifecycle policy supplies the ability to transition or expire matching source blobs as their age changes; Lifecycle policies manage data retention and tiers in an account; they do not create a separate account's replicated destination objects.

C:

A: Blob lifecycle policy is meant to transition or expire matching source blobs as their age changes, not to run an administrator-initiated data copy between selected storage locations; Lifecycle policies manage data retention and tiers in an account; they do not create a separate account's replicated destination objects; the B selection is incorrect for the need to transition or expire matching source blobs as their age changes: AzCopy copy job serves to run an administrator-initiated data copy between selected storage locations; AzCopy transfers selected data when the job executes; it is not itself a persistent asynchronous object-replication policy.

Microsoft Azure Administrator (AZ-104) Practice Tests