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

Question 790

The licensing team must administer subscription products for tenant users. Change A concerns the need to grant a specific Microsoft cloud product license to one identified user; change B concerns the separate need to identify users whose automatic license application failed due to an assignment problem. Select the correct mapping from A and B to Azure features.

  1. Task A → Group-based licensing; task B → License assignment error review.
  2. Task A → Direct license assignment; task B → License assignment error review.
  3. Task A → License assignment error review; task B → Direct license assignment.
  4. Task A → Direct license assignment; task B → Group-based licensing.
  5. Task A → Disable a licensed service plan; task B → Direct license assignment.

Explanation

Correct Answer

B:

The A setting is right: Direct license assignment supplies the ability 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; b: 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:

At A, Group-based licensing is mismatched; Group-based licensing applies configured licenses to current and future eligible group members; processing and license availability affect assignment status; the requested need is to grant a specific Microsoft cloud product license to one identified user; b: 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.

C:

A calls for a different mechanism to grant a specific Microsoft cloud product license to one identified user; License assignment error review instead supports the action 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; b: Direct license assignment is meant to grant a specific Microsoft cloud product license to one identified user, not to identify users whose automatic license application failed due to an assignment problem; Direct assignment targets the chosen user and selected service plans; it does not propagate to every member of a group.

D:

For A, the selected Direct license assignment achieves the stated result 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; b: Group-based licensing is meant to make licenses follow a group as employees join or leave it, not to identify users whose automatic license application failed due to an assignment problem; Group-based licensing applies configured licenses to current and future eligible group members; processing and license availability affect assignment status.

E:

The A mapping to Disable a licensed service plan misses the required goal to grant a specific Microsoft cloud product license to one identified user; A license can have individual service plans disabled where supported; removing the entire product is a broader change to the user's entitlements; it addresses keep a product assigned while withholding a particular included service instead; at B, Direct license assignment is mismatched; Direct assignment targets the chosen user and selected service plans; it does not propagate to every member of a group; the requested need is to identify users whose automatic license application failed due to an assignment problem.

Question 791

A web application needs deployment safety without a long maintenance outage. One target has an acceptance criterion to exchange configured source and target deployment slots to promote tested code. A different target has a criterion to send a selected fraction of production traffic to a nonproduction deployment slot. Which two choices meet these criteria in sequence?

  1. A uses Traffic routing to a slot, whereas B uses Slot swap.
  2. A uses Slot swap, whereas B uses Deployment slot.
  3. A uses Slot swap, whereas B uses Traffic routing to a slot.
  4. A uses Sticky slot setting, whereas B uses Traffic routing to a slot.
  5. A uses Traffic routing to a slot, whereas B uses Sticky slot setting.
  6. A uses Deployment slot, whereas B uses Slot swap.

Explanation

Correct Answer

C:

The A choice, Slot swap, fits the configured outcome; A swap exchanges applicable content and configuration while respecting designated slot-specific settings; the B choice, Traffic routing to a slot, fits the configured outcome; Routing percentages enable controlled validation of a candidate release without a full production swap.

Incorrect Answers

A:

A calls for a different mechanism to exchange configured source and target deployment slots to promote tested code; Traffic routing to a slot instead supports the action 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; the B mapping to Slot swap misses the required goal to send a selected fraction of production traffic to a nonproduction deployment slot; A swap exchanges applicable content and configuration while respecting designated slot-specific settings; it addresses exchange configured source and target deployment slots to promote tested code instead.

B:

For A, the selected Slot swap achieves the stated result to exchange configured source and target deployment slots to promote tested code; A swap exchanges applicable content and configuration while respecting designated slot-specific settings; the B mapping to Deployment slot misses the required goal to send a selected fraction of production traffic to a nonproduction deployment slot; Slots run in the same plan and let teams validate a version before swapping it into production, in eligible tiers; it addresses create an additional live App Service deployment endpoint for staging releases instead.

