mcAfee Secure Website
23

Microsoft AZ-104 Bundle

Exam Code: AZ-104

Exam Name Microsoft Azure Administrator

Certification Provider: Microsoft

Corresponding Certification: Microsoft Certified: Azure Administrator Associate

AZ-104 Training Materials $44.99

Reliable & Actual Study Materials for AZ-104 Exam Success

The Latest AZ-104 Exam Questions as Experienced in the Actual Test!

  • 24
    Questions & Answers

    AZ-104 Questions & Answers

    606 Questions & Answers

    Includes questions types found on actual exam such as drag and drop, simulation, type in, and fill in the blank.

  • 25
    AZ-104 Video Course

    AZ-104 Training Course

    132 Video Lectures

    Based on Real Life Scenarios which you will encounter in exam and learn by working with real equipment.

  • exam =30
    Study Guide

    AZ-104 Study Guide

    458 PDF Pages

    Study Guide developed by industry experts who have written exams in the past. They are technology-specific IT certification researchers with at least a decade of experience at Fortune 500 companies.

exam =32

Microsoft Azure Administrator (AZ-104) Practice Tests

Guarantee

Satisfaction Guaranteed

Pass4sure has a remarkable Microsoft Candidate Success record. We're confident of our products and provide no hassle product exchange. That's how confident we are!

99.3% Pass Rate
Total Cost: $194.97
Bundle Price: $149.98

Purchase Individually

  • exam =34
    Questions & Answers

    Questions & Answers

    606 Questions

    $124.99
    exam =35
  • exam =37
    AZ-104 Video Course

    Training Course

    132 Video Lectures

    $39.99
  • exam =36
    Study Guide

    Study Guide

    458 PDF Pages

    $29.99

Microsoft AZ-104 Practice Test 40

Question 390

An ARM template deploys a network interface and a virtual machine. The VM resource has `dependsOn` containing the network interface resource ID. How does this affect deployment?

  1. ARM schedules the NIC dependency before the VM resource rather than attempting the VM first.
  2. The NIC is deleted immediately after the VM is created.
  3. dependsOn converts the NIC into an existing-only resource declaration.
  4. The VM automatically receives a public IP even if the NIC has none.

Explanation

Correct Answer

A:

Explicit dependency ordering makes ARM wait for the dependent resource to complete before the VM deployment begins.

Incorrect Answers

B:

Dependency declarations do not delete prerequisite resources.

C:

dependsOn orders resources but does not change create/update declarations into existing references.

D:

IP assignment depends on the networking resources, not on dependsOn alone.

Question 391

A resource-group deployment calls `resourceId('Microsoft.Storage/storageAccounts','starchive')` for a pre-existing storage account whose intended resource group is the deployment resource group. Which conclusion about the expression is correct?

  1. The expression creates starchive before any dependent deployment can run.
  2. The expression returns the current storage account access key for the resource.
  3. The expression automatically moves the storage account into another subscription.
  4. The expression constructs the resource ID at the relevant scope; referencing an ID does not declare or create the storage account.

Explanation

Correct Answer

D:

The function yields an identifier under the specified/default scope for use by other resources or outputs.

Incorrect Answers

A:

resourceId constructs an identifier and is not itself a resource deployment declaration.

B:

ARM resourceId does not return shared account authentication secrets.

C:

A resource ID expression does not move resources between subscription scopes.

Question 392

A template must accept a database administrator password without storing the literal value in the ARM template, deployment history output, or source repository. Which deployment input is appropriate?

  1. Declare the password as a plain string default and commit the value in source control.
  2. Use a secureString parameter supplied through an approved secret-handling route and avoid returning the plaintext in outputs.
  3. Include the password in a public resource tag to keep it outside the JSON properties.
  4. Print the resolved password as a deployment output so all readers can confirm it.

Explanation

Correct Answer

B:

Secure parameters and approved secret delivery reduce exposure; avoid echoing their values through ordinary outputs.

Incorrect Answers

A:

A committed plain-text default exposes credentials.

C:

Resource tags are visible management-plane metadata, not a secret store.

D:

Ordinary deployment outputs can be inspected in history and should not expose plaintext secrets.

Question 393

A parent Bicep file invokes a child module that declares a required `param environment string`. The parent has a variable named environment but does not pass module params. Why does the deployment fail?

  1. The child module automatically inherits all parent variables as parameter values.
  2. The parent must explicitly map the required environment value in the module params object.
  3. Modules cannot accept string parameters in Bicep.
  4. The child module receives the parent variable only after creating an Azure Key Vault.

Explanation

Correct Answer

B:

Bicep modules have explicit parameter contracts; supplying params maps values from the parent into the child.

Incorrect Answers

A:

Parent variables do not automatically bind required child-module parameters.

C:

String-typed module parameters are supported.

D:

Key Vault creation is unrelated to module parameter passing.

Question 394

An ARM deployment output expression references the primary Blob endpoint of a newly deployed storage account. The deployment succeeds. What does the output provide?

  1. The value evaluated by the output expression, such as that storage account’s Blob service endpoint.
  2. A plaintext list of every account access key, regardless of the output expression.
  3. A rollback snapshot for the full resource group.
  4. An automatic additional storage account with the output name.

Explanation

Correct Answer

A:

An output returns the evaluated expression after successful deployment; a Blob endpoint can be exposed for client configuration.

Incorrect Answers

B:

Only explicitly provided outputs are returned; access keys are not implicitly dumped.

C:

Outputs are not backup or deployment rollback operations.

D:

An output declaration reports a value and does not create another resource.

Question 395

Storage account st-ledger already exists in resource group rg-finance. A new ARM JSON template declares this same storage account, but its resource `condition` evaluates to `false`. The deployment runs in INCREMENTAL resource-group mode; no other template declaration changes or deletes st-ledger and no deployment stack is used. Other unrelated resources have unconditional declarations. What happens to st-ledger in this deployment?

  1. Its conditional declaration is skipped; incremental deployment leaves the existing st-ledger unchanged while other unconditional resources can still deploy.
  2. ARM deletes the existing storage account whenever condition is false, even during incremental mode with no other delete instruction.
  3. ARM first creates a second st-ledger account then destroys it before the deployment succeeds.
  4. The false condition skips every unconditional resource in the same template because conditions apply to the whole deployment.

Explanation

Correct Answer

A:

The resource-level ARM condition evaluates to false, so this declaration is not deployed. Incremental mode preserves an already existing resource that is absent from the effective deployment; it does not infer a delete. Other unconditional declarations are evaluated normally. This conclusion deliberately depends on the specified incremental mode: modern complete-mode deletions behave differently.

Incorrect Answers

B:

Complete-mode resource-group deployments can delete an existing resource omitted by a false condition when using a modern deployment API version, but this scenario explicitly uses incremental mode. A false condition in incremental mode does not authorize deleting the pre-existing st-ledger account. Confusing the modes creates a destructive and factually invalid rule.

C:

A false resource condition is not a create-then-destroy instruction. ARM does not provision a duplicate account for the resource under this condition, and the pre-existing account remains as it was. Creation semantics and destructive deployment-mode policies are separate from a resource-level Boolean condition.

D:

The condition is attached to the specific storage account declaration, not the complete ARM template. Unconditional resources can still be created or updated according to their own declarations and scope. There is no cascading suppression of the whole template simply because one resource condition is false.

Question 396

A Bicep file contains `resource st 'Microsoft.Storage/storageAccounts@2025-06-01' existing = {name:'starchive'}`. No other resource declaration creates this account. What does the `existing` keyword mean?

  1. The deployment will create starchive if it cannot find it at the referenced scope.
  2. Bicep references an already existing resource without deploying another copy.
  3. The resource is recreated with a random new name on every deployment.
  4. Bicep makes the account publicly writable because existing bypasses RBAC.

Explanation

Correct Answer

B:

The existing declaration lets other expressions read supported resource properties without deploying it.

Incorrect Answers

A:

An existing resource reference expects the resource to exist; it does not create a missing one.

C:

The existing keyword has no resource recreation or name-randomization semantics.

D:

The keyword changes how Bicep references a resource, not Azure security permissions.

Question 397

A Bicep declaration loops over `['eastus','westus2','centralus']`, producing one storage account resource per region. Names are generated uniquely. How many resource instances does the loop define?

  1. Three, because the loop creates one resource instance for each of the three iterable region values.
  2. One, because only the first array entry creates a resource.
  3. Six, because each region always creates two resources automatically.
  4. None, because Bicep does not permit arrays in resource for-loops.

Explanation

Correct Answer

A:

Resource loops can generate one resource instance per array element; three entries define three resources.

Incorrect Answers

B:

Loop syntax evaluates each element, not just the first.

C:

There is no automatic doubling from the list of regions.

D:

Bicep supports resource iteration with for expressions and requires unique names.

Question 398

A resource-group-scoped ARM template uses `[resourceGroup().location]` to set a newly deployed storage resource’s location. The resource group itself is in eastus, but one existing VM in that group runs in westus2. What location does the expression return?

  1. westus2, because ARM derives resourceGroup().location from the first VM.
  2. eastus, because it returns the resource group’s location metadata, not the location of each contained resource.
  3. The Azure subscription tenant’s home geography, regardless of the resource group.
  4. An empty value because resource groups cannot have location metadata.

Explanation

Correct Answer

B:

resourceGroup().location returns the resource group’s metadata location, which is eastus in this scenario.

Incorrect Answers

A:

Resource group location metadata does not follow individual resource location.

C:

The function is scoped to the resource group and does not infer a tenant home geography.

D:

Azure resource groups have a location for their metadata even when resources are deployed in other regions.

Question 399

An ARM storage template uses a hard-coded region that must vary by environment. What is the most appropriate next administrative decision?

  1. Run template validation and what-if against the exact deployment scope.
  2. Add the plan resource and correct dependency or resource ID reference.
  3. Add a location parameter and reference it consistently from affected resources.
  4. Convert it to a secure parameter and supply the secret outside source control.

Explanation

Correct Answer

C:

Declare an ARM template parameter for the intended Azure region and use that parameter for the location property of each relevant storage resource. Provide environment-specific parameter values when deploying. Verify service availability and naming constraints in the selected region; this removes the embedded constant while preserving a single reusable template.

Incorrect Answers

A:

Running ARM validation or what-if is a prudent predeployment check, but it does not replace the hard-coded regional constant with a value chosen by the deployment environment. Without a parameter change, the same template can still place resources in the wrong region.

B:

Creating an App Service plan resource is useful when a web app template omits an actual dependency. The stated defect is an inflexible storage deployment location, not a missing web hosting resource; adding a plan would not make the storage location configurable.

D:

A secure parameter is appropriate for secret material such as credentials. The requested location is not a secret; replacing it with a secure credential parameter neither selects the target Azure region nor solves environment portability.

Question 400

An ARM deployment must add tags to each generated resource. Which administrative action most directly meets the requirement?

  1. Add the plan resource and correct dependency or resource ID reference.
  2. Add validated resource naming and length constraints to the template inputs before redeployment.
  3. Modify the resource tags property rather than unrelated template metadata.
  4. Fix the expression/parameter identity instead of supplying duplicate shadow parameters.

Explanation

Correct Answer

C:

Azure resource tags are properties on the actual resource declarations, not the deployment's general metadata. Add the required name/value pairs to each eligible resource's tags object, using parameters or variables where consistent values are needed. Validate the resulting template before deployment and account for resource types with different tagging support.

Incorrect Answers

A:

A hosting-plan dependency or resource ID reference controls which service resource a web app consumes. It does not populate the Azure resource tags of all resources emitted by this ARM template, so changing it would leave the tagging requirement unmet.

B:

Resource-name length validation prevents failed deployments caused by provider naming rules. It does not attach Owner, Environment or other tags to generated resources. The template needs explicit tags fields on the deployed resource definitions.

D:

Fixing a misspelled ARM parameter reference removes expression-evaluation errors. It does not create or assign the requested resource tags, so it is an unrelated change unless the tag expressions themselves have a verified reference error.