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 53

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.

Question 521

A developer sets Azure Container Instances restartPolicy to Never for a task and expects that the task will never be rerun, even if it exits with a nonzero error code. Which caveat should the reliability engineer explain?

  1. Never automatically retries a failed task exactly three times with a fixed interval
  2. Never is only available on Azure Virtual Machine Scale Sets, not ACI groups
  3. Never prevents restart after successful exit, but the platform might still restart after nonzero exit codes
  4. Never guarantees no restart regardless of any failure, including infrastructure recovery

Explanation

Correct Answer

C:

Microsoft documents that Never only guarantees no restart following an exit code zero. A failed process can still be restarted in some cases; the app must handle at-most-once semantics itself.

Incorrect Answers

A:

The policy is not an exact three-retry scheduling system. Azure does not promise the specific pattern in the proposed option.

B:

Never is one of the supported ACI container-group restart policy choices; it is not confined to VM scale sets.

D:

The absolute no-restart guarantee is stronger than the platform documentation supports for failures. Critical at-most-once processing needs idempotency or external execution control.

Question 522

An Azure Container Instances group is deployed into a delegated subnet using virtual network integration. A developer expects the container’s service to automatically receive a public IP like a public ACI group. What should the design account for?

  1. Attach a DNS name label directly to the VNet-injected container group and assume that publishes its private IP to the public Internet
  2. Network-injected ACI groups use private VNet connectivity; plan a supported separate public ingress path if needed
  3. Create a network security group inbound allow rule on the ACI subnet and assume that alone assigns a public IP to each container group
  4. Use VNet peering from another private VNet and treat that private connectivity as public Internet reachability

Explanation

Correct Answer

B:

When a container group participates in a VNet, its endpoint model is oriented around private network addressing. Public exposure is not an automatic side effect of subnet deployment.

Incorrect Answers

A:

A name does not supply supported public routing to an ACI group injected into a private VNet. The design requires a separately supported ingress path such as an appropriate proxy or gateway.

C:

An NSG rule only controls flows through the existing private subnet; it does not allocate an Internet-routable frontend address. Public ingress needs an explicitly deployed ingress design.

D:

Peering permits eligible private cross-VNet traffic, not global public access. Public clients still need a supported reachable frontend and routing path.

Question 523

A single-container Azure Container Instances workload already listens with TLS on port 443. Remote Internet clients need a discoverable HTTPS endpoint, but the container group was deployed without a public IP address, DNS name label, or exposed port. The group is not injected into a virtual network. Which deployment change satisfies the public endpoint requirement?

  1. Set the container port to 443 but leave the container group IP address type private and omit a DNS label
  2. Assign a DNS name label to a private-only container group and assume the label makes that private address reachable from the Internet
  3. Configure the supported public IP address, a region-unique DNS label and exposure of the container TCP 443 port
  4. Assign a public IP address and DNS label but leave all inbound container ports unexposed

Explanation

Correct Answer

C:

A public-addressed ACI container group with a valid DNS label and exposed TCP port supplies the discoverable network endpoint. This image must itself serve TLS on port 443; ACI does not make an arbitrary non-TLS workload HTTPS merely by assigning a hostname.

Incorrect Answers

A:

Opening a port inside the container is necessary for the TLS listener but cannot create an Internet-routable address or discoverable hostname when the group remains private. External clients still cannot reach it without the supported public ingress configuration.

B:

A DNS label does not create Internet routing for a private endpoint. Clients need a public IP address, DNS label and the appropriate exposed listening port on a container group that supports public ingress.

D:

A public address and hostname are not enough for clients to reach the TLS listener if no corresponding inbound TCP port is exposed. Public IP, discoverable label, and listener port must match the application endpoint.

Question 524

A team uses Azure Container Apps for an HTTP service. It wants to expose a new application revision to 10 percent of incoming requests while 90 percent continue to reach the existing revision, without deploying separate gateways. Which Container Apps capability fits?

  1. Revision traffic splitting in multiple revision mode
  2. Deploy the new image directly to the only active revision with no traffic split
  3. Keep single revision mode and increase the number of container replicas
  4. Use an independent custom DNS record for the candidate and assume it gives a 10/90 traffic distribution

Explanation

Correct Answer

A:

Multiple revision mode allows more than one active revision and configurable ingress traffic weights. The team can direct a small share to the candidate and retain most traffic on the existing version.

Incorrect Answers

B:

Replacing a single revision moves essentially all routed requests to the candidate at once. It does not preserve the required 90 percent old-version exposure during a canary.

C:

Replicas add scale for one revision. They cannot split ingress requests between two distinct application revisions while only one revision remains active.

D:

DNS records do not implement deterministic percentage routing for requests across active Container Apps revisions. The native traffic weights are the direct feature.

Question 525

An Azure Container App consumes Service Bus messages with no interactive HTTP endpoint. The workload may scale to zero during idle periods, then must wake up when messages arrive. Which autoscale design matches the event source?

  1. Set the Container App minimum replica count to one and rely on its process to poll Service Bus continuously
  2. Configure a KEDA Azure Event Hubs scaler for the Service Bus queue without changing the event source
  3. Configure a custom Service Bus event-driven KEDA scale rule for the Container App
  4. Configure only an HTTP concurrent-request rule on a container app with ingress disabled

Explanation

Correct Answer

C:

Container Apps supports KEDA-based event scaling from supported brokers. A queue-length signal can activate replicas when messages are waiting, even without inbound HTTP traffic.

Incorrect Answers

A:

A nonzero minimum keeps a replica running, so it fails the stated ability to scale to zero during idle periods. A Service Bus event-driven KEDA rule enables scale-out when queued messages arrive.

B:

Event Hubs and Service Bus are different trigger sources; using the wrong scaler cannot correctly track this Service Bus queue's pending messages. Configure the Service Bus scaler and its authentication.

D:

The worker receives Service Bus messages rather than HTTP requests; an HTTP-only trigger cannot reliably observe the queued work needed to scale it.

Question 526

A back-end Container App must accept HTTP from other services inside its Container Apps environment but must not publish an Internet-facing endpoint. It will still call external dependencies outbound through approved routes. Which ingress selection fits?

  1. Enable ingress as internal-only rather than external
  2. Enable external ingress and rely only on a nonobvious hostname
  3. Disable all ingress and assume other services can reach an HTTP endpoint
  4. Enable external ingress in a publicly accessible Container Apps environment, and use a resource-level Azure RBAC assignment to make that public URL private

Explanation

Correct Answer

A:

Internal ingress restricts the app’s inbound endpoint to its environment network boundary. Outbound connectivity and dependent services remain separately configured.

Incorrect Answers

B:

An externally accessible ingress endpoint remains reachable even if its name is hard to guess. Naming obscurity is not the required network boundary.

C:

Without ingress the app does not expose the expected HTTP receiving endpoint to other environment services. This fails its internal service role.

D:

Azure RBAC governs management operations on the Container App resource, not whether the public ingress endpoint is published. On a public environment, external ingress remains publicly reachable; internal ingress limits traffic to other apps in the same environment, as required.

Question 527

A developer changes a Container App container image tag and sees an additional revision created, while another engineer changes only a global ingress setting and does not get the same revision behavior. Which distinction explains this?

  1. Change a Container App application-scope ingress setting and assume every global setting edit creates a fresh revision
  2. Image updates never produce new revisions in Container Apps
  3. Rotate a Container App application-level secret and assume the secret update alone always creates a new revision
  4. Revision-scoped template changes such as image changes create a new revision; application-scope settings behave differently

Explanation

Correct Answer

D:

Container Apps revision history tracks versioned template configuration. Ingress and other app-level settings can apply across revisions without creating the same revision event.

Incorrect Answers

A:

Ingress is a shared application-scope configuration. Revision creation is driven by changes to the revision-scope template, such as an image or scale template edit, not by every ingress update.

B:

A container image is a revision-scope template property; changing it is a common reason for a new revision.

C:

Application-scope secret updates do not by themselves create a new revision; existing containers may need a restart or revision deployment to consume new secret values. Image changes are revision-scoped.

Question 528

A Container Apps service needs a rotated database password at runtime. The team currently places the password literal in an environment variable in deployment source control. Which deployment practice avoids hardcoding the value in the app template?

  1. Use a Container Apps revision label as the credential value
  2. Encode the password in Base64 and embed it into the container image
  3. Configure a Container Apps secret and reference its name from the container environment variable
  4. Keep the database password in a plaintext environment variable in the YAML template

Explanation

Correct Answer

C:

Container Apps secret references let environment variables obtain secret values from the app configuration rather than embedding sensitive literals in deployment definitions; access to secret values still needs protection.

Incorrect Answers

A:

Revision labels are routing metadata and do not serve as protected runtime secrets used for database authentication.

B:

Base64 is reversible encoding; embedding it in an image layer or template leaves the credential exposed to anyone who can inspect that artifact.

D:

This reproduces the original leak through source control and deployment manifests rather than referencing a protected secret setting.

Question 529

A Container App uses HTTP ingress and experiences sudden high numbers of concurrent requests. The team wants scaling driven by request concurrency, not a Storage queue backlog. Which scale trigger is relevant?

  1. Use only a VMSS CPU metric rule outside the Container App's configured HTTP scaling
  2. Raise the Container App minimum replicas but keep concurrency scaling disabled
  3. Configure supported HTTP scaling based on concurrent requests per replica
  4. Replace the HTTP concurrency scale rule with a custom scaler triggered only by Service Bus queue message count

Explanation

Correct Answer

C:

Azure Container Apps can scale HTTP-serving replicas based on incoming request concurrency. This directly responds to web traffic and is distinct from KEDA queue-event scaling.

Incorrect Answers

A:

A separate VM scale-set rule does not change how Container Apps decides replica count for incoming HTTP requests.

B:

A fixed minimum raises baseline capacity but does not allow additional replicas to respond dynamically to bursts.

D:

A Service Bus custom scaler can scale a container app when queue backlog changes, but the stem explicitly describes traffic arriving through HTTP ingress with no queue-processing workload. It would not track concurrent HTTP requests. The built-in HTTP scale rule is the mechanism that reacts to this scenario’s request-concurrency signal.

Question 530

A Container Apps secret was rotated using the application’s Secrets settings. A running revision still reads the old secret through an environment-variable secret reference. No new image needs deployment. What action makes that revision use the updated value?

  1. Expect all running containers to update their environment variables immediately in place
  2. Change only the ingress traffic-split percentages and leave the revision running
  3. Increase the Container App revision's maximum replica count and assume that refreshes environment variables in the already-running replicas
  4. Restart the active revision or deploy a replacement revision so its container environment picks up the rotated secret

Explanation

Correct Answer

D:

App secrets are application-scope settings, but already-running containers need their revision restarted or replaced to receive changed environment-variable values. Secret rotation alone does not create a revision.

Incorrect Answers

A:

Process environment variables are set when the container starts. Updating the shared secret definition does not automatically replace their in-memory values.

B:

Traffic splitting changes request routing across revisions; it does not restart the existing container process or refresh an already-read environment variable.

C:

Changing the maximum replica limit does not force all existing containers to restart or reload their process environment. After rotating an app secret used via environment variables, restart the active revision or deploy an appropriate new revision.

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.