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 52

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.

Question 511

A CI pipeline builds container images in a development registry and needs to copy an existing image into a production Azure Container Registry without first downloading it as a full local Docker archive. What supported registry operation can be evaluated?

  1. Export every image to a VM disk before uploading it manually
  2. Enable ACR geo-replication on the development registry and assume it copies the selected image into a separately administered production registry
  3. Enable public network access on the production registry and assume the development image appears there without an import or push
  4. Use the Azure Container Registry import feature with appropriate source and target authorization

Explanation

Correct Answer

D:

ACR import can transfer compatible OCI/Docker image artifacts through a registry service workflow. It reduces local staging and supports controlled promotion between registries.

Incorrect Answers

A:

Local export may work but adds data movement, disk requirements and operational steps the question explicitly seeks to avoid.

B:

Azure Container Registry geo-replication replicates one Premium registry across multiple regions; it does not import an image into an independent production registry. Use explicit ACR import with suitable permission and image references for cross-registry promotion.

C:

A registry network setting controls reachability; it does not copy OCI layers or publish image manifests from another registry. ACR import performs the required image transfer while security settings can remain appropriately restricted.

Question 512

A team wants to allow one external automation service to pull images from only a subset of repositories in a shared Azure Container Registry, rather than distributing the registry's admin credentials. Which ACR authorization approach can support repository-scoped access?

  1. Use a supported repository-scoped authorization mechanism, such as ACR tokens and scope maps where applicable
  2. Share the registry-wide administrator username and password with every contractor
  3. Grant the external service Azure Container Registry Reader at subscription scope and assume management-plane read can pull every restricted repository image
  4. Share one registry-wide AcrPull identity across the external contractors without limiting its permitted repositories

Explanation

Correct Answer

A:

Repository-scoped credentials can limit pull and push actions to selected repositories, reducing exposure compared with the registry-wide admin account. The exact credential and RBAC model must match the registry configuration.

Incorrect Answers

B:

Admin credentials often confer broad access and reduce individual attribution. They do not satisfy the requested repository-specific access boundary.

C:

Management-plane Reader does not supply the required image pull data permission. Repository-scoped tokens/scope maps or another supported repository-level authorization model are needed.

D:

AcrPull at registry scope can allow pulling images beyond the requested subset. Use repository-scoped authorization when the business must constrain which repositories the external consumer can pull.

Question 513

An Azure Container Registry repository automatically receives images whenever a pipeline pushes a new version. An operations system should be notified of push events so it can start a vulnerability review without polling continuously. Which ACR integration handles push notifications?

  1. Schedule an Azure Container Registry task to poll the registry every minute and assume it is the native push-event webhook callback
  2. Configure an ACR webhook for relevant image push events and a secured notification endpoint
  3. Subscribe to Storage BlobCreated events on presumed ACR backing storage and treat them as supported container-image push events
  4. Disable registry authentication to make image push events visible

Explanation

Correct Answer

B:

ACR webhooks can send event notifications when configured registry operations occur. The receiver can then run a security workflow without scanning the registry on an arbitrary timer.

Incorrect Answers

A:

A scheduled ACR Task is a time-triggered build/execution mechanism, not the registry's push-event notification to an external secured receiver. Use an ACR webhook subscribed to the appropriate push events to avoid polling.

C:

Azure Container Registry exposes its own push-event integration; the registry's underlying storage objects are not a supported customer-managed BlobCreated event source for registry manifests. A blob-event subscription therefore cannot replace the documented ACR webhook trigger.

D:

Public access is unnecessary and potentially unsafe. Registry push authentication and event notifications are separate features.

Question 514

An operations script must run one short-lived Linux container to process a nightly input file. The job requires no HTTP ingress, Kubernetes cluster, or long-running application revision management. Which managed Azure compute service directly supports starting the isolated container?

  1. Azure Container Instances
  2. Azure App Service deployment slots
  3. Azure Virtual Machine Scale Sets
  4. Run a general-purpose Azure VM with Docker preinstalled for every nightly job

Explanation

Correct Answer

A:

Azure Container Instances runs containers directly without managing VMs or clusters. For a simple short-lived isolated task, it avoids the deployment and orchestration machinery of larger hosting platforms.

Incorrect Answers

B:

App Service deployment slots stage and swap versions of an existing web app. They are not a general container-execution service for an isolated one-off batch job.

C:

A VM scale set supplies and manages sets of virtual machines. It would require substantial host administration for a task that only needs one container execution.

D:

A VM can execute containers, but it requires host capacity, patching, and lifecycle administration for a one-off job. ACI avoids that unnecessary overhead.

Question 515

A nightly Azure Container Instances import terminates after processing one export. Its external scheduler handles failed jobs, so the team does not want to configure the ACI restart policy to deliberately retry a failed application or automatically rerun a successfully completed import. The platform may still perform infrastructure recovery after some failures. Which container-group restartPolicy best reflects the configured intent?

  1. Set restartPolicy to OnFailure so failed imports restart until successful, leaving the scheduler to manage subsequent retries as well
  2. Set restartPolicy to Never and let the external scheduler explicitly manage new runs or recovery actions
  3. Keep restartPolicy at the default Always and use exit code 0 to prevent the next restart
  4. Set a container liveness probe to succeed after the import and leave the restart policy at Always

Explanation

Correct Answer

B:

Never is the ACI restart policy that does not request application-level retries and prevents an automatic restart after a successful exit code 0. An external scheduler can deliberately create another import run after investigating results. Microsoft notes that ACI infrastructure may still restart a failed container even under Never, so Never should not be described as an absolute guarantee of one execution under every nonzero exit.

Incorrect Answers

A:

OnFailure explicitly configures ACI to retry a process that exits with a nonzero status. That conflicts with the stated choice to leave job-level retry decisions to the external scheduler, even though OnFailure appropriately stops after a zero exit in a different scenario. The important distinction is the desired failure-retry behavior, not whether the container runs for a finite period.

C:

Always is the default ACI policy, and a process exiting with code 0 still restarts. A finished import would be run again unnecessarily, risking duplicate processing. Exit-code success does not override the configured Always policy; a task-oriented restart policy must be chosen explicitly.

D:

A liveness probe checks whether a running container is healthy; success of the probe does not disable the container group restartPolicy. If the process exits with code 0 while Always remains configured, ACI restarts it. This setting addresses monitoring during execution rather than the batch-job restart decision after completion.

Question 516

A developer wants a Linux application container and a logging sidecar to run together in Azure Container Instances, sharing localhost networking and their deployment lifecycle without a Kubernetes cluster. Which ACI deployment unit provides this behavior?

  1. Create two separate ACI container groups in the same resource group and communicate through 127.0.0.1 from either group
  2. Deploy the two containers in separate ACI groups on one virtual-network subnet and rely on subnet sharing to make their loopback addresses identical
  3. Deploy both containers in one multi-container Azure Container Instances container group
  4. Deploy separate ACI container groups with a shared Azure Files volume and assume mounting the same files also merges their localhost network namespace

Explanation

Correct Answer

C:

A multi-container ACI group schedules Linux containers together on one host with a shared lifecycle, network namespace, and storage volume scope. The app and logging sidecar can communicate through localhost without a Kubernetes cluster. This co-scheduling behavior is supported for Linux multi-container groups; Windows ACI supports only single-container groups.

Incorrect Answers

A:

A resource group is an ARM management container rather than a shared container runtime. Separate ACI groups have different network namespaces and lifecycles, so 127.0.0.1 on one group does not refer to a process in the other. Both containers must be defined in the same ACI group for the requested local sidecar relationship.

B:

A shared subnet makes separately deployed ACI groups routable under the supported VNet model, but it does not give them a common loopback interface. Each group still has its own container networking boundary and can be created or deleted independently. The requirement is for shared localhost and lifecycle, not merely private IP reachability.

D:

Sharing a persistent Azure Files volume between separate groups is about filesystem access, not loopback networking or a single shared deployment lifecycle. Mounting the same files does not make 127.0.0.1 refer to the other group's container. A true ACI sidecar should be a sibling container inside the same container group.

Question 517

A container group needs an API token passed to its workload. The deployment template currently places it in an ordinary environment variable field whose value becomes visible in configuration views. Which ACI-specific configuration is more suitable?

  1. Put the token in a deployment parameter default value committed to source control
  2. Write the token to the container command arguments in the deployment manifest
  3. Use a secure environment variable value and manage token access appropriately
  4. Pass the token as a normal plaintext ACI environmentVariable value