D:

A: Sticky slot setting is meant to keep an environment-specific application setting with its slot during swap, not to exchange configured source and target deployment slots to promote tested code; Deployment-slot settings are marked sticky so secrets or endpoint values remain associated with their intended slot; the B choice, Traffic routing to a slot, fits the configured outcome; Routing percentages enable controlled validation of a candidate release without a full production swap.

E:

At A, Traffic routing to a slot is mismatched; Routing percentages enable controlled validation of a candidate release without a full production swap; the requested need is to exchange configured source and target deployment slots to promote tested code; the B mapping to Sticky slot setting misses the required goal to send a selected fraction of production traffic to a nonproduction deployment slot; Deployment-slot settings are marked sticky so secrets or endpoint values remain associated with their intended slot; it addresses keep an environment-specific application setting with its slot during swap instead.

F:

The A selection is incorrect for the need to exchange configured source and target deployment slots to promote tested code: Deployment slot serves 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; the B mapping to Slot swap misses the required goal to send a selected fraction of production traffic to a nonproduction deployment slot; A swap exchanges applicable content and configuration while respecting designated slot-specific settings; it addresses exchange configured source and target deployment slots to promote tested code instead.

Question 792

A virtualization team is clarifying where guest data should be stored. A change request specifies the outcome to capture a point-in-time copy of a managed disk for recovery or cloning. What should be used?

  1. Managed disk snapshot
  2. Temporary disk
  3. Resource declaration
  4. Managed OS disk

Explanation

Correct Answer

A:

Selecting Managed disk snapshot meets the requirement to capture a point-in-time copy of a managed disk for recovery or cloning; Snapshots preserve disk data at capture time and can be used to create disks; they are not automatic continuous application backups.

Incorrect Answers

B:

The proposed Temporary disk addresses the separate function to store disposable scratch data that does not need to survive host maintenance or redeployment; Temporary storage may be lost on VM movement, redeploy or hardware events and must not contain the only copy of durable application data, which does not meet the stated need to capture a point-in-time copy of a managed disk for recovery or cloning.

C:

Resource declaration would be used to specify an Azure resource type, API version, properties and deployment scope; The resources section describes what ARM should create or update; outputs and variables alone cannot instantiate the resource, but the question asks how to capture a point-in-time copy of a managed disk for recovery or cloning.

D:

Managed OS disk serves to hold the guest operating system and its boot volume for an Azure VM, whereas this case requires the action to capture a point-in-time copy of a managed disk for recovery or cloning; The OS disk contains the bootable system image and is managed separately from optional data disks and ephemeral temporary storage.

Question 793

A migration project has online and offline data transfer requirements. The deployment owner requests a capability to browse and manage storage resources through a cross-platform graphical client. What satisfies the requirement?

  1. Azure Storage Explorer
  2. Virtual network service endpoint
  3. Azure Import/Export service
  4. AzCopy

Explanation

Correct Answer

A:

To accomplish the specified task to browse and manage storage resources through a cross-platform graphical client, use Azure Storage Explorer; Storage Explorer offers interactive object navigation and operations rather than a dedicated unattended command-line transfer pipeline.

Incorrect Answers

B:

Virtual network service endpoint serves to keep supported Azure service traffic on the Azure backbone while restricting access by subnet identity, whereas this case requires the action to browse and manage storage resources through a cross-platform graphical client; A service endpoint extends VNet identity to a PaaS public service endpoint; it does not assign the service a private VNet IP.

C:

The request to browse and manage storage resources through a cross-platform graphical client is not fulfilled by Azure Import/Export service; its intended role is to use customer-provided supported disks for an offline Azure data import or export job: Import/Export handles physical disks and processing jobs rather than online object copies through an API.

D:

AzCopy is designed to script high-throughput transfers of blobs or files from command-line jobs, not to browse and manage storage resources through a cross-platform graphical client in this case; AzCopy uses efficient data transfer operations and can authenticate with SAS or supported Entra identities; it suits repeatable bulk-copy scripts.

