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 18

Question 170

An administrator proposes granting privileged access to all VMs bearing a confidential-project tag, assuming anyone who can change tags should also be permitted to administer those VMs. Security requires enforceable Azure control-plane access. What should govern the permission instead?

  1. Rely on an Azure Policy tag-compliance Audit result to confer VM administrative permissions when the required project tag is present
  2. Use Azure RBAC roles and appropriate scopes for VM administration, independent of informational tags
  3. Use an Azure Policy Modify assignment to add confidential-project tags, then treat a compliant tag result as authorization to start or delete the VM
  4. Use Azure RBAC Reader at the subscription and expect a matching confidential-project tag to expand that read role into VM management

Explanation

Correct Answer

B:

RBAC assignments authorize resource operations based on principal, role and scope. Tags help classify and report resources but are not by themselves enforceable management-access grants.

Incorrect Answers

A:

Azure Policy compliance evaluation does not confer Azure RBAC permissions. Tags can be evaluated for governance, but authorization to start or manage a VM still comes from actual identity, role assignment and scope.

C:

Modify can remediate supported metadata properties, but a successful tag-compliance result is not an Azure RBAC role assignment and cannot grant start or delete permissions. VM operations still require the principal's applicable role and scope.

D:

Reader has management-plane read permissions, not VM write/start authorization. A resource tag does not elevate a Reader assignment into the required VM management Actions.

Question 171

An Azure resource tag is mandatory on new resources, and the organization wants a policy to add a default tag value when the deployment request does not supply it. Existing resources will be handled separately. Which Azure Policy effect can add that value during the request?

  1. Append, with an appropriate tag field and value in the policy definition
  2. Deny, because blocking a request also writes the missing tag
  3. Audit, because evaluation changes the ARM request payload
  4. Use DeployIfNotExists because it inserts the missing tag into the same incoming create request before the resource provider receives it

Explanation

Correct Answer

A:

Azure Policy Append can add an allowed field or tag to the create/update request before the resource provider processes it, so it can supply the missing tag in this narrowly worded scenario. However, Microsoft recommends the Modify effect instead when designing new tag policies; Append is primarily intended for non-tag fields. Append also does not automatically backfill resources that already exist, which the organization explicitly handles separately. The correct technical distinction here is request-time mutation versus audit, deny, or after-deployment action.

Incorrect Answers

B:

Deny refuses a noncompliant request and cannot write a default tag into the resource.

C:

Audit evaluates and reports noncompliance but does not modify the resource request.

D:

DeployIfNotExists evaluates conditions around successful resource operations and can deploy related resources or settings with configured permissions. It is not the inline request-field insertion mechanism described here. For this specifically requested creation-time tag addition, Append changes supported fields before the incoming request reaches the resource provider.

Question 172

A cost-allocation export groups Azure resources by the value of a CostCenter tag. A deployment pipeline writes the value FIN on half the resources and fin on the others, while the key uses mixed case. Why are the charges split between two tag values?

  1. A resource group tag automatically overwrites every child value
  2. Azure tag values are case-sensitive even though tag names are case-insensitive for operations
  3. CostCenter and costcenter are always separate tag names within a resource
  4. Use CostCenter tag values FIN and fin interchangeably in a cost export grouping

Explanation

Correct Answer

B:

Azure treats tag-key case flexibly for lookups, but values preserve distinctions such as FIN versus fin. Cost reports can therefore partition resources by the exact value.

Incorrect Answers

A:

Tags do not automatically inherit from a resource group without a configured enforcement or propagation process. No such mechanism is in the scenario.

C:

Tag-name operations are case-insensitive, so casing of the key does not create independent tag identities under normal operations.

D:

Tag-value casing is meaningful for grouping. Treating those strings as identical would perpetuate the observed allocation split.

Question 173

An operations group proposes recording an API signing secret in an Azure resource tag named RotationKey so the value appears in cost exports. Security refuses even though RBAC controls resource updates. What is the core concern?

  1. Tag contents are never available outside the portal editor
  2. A tag automatically restricts resource permissions to the tag creator
  3. Resource tags are plaintext metadata and may be exposed in reports and management outputs
  4. Tags are encrypted at rest with customer-managed Key Vault keys automatically

Explanation

Correct Answer

C:

Tags are not designed as a secret store. Their values can be surfaced through cost reports, templates, logs, and APIs, so confidential values belong in a secured secret-management service.

Incorrect Answers

A:

Cost analysis and resource APIs commonly display tag data. Assuming portal-only exposure would miss several disclosure paths.

B:

Tags are organizational attributes and do not automatically impose access-control ownership. RBAC and ABAC require explicit policies and role conditions.

D:

Storage-level platform encryption does not turn tags into access-controlled secret values; they remain readable through ordinary management/reporting surfaces.

Question 174

