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

Question 70

A departmental file share must support several failure and recovery events. An administrator needs a feature for each of these individual outcomes: (1) recover a deleted Azure file share during the enabled retention window; (2) apply a centrally managed backup policy and protected restore points to a file share. What belongs in the design? Choose TWO.

  1. Share snapshot restore
  2. Azure Files soft delete
  3. Azure Backup for Azure Files
  4. Azure File Sync cloud tiering

Explanation

Correct Answers

B:

For the target that must recover a deleted Azure file share during the enabled retention window, Azure Files soft delete is a direct match because File-share soft delete protects against accidental share deletion; it does not automatically restore overwritten individual files, not a different configuration.

C:

Azure Backup for Azure Files is needed for the specified objective to apply a centrally managed backup policy and protected restore points to a file share; Azure Backup integrates backup scheduling and retention controls for supported Azure file shares; protection settings and vault selection matter, making it one of the requested controls.

Incorrect Answers

A:

Share snapshot restore would instead retrieve an earlier version of a particular file from a share snapshot; Snapshots preserve file states captured at their creation time; recovery requires choosing the appropriate snapshot and path, which is unrelated to the listed objectives for this item.

D:

The requirements do not call for Azure File Sync cloud tiering, which is used to reduce local Windows Server storage usage by retaining colder file data in Azure; Cloud tiering leaves the directory namespace visible locally but recalls cloud-stored file contents as needed; it is not data deletion, and no listed target requires that distinct use.

Question 71

A platform team is separating workload identities from employee credentials. The team is configuring two independent resources. Resource A needs to reuse the same managed workload identity across several supported Azure resources; resource B needs to define the application object, permissions and authentication configuration in Microsoft Entra. Which assignment of capabilities meets both goals?

  1. On resource A use System-assigned managed identity; on resource B use App registration.
  2. On resource A use User-assigned managed identity; on resource B use App registration.
  3. On resource A use User-assigned managed identity; on resource B use Federated identity credential.
  4. On resource A use App registration; on resource B use User-assigned managed identity.

Explanation

Correct Answer

B:

At A, User-assigned managed identity is appropriate; A standalone managed identity can be attached to multiple compatible resources and survives deletion of any individual resource that uses it; b: App registration meets the requirement to define the application object, permissions and authentication configuration in Microsoft Entra; An app registration describes the application and its identity settings; an enterprise application represents the service principal in a tenant.

Incorrect Answers

A:

A: System-assigned managed identity is meant to give exactly one Azure resource a platform-managed identity tied to its lifetime, not to reuse the same managed workload identity across several supported Azure resources; Azure creates a service principal for the resource and removes that identity when the parent resource is deleted; no client secret is stored by the workload; b: App registration meets the requirement to define the application object, permissions and authentication configuration in Microsoft Entra; An app registration describes the application and its identity settings; an enterprise application represents the service principal in a tenant.

C:

The A setting is right: User-assigned managed identity supplies the ability to reuse the same managed workload identity across several supported Azure resources; A standalone managed identity can be attached to multiple compatible resources and survives deletion of any individual resource that uses it; b: Federated identity credential is meant to allow a trusted external workload token to obtain Entra tokens without a client secret, not to define the application object, permissions and authentication configuration in Microsoft Entra; Workload identity federation validates an external issuer, subject and audience; this exchanges an eligible external token rather than requiring a shared secret.

D:

A calls for a different mechanism to reuse the same managed workload identity across several supported Azure resources; App registration instead supports the action to define the application object, permissions and authentication configuration in Microsoft Entra; An app registration describes the application and its identity settings; an enterprise application represents the service principal in a tenant; b: User-assigned managed identity is meant to reuse the same managed workload identity across several supported Azure resources, not to define the application object, permissions and authentication configuration in Microsoft Entra; A standalone managed identity can be attached to multiple compatible resources and survives deletion of any individual resource that uses it.

Question 72

Cloud governance staff want distinct responses to noncompliant deployments. Before closing the task, the administrator must block a resource creation or update that violates a specified rule. Which selection is appropriate?

  1. Modify policy effect
  2. Deny policy effect
  3. Policy compliance state
  4. DeployIfNotExists effect

Explanation

Correct Answer

B:

