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 51

Question 500

During a planned VM scale-set downscale, instance 7 is still processing a long-running export. Other instances can be removed normally, but this one instance must not be selected by autoscale until its work finishes. Operations must still be able to delete it manually if needed. Which setting fits the requirement?

  1. Set protectFromScaleIn on instance 7 and remove that protection after the export finishes
  2. Set a scale-in policy of Newest for the whole scale set and assume instance 7 is always retained
  3. Set protectFromScaleSetActions on the scale-set model so all instances are immune to every operation
  4. Increase autoscale cooldown to one hour so Azure can never delete instance 7

Explanation

Correct Answer

A:

The instance-level protectFromScaleIn property excludes that specific VMSS instance from autoscale-initiated scale-in, while allowing other instances to be removed. It doesn't block user-initiated instance deletion or all other scale-set actions, so operators retain the emergency control stated in the scenario. Clear the protection after the export.

Incorrect Answers

B:

A scale-in policy establishes the scale set's general ordering for selecting removal candidates; it does not guarantee protection for a named instance. An instance's age relative to other members can change, so a Newest ordering cannot enforce the explicit temporary exclusion needed for export instance 7.

C:

Protect from scale-set actions is an instance-level feature with broader effects on scale-set operations, not a single switch on the whole scale-set model. It could block legitimate scale-set initiated upgrades or reimages of the protected instance and is unnecessary for the narrower scale-in-only requirement.

D:

Cooldown controls how quickly autoscale repeats scaling actions after a rule fires; it cannot express an exception for a particular instance. Eventually the scale set can still choose instance 7 if the workload contracts, because no instance-level removal protection was configured.

Question 501

A production VM scale set automatically repairs unhealthy instances. A stateful application has a temporary health fault, and the operator needs repair to keep the same instance ID, private IP, managed OS disk, and managed data disk. The current policy uses the default repair action. Which action should be configured instead?

  1. Keep the default Replace repair action; it creates an identical new VM and keeps all disk identities.
  2. Choose Reimage; it preserves the managed OS disk while replacing the instance ID.
  3. Choose Restart under automaticRepairsPolicy.repairAction, following the supported policy-update procedure.
  4. Increase the scale-in cooldown; cooldown changes the recovery action of unhealthy VMs.

Explanation

Correct Answer

C:

Restart is the documented VMSS automatic-repair action that preserves instance ID, private IP, managed OS disk and managed data disk. Configure repairAction as Restart; changing an existing automatic repair action requires disabling and re-enabling the policy in the documented sequence. This decision is about repair behavior, not autoscale thresholds.

Incorrect Answers

A:

Replace destroys the unhealthy instance and creates a new instance from the current scale set model. The replacement does not preserve the old instance ID, private IP or managed OS and data disks, directly violating the state-retention requirement.

B:

Reimage preserves the instance ID, private IP and managed data disk, but not the managed OS disk. The requirement expressly includes preserving the existing OS disk, so reimage is not safe for this workload.

D:

Scale-in cooldown governs autoscale pacing, not the operation automatic repairs perform on an unhealthy instance. It neither changes the default Replace action nor guarantees preservation of the machine identity and disks during repair.

Question 502

A VM scale set experiences a similar CPU surge on most weekday mornings, but the precise start time varies. Engineers want to assess whether Azure's predicted CPU trends would have scaled out instances early enough before allowing automatic predictive scale-out. Standard metric-based autoscale must remain as a fallback. What is the prudent first configuration?

  1. Disable all metric-based autoscale and hardcode a constant capacity equal to last week's peak
  2. Enable predictive autoscale in forecast-only mode, compare the predicted and observed CPU patterns, then enable predictive scaling if accurate
  3. Enable predictive autoscale immediately in live scaling mode without inspecting forecast charts or comparing predicted with observed CPU
  4. Turn off standard Percentage CPU autoscale while enabling forecast-only predictive autoscale to avoid duplicate scale-out actions

Explanation

Correct Answer

B:

Azure predictive autoscale can model recurring CPU load patterns in a scale set. Forecast-only overlays predicted and observed demand so the team can judge accuracy without changing capacity; standard autoscale remains in place for unexpected spikes or forecast errors. Only then should the team enable predicted scaling if the observed pattern supports it.

Incorrect Answers

A:

A fixed capacity may overprovision during quiet periods and would not validate the predictive algorithm against the changing time of the surge. Disabling standard metric rules also removes fallback protection against an unforeseen spike. This is an instance-capacity design issue, not a simple VM sizing constant.

C:

Immediate forecast-driven scaling bypasses the requested validation period. Forecast-only mode permits comparison of projected and observed demand before applying automatic preemptive scale-out.

D:

Standard reactive autoscale is a prerequisite and safety fallback for predictive autoscale. Removing it makes the proposed configuration invalid or removes protection from unexpected load spikes; retain it during forecast-only evaluation.

Question 503

A build pipeline pushes container images to an Azure Container Registry that uses traditional registry RBAC rather than repository ABAC. A separate runtime VM must only download approved images, never publish new tags. Which registry role is appropriate for the VM identity?

  1. AcrPush
  2. AcrPull
  3. Owner at subscription scope
  4. Virtual Machine Contributor

Explanation

Correct Answer

B:

AcrPull grants image retrieval in a registry using the traditional role model without allowing the identity to push or delete image content. It fits the runtime’s least-privilege pull-only operation.

Incorrect Answers

A:

AcrPush includes push capabilities, which the runtime has no business need to possess. It expands the attack surface if the VM credential is compromised.

C:

Subscription Owner would grant extensive Azure resource management and delegation authority. It is unnecessary to read an image and far broader than a registry-scoped role.

D:

Virtual Machine Contributor manages VM resources but does not automatically authorize OCI image pulls from a protected registry. Registry-specific data permissions are still required.

Question 504

An Azure Container Registry was changed from traditional registry RBAC to the RBAC Registry + ABAC Repository Permissions mode. A workload identity still has the old AcrPull role, authenticates successfully, but is denied when it pulls an image from the `payments` repository. Security requires read-only access to `payments` only, not to other repositories. Which authorization change meets the requirement?

  1. Give the workload Azure subscription Reader in addition to its existing AcrPull assignment
  2. Enable anonymous pull for the entire registry rather than changing roles
  3. Assign Container Registry Repository Reader to the workload identity with an ABAC condition matching the payments repository
  4. Broaden the old AcrPull assignment to resource-group scope so ABAC honors its pull operation

Explanation

Correct Answer

C:

In the ABAC-enabled permission model, the Container Registry Repository Reader role grants image-content and metadata reads. An ABAC condition on the repository name confines the assignment to payments rather than granting registry-wide pull. The identity must still authenticate and allow time for the role assignment to propagate before testing an actual pull.

Incorrect Answers

A:

Subscription Reader allows viewing Azure management-plane metadata, not reading OCI artifact content in an ABAC-enabled registry. A legacy AcrPull assignment is not recognized in this registry permissions mode, so adding a management role would leave the data-plane authorization gap untouched.

B:

Anonymous pull would bypass per-identity repository authorization and potentially expose content beyond the intended payments workload. The goal is authenticated least-privilege access to one repository. Changing a repository to a public or unauthenticated access mode is neither necessary nor a safe substitute for the ABAC repository role.

D:

Changing the scope of a legacy AcrPull role does not convert it into an ABAC-enabled repository role. Microsoft explicitly states that AcrPull and AcrPush are not honored in the ABAC-enabled mode. A wider ineffective assignment still cannot authorize the requested repository image data operation.

Question 505

An application pipeline repeatedly pushes different builds to the registry with the same mutable latest tag. A rollback operator cannot identify which image digest was used by a successful release. Which packaging practice best improves reproducibility?

  1. Keep deploying the mutable latest tag and record only each release timestamp, assuming the timestamp uniquely identifies the image bytes without a saved digest
  2. Add the source branch name as an image annotation but continue deploying the same unpinned latest tag in every environment
  3. On rollback, rebuild an older Git commit and overwrite latest again without retaining the original deployed image digest
  4. Tag deployments with immutable version identifiers or digests rather than relying exclusively on latest

Explanation

Correct Answer

D:

A unique version tag or digest identifies the exact image that was built and deployed, supporting rollback and provenance. Mutable latest tags can refer to different artifacts at different times.

Incorrect Answers

A:

A deployment timestamp alone does not pin or identify the OCI image digest that the registry returned at deployment time. Because latest can be repointed, rollback should use a retained unique version tag or immutable digest reference.

B:

A branch annotation describes build context but is not a unique, immutable reference to the exact container image bytes. Leaving deployment manifests tied to a mutable tag does not provide the requested reproducible rollback target.

C:

Rebuilding a commit can yield different dependency or base-image bytes, and overwriting latest again conceals the image deployed previously. Preserve the deployed immutable digest or unique version tag instead of relying on reconstruction.

Question 506

A VM-based deploy agent has AcrPull permission on a private Azure Container Registry. Registry public access is disabled, and the VM resolves the registry hostname to a public address. Authentication succeeds but image pulls fail to connect. What is missing?

  1. Change the image repository path while keeping the same unreachable registry endpoint
  2. Private DNS integration that resolves the registry to its private endpoint and a reachable private path
  3. Add AcrPush to the deployment agent without changing private DNS
  4. Enable an ACR firewall IP allow rule while keeping its public endpoint disabled