An automated cost allocation query expects resources tagged CostCenter, but some deployment teams write costcenter as the tag name. The administrator wants consistent filtering without creating a second logical tag category. What should be standardized?

  1. The resource provider version for every tag-bearing resource
  2. The exact tag key and its casing across deployments and policy rules
  3. Normalize only tag values while allowing deployment templates to emit CostCenter and costcenter key spellings interchangeably
  4. Require the CostCenter tag through policy while allowing deployment templates to emit whichever casing each team prefers

Explanation

Correct Answer

B:

Azure tag names may compare case-insensitively for operations, but returned casing and dependent scripts or queries can differ. A canonical naming convention makes reporting and automation predictable without equating different values.

Incorrect Answers

A:

Resource providers govern service schemas, not a tenant-wide naming convention for tag keys. This is a metadata governance problem.

C:

Azure tag-key operations have case-insensitive matching semantics in many contexts, but the original casing can be returned and consumed by downstream cost exports or automation. Normalizing values alone does not guarantee consistent key names in queries and templates. The team should standardize the key spelling and casing end to end.

D:

A requirement that a resource carry a tag does not, by itself, impose a canonical spelling on every template, API response and downstream reporting expression. Because teams still emit inconsistent key casing, automation that expects the same displayed key remains fragile. Standardize the tag key spelling in the actual source templates and policies.

Question 175

An automation appends a separate tag for every build event to the same Azure VM. It eventually fails because the resource has reached the supported per-resource tag limit. How should the team redesign this metadata tracking?

  1. Store every build event indefinitely in the JSON-formatted value of one VM tag
  2. Use Azure Policy Modify to add one new resource tag for every build while keeping prior build tags
  3. Keep a bounded set of useful resource tags and move unbounded event history to a logging system
  4. Move per-build tags from the VM to its resource group and create one new group tag per event

Explanation

Correct Answer

C:

Resource tags are bounded governance and categorization metadata, not a log of unlimited build events. Keep durable owner, cost-center, environment, or similar classifications in a fixed set of tags and send the append-only build history into an appropriate logging or event storage service. This separates stable metadata from unbounded observations and avoids repeatedly exhausting resource tag slots.

Incorrect Answers

A:

Putting the growing event ledger in one JSON tag avoids multiplying tag names initially, but it does not provide unlimited history. Azure tag values have a length limit, and each update must overwrite that value. It is not a durable searchable event stream for the indefinitely increasing build history described.

B:

Azure Policy Modify can change supported tags on resources, but it does not increase the per-resource limit on name/value tag pairs. An automated process that adds a fresh tag on every build will still exhaust the finite number of tags and merely automates the original design flaw.

D:

Resource groups are also subject to a fixed tag-count limit, and group-level tags do not automatically become an unlimited event ledger for each member VM. Relocating one-tag-per-build history to the group would exhaust another quota and risk mixing events from different VMs; keep detailed events in logging storage instead.

Question 176

A governance team needs cost-center tags on VMs, but an ARM deployment tool uses a PUT operation that replaces the resource's complete existing tag set when setting a single new tag. What should the deployment author do to avoid erasing unrelated tags?

  1. Use a supported tag merge/update operation or include the existing tags when replacing the set
  2. Set a resource-group Delete lock and assume it merges tag updates
  3. Use az tag update with --operation Replace and supply only the new cost-center tag, assuming all existing tags are merged
  4. Assign the cost-center administrator subscription Owner

Explanation

Correct Answer

A:

ARM tag APIs can support different write semantics. A full replacement may remove metadata not supplied in the request; merging preserves other teams' tags while applying the new cost-center value.

Incorrect Answers

B:

Delete locks restrict deletion but do not change the semantics of a tags PUT request. The tool could still overwrite unrelated metadata during an allowed write.

C:

The Replace operation overwrites the resource's tag set instead of preserving unspecified existing keys. The scenario requires a supported merge/update of the target tag or resubmission of all intended tags, not destruction of other metadata.

D:

Broader permissions do not automatically preserve tag values. An authorized but incorrectly constructed update can still replace the tag set.

Question 177

An automation maintains a VM tagged Environment=Prod, CostCenter=42 and ReviewTicket=INC-17. The review ticket has closed, so only ReviewTicket must be removed while the other two tags remain unchanged. The team uses the Azure CLI tag-management command for the VM resource ID. Which operation is appropriate?

  1. Run az tag delete with the VM resource ID, because it selectively deletes the supplied ReviewTicket key
  2. Run az tag update --resource-id <vm-id> --operation Delete --tags ReviewTicket=INC-17 to remove that specific tag
  3. Move the VM to a new resource group and assume the ReviewTicket tag is automatically discarded
  4. Run az tag update --operation Merge and set ReviewTicket to an empty string, assuming Merge deletes the tag key

Explanation

Correct Answer

B:

The az tag update operation supports Delete with specified tag names and values on a resource ID. Targeting ReviewTicket removes the obsolete metadata while preserving Environment and CostCenter. This is a resource-tag operation, not a VM deletion or access-control change; it exactly matches the requirement for selective cleanup without disrupting existing unrelated tags.