To accomplish the specified task to block a resource creation or update that violates a specified rule, use Deny policy effect; Deny evaluates the applicable request and rejects noncompliant changes; it is preventive rather than a merely informational compliance record.

Incorrect Answers

A:

The proposed Modify policy effect addresses the separate function 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, which does not meet the stated need to block a resource creation or update that violates a specified rule.

C:

Policy compliance state serves to inspect which evaluated resources satisfy the assigned rule, whereas this case requires the action to block a resource creation or update that violates a specified rule; The compliance state reports evaluated results and reasons; it is observational and does not itself implement missing configurations.

D:

The request to block a resource creation or update that violates a specified rule is not fulfilled by DeployIfNotExists effect; its intended role is 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 73

A maintenance team is running isolated containers through the Azure portal. A rollout covers two separately managed targets: the first must deploy one or more containers that share lifecycle and network resources, and the second must authenticate the container group to retrieve an image from a protected registry. Which ordered configuration is suitable?

  1. For A, configure ACI container group; for B, configure ACI environment variable.
  2. For A, configure ACI private registry credentials; for B, configure ACI container group.
  3. For A, configure ACI container group; for B, configure ACI restart policy.
  4. For A, configure ACI container group; for B, configure ACI private registry credentials.

Explanation

Correct Answer

D:

A is correctly mapped to ACI container group; A container group is the top-level ACI scheduling unit; containers in it can share an IP address and mounted volumes; for B, the selected ACI private registry credentials achieves the stated result to authenticate the container group to retrieve an image from a protected registry; The image pull must authenticate to the source registry before the container can start; setting CPU quota does not grant image access.

Incorrect Answers

A:

A: ACI container group meets the requirement to deploy one or more containers that share lifecycle and network resources; A container group is the top-level ACI scheduling unit; containers in it can share an IP address and mounted volumes; b calls for a different mechanism to authenticate the container group to retrieve an image from a protected registry; ACI environment variable instead supports the action to pass supported nonsecret configuration values into a container process at start; Environment variables configure application behavior at runtime; secret values require appropriate secure handling.

B:

At A, ACI private registry credentials is mismatched; The image pull must authenticate to the source registry before the container can start; setting CPU quota does not grant image access; the requested need is to deploy one or more containers that share lifecycle and network resources; b calls for a different mechanism to authenticate the container group to retrieve an image from a protected registry; ACI container group instead supports the action to deploy one or more containers that share lifecycle and network resources; A container group is the top-level ACI scheduling unit; containers in it can share an IP address and mounted volumes.

C:

The A setting is right: ACI container group supplies the ability to deploy one or more containers that share lifecycle and network resources; A container group is the top-level ACI scheduling unit; containers in it can share an IP address and mounted volumes; for B, the proposed ACI restart policy handles choose whether a container group restarts after its process exits, which is not the requested authenticate the container group to retrieve an image from a protected registry outcome; Restart policies such as Always, OnFailure and Never control job lifecycle, not image repository authorization.

Question 74

An administrator needs specific Azure virtual machine operational visibility. Before closing the task, the administrator must inspect VM performance, processes and dependency telemetry through Azure Monitor. Which selection is appropriate?

  1. Boot diagnostics
  2. Scale up App Service plan
  3. VM Resource Health
  4. VM Insights

Explanation

Correct Answer

D:

The requested operation is to inspect VM performance, processes and dependency telemetry through Azure Monitor; VM Insights provides this functionality: VM Insights aggregates guest and infrastructure monitoring after required agent/data collection setup; it does not automatically resize a VM.

Incorrect Answers

A:

The proposed Boot diagnostics addresses the separate function to capture VM console screenshots and serial output during boot failures; Boot diagnostics can reveal startup issues when ordinary guest connectivity is not working; it does not change guest firewall rules, which does not meet the stated need to inspect VM performance, processes and dependency telemetry through Azure Monitor.

B:

Scale up App Service plan would be used to increase the instance size and available resources per App Service worker; Scale up changes the service-plan tier or SKU and worker capacity, not the number of identical workers, but the question asks how to inspect VM performance, processes and dependency telemetry through Azure Monitor.

C:

