Microsoft AZ-104 Exam Dumps, Practice Test Questions

100% Latest & Updated Microsoft AZ-104 Practice Test Questions, Exam Dumps & Verified Answers!
30 Days Free Updates, Instant Download!

Microsoft AZ-104 Premium Bundle
$79.97
$59.98

AZ-104 Premium Bundle

  • Premium File: 606 Questions & Answers. Last update: Nov 5, 2026
  • Training Course: 132 Video Lectures
  • Study Guide: 458 Pages
  • Latest Questions
  • 100% Accurate Answers
  • Fast Exam Updates

AZ-104 Premium Bundle

Microsoft AZ-104 Premium Bundle
  • Premium File: 606 Questions & Answers. Last update: Nov 5, 2026
  • Training Course: 132 Video Lectures
  • Study Guide: 458 Pages
  • Latest Questions
  • 100% Accurate Answers
  • Fast Exam Updates
$79.97
$59.98

Microsoft AZ-104 Practice Test 41

Question 400

A virtual network module exports a subnet resource ID. A VM module consumes that output for its NIC deployment. The team asks how to avoid explicit manual sequencing when one module depends on another’s output. What should the root Bicep file do?

  1. Launch both modules independently and hardcode the subnet ID before it exists
  2. Declare the subnet module above the VM module in source-file order, but never reference its output
  3. Mark both modules as existing and assume Bicep infers the VM NIC's new subnet ID automatically
  4. Pass the first module’s output directly as the second module’s input

Explanation

Correct Answer

D:

A symbolic reference to the first module output establishes a dependency in Bicep’s deployment graph. The downstream module receives the actual subnet ID after it is produced.

Incorrect Answers

A:

Parallel hardcoded execution risks using an incorrect or unavailable resource ID. It discards the dependency information already exposed by the module output.

B:

Declaration order alone does not establish a resource dependency in Bicep. Passing the subnet module's output to the VM module creates the actual data dependency and deployment order.

C:

The existing keyword addresses an already-deployed resource; it does not communicate a newly created module output to another module or automatically infer a missing NIC subnet ID.

Question 401

An automated ARM deployment successfully validates a template but fails when creating a role assignment for a new managed identity. The deployment principal can create VMs but lacks Microsoft.Authorization/roleAssignments/write. What should be corrected?

  1. Grant an appropriately scoped role-assignment delegation capability to the deployment identity
  2. Grant the deployment principal Contributor at the resource group and assume Contributor includes creating role assignments
  3. Grant the newly created managed identity an additional Storage Blob Data Contributor role without giving the pipeline identity permission to create role assignments
  4. Grant the deployment principal Reader on the managed identity resource and expect that role to authorize creating assignments

Explanation

Correct Answer

A:

VM creation permission does not imply authority to create Azure RBAC grants. The deployment principal needs authorized role-assignment write at the assignment scope, constrained to the intended roles where possible.

Incorrect Answers

B:

Contributor can manage ordinary workload resources but normally excludes Microsoft.Authorization/roleAssignments/write. The pipeline requires a specifically scoped role-delegation grant for its role assignment resource, not another general resource contributor role.

C:

The pipeline is attempting an ARM Microsoft.Authorization/roleAssignments write. Adding a Blob data role to the target identity cannot grant the deployment principal permission to perform that management operation. The role-assignment caller needs narrowly scoped delegation rights.

D:

Reader permits inspection of resources, not creation of Azure RBAC role-assignment objects. The missing roleAssignments/write authorization remains, even if the principal can read the identity or create VMs.

Question 402

An ARM deployment requests a newly supported resource type, but Azure responds that its Microsoft service resource provider is not registered for the subscription. The template syntax itself validates. What is the missing subscription prerequisite?

  1. Change the ARM resource type's API version and retry without registering its resource provider namespace.
  2. Register the relevant resource provider namespace in the subscription using authorized permissions
  3. Register the provider namespace in a different subscription and assume registration automatically propagates to this deployment.
  4. Change the resource group's metadata region and retry, leaving the subscription provider registration unchanged.

Explanation

Correct Answer

B:

Azure resources are deployed through registered provider namespaces. A validated template cannot create a type when the subscription lacks the required provider registration.

Incorrect Answers

A:

Changing an API version can address a version-support error but does not itself register the required provider namespace in the subscription. The reported failure explicitly identifies missing provider registration, so register that provider at the affected subscription.

C:

Resource-provider registration is scoped to the subscription. Registration in another subscription does not satisfy the missing prerequisite in the one receiving this deployment. Register it with the appropriate permissions in the actual target subscription.

D:

The resource group's metadata location does not register a provider for the subscription. Region availability may be a separate compatibility concern, but this particular error requires subscription-level namespace registration before creating the resource type.

Question 403