Explanation

Correct Answer

C:

ACI supports secure environment variables for sensitive values, reducing plaintext exposure in normal container group configuration output. Stronger secret distribution may also use a dedicated secret service.

Incorrect Answers

A:

A template default committed to version control exposes the reusable credential and does not satisfy the confidentiality goal.

B:

Command-line arguments may be visible through deployment configuration or diagnostic surfaces, moving rather than reducing credential exposure.

D:

Ordinary environment variables may be visible in ACI configuration responses and are inappropriate for the sensitive value the team wants protected.

Question 518

A nightly container task in Azure Container Instances should run to completion and stop when it exits with code 0. If the program crashes with a nonzero status, the platform should retry it. Which restart policy most closely expresses this intent?

  1. Always, which restarts the container even after successful completion
  2. Never, which provides no intended retry policy for application failures
  3. OnFailure for the container group
  4. Use a scheduled Azure Container Instances recreation job in place of a process restart policy

Explanation

Correct Answer

C:

OnFailure is designed for run-to-completion tasks that should retry after failed process exits while not restarting successful completed work.

Incorrect Answers

A:

Always is the default and can restart a completed job, causing successful work to repeat indefinitely.

B:

Never is not the retry-on-failure behavior being requested; platform nuances may exist for nonzero exits but it is not the explicit failure-restart policy.

D:

An external recreation schedule may launch new groups but does not express the desired retry-on-failed-exit and stop-on-success semantics inside this container group.

Question 519

A nightly Azure Container Instances job writes a report into /reports and exits. The business must retrieve yesterday’s file after the container group is replaced. Local container filesystem data is ephemeral. Which storage attachment should the author consider?

  1. Write the report to the ACI writable layer and set the group restart policy to Always
  2. Create an Azure Files share but do not mount it inside the container at /reports
  3. Mount a supported Azure Files volume at /reports so output persists outside container lifecycle
  4. Write the report to a container environment variable during runtime

Explanation

Correct Answer

C:

An Azure Files volume can be mounted by supported ACI container groups, placing report files on an independent SMB-backed share rather than ephemeral local storage.

Incorrect Answers

A:

Restart policy changes process lifecycle but does not preserve ephemeral container filesystem state when the group is deleted and recreated.

B:

A separate share is durable, but the application still writes to its ephemeral filesystem until the persistent share is mounted at the intended output path.

D:

Environment variables carry configuration values, not durable report files. They are not an external volume usable after container replacement.

Question 520

A nightly Azure Container Instances job is deliberately configured with restartPolicy Never. The export process exits with code 0 and stops. Monitoring shows the container process as Terminated while the deployment’s container group completed its task without intervention. Which container-group runtime state should an operator expect for the successful run, rather than mistake for an outage?

  1. Succeeded, because the container group ran to successful completion under the Never restart policy
  2. Failed, because any container whose process stops is considered to have failed regardless of exit code
  3. Running, because a zero exit code causes a Never-policy container group to keep an idle process alive indefinitely
  4. Pending, because task-based container groups always return to image acquisition after a successful exit

Explanation

Correct Answer

A:

Azure Container Instances distinguishes the container process state from the overall container group runtime state. A group using restartPolicy Never that completes its work with exit code 0 can report Succeeded; its process can independently show Terminated. This result records successful completion of the one-off workload rather than a new failure or a request to restart it.

Incorrect Answers

B:

The Failed container-group state signals an unsuccessful run or provisioning/runtime failure, not the ordinary successful end of a one-shot task. A process that exits with code 0 has met the job completion condition. Interpreting every Terminated container as a failed group would trigger unnecessary incident response and duplicate exports.

C:

Running describes a container group currently operating. The Never restart policy is designed to allow a one-off workload to stop after a successful exit, so Azure does not keep an empty application process running forever merely because completion was successful. An operator should inspect exit code and the group state rather than infer work from the old resource existence.

D:

Pending applies while a container group is waiting to initialize or complete launch prerequisites, not after a process has finished successfully with exit code 0. A finished Never-policy job can reach Succeeded. Treating completed work as an image-pull or scheduling wait misdirects troubleshooting and may cause the operator to start the workload twice.

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.