VM Resource Health serves to identify Azure platform availability problems affecting an individual VM while separating them from guest failures, whereas this case requires the action to inspect VM performance, processes and dependency telemetry through Azure Monitor; Resource Health reports current and historical platform availability for supported VMs; it complements rather than replaces guest OS diagnostics.

Question 75

A hybrid file services team needs shared file access with different constraints. One target has an acceptance criterion to mount a supported premium Azure file share through the NFS protocol. A different target has a criterion to capture a point-in-time read-only state of an Azure file share. Which two choices meet these criteria in sequence?

  1. First target: Azure Files SMB share; second target: Azure Files share snapshot.
  2. First target: Azure Files NFS share; second target: Azure File Sync.
  3. First target: Azure Files NFS share; second target: Azure Files share snapshot.
  4. First target: Azure Files share snapshot; second target: Azure Files NFS share.

Explanation

Correct Answer

C:

A is correctly mapped to Azure Files NFS share; NFS is appropriate for compatible Unix-style clients and has separate security and networking characteristics from SMB identity authentication; at B, Azure Files share snapshot is appropriate; Share snapshots help recover earlier file contents and names; they do not replace all long-term backup or regional continuity planning.

Incorrect Answers

A:

At A, Azure Files SMB share is mismatched; SMB Azure file shares offer familiar file-system access; identity-based authorization and network prerequisites depend on the chosen configuration; the requested need is to mount a supported premium Azure file share through the NFS protocol; at B, Azure Files share snapshot is appropriate; Share snapshots help recover earlier file contents and names; they do not replace all long-term backup or regional continuity planning.

B:

The A setting is right: Azure Files NFS share supplies the ability to mount a supported premium Azure file share through the NFS protocol; NFS is appropriate for compatible Unix-style clients and has separate security and networking characteristics from SMB identity authentication; at B, Azure File Sync is mismatched; File Sync lets servers maintain a local namespace and optional cloud tiering while Azure Files remains the cloud endpoint; the requested need is to capture a point-in-time read-only state of an Azure file share.

D:

For A, the proposed Azure Files share snapshot handles capture a point-in-time read-only state of an Azure file share, which is not the requested mount a supported premium Azure file share through the NFS protocol outcome; Share snapshots help recover earlier file contents and names; they do not replace all long-term backup or regional continuity planning; at B, Azure Files NFS share is mismatched; NFS is appropriate for compatible Unix-style clients and has separate security and networking characteristics from SMB identity authentication; the requested need is to capture a point-in-time read-only state of an Azure file share.

Question 76

A private application must connect predictably to its Storage services. A rollout covers two separately managed targets: the first must restrict public endpoint access by approved networks and service exceptions, and the second must serve static HTML and assets directly from the configured blob static website endpoint. Which ordered configuration is suitable?

  1. For A, configure Private DNS zone for Private Link; for B, configure Static website endpoint.
  2. For A, configure Storage account firewall; for B, configure Blob service endpoint.
  3. For A, configure Static website endpoint; for B, configure Storage account firewall.
  4. For A, configure Storage account firewall; for B, configure Static website endpoint.

Explanation

Correct Answer

D:

A is correctly mapped to Storage account firewall; Firewall rules filter traffic to supported storage endpoints; they do not answer DNS queries for a private endpoint; the B choice, Static website endpoint, fits the configured outcome; Static website hosting publishes files from the designated container and is unrelated to SMB file share or private DNS functionality.

Incorrect Answers

A:

A: Private DNS zone for Private Link is meant to resolve a storage service name to its approved private endpoint address from linked networks, not to restrict public endpoint access by approved networks and service exceptions; Private DNS provides hostname resolution to the private IP path; the endpoint itself separately supplies the actual private network interface; the B choice, Static website endpoint, fits the configured outcome; Static website hosting publishes files from the designated container and is unrelated to SMB file share or private DNS functionality.

B:

At A, Storage account firewall is appropriate; Firewall rules filter traffic to supported storage endpoints; they do not answer DNS queries for a private endpoint; the B mapping to Blob service endpoint misses the required goal to serve static HTML and assets directly from the configured blob static website endpoint; The blob endpoint is used for object data requests; file shares use a different storage service endpoint and protocol model; it addresses address blob objects through their dedicated HTTPS service endpoint instead.