A release pipeline is about to deploy an updated ARM JSON template to an existing resource group. Before applying it, the operator must see predicted resource creations, property modifications, and possible deletions without making any change to live resources. What Azure Resource Manager operation meets that predeployment safety need?

  1. Run the actual deployment in Complete mode and inspect resource changes after completion.
  2. Export the current resource group to an ARM template and assume it proves what the new template will change.
  3. Run an ARM template syntax validator only, without comparing the proposed definition to current Azure state.
  4. Run an ARM deployment what-if operation against the target scope and inspect its predicted change types before deployment.

Explanation

Correct Answer

D:

ARM what-if evaluates the proposed template against a target scope and reports predicted create, delete and modify changes without applying them. The operator can review the plan before releasing it, including unexpected changes to existing resources. Its output is predictive and can contain documented noise or unresolved expressions, so it must be inspected rather than treated as a perfect guarantee.

Incorrect Answers

A:

Complete mode executes a real deployment, and unlisted supported resources may be deleted. It is the opposite of a read-only preview and could irreversibly alter production before the reviewer approves the intended result. A release operator should evaluate proposed resource changes before running an actual deployment, not learn about unintended deletions afterward.

B:

Exporting current resources can help create a starting template, but it does not compare the proposed release template with live state to forecast the release effects. Existing resources and new declarations can differ in properties, identities, and dependencies. An export by itself cannot provide the predicted create, modify or delete actions requested.

C:

Static validation can catch malformed template structure, but its success does not establish the changes Azure would calculate against the resource group. A syntactically valid template might still replace settings or remove resources depending on deployment mode. The missing step is a live-state-aware comparison that does not perform the deployment.

Question 404

A deployment pipeline creates the same Bicep-defined application stack in many resource groups. Resource names must be deterministic within a given subscription/resource-group combination but avoid collision with the same stack deployed elsewhere. Which ARM expression family can help derive stable unique suffixes?

  1. Use uniqueString with stable scope identifiers as inputs when constructing permitted resource names
  2. Use random numbers on every deployment and assume all external references will remain stable
  3. Use newGuid() for the suffix on every deployment, assuming random names remain the same in repeated runs to one resource group
  4. Use uniqueString with deployment().name as the only input when the pipeline generates a different deployment name on each run

Explanation

Correct Answer

A:

The function generates a deterministic hash-based string from its inputs. Including the deployment's unique resource-group or subscription identifier helps differentiate otherwise identical stacks.

Incorrect Answers

B:

Random renaming makes subsequent deployments and resource references unpredictable. Idempotent infrastructure declarations benefit from deterministic naming.

C:

A new random identifier on each execution does not meet the requirement for stable names in a given deployment scope. uniqueString with consistent scope inputs yields repeatable values.

D:

The function is deterministic only for unchanged inputs. A changing deployment-run name produces different suffixes on redeployment, violating stable identity for the same subscription and resource group. Supply stable scope identifiers instead.

Question 405

A JSON ARM template references a parameter named `vmCount` that has no default value. The deployment command supplies no matching parameter and validation fails before any VM is created. Which action resolves this input contract issue?

  1. Supply a vmCount resource tag on the deployment's resource group while leaving the required template parameter unset
  2. Supply a valid vmCount parameter value or define an appropriate template default
  3. Add Reader role to the deployment identity without passing vmCount
  4. Provide a deployment parameter file containing other settings but omit vmCount because the resource loop can infer its count

Explanation

Correct Answer

B:

ARM validates required parameter inputs as part of template deployment. A missing value cannot be invented from unrelated resource state, so the resource declarations are never evaluated as intended.

Incorrect Answers

A:

An ARM resource tag is not a value for a template parameter. Validation still fails because vmCount has no provided argument or default.

C:

A read permission may help inspect resources but cannot satisfy a template's missing required input. The deployment remains invalid even with more visibility.

D:

A parameter file that omits a mandatory, defaultless vmCount still leaves the template's input contract unsatisfied. The deployment must supply the value or the template must define a valid default.

Question 406

An ARM deployment references an Azure resource provider type and API version that the provider does not support in the selected cloud. The principal has Contributor rights and the provider namespace is registered. Why does deployment still fail?

  1. Re-register the resource provider namespace and retry the same unsupported API version without changing the template
  2. Change the template deployment name but retain the resource type and API version
  3. Select a supported API version for the provider resource type and target cloud
  4. Grant Owner to the deployment principal and keep the unsupported API version

Explanation

Correct Answer

C:

ARM validates the resource type's available API versions. Contributor authorization and provider registration do not make an unsupported version of the resource contract callable.

Incorrect Answers

A:

Provider registration enables use of a provider namespace; it cannot add a missing API version to the provider’s supported resource-type contracts. The scenario says registration is already complete, so the declared API version must be corrected.

B:

Deployment name identifies a run; it does not alter the resource provider interface. The unsupported API version still fails validation.

D:

Owner does not change which versions a resource provider implements. The same schema or API error remains.

Question 407