Explanation

Correct Answer

B:

When ACR uses a private endpoint with public access disabled, clients must resolve registry endpoints to reachable private addresses. AcrPull alone cannot fix a wrong DNS or network route.

Incorrect Answers

A:

Image naming is relevant after an authenticated registry session; it cannot fix DNS that routes the client to an inaccessible endpoint.

C:

AcrPush grants image write operations, but the existing pull attempt fails at network resolution rather than authorization.

D:

Firewall public allow rules do not give clients a path when public registry access is disabled and they resolve to a public address.

Question 507

A security team publishes a new supported base container image each week. The registry should automatically rebuild dependent application images when the base image changes, without a person starting each build. What feature is intended for this?

  1. Enable a scheduled ACR Task that runs every week regardless of base image publication
  2. Use an ACR webhook that only notifies a URL when an image is pushed but has no build handler
  3. Set the image pull policy to Always on consumer workloads
  4. An Azure Container Registry Task with a base-image update trigger

Explanation

Correct Answer

D:

ACR Tasks can trigger container image rebuilds based on supported base-image updates, producing refreshed dependent images in the registry without manual compilation.

Incorrect Answers

A:

A schedule could rebuild images periodically, but it does not directly react to base-image updates as requested and may miss intervening changes.

B:

A notification alone does not rebuild dependent application images without further orchestration, unlike a configured base-image trigger.

C:

Pulling newer tags on deployment does not rebuild the application image layers against a changed base image.

Question 508

An automation team stores a single Azure Container Registry admin password in multiple deployment systems. Security wants to reduce shared secret exposure while permitting image pulls by workload identities. What should be changed?

  1. Disable or avoid the registry admin user and use Microsoft Entra identities with appropriate registry pull permissions
  2. Continue using the shared registry admin user but store its password in each App Service setting
  3. Grant AcrPush to every consuming workload, including those that only pull
  4. Keep the registry admin account enabled as an emergency credential in all deployment pipelines

Explanation

Correct Answer

A:

The admin user is a shared high-privilege credential. Identity-based scoped authorization reduces credential sharing and supports traceable image pulls by the intended workloads.

Incorrect Answers

B:

Moving the same high-privilege credential into app settings might reduce accidental display but preserves broad shared admin access and rotation risk across systems.

C:

AcrPush allows write operations beyond pull requirements. It broadens registry modification risk rather than implementing least-privilege pull-only identity authorization.

D:

A continuously shared admin credential remains available for misuse, bypassing workload-specific access traceability. The security goal is to eliminate routine reliance on it.

Question 509

A private Azure Container Registry serves image pulls in Europe and Asia. Azure region-to-region transfers create long pulls during deployments. The team wants one logical registry name but closer regional image copies. Which registry capability is relevant?

  1. Enable geo-replication on an eligible Azure Container Registry SKU in the required regions
  2. Configure a second independently named registry in Asia and expect the original European registry hostname to route pulls to it automatically
  3. Upgrade the primary ACR to Premium but keep it deployed only in Europe with no geo-replication regions
  4. Disable all image authentication to make the registry faster

Explanation

Correct Answer

A:

ACR geo-replication maintains regional replicas behind one logical registry endpoint design, improving pull proximity and availability for distributed deployments. Permissions and network access remain separate prerequisites.

Incorrect Answers

B:

A separate registry has its own identity/endpoint, and the original hostname does not automatically replicate images to it. Eligible ACR geo-replication supplies regional replicas under one logical registry.

C:

Premium capability can enable geo-replication, but upgrading a single-region registry without adding replicas does not place image content near Asia deployments.

D:

Removing access controls would create image supply-chain exposure and would not provide regional data replication.

Question 510

A build team wants a container image rebuilt when its Git repository changes, not only when a base image receives updates. The registry already supports ACR Tasks. Which task trigger should it evaluate?

  1. Grant Reader on the application resource group and expect automatic builds
  2. A source-code commit trigger connected to the configured repository
  3. Enable only the ACR Task base-image-update trigger and assume every application Git commit starts a build
  4. Schedule an ACR Task to rebuild nightly, with no source-code commit trigger configured

Explanation

Correct Answer

B:

ACR Tasks supports different trigger types. A source update trigger can start a new image build when application code changes, complementing base-image update triggers.

Incorrect Answers

A:

Read permission does not define a Task or register a repository update trigger.

C:

A base-image update trigger rebuilds images on parent-image changes, not necessarily on commits to the application's repository. The task must be connected to a source-code update trigger for the stated commit-driven behavior.

D:

A scheduled task can rebuild on its clock, but does not react when a Git commit occurs and can delay changes until the next scheduled run. The requirement is repository-change-driven invocation, so configure the ACR Task source trigger.

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.