cert
cert-1
cert-2

Pass Microsoft AZ-104 Exam in First Attempt Guaranteed!

Get 100% Latest Exam Questions, Accurate & Verified Answers to Pass the Actual Exam!
30 Days Free Updates, Instant Download!

cert-5
cert-6
AZ-104 Exam - Verified By Experts
AZ-104 Premium Bundle
$29.98

AZ-104 Premium Bundle

$79.99
$109.97
  • Premium File 606 Questions & Answers. Last update: Oct 30, 2026
  • Training Course 132 Video Lectures
  • Study Guide 458 Pages
 
$109.97
$79.99
accept 453 downloads in last 7 days
block-screenshots
Purchase Microsoft AZ-104 Exam Training Products Individually
Microsoft AZ-104 Premium File
Premium File 606 Q&A
$76.99$69.99
Microsoft AZ-104 Video Training Course
Training Course 132 Lectures
$21.99 $19.99
Microsoft AZ-104 PDF Study Guide
Study Guide 458 Pages
$21.99 $19.99
Microsoft AZ-104 Practice Test 6

Question 50

A running Azure VM is underpowered, but the desired larger size may not be available on its existing host. What should the administrator expect during resizing?

  1. Changing the resource group's name automatically enlarges its CPU
  2. A resize may require stopping and deallocating the VM, then selecting a supported size
  3. Azure VMs can never change size after creation
  4. The blob's storage access tier determines the VM's new vCPU count

Explanation

Correct Answer

B:

Azure VM resizing must consider regional capacity, size-family support and host allocation. Some changes require a stop/deallocate operation and can incur downtime; plan availability and disk persistence accordingly.

Incorrect Answers

A:

Resource groups organize resources and do not allocate virtual CPU or memory. A rename would not meet a compute-capacity change.

C:

Azure supports resizing VMs within applicable constraints. The claim that all VM sizes are immutable is inaccurate.

D:

Blob access tiers affect storage cost and retrieval behavior, not the VM SKU's vCPU and RAM allocation. Compute resizing is a separate operation.

Question 51

An Azure VM needs to read a specific Key Vault secret without storing an application client secret. Which TWO actions enable least-privilege identity-based access? Choose TWO.

  1. Enable a managed identity on the VM
  2. Embed the subscription Owner password in the app settings
  3. Grant anonymous public access to the vault
  4. Reuse the storage account's primary key as a Key Vault token
  5. Grant that managed identity the necessary secret-read permission in Key Vault

Explanation

Correct Answers

A:

A system-assigned or user-assigned managed identity provides the workload an Entra principal and token flow without storing an app secret in its configuration. The identity itself still needs authorization for the target secret.

E:

Assign an appropriate Key Vault data access role or access policy at the required scope, depending on the vault's permission model. Authentication without that permission does not make the secret readable.

Incorrect Answers

B:

Embedding privileged credentials creates secret leakage and rotation risk. Subscription Owner is far broader than secret retrieval and should not be used as an application password.

C:

Key Vault secret data requires authorized access and should not be made anonymous. Public network reachability does not equal permission to read secrets.

D:

A storage account key signs certain Azure Storage requests. It is not a general-purpose token for Key Vault secret access.

Question 52

A stateful Azure VM has an OS disk and a separate managed data disk. The VM is deleted, and the administrator expects the data disk to be retained. What must be verified?

  1. The virtual network's DNS server address
  2. The disk's delete-with-VM behavior and resource retention settings before deletion
  3. The subscription's free trial expiry date only
  4. Whether Azure Advisor has a VM performance recommendation

Explanation

Correct Answer

B:

Azure VMs have disk deletion behaviors that should be checked before removing the machine. Set the desired retention for the data disk and validate backups; do not assume every attached disk survives by default.

Incorrect Answers

A:

DNS configuration affects name resolution, not managed disk resource lifecycle. It cannot determine whether a data disk is removed with the VM.

C:

Subscription billing status can affect service operation but does not define an individual disk's delete-on-VM-deletion choice.

D:

Advisor recommendations provide optimization guidance, not authoritative data disk retention configuration. Inspect the VM and disk delete options directly.

Question 53

An engineer needs a reusable recovery point of a managed OS disk before an experimental change. Which Azure resource captures a point-in-time disk copy?

  1. An Azure managed disk snapshot
  2. An NSG flow log
  3. An App Service TLS certificate
  4. A Microsoft Entra dynamic security group

Explanation

Correct Answer

A:

Managed disk snapshots represent point-in-time copies of disk state and can be used as the basis for recovery or creating a new disk. For consistency-sensitive workloads, coordinate application quiescence and backup design.

Incorrect Answers

B:

Flow logs describe permitted and denied network traffic and do not preserve operating system disk contents. They cannot restore the VM from a disk state.

C:

TLS certificates secure application transport but do not record VM disk data. They cannot provide a disk rollback point.

D:

Directory groups manage identities and memberships. They are not a disk-snapshot storage resource.

Question 54

A group of VMs in one region must reduce downtime from planned maintenance and localized hardware faults, but the chosen region does not support the requested zones. What can an availability set provide?

  1. Logical placement across fault and update domains for supported VMs
  2. Automatic cross-region failover with zero data loss
  3. A guarantee that one VM survives a region-wide outage
  4. An automatic object-replication policy for blobs

Explanation

Correct Answer

A:

An availability set distributes eligible VMs across fault and update domains to reduce correlated host/maintenance disruption within the region. Use multiple app instances and plan their load distribution.

Incorrect Answers

B:

Cross-region disaster recovery requires a separate architecture and replication mechanism. An availability set is not automatically a second-region failover service.