A team proposes a Bicep update to a production virtual network. Before making any changes, the administrator needs a preview of resources that would be created or modified by the deployment using the current Azure state. Which operation should be run?

  1. Azure Resource Manager what-if for the deployment
  2. A live deployment with automatic approval
  3. Run Bicep compilation to ARM JSON without evaluating the target environment
  4. Run an ARM template validation request without requesting a what-if diff

Explanation

Correct Answer

A:

The ARM what-if operation evaluates the Bicep deployment against the target environment and reports predicted resource changes without applying them. It supports the pre-deployment impact review required here.

Incorrect Answers

B:

A live deployment performs writes before the team can examine their effects. It defeats the request to preview changes while leaving production untouched.

C:

Compilation checks source translation but does not compare proposed resources against deployed Azure state. It cannot show whether a specific live VNet would be modified.

D:

Template validation can identify invalid syntax and deployment constraints, but does not provide the desired live-resource create/modify prediction. What-if is designed for that comparison.

Question 408

An administrator runs ARM deployment what-if in a resource group and sees an unexpected Delete entry for a production resource. They must not risk deleting it during a routine update. What is the safest immediate action?

  1. Switch the what-if result format to ResourceIdOnly to hide the unexpected Delete entry, then deploy without changing the template
  2. Stop and inspect the template and deployment semantics until the planned deletion is understood
  3. Proceed immediately because what-if always blocks destructive operations
  4. Switch the deployment to Complete mode, assuming it always preserves resources missing from the template

Explanation

Correct Answer

B:

What-if previews proposed differences. An unexpected deletion is a warning to resolve before execution, especially when the deployment mode or template scope might remove out-of-template resources.

Incorrect Answers

A:

The what-if result format changes how differences are displayed, not the operations the subsequent ARM deployment may perform. Hiding a Delete indication cannot make the predicted destructive change safe; inspect the actual template and deployment behavior first.

C:

What-if reports planned changes but does not automatically guarantee that a later deployment cannot execute them. Ignoring the result exposes the resource.

D:

Complete mode can delete resources in the target resource group that are absent from the submitted template. Switching to it without investigating the unexpected what-if Delete may make the risk worse, not guarantee preservation. Resolve the planned change before deploying.

Question 409

An engineer exports an Azure resource group configuration as an ARM template to use as a deployment starting point. The exported template contains autogenerated parameters and resource details. What should the engineer do before using it in a new environment?

  1. Treat the exported file as a VM disk backup image
  2. Switch all Azure Policy assignments to Disabled permanently
  3. Review and normalize exported definitions, parameters, sensitive settings, and unsupported properties
  4. Assume the export can always be replayed unchanged in any subscription

Explanation

Correct Answer

C:

Template export is a starting representation of deployed resources. A portable deployment requires inspection for environment-specific IDs, read-only properties and secrets before reuse.

Incorrect Answers

A:

An ARM template describes resource configuration, not the contents of an operating-system or data disk. It cannot recover application data as a backup.

B:

Policy state does not fix portability of exported resources. Disabling compliance controls would introduce a separate governance problem.

D:

Exported resource definitions may contain fixed IDs, names and configuration artifacts specific to the original deployment. Blind replay risks failure or unintended resources.

Question 410

A reviewer runs ARM what-if and sees only a harmless tag update. They conclude that a VM extension script can never alter data inside the guest during deployment. Which limitation should be highlighted?

  1. What-if fully executes VM extensions in a disposable environment and validates their application side effects
  2. What-if compares infrastructure resource changes but does not prove all guest-level script or runtime side effects
  3. Treat a successful template schema validation as proof of extension script safety
  4. Assume what-if checks application data inside VM disks because the template declares an extension

Explanation

Correct Answer

B:

The what-if result is valuable for ARM configuration changes, yet guest execution and workload behavior require separate review or controlled testing. A small template diff is not a guarantee about scripts.

Incorrect Answers

A:

What-if previews ARM resource changes rather than running guest code in a complete test VM. It cannot prove that arbitrary extension scripts are harmless.

C:

Schema validation checks resource declaration shapes, not every guest action a script may perform. A deployment can have valid JSON and still run destructive guest commands.

D:

What-if inspects ARM changes but cannot evaluate arbitrary workload files and database effects inside a running guest. The extension requires separate safety review.

Microsoft Azure Administrator (AZ-104) Practice Tests

UP

SPECIAL OFFER: GET 10% OFF

This is ONE TIME OFFER

ExamSnap Discount Offer
Enter Your Email Address to Receive Your 10% Off Discount Code

A confirmation link will be sent to this email address to verify your login. *We value your privacy. We will not rent or sell your email address.

Download Free Demo of VCE Exam Simulator

Experience Avanset VCE Exam Simulator for yourself.

Simply submit your e-mail address below to get started with our interactive software demo of your free trial.

Free Demo Limits: In the demo version you will be able to access only first 5 questions from exam.