C:

The A selection is incorrect for the need to restrict public endpoint access by approved networks and service exceptions: Static website endpoint serves to serve static HTML and assets directly from the configured blob static website endpoint; Static website hosting publishes files from the designated container and is unrelated to SMB file share or private DNS functionality; the B mapping to Storage account firewall misses the required goal to serve static HTML and assets directly from the configured blob static website endpoint; Firewall rules filter traffic to supported storage endpoints; they do not answer DNS queries for a private endpoint; it addresses restrict public endpoint access by approved networks and service exceptions instead.

Question 77

An administrator is planning temporary access that may need emergency withdrawal. A reviewer will approve only a method that can invalidate SAS tokens signed by a particular compromised shared account key. Which choice qualifies?

  1. Delete stored access policy
  2. Static website endpoint
  3. Rotate signing account key
  4. Revoke user delegation keys

Explanation

Correct Answer

C:

Selecting Rotate signing account key meets the requirement to invalidate SAS tokens signed by a particular compromised shared account key; Key rotation changes the signing secret and can disrupt clients using that key; it is broader than revoking one policy-bound SAS.

Incorrect Answers

A:

The request to invalidate SAS tokens signed by a particular compromised shared account key is not fulfilled by Delete stored access policy; its intended role is to revoke service SAS tokens that depend on that stored policy where supported: Deleting or changing the associated stored policy invalidates its dependent service SAS authorization without rotating every account key.

B:

Static website endpoint is designed to serve static HTML and assets directly from the configured blob static website endpoint, not to invalidate SAS tokens signed by a particular compromised shared account key in this case; Static website hosting publishes files from the designated container and is unrelated to SMB file share or private DNS functionality.

D:

The proposed Revoke user delegation keys addresses the separate function to invalidate outstanding user-delegation SAS tokens for eligible Blob Storage access; Revoking user delegation keys ends authorization derived from those keys; this is a distinct mechanism from deleting stored service-SAS policies, which does not meet the stated need to invalidate SAS tokens signed by a particular compromised shared account key.

Question 78

A security engineer is isolating a traffic-flow failure in an Azure subnet. In a scheduled configuration update, the first service must view aggregated NSG rules affecting a selected network interface, while a different service must ensure an intended matching allow or deny rule is evaluated ahead of competing rules. Select the appropriate two-part plan.

  1. For A, configure NSG security rule priority; for B, configure Effective security rules.
  2. For A, configure Effective security rules; for B, configure NSG security rule priority.
  3. For A, configure NSG diagnostic tool; for B, configure NSG security rule priority.
  4. For A, configure Effective security rules; for B, configure IP flow verify.

Explanation

Correct Answer

B:

The A choice, Effective security rules, fits the configured outcome; Effective security rules combine subnet- and NIC-level NSG behavior to show what can govern a VM traffic path; for B, the selected NSG security rule priority achieves the stated result to ensure an intended matching allow or deny rule is evaluated ahead of competing rules; NSGs evaluate lower numeric priorities first within a direction; the first matching rule governs the flow decision.

Incorrect Answers

A:

For A, the proposed NSG security rule priority handles ensure an intended matching allow or deny rule is evaluated ahead of competing rules, which is not the requested view aggregated NSG rules affecting a selected network interface outcome; NSGs evaluate lower numeric priorities first within a direction; the first matching rule governs the flow decision; for B, the proposed Effective security rules handles view aggregated NSG rules affecting a selected network interface, which is not the requested ensure an intended matching allow or deny rule is evaluated ahead of competing rules outcome; Effective security rules combine subnet- and NIC-level NSG behavior to show what can govern a VM traffic path.

C:

A: NSG diagnostic tool is meant to identify whether an NSG rule is causing a blocked connection in a supported diagnostic workflow, not to view aggregated NSG rules affecting a selected network interface; NSG diagnostics analyze the rules and traffic properties to identify filtering effects; they are not a packet-routing configuration; for B, the selected NSG security rule priority achieves the stated result to ensure an intended matching allow or deny rule is evaluated ahead of competing rules; NSGs evaluate lower numeric priorities first within a direction; the first matching rule governs the flow decision.

D:

At A, Effective security rules is appropriate; Effective security rules combine subnet- and NIC-level NSG behavior to show what can govern a VM traffic path; for B, the proposed IP flow verify handles test whether Azure NSG rules would allow or deny a specified five-tuple for a VM, which is not the requested ensure an intended matching allow or deny rule is evaluated ahead of competing rules outcome; IP flow verify reports the matching security rule decision for the supplied direction and connection values.

Question 79

A central IT team administers multiple subscriptions through an organizational hierarchy. The deployment checklist assigns one action to resource A and another to resource B: organize subscriptions into parent and child management groups; enforce a compliance rule across descendant subscriptions from one assignment. Which mapping should be used?

  1. For A, configure Create management-group hierarchy; for B, configure Policy at management-group scope.
  2. For A, configure Create management-group hierarchy; for B, configure RBAC at management-group scope.
  3. For A, configure RBAC at management-group scope; for B, configure Policy at management-group scope.
  4. For A, configure Policy at management-group scope; for B, configure Create management-group hierarchy.

Explanation

Correct Answer

A:

A: Create management-group hierarchy meets the requirement to organize subscriptions into parent and child management groups; A management-group tree provides governance scopes above subscriptions and supports inherited policy and RBAC assignments; the B setting is right: Policy at management-group scope supplies the ability to enforce a compliance rule across descendant subscriptions from one assignment; Assignments at management-group scope inherit downward, allowing a shared governance baseline across the contained subscriptions.

Incorrect Answers

B:

At A, Create management-group hierarchy is appropriate; A management-group tree provides governance scopes above subscriptions and supports inherited policy and RBAC assignments; the B selection is incorrect for the need to enforce a compliance rule across descendant subscriptions from one assignment: RBAC at management-group scope serves to delegate Azure permissions over resources in all descendant subscriptions; Management-group role assignments flow into child subscriptions; they do not grant Microsoft Entra directory admin roles.

C:

The A selection is incorrect for the need to organize subscriptions into parent and child management groups: RBAC at management-group scope serves to delegate Azure permissions over resources in all descendant subscriptions; Management-group role assignments flow into child subscriptions; they do not grant Microsoft Entra directory admin roles; the B setting is right: Policy at management-group scope supplies the ability to enforce a compliance rule across descendant subscriptions from one assignment; Assignments at management-group scope inherit downward, allowing a shared governance baseline across the contained subscriptions.

D:

A calls for a different mechanism to organize subscriptions into parent and child management groups; Policy at management-group scope instead supports the action to enforce a compliance rule across descendant subscriptions from one assignment; Assignments at management-group scope inherit downward, allowing a shared governance baseline across the contained subscriptions; the B selection is incorrect for the need to enforce a compliance rule across descendant subscriptions from one assignment: Create management-group hierarchy serves to organize subscriptions into parent and child management groups; A management-group tree provides governance scopes above subscriptions and supports inherited policy and RBAC assignments.

Question 80

The licensing team must administer subscription products for tenant users. The team has documented a specific need: identify users whose automatic license application failed due to an assignment problem. Which Azure setting addresses it?

  1. Invite external user
  2. License assignment error review
  3. Direct license assignment
  4. Group-based licensing

Explanation

Correct Answer

B:

Selecting License assignment error review meets the requirement to identify users whose automatic license application failed due to an assignment problem; License status and processing errors expose conflicts or insufficient license capacity rather than silently repairing the source configuration.

Incorrect Answers

A:

Invite external user is designed to start B2B collaboration for an external email address not yet represented as a guest, not to identify users whose automatic license application failed due to an assignment problem in this case; An invitation establishes the collaboration workflow and allows the invited user to redeem access to the resource tenant.

C:

The proposed Direct license assignment addresses the separate function to grant a specific Microsoft cloud product license to one identified user; Direct assignment targets the chosen user and selected service plans; it does not propagate to every member of a group, which does not meet the stated need to identify users whose automatic license application failed due to an assignment problem.

D:

Group-based licensing would be used to make licenses follow a group as employees join or leave it; Group-based licensing applies configured licenses to current and future eligible group members; processing and license availability affect assignment status, but the question asks how to identify users whose automatic license application failed due to an assignment problem.

Microsoft Azure Administrator (AZ-104) Practice Tests