C:

A region-wide incident can affect all VMs in the availability set. There is no general guarantee of continued service under a whole-region outage.

D:

Blob object replication is a storage feature independent of VM fault and update domains. It does not distribute VM instances across hosts.

Question 55

A monitoring agent is attached as a VM extension, but a deployment script attempts to install it before the VM exists. Which deployment dependency should be enforced?

  1. Extension resource deployment after the target VM resource is created
  2. Delete the extension and rely only on the VM name
  3. Create an unrelated DNS A record as the extension parent
  4. Wait for the user's SSPR password reset

Explanation

Correct Answer

A:

A VM extension is associated with a specific VM resource. The declarative deployment should reference its parent and order the extension after the VM exists, while handling guest-agent provisioning readiness.

Incorrect Answers

B:

Removing the extension defeats the monitoring requirement. VM names alone do not install an agent or guarantee telemetry collection.

C:

DNS A records translate names to IP addresses; they do not create a VM resource needed by an extension.

D:

Identity password reset is unrelated to Azure Resource Manager extension dependencies. The failure is deployment ordering.

Question 56

An administrator wants to move an Azure VM to another region for a migration. The current VM cannot simply be dragged into a new resource group and keep the same region. What planning distinction matters?

  1. A resource-group move and a cross-region migration are different operations with their own support paths
  2. Azure regions are only tags, so changing a region tag moves the VM
  3. Reassigning the Reader role moves VM disks geographically
  4. A private DNS zone always migrates the VM automatically

Explanation

Correct Answer

A:

Resource group and subscription moves change management placement where supported; region relocation usually needs a separate migration or recovery method such as Azure Resource Mover or supported replication workflows. Check resource dependencies before moving.

Incorrect Answers

B:

Changing tags cannot change the physical deployment location of compute and disks. Region is a resource property constrained by Azure infrastructure.

C:

Reader authorizes inspection rather than relocation. Assigning it cannot move compute resources or change disk placement.

D:

Private DNS zones map names to addresses and do not replicate or move VM state. Name resolution must be updated as part of a migration plan.

Question 57

A container image must be stored privately for reuse by Azure Container Apps and other deployments. What Azure service should hold the image?

  1. Azure Container Registry
  2. A Microsoft Entra dynamic group
  3. Azure DNS
  4. Azure Site Recovery

Explanation

Correct Answer

A:

Azure Container Registry hosts OCI-compatible images and artifacts and supports private authentication and access control. Configure the deploying workload's identity with appropriate pull rights instead of publishing registry administrator passwords.

Incorrect Answers

B:

A dynamic group assigns membership to directory principals, not container images. It cannot serve as a private image repository.

C:

DNS manages name resolution rather than storing versioned container layers. A DNS zone is not an image registry.

D:

Site Recovery replicates supported workloads for disaster recovery; it does not host a private collection of application container images.

Question 58

A team needs to run one short-lived containerized data conversion task without building a Kubernetes cluster. Which service is the simplest direct fit?

  1. Azure Virtual Machine Scale Sets
  2. Azure Container Instances
  3. Azure Bastion
  4. Azure File Sync

Explanation

Correct Answer

B:

Azure Container Instances can run containers directly without administrators managing a VM cluster or orchestration platform. Configure CPU, memory, storage and restart policy appropriate to the conversion job.

Incorrect Answers

A:

VM Scale Sets manage fleets of VMs and require more operating-system infrastructure than a single short-lived container task needs.

C:

Bastion provides secure remote desktop and SSH connectivity to VMs, not a managed container task scheduler.

D:

Azure File Sync caches and synchronizes file shares across servers. It is not a runtime for a containerized conversion process.

Question 59

A public API packaged in a container needs HTTP ingress, revision-based application updates, and event-driven scaling. Which Azure option best fits those requirements?

  1. Azure Container Apps
  2. An Azure Storage account with static website only
  3. An Azure Network Security Group
  4. Microsoft Entra Password Protection

Explanation

Correct Answer

A:

Azure Container Apps provides an application-level container environment with ingress, revision controls and scale rules suited to event-driven web services. Set appropriate ingress exposure, scaling bounds and revision traffic behavior.

Incorrect Answers

B:

Static website hosting serves front-end files and does not execute a general API container. It cannot implement the requested container runtime.

C:

NSGs define network traffic permissions for subnets and NICs. They do not run container images or manage application revisions.

D:

Password Protection checks weak passwords in identity scenarios. It has no role in container ingress, scaling or release revisions.

Question 60

A deployment uses the mutable latest tag from a private Azure Container Registry. An engineer requires the next deployment to use precisely the previously approved image even after another latest tag push. Which image reference should be used?

  1. The repository login server without any image identifier
  2. The latest tag, assuming tags are immutable by default
  3. The approved image manifest digest, referenced as repository@sha256:...
  4. The registry's Azure resource group name as an image identifier

Explanation

Correct Answer

C:

An OCI manifest digest is content-addressed and uniquely identifies the published image artifact. Deploying with repository@sha256:digest selects the approved version even when a mutable tag like latest is later repointed.

Incorrect Answers

A:

A registry login server identifies the registry endpoint but not one immutable application artifact. Without an image version, the runtime cannot guarantee it will pull the build that was approved.

B:

Tags such as latest can be reused for newer image manifests. If a tag moves, a deployment referring only to that tag may retrieve different bytes than the version previously tested.

D:

The Azure resource group organizes the registry resource, not the image manifest inside it. That name cannot select a precise container version for deployment.

Microsoft Azure Administrator (AZ-104) Practice Tests