Question 794

An operations organization is adopting repeatable Azure infrastructure deployments. A production change must preview proposed resource changes before deploying a template. What is the appropriate control or resource?

  1. Bicep dependsOn declaration
  2. ARM JSON template
  3. ARM deployment what-if
  4. Bicep file

Explanation

Correct Answer

C:

To accomplish the specified task to preview proposed resource changes before deploying a template, use ARM deployment what-if; What-if compares the desired declaration with existing resource state and reports predicted changes without applying the deployment.

Incorrect Answers

A:

For the target required to preview proposed resource changes before deploying a template, Bicep dependsOn declaration is the wrong control: it is used to make an otherwise implicit deployment dependency explicit when resource order matters; Explicit dependsOn establishes resource ordering where symbolic references do not already infer it; it is not a scheduling trigger after deployment.

B:

The proposed ARM JSON template addresses the separate function to define Azure resources declaratively in native Azure Resource Manager JSON; ARM templates describe resource declarations, parameters and dependencies in JSON; they can be deployed through ARM without an imperative resource-by-resource script, which does not meet the stated need to preview proposed resource changes before deploying a template.

D:

Bicep file serves to author declarative ARM deployments in a concise language with modules and symbolic names, whereas this case requires the action to preview proposed resource changes before deploying a template; Bicep compiles to ARM JSON and provides resource-oriented syntax and modules; deployment still uses Azure Resource Manager.

Question 795

An administrator needs specific Azure virtual machine operational visibility. To satisfy the following independently tested conditions, the operator needs (1) capture VM console screenshots and serial output during boot failures; (2) inspect VM performance, processes and dependency telemetry through Azure Monitor; (3) identify Azure platform availability problems affecting an individual VM while separating them from guest failures. Which selections are needed? Choose THREE.

  1. Serial Console
  2. VM Insights
  3. Boot diagnostics
  4. VM Resource Health

Explanation

Correct Answers

B:

The stated condition to inspect VM performance, processes and dependency telemetry through Azure Monitor calls for VM Insights; VM Insights aggregates guest and infrastructure monitoring after required agent/data collection setup; it does not automatically resize a VM, directly addressing that individual target.

C:

For the target that must capture VM console screenshots and serial output during boot failures, Boot diagnostics is a direct match because Boot diagnostics can reveal startup issues when ordinary guest connectivity is not working; it does not change guest firewall rules, not a different configuration.

D:

VM Resource Health is included because it can identify Azure platform availability problems affecting an individual VM while separating them from guest failures; Resource Health reports current and historical platform availability for supported VMs; it complements rather than replaces guest OS diagnostics, which fits one of the stated operational goals.

Incorrect Answers

A:

The purpose of Serial Console is to access supported VM text console diagnostics when network logon is unavailable; Serial Console provides a console-level troubleshooting channel for eligible VMs without relying on inbound SSH or RDP, but no target in this question asks for that capability.

Question 796

Security architects are choosing at-rest encryption boundaries for storage data. At the same review, one workload is required to add a second layer of encryption at the storage infrastructure level; another must supply a key with supported blob requests for encryption of specific operations. Which feature allocation is correct?

  1. A uses Customer-managed encryption key, whereas B uses Customer-provided encryption key.
  2. A uses Customer-provided encryption key, whereas B uses Customer-managed encryption key.
  3. A uses Infrastructure encryption, whereas B uses Customer-managed encryption key.
  4. A uses Microsoft-managed encryption keys, whereas B uses Customer-managed encryption key.
  5. A uses Customer-provided encryption key, whereas B uses Infrastructure encryption.
  6. A uses Infrastructure encryption, whereas B uses Customer-provided encryption key.

Explanation

Correct Answer

F:

The A setting is right: Infrastructure encryption supplies the ability 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; b is correctly mapped to Customer-provided encryption key; Customer-provided keys are passed on appropriate requests and are not stored by the storage service for later retrieval.

Incorrect Answers

A:

A calls for a different mechanism to add a second layer of encryption at the storage infrastructure level; Customer-managed encryption key instead supports the action 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; the B setting is right: Customer-provided encryption key supplies the ability 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.

B:

For A, the proposed Customer-provided encryption key handles supply a key with supported blob requests for encryption of specific operations, which is not the requested add a second layer of encryption at the storage infrastructure level outcome; Customer-provided keys are passed on appropriate requests and are not stored by the storage service for later retrieval; the B selection is incorrect for the need to supply a key with supported blob requests for encryption of specific operations: Customer-managed encryption key serves 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.

C:

The A choice, Infrastructure encryption, fits the configured outcome; Infrastructure encryption provides an additional independent encryption layer beyond service-level encryption when enabled for a supported account; the B selection is incorrect for the need to supply a key with supported blob requests for encryption of specific operations: Customer-managed encryption key serves 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.

D:

A: Microsoft-managed encryption keys is meant to use platform-managed encryption keys for standard Storage Service Encryption, not to add a second layer of encryption at the storage infrastructure level; Azure Storage encrypts data at rest by default with Microsoft-managed keys; customers need not operate a key vault for this option; the B selection is incorrect for the need to supply a key with supported blob requests for encryption of specific operations: Customer-managed encryption key serves 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.

E:

At A, Customer-provided encryption key is mismatched; Customer-provided keys are passed on appropriate requests and are not stored by the storage service for later retrieval; the requested need is to add a second layer of encryption at the storage infrastructure level; b calls for a different mechanism to supply a key with supported blob requests for encryption of specific operations; Infrastructure encryption instead supports the action 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.

Question 797

A service is granting temporary storage access with the narrowest practical credential model. A reviewer will approve only a method that can allow a service SAS to inherit centrally changeable validity and permission constraints. Which choice qualifies?

  1. Stored access policy
  2. User delegation SAS
  3. Service SAS
  4. Customer-managed encryption key

Explanation

Correct Answer

A:

The requested operation is to allow a service SAS to inherit centrally changeable validity and permission constraints; Stored access policy provides this functionality: A stored access policy on a supported container or share can be modified or deleted to affect associated service SAS tokens.

Incorrect Answers

B:

User delegation SAS is designed to issue a Blob Storage SAS signed using a Microsoft Entra user delegation key, not to allow a service SAS to inherit centrally changeable validity and permission constraints in this case; A user delegation SAS uses Entra-based authorization instead of an account key and is preferred for supported blob scenarios.

C:

For the target required to allow a service SAS to inherit centrally changeable validity and permission constraints, Service SAS is the wrong control: it is used to issue a SAS for one storage service and optionally associate it with a stored access policy; A service SAS is signed using an account key and targets a service such as Blob or Files; a suitable stored policy can control revocation.

D:

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 allow a service SAS to inherit centrally changeable validity and permission constraints.

Question 798

Cloud governance staff want distinct responses to noncompliant deployments. The operations review lists separate service outcomes, with A required to change supported resource properties such as tags to meet a policy rule and B required to deploy a related resource or configuration when an evaluated prerequisite is missing. Which proposed approach meets both?

  1. A uses Modify policy effect, whereas B uses Deny policy effect.
  2. A uses Deny policy effect, whereas B uses Audit policy effect.
  3. A uses Modify policy effect, whereas B uses DeployIfNotExists effect.
  4. A uses DeployIfNotExists effect, whereas B uses Audit policy effect.
  5. A uses Deny policy effect, whereas B uses DeployIfNotExists effect.
  6. A uses DeployIfNotExists effect, whereas B uses Modify policy effect.

Explanation

Correct Answer

C:

A is correctly mapped to Modify policy effect; Modify can add or alter supported properties during requests and remediate eligible resources when identities and remediation prerequisites are configured; the B choice, DeployIfNotExists effect, fits the configured outcome; DeployIfNotExists evaluates a related resource and can trigger a deployment; it requires a properly authorized managed identity for remediation.

Incorrect Answers

A:

At A, Modify policy effect is appropriate; Modify can add or alter supported properties during requests and remediate eligible resources when identities and remediation prerequisites are configured; the B mapping to Deny policy effect misses the required goal to deploy a related resource or configuration when an evaluated prerequisite is missing; 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.

B:

The A selection is incorrect for the need to change supported resource properties such as tags to meet a policy rule: 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 mapping to Audit policy effect misses the required goal to deploy a related resource or configuration when an evaluated prerequisite is missing; Audit marks matching resources noncompliant without blocking creation; remediation must be handled separately if configuration is to change; it addresses record noncompliance while still permitting the resource operation instead.

D:

For A, the proposed DeployIfNotExists effect handles deploy a related resource or configuration when an evaluated prerequisite is missing, which is not the requested change supported resource properties such as tags to meet a policy rule outcome; DeployIfNotExists evaluates a related resource and can trigger a deployment; it requires a properly authorized managed identity for remediation; b: Audit policy effect is meant to record noncompliance while still permitting the resource operation, not to deploy a related resource or configuration when an evaluated prerequisite is missing; Audit marks matching resources noncompliant without blocking creation; remediation must be handled separately if configuration is to change.

E:

The A mapping to Deny policy effect misses the required goal to change supported resource properties such as tags to meet a policy rule; 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; b: DeployIfNotExists effect meets the requirement 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.

F:

A: DeployIfNotExists effect is meant to deploy a related resource or configuration when an evaluated prerequisite is missing, not to change supported resource properties such as tags to meet a policy rule; DeployIfNotExists evaluates a related resource and can trigger a deployment; it requires a properly authorized managed identity for remediation; b: Modify policy effect is meant to change supported resource properties such as tags to meet a policy rule, not to deploy a related resource or configuration when an evaluated prerequisite is missing; Modify can add or alter supported properties during requests and remediate eligible resources when identities and remediation prerequisites are configured.

Question 799

A global organization is publishing names for internal and public clients. A change board is assessing two scopes of work. On the first, engineers will host authoritative DNS records for an internet domain delegated to Azure DNS. On the second, they will resolve internal names for linked Azure virtual networks without exposing them publicly. Which selection is valid?

  1. Implement Azure DNS public zone on the first target and Azure Private DNS zone on the second.
  2. Implement Azure Private DNS zone on the first target and Azure DNS public zone on the second.
  3. Implement Custom DNS server on the first target and Azure-provided DNS resolver on the second.
  4. Implement Azure DNS public zone on the first target and Custom DNS server on the second.
  5. Implement Custom DNS server on the first target and Azure Private DNS zone on the second.

Explanation

Correct Answer

A:

The A setting is right: Azure DNS public zone supplies the ability to host authoritative DNS records for an internet domain delegated to Azure DNS; A public zone answers external DNS queries through delegated name servers; it does not privately link to a VNet for internal-only resolution; at B, Azure Private DNS zone is appropriate; Private zones support VNet links and private records; they are not automatically published on internet DNS resolvers.

Incorrect Answers

B:

A calls for a different mechanism to host authoritative DNS records for an internet domain delegated to Azure DNS; Azure Private DNS zone instead supports the action to resolve internal names for linked Azure virtual networks without exposing them publicly; Private zones support VNet links and private records; they are not automatically published on internet DNS resolvers; at B, Azure DNS public zone is mismatched; A public zone answers external DNS queries through delegated name servers; it does not privately link to a VNet for internal-only resolution; the requested need is to resolve internal names for linked Azure virtual networks without exposing them publicly.

C:

For A, the proposed Custom DNS server handles apply organization-specific forwarding or internal namespace resolution for VNet clients, which is not the requested host authoritative DNS records for an internet domain delegated to Azure DNS outcome; Custom DNS settings direct VMs to specified DNS servers; forwarding and network reachability must be provided by those servers; at B, Azure-provided DNS resolver is mismatched; Azure-provided DNS resolves supported Azure internal names and public names by default; custom DNS requirements may call for another resolver; the requested need is to resolve internal names for linked Azure virtual networks without exposing them publicly.

D:

The A choice, Azure DNS public zone, fits the configured outcome; A public zone answers external DNS queries through delegated name servers; it does not privately link to a VNet for internal-only resolution; at B, Custom DNS server is mismatched; Custom DNS settings direct VMs to specified DNS servers; forwarding and network reachability must be provided by those servers; the requested need is to resolve internal names for linked Azure virtual networks without exposing them publicly.

E:

A: Custom DNS server is meant to apply organization-specific forwarding or internal namespace resolution for VNet clients, not to host authoritative DNS records for an internet domain delegated to Azure DNS; Custom DNS settings direct VMs to specified DNS servers; forwarding and network reachability must be provided by those servers; the B setting is right: Azure Private DNS zone supplies the ability to resolve internal names for linked Azure virtual networks without exposing them publicly; Private zones support VNet links and private records; they are not automatically published on internet DNS resolvers.

Question 800

An automation VM needs controlled network and Azure API access. In a scheduled configuration update, the first service must obtain Azure tokens for the VM application without embedding a password in code, while a different service must connect an Azure VM to subnets and private IP configuration. Select the appropriate two-part plan.

  1. For A, configure VM system-assigned managed identity; for B, configure VM network interface.
  2. For A, configure VM system-assigned managed identity; for B, configure NSG association to subnet or NIC.
  3. For A, configure VM network interface; for B, configure VM system-assigned managed identity.
  4. For A, configure NSG association to subnet or NIC; for B, configure VM network interface.

Explanation

Correct Answer

A:

For A, the selected VM system-assigned managed identity achieves the stated result to obtain Azure tokens for the VM application without embedding a password in code; A system-assigned identity is associated with the VM lifecycle and still needs separate Azure RBAC role grants for target resources; b: VM network interface meets the requirement to connect an Azure VM to subnets and private IP configuration; The NIC carries IP configuration and NSG associations; a managed identity instead authenticates the software running in the VM.

Incorrect Answers

B:

The A choice, VM system-assigned managed identity, fits the configured outcome; A system-assigned identity is associated with the VM lifecycle and still needs separate Azure RBAC role grants for target resources; b: NSG association to subnet or NIC is meant to attach existing traffic-filtering rules to the correct VM subnet or network interface, not to connect an Azure VM to subnets and private IP configuration; Associating a network security group with a subnet or NIC causes its defined security rules to be evaluated for eligible traffic; creating an unattached NSG does not enforce those rules on a VM.

C:

A: VM network interface is meant to connect an Azure VM to subnets and private IP configuration, not to obtain Azure tokens for the VM application without embedding a password in code; The NIC carries IP configuration and NSG associations; a managed identity instead authenticates the software running in the VM; b: VM system-assigned managed identity is meant to obtain Azure tokens for the VM application without embedding a password in code, not to connect an Azure VM to subnets and private IP configuration; A system-assigned identity is associated with the VM lifecycle and still needs separate Azure RBAC role grants for target resources.

D:

At A, NSG association to subnet or NIC is mismatched; Associating a network security group with a subnet or NIC causes its defined security rules to be evaluated for eligible traffic; creating an unattached NSG does not enforce those rules on a VM; the requested need is to obtain Azure tokens for the VM application without embedding a password in code; b: VM network interface meets the requirement to connect an Azure VM to subnets and private IP configuration; The NIC carries IP configuration and NSG associations; a managed identity instead authenticates the software running in the VM.

Microsoft Azure Administrator (AZ-104) Practice Tests