Incorrect Answers

A:

Azure CLI az tag delete removes all the tags at the supplied resource scope; it is not the selective deletion of one named key. Here CostCenter and Environment must survive the cleanup, so a whole tag-set deletion would break finance and environment classification. The --operation Delete variant on az tag update is the fine-grained command for one tag.

C:

Moving a supported resource between resource groups changes its ARM resource ID and effective inherited scope, but it does not function as a selective tag-key removal operation. A move also introduces dependency and access considerations unrelated to the expired review ticket. The obsolete tag should be edited directly while the existing VM remains in place.

D:

Merge updates or adds tag values without deleting existing tag keys merely because a value is empty. Use the Delete operation with the specified ReviewTicket key to remove that tag while keeping Environment and CostCenter.

Question 178

A custom Azure Policy definition requires the CostCenter tag on resources that support resource tagging. With policy mode All, compliance findings also include nested child resource types that cannot carry tags. The governance team wants evaluation limited to resource types supporting tags and location. Which policy definition mode should it use?

  1. Keep mode All because it automatically skips resource types that cannot carry tags
  2. Use mode Indexed so the policy evaluates resource types that support tags and location
  3. Use mode Microsoft.KeyVault.Data, which evaluates ordinary ARM resource tags across providers
  4. Use mode Microsoft.Kubernetes.Data, which is the general policy mode for tag-bearing Azure resources

Explanation

Correct Answer

B:

Indexed is the Azure Policy mode intended for resource types that support resource tags and location. It prevents a general resource-tag requirement from reporting untaggable nested child resources as policy failures while continuing to evaluate supported tagged resource types. The policy author still needs an appropriate definition rule and assignment; changing mode alone does not add missing tags.

Incorrect Answers

A:

All mode evaluates resource groups and additional resource types, including types that do not support tags, so a rule simply checking missing tags can produce irrelevant findings. Retaining All without explicit resource-type filtering does not meet the requested tag-support scope. The policy mode should itself narrow evaluation to resources with both tagging and location support.

C:

Microsoft.KeyVault.Data is a specialized Azure Policy resource-provider mode for evaluating supported Key Vault data-plane objects, such as keys, secrets and certificates. It does not represent the ordinary ARM resource tag inventory across providers. Selecting it would shift evaluation away from the resource types addressed by the CostCenter governance requirement.

D:

Microsoft.Kubernetes.Data applies to supported Kubernetes admission/policy scenarios, not general Azure Resource Manager resource tags. A VM, storage account or other tagged ARM resource is not made eligible by using the Kubernetes policy mode. Indexed is the supported general mode for the required tag-and-location-capable Azure resource types.

Question 179

A department must move billing ownership for an Azure workload to another resource group in the same subscription. The workload has several resources with dependencies, and the administrator wants to retain the resources rather than delete and recreate them. What should be checked before initiating a resource-group move?

  1. Check resource-type move support and include required dependent resources in a supported move operation
  2. Rename the source resource group, assuming that changes every resource parent automatically
  3. Copy resource tags to the destination group, treating tags as an actual resource move
  4. Export each source resource as an ARM template and deploy new copies in the destination group without using a move operation

Explanation

Correct Answer

A:

Azure supports moves for certain resource types with constraints and dependent-resource requirements. Validating support and collecting the dependencies avoids attempting an unsupported partial move.

Incorrect Answers

B:

Changing a group display name does not transfer the parent scope of resources. A proper Azure Resource Manager move operation is needed.

C:

Tags annotate resources and may aid cost grouping but do not change their containing resource group. No resource ownership or ARM ID changes through tagging alone.

D:

Redeployment creates new resource instances and potentially new identities, dependencies and endpoints; it does not preserve the existing resources through a supported group move as requested.

Question 180

A deployment pipeline creates a resource group in East US and then needs to create a storage account in West US inside that group. A reviewer assumes the two locations must always be identical. Which clarification is correct?

  1. Move the storage account into a separate Microsoft Entra tenant to change its region
  2. Choose East US as the resource group's metadata location and assume ARM will force every contained resource into East US
  3. A resource group has a metadata location; supported contained resources can be deployed in other Azure regions
  4. Every Azure resource inherits the region of its resource group and cannot override it

Explanation

Correct Answer

C:

The resource-group location stores its management metadata, while individual resources have their own location properties and support constraints. A different region is possible when the resource type allows it.

Incorrect Answers

A:

A tenant boundary does not control an Azure resource-group location relationship. Reorganizing identity ownership is unrelated to the required deployment location.

B:

A resource group's location specifies where its management metadata is stored, not the mandatory region of every contained resource. The West US storage account remains a supported regional deployment where the resource type and policies allow it.

D:

This confuses management metadata with resource placement. Azure resources in the same group can reside in different regions when supported.

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.