Pass Your Microsoft AZ-104 Exam Easy!

Microsoft AZ-104 Exam Questions & Answers, Accurate & Verified By IT Experts

Instant Download, Free Fast Updates, 99.6% Pass Rate

AZ-104 Premium Bundle

$79.99

Microsoft AZ-104 Premium Bundle

AZ-104 Premium File: 606 Questions & Answers

Last Update: Sep 24, 2026

AZ-104 Training Course: 132 Video Lectures

AZ-104 PDF Study Guide: 458 Pages

AZ-104 Bundle gives you unlimited access to "AZ-104" files. However, this does not replace the need for a .vce exam simulator. To download VCE exam simulator click here
Microsoft AZ-104 Premium Bundle
Microsoft AZ-104 Premium Bundle

AZ-104 Premium File: 606 Questions & Answers

Last Update: Sep 24, 2026

AZ-104 Training Course: 132 Video Lectures

AZ-104 PDF Study Guide: 458 Pages

$79.99

AZ-104 Bundle gives you unlimited access to "AZ-104" files. However, this does not replace the need for a .vce exam simulator. To download your .vce exam simulator click here

Microsoft AZ-104 Practice Test 30

Question 290

A nightly batch job processes one file, then exits; the team wants no long-lived app hosting platform. Which service fits?

  1. Inspect container termination status, logs and expected output artifacts
  2. Evaluate Container Apps replica scaling versus fixed ACI group sizing
  3. Run the isolated task in Azure Container Instances where appropriate
  4. Provide valid registry pull credentials or identity permissions for the image
  5. Restrict ingress and expose only required ports through approved network configuration

Explanation

Correct Answer

C:

'Run the isolated task in Azure Container Instances where appropriate' fits the case in which a nightly batch job processes one file, then exits; the team wants no long-lived app hosting platform because ACI provisions a container group directly without requiring full managed microservice revision features. By contrast, 'Inspect container termination status, logs and expected output artifacts' addresses a different condition: scheduling a container is not evidence its batch logic completed or wrote the intended result; it would not establish the outcome needed for this particular Azure resource. For 'Run the isolated task in Azure Container Instances where appropriate', confirm the supported prerequisites and authorized scope, then verify the observed service behavior before describing the change as complete.

Incorrect Answers

A:

'Inspect container termination status, logs and expected output artifacts' applies to a different feature boundary because scheduling a container is not evidence its batch logic completed or wrote the intended result. In the stated scenario where a nightly batch job processes one file, then exits; the team wants no long-lived app hosting platform, 'Inspect container termination status, logs and expected output artifacts' does not satisfy the mechanism that ACI provisions a container group directly without requiring full managed microservice revision features. The necessary action is 'Run the isolated task in Azure Container Instances where appropriate', which should be checked against this Azure resource's actual permissions and state.

B:

The nearby action 'Evaluate Container Apps replica scaling versus fixed ACI group sizing' is associated with this separate need: a team proposes a single large ACI container for intermittent unpredictable HTTP demand rather than using managed autoscaling. That is because ACI sizes a container group; Container Apps can add replicas based on configured triggers. Here a nightly batch job processes one file, then exits; the team wants no long-lived app hosting platform, so 'Evaluate Container Apps replica scaling versus fixed ACI group sizing' misses the fact that ACI provisions a container group directly without requiring full managed microservice revision features. 'Run the isolated task in Azure Container Instances where appropriate' is the more defensible action; confirm its behavior in the target service before calling the task complete.

D:

When an ACI container group repeatedly fails to start with unauthorized image errors, the action 'Provide valid registry pull credentials or identity permissions for the image' can be relevant: container group startup requires image authorization; increasing CPU won't fix a registry rejection. For the different problem of a nightly batch job processes one file, then exits; the team wants no long-lived app hosting platform, 'Provide valid registry pull credentials or identity permissions for the image' misses the mechanism that ACI provisions a container group directly without requiring full managed microservice revision features. Choosing 'Provide valid registry pull credentials or identity permissions for the image' would address that other need, whereas 'Run the isolated task in Azure Container Instances where appropriate' is intended to solve the stated condition.

E:

'Restrict ingress and expose only required ports through approved network configuration' applies to a different feature boundary because container group endpoint design should not publish unrelated debugging services. In the stated scenario where a nightly batch job processes one file, then exits; the team wants no long-lived app hosting platform, 'Restrict ingress and expose only required ports through approved network configuration' does not satisfy the mechanism that ACI provisions a container group directly without requiring full managed microservice revision features. The necessary action is 'Run the isolated task in Azure Container Instances where appropriate', which should be checked against this Azure resource's actual permissions and state.

Question 291

An ACI container group repeatedly fails to start with unauthorized image errors. What should be fixed?

  1. Create Azure Container Registry with appropriate authentication and network controls
  2. Evaluate Container Apps replica scaling versus fixed ACI group sizing
  3. Grant AcrPull to the CI build pipeline identity but leave the container group’s actual image-pull identity or registry credentials unchanged
  4. Provide valid registry pull credentials or identity permissions for the image

Explanation

Correct Answer

D:

'Provide valid registry pull credentials or identity permissions for the image' fits the case in which an ACI container group repeatedly fails to start with unauthorized image errors because container group startup requires image authorization; increasing CPU won't fix a registry rejection. By contrast, 'Create Azure Container Registry with appropriate authentication and network controls' addresses a different condition: ACR holds OCI container images; repository access and pull authorization are separate concerns; it would not establish the outcome needed for this particular Azure resource. For 'Provide valid registry pull credentials or identity permissions for the image', confirm the supported prerequisites and authorized scope, then verify the observed service behavior before describing the change as complete.

Incorrect Answers

A:

The nearby action 'Create Azure Container Registry with appropriate authentication and network controls' is associated with this separate need: a container service pulls approved application images from a company registry. That is because ACR holds OCI container images; repository access and pull authorization are separate concerns. Here an ACI container group repeatedly fails to start with unauthorized image errors, so 'Create Azure Container Registry with appropriate authentication and network controls' misses the fact that container group startup requires image authorization; increasing CPU won't fix a registry rejection. 'Provide valid registry pull credentials or identity permissions for the image' is the more defensible action; confirm its behavior in the target service before calling the task complete.

B:

'Evaluate Container Apps replica scaling versus fixed ACI group sizing' solves another task because ACI sizes a container group; Container Apps can add replicas based on configured triggers. For the situation where an ACI container group repeatedly fails to start with unauthorized image errors, this distractor misses the requirement that container group startup requires image authorization; increasing CPU won't fix a registry rejection. Unlike 'Evaluate Container Apps replica scaling versus fixed ACI group sizing', 'Provide valid registry pull credentials or identity permissions for the image' directly targets that requirement; its success must be confirmed at the authorized resource scope.

C:

A build agent and an Azure Container Instances container group are distinct authentication principals. Allowing the CI pipeline to pull an ACR image does not authorize the runtime's image request, so the 401-style image-pull failure continues if its credential or approved user-assigned managed identity lacks registry access. Microsoft documents a supported ACI user-assigned identity path for registry image pulls; the exact registry-permission model and network route still matter. Grant access to the principal used by the container group, not merely to the image publisher.

Question 292

An existing Azure Container Instances container group was created with a 1-vCPU and 2-GiB request, but the batch application now requires 2 vCPU and 4 GiB. The selected region supports those values. What deployment action applies the new CPU and memory allocation correctly?

  1. Keep the existing ACI group and simply launch the same isolated batch job again
  2. Replace the ACI group with Container Apps solely to increase its configured memory
  3. Review the previous container logs but leave the group resource requests unchanged
  4. Delete and recreate the ACI container group with the approved 2-vCPU and 4-GiB resource requests
  5. Change the running group image tag and assume its CPU/memory resource requests will rise automatically

Explanation

Correct Answer

D:

ACI reserves compute capacity according to the container group resource requests and optional limits. The current group was created with too little CPU and memory, while the regional limits explicitly allow 2 vCPU and 4 GiB. Microsoft identifies changes to CPU and memory as properties that require deleting the container group and creating it again with the new values; updating another property or restarting the old group does not resize its allocation. Export or retain the desired configuration, preserve any external data, coordinate workload disruption, create the replacement with supported requests, and verify the completed batch and observed resource use.

Incorrect Answers

A:

Launching the same workload in the unchanged ACI container group does not alter its CPU or memory resource request. If its available resources are below the application’s tested requirement, repeating the job can reproduce performance failures or out-of-memory termination. The relevant distinction is that the group was already created with specific allocation properties, not that ACI is the wrong container product. Microsoft documents resource-request changes as requiring deletion and new deployment of the group. Administrators should preserve the configuration, plan any workload interruption, and recreate the container group with the approved supported allocation.

B:

Azure Container Apps offers managed application revisions and scaling rules, but the scenario does not require changing orchestration products or event-driven autoscaling. The application already runs as a bounded ACI batch task. Moving it to another service would be a larger architectural decision and would not directly describe how to correct the existing ACI group allocation. Azure Container Instances supports explicit CPU and memory requests within regional and group limits. For an existing group, those resource properties cannot simply be edited in place: the group must be deleted and recreated using the new request sizes.

C:

Logs and termination codes can help determine whether resource pressure caused a previous batch failure, but the tested requirement is already given: 2 vCPU and 4 GiB, while the group was provisioned below that. Inspecting the logs without changing its resource requests leaves the actual capacity problem unresolved. The request sizes are properties of the ACI container group that require a delete-and-recreate operation, not a live resize. The administrator should coordinate the restart of the batch workload, keep any needed external state or volumes, and provision the new supported group allocation.

E:

An image tag chooses the code and dependencies to run. Updating that tag may cause a supported group redeployment, but it does not change the CPU and memory resource requests that were specified when the container group was created. The batch could still face the same resource ceiling even with a new image version. The scenario does not report an outdated image as the root issue; it explicitly states a tested allocation requirement. Correct the deployment resource requests in the replacement ACI group, after verifying supported region limits and maintaining any necessary external state.

Question 293

An Azure Container Instances (ACI) container group currently has a public IP with a debug port exposed. The task must become reachable only from approved clients inside one Azure virtual network and must have no directly public endpoint. Which ACI networking change meets that requirement?

  1. Change the container registry image-pull credentials without changing the group endpoint
  2. Configure private ingress on a different Azure Container Apps service and leave the ACI group public
  3. Run another ACI batch instance while leaving the public group exposed
  4. Replace the public ACI group with a group deployed into a supported delegated VNet subnet using private addressing and no public debug port

Explanation

Correct Answer

D:

A container group deployed into a supported Azure virtual network subnet can use private networking for clients in that VNet or connected approved networks. ACI does not support a directly public IP or public DNS label for a group deployed in a VNet. The current publicly exposed group should therefore be retired or replaced with a group created in the appropriate delegated ACI subnet, without its old public debug endpoint. Check subnet delegation and regional support, route and firewall controls, and application listener configuration. Test that the approved clients can connect privately while internet clients cannot directly reach the new group.

Incorrect Answers

A:

Registry credentials govern whether Azure Container Instances can retrieve a private container image. They do not control which IP address and ports make a running container group reachable to clients. The existing group is publicly exposed, so changing an image-pull password or managed identity would leave the unsafe ingress configuration in place. For private-only access, the group must instead be deployed into a supported delegated virtual-network subnet with a private address and no direct public endpoint. The application should then be tested from an approved VNet client and rejected from an unauthorized internet path.

B:

Azure Container Apps is a separate managed service with its own ingress and revision model. Configuring private ingress for a Container Apps application would not automatically move or secure the already public Azure Container Instances group named in the scenario. A cross-service migration might be reasonable for other operational requirements, but it introduces unnecessary architecture and leaves the original exposure unresolved unless that ACI resource is retired. The supported ACI solution is to deploy its container group in an appropriately delegated VNet subnet without direct public-IP access and limit any remaining debug listener to authorized private clients.

C:

Running another copy of the batch or deploying an additional container does not make the existing public debug port private. If the old container group remains reachable over its public IP, the original compliance risk continues even if a separate internal copy succeeds. The requirement is to remove direct public exposure and constrain the actual task endpoint to authorized VNet clients. Use the ACI virtual-network deployment design with a delegated subnet, replace the exposed group as appropriate, and verify from both approved and unauthorized source networks that the intended ingress policy is effective.

Question 294

A container batch command was issued, but no one checked whether the process ended successfully. What verifies completion?

  1. Set supported container CPU/memory resource requests matching workload limits
  2. Inspect container termination status, logs and expected output artifacts
  3. Run the isolated task in Azure Container Instances where appropriate
  4. Provide valid registry pull credentials or identity permissions for the image

Explanation

Correct Answer

B:

'Inspect container termination status, logs and expected output artifacts' fits the case in which a container batch command was issued, but no one checked whether the process ended successfully because scheduling a container is not evidence its batch logic completed or wrote the intended result. By contrast, 'Set supported container CPU/memory resource requests matching workload limits' addresses a different condition: container sizing and quotas must permit the requested resources in the selected region; it would not establish the outcome needed for this particular Azure resource. For 'Inspect container termination status, logs and expected output artifacts', confirm the supported prerequisites and authorized scope, then verify the observed service behavior before describing the change as complete.

Incorrect Answers

A:

'Set supported container CPU/memory resource requests matching workload limits' applies to a different feature boundary because container sizing and quotas must permit the requested resources in the selected region. In the stated scenario where a container batch command was issued, but no one checked whether the process ended successfully, 'Set supported container CPU/memory resource requests matching workload limits' does not satisfy the mechanism that scheduling a container is not evidence its batch logic completed or wrote the intended result. The necessary action is 'Inspect container termination status, logs and expected output artifacts', which should be checked against this Azure resource's actual permissions and state.

C:

'Run the isolated task in Azure Container Instances where appropriate' solves another task because ACI provisions a container group directly without requiring full managed microservice revision features. For the situation where a container batch command was issued, but no one checked whether the process ended successfully, this distractor misses the requirement that scheduling a container is not evidence its batch logic completed or wrote the intended result. Unlike 'Run the isolated task in Azure Container Instances where appropriate', 'Inspect container termination status, logs and expected output artifacts' directly targets that requirement; its success must be confirmed at the authorized resource scope.

D:

When an ACI container group repeatedly fails to start with unauthorized image errors, the action 'Provide valid registry pull credentials or identity permissions for the image' can be relevant: container group startup requires image authorization; increasing CPU won't fix a registry rejection. For the different problem of a container batch command was issued, but no one checked whether the process ended successfully, 'Provide valid registry pull credentials or identity permissions for the image' misses the mechanism that scheduling a container is not evidence its batch logic completed or wrote the intended result. Choosing 'Provide valid registry pull credentials or identity permissions for the image' would address that other need, whereas 'Inspect container termination status, logs and expected output artifacts' is intended to solve the stated condition.

Question 295

A managed HTTP microservice needs revision rollouts and traffic splitting, with event-driven scale. What platform is appropriate?

  1. Configure an authenticated event-driven Container Apps scale rule for the queue
  2. Provide valid registry pull credentials or identity permissions for the image
  3. Check readiness probes, target port, app startup and revision health
  4. Use Azure Container Apps rather than a one-off ACI container group
  5. Treat a revision as an immutable app version and replicas as running instances

Explanation

Correct Answer

D:

'Use Azure Container Apps rather than a one-off ACI container group' fits the case in which a managed HTTP microservice needs revision rollouts and traffic splitting, with event-driven scale because container Apps supports managed ingress, revisions and scaling rules for service workloads. By contrast, 'Configure an authenticated event-driven Container Apps scale rule for the queue' addresses a different condition: kEDA-backed rules can scale replicas using queue metrics without polling from the application itself; it would not establish the outcome needed for this particular Azure resource. For 'Use Azure Container Apps rather than a one-off ACI container group', confirm the supported prerequisites and authorized scope, then verify the observed service behavior before describing the change as complete.

Incorrect Answers

A:

The nearby action 'Configure an authenticated event-driven Container Apps scale rule for the queue' is associated with this separate need: a worker should start when Service Bus queue depth grows and idle when messages are absent. That is because kEDA-backed rules can scale replicas using queue metrics without polling from the application itself. Here a managed HTTP microservice needs revision rollouts and traffic splitting, with event-driven scale, so 'Configure an authenticated event-driven Container Apps scale rule for the queue' misses the fact that container Apps supports managed ingress, revisions and scaling rules for service workloads. 'Use Azure Container Apps rather than a one-off ACI container group' is the more defensible action; confirm its behavior in the target service before calling the task complete.

B:

'Provide valid registry pull credentials or identity permissions for the image' solves another task because container group startup requires image authorization; increasing CPU won't fix a registry rejection. For the situation where a managed HTTP microservice needs revision rollouts and traffic splitting, with event-driven scale, this distractor misses the requirement that container Apps supports managed ingress, revisions and scaling rules for service workloads. Unlike 'Provide valid registry pull credentials or identity permissions for the image', 'Use Azure Container Apps rather than a one-off ACI container group' directly targets that requirement; its success must be confirmed at the authorized resource scope.

C:

When a new Container Apps revision starts but never receives traffic because health checks fail, the action 'Check readiness probes, target port, app startup and revision health' can be relevant: unhealthy revisions may be excluded from traffic despite successful image deployment. For the different problem of a managed HTTP microservice needs revision rollouts and traffic splitting, with event-driven scale, 'Check readiness probes, target port, app startup and revision health' misses the mechanism that container Apps supports managed ingress, revisions and scaling rules for service workloads. Choosing 'Check readiness probes, target port, app startup and revision health' would address that other need, whereas 'Use Azure Container Apps rather than a one-off ACI container group' is intended to solve the stated condition.

E:

The nearby action 'Treat a revision as an immutable app version and replicas as running instances' is associated with this separate need: an application config change creates a new Container Apps revision, but the operator interprets it as an additional replica. That is because revision versioning and autoscale replica count describe different axes of deployment. Here a managed HTTP microservice needs revision rollouts and traffic splitting, with event-driven scale, so 'Treat a revision as an immutable app version and replicas as running instances' misses the fact that container Apps supports managed ingress, revisions and scaling rules for service workloads. 'Use Azure Container Apps rather than a one-off ACI container group' is the more defensible action; confirm its behavior in the target service before calling the task complete.

Question 296

An API runs in Azure Container Apps and must be reachable only by other container apps inside the SAME Container Apps environment, not by general VNet clients or the internet. Which per-app ingress setting fits?

  1. Use managed secrets and references through Container Apps configuration or identity
  2. Configure supported internal-only Container Apps ingress and network restrictions
  3. Keep public external ingress enabled and rely only on application authentication to reject callers outside the approved environment
  4. Check readiness probes, target port, app startup and revision health

Explanation

Correct Answer

B:

Azure Container Apps separates the environment accessibility level from each app's ingress visibility. The requirement explicitly limits this API to other container apps in the SAME environment, excluding general VNet clients and public callers. Per-app internal ingress (Limited to Container Apps Environment, `external:false`) provides that boundary when configured with the supported transport and target port. An internal environment with per-app external ingress would also allow clients elsewhere on the VNet, so environment scope alone is not sufficient for this stricter requirement. Test both an allowed sibling container app and disallowed clients.

Incorrect Answers

A:

Managed secrets, identity-based references and App Configuration can control how an Azure Container Apps workload retrieves sensitive settings. They do not by themselves constrain which network clients can reach the application ingress endpoint. The question asks for per-app reachability limited to sibling container apps within the same Container Apps environment. Configure internal ingress, independent of secret handling, and verify that VNet-only or public clients cannot reach the service through the app endpoint. Valid credentials do not make a publicly reachable listener network-private.

C:

Application authentication can reject unauthorized requests after a connection is established, but it does not make the endpoint internally reachable only within the Container Apps environment. With public external ingress enabled on an external environment, the network endpoint still accepts connections from outside, contrary to this design. Set the app ingress visibility to internal so other container apps in that environment can reach it, and verify the environment-level exposure and target port. Do not substitute business-layer login checks for the requested network visibility boundary.

D:

Readiness probes and target-port checks determine whether a Container Apps revision starts and receives routed traffic, but those health settings do not select who may connect to the app endpoint. A perfectly healthy revision can still be exposed outside the intended environment when per-app ingress visibility is external. The stated requirement concerns the network boundary for callers, so adjust and verify internal-only per-app ingress rather than merely improving the revision's health signal. Do not confuse successful startup with authorization or ingress isolation.

Question 297

An application config change creates a new Container Apps revision, but the operator interprets it as an additional replica. What should be clarified?

  1. Treat a revision as an immutable app version and replicas as running instances
  2. Check readiness probes, target port, app startup and revision health
  3. Use Azure Container Apps rather than a one-off ACI container group
  4. Evaluate Container Apps replica scaling versus fixed ACI group sizing

Explanation

Correct Answer

A:

'Treat a revision as an immutable app version and replicas as running instances' fits the case in which an application config change creates a new Container Apps revision, but the operator interprets it as an additional replica because revision versioning and autoscale replica count describe different axes of deployment. By contrast, 'Check readiness probes, target port, app startup and revision health' addresses a different condition: unhealthy revisions may be excluded from traffic despite successful image deployment; it would not establish the outcome needed for this particular Azure resource. For 'Treat a revision as an immutable app version and replicas as running instances', confirm the supported prerequisites and authorized scope, then verify the observed service behavior before describing the change as complete.

Incorrect Answers

B:

'Check readiness probes, target port, app startup and revision health' applies to a different feature boundary because unhealthy revisions may be excluded from traffic despite successful image deployment. In the stated scenario where an application config change creates a new Container Apps revision, but the operator interprets it as an additional replica, 'Check readiness probes, target port, app startup and revision health' does not satisfy the mechanism that revision versioning and autoscale replica count describe different axes of deployment. The necessary action is 'Treat a revision as an immutable app version and replicas as running instances', which should be checked against this Azure resource's actual permissions and state.

C:

The nearby action 'Use Azure Container Apps rather than a one-off ACI container group' is associated with this separate need: a managed HTTP microservice needs revision rollouts and traffic splitting, with event-driven scale. That is because container Apps supports managed ingress, revisions and scaling rules for service workloads. Here an application config change creates a new Container Apps revision, but the operator interprets it as an additional replica, so 'Use Azure Container Apps rather than a one-off ACI container group' misses the fact that revision versioning and autoscale replica count describe different axes of deployment. 'Treat a revision as an immutable app version and replicas as running instances' is the more defensible action; confirm its behavior in the target service before calling the task complete.

D:

'Evaluate Container Apps replica scaling versus fixed ACI group sizing' solves another task because ACI sizes a container group; Container Apps can add replicas based on configured triggers. For the situation where an application config change creates a new Container Apps revision, but the operator interprets it as an additional replica, this distractor misses the requirement that revision versioning and autoscale replica count describe different axes of deployment. Unlike 'Evaluate Container Apps replica scaling versus fixed ACI group sizing', 'Treat a revision as an immutable app version and replicas as running instances' directly targets that requirement; its success must be confirmed at the authorized resource scope.

Question 298

A developer built a production connection string into a reusable Azure Container Apps image, and registry readers can extract it. Select TWO jointly necessary actions to stop future disclosure and contain the already exposed credential.

  1. Reference a protected runtime secret, such as Key Vault through Container Apps managed identity
  2. Keep the string in the image but change Azure Container Registry to private
  3. Remove the secret from image layers, rebuild, and rotate the exposed credential
  4. Move the string to a Docker build ARG while suppressing its CI log output
  5. Commit the plaintext connection string to a repository environment-variable template
  6. Keep the original secret-bearing Dockerfile in a restricted branch

Explanation

Correct Answers

A:

Azure Container Apps can read a secret stored in Azure Key Vault through an application-level secret reference when an assigned managed identity has the needed Key Vault permission, such as Key Vault Secrets User. The application then consumes the secret at runtime without placing the connection string inside a distributable Docker image. This is one half of the recovery: configure and test identity access and the secret reference, with access scoped narrowly to the needed vault secret. It does not retroactively erase credentials already embedded in prior image layers, which is why removing and rotating the leaked material is also required.

C:

Removing the connection string from the Dockerfile and all resulting final layers prevents newly distributed images from carrying that credential as a retrievable artifact. Because a previous image already contained the secret, the administrator must also rotate or revoke the exposed value, rebuild from a clean stage, and verify that registry copies, build logs and old deployments no longer provide effective access. This cleanup is independently required alongside runtime secret management: a perfect new Key Vault reference cannot make an old embedded password safe again. Validate the new revision with scoped runtime secret access before decommissioning the affected artifacts.

Incorrect Answers

B:

A private Azure Container Registry limits who can pull the image, but the members, build pipelines and administrators who can access it may inspect its layers and environment metadata. Keeping a production credential baked into the image is still a disclosure risk, even when repository access controls are strong. The problem specifically includes readers of the image as the threat model; making the registry private only reduces the population of those readers. Move the credential to an authorized runtime secret source and rebuild an image that contains no usable secret, rather than retaining the credential in a private artifact.

D:

Docker build arguments or temporary build-stage variables can still leak into build history, caches, produced files or downstream image layers when they are not handled through an approved secret-mount mechanism. Merely suppressing CI log output does not establish that a connection string copied into the final image is absent from its contents. The request is for an image that can be distributed without exposing credentials to authorized pullers. Protect the entire build and final artifact, and use Container Apps' runtime secret reference rather than relying on less-visible build output.

E:

Storing a connection string in an ordinary environment-variable template checked into a shared repository changes where the plaintext appears but does not give it a protected lifecycle or permission boundary. Collaborators and repository history readers can still retrieve it, and automation may echo or replicate its value. A runtime environment variable can be populated securely from a Container Apps secret reference, but that is different from committing the secret value to source control. Use managed identity and a vault-backed secret instead, while rotating the already exposed credential and keeping the image clean.

F:

Keeping a Dockerfile with an embedded production connection string in a restricted branch only controls source-repository visibility. The built image can still disclose the value through layers or metadata to anyone who can pull it, and earlier commits may remain accessible in history. The scenario's security requirement concerns the distributable artifact, not only the source branch. Remove the secret from image-building inputs and final output, rotate it, and retrieve the replacement at runtime through an authorized protected secret mechanism; private source control alone cannot satisfy those conditions.

Question 299

A new Container Apps revision starts but never receives traffic because health checks fail. What should be inspected?

  1. Use Azure Container Apps rather than a one-off ACI container group
  2. Check readiness probes, target port, app startup and revision health
  3. Use managed secrets and references through Container Apps configuration or identity
  4. Treat a revision as an immutable app version and replicas as running instances

Explanation

Correct Answer

B:

'Check readiness probes, target port, app startup and revision health' fits the case in which a new Container Apps revision starts but never receives traffic because health checks fail because unhealthy revisions may be excluded from traffic despite successful image deployment. By contrast, 'Use Azure Container Apps rather than a one-off ACI container group' addresses a different condition: container Apps supports managed ingress, revisions and scaling rules for service workloads; it would not establish the outcome needed for this particular Azure resource. For 'Check readiness probes, target port, app startup and revision health', confirm the supported prerequisites and authorized scope, then verify the observed service behavior before describing the change as complete.

Incorrect Answers

A:

The nearby action 'Use Azure Container Apps rather than a one-off ACI container group' is associated with this separate need: a managed HTTP microservice needs revision rollouts and traffic splitting, with event-driven scale. That is because container Apps supports managed ingress, revisions and scaling rules for service workloads. Here a new Container Apps revision starts but never receives traffic because health checks fail, so 'Use Azure Container Apps rather than a one-off ACI container group' misses the fact that unhealthy revisions may be excluded from traffic despite successful image deployment. 'Check readiness probes, target port, app startup and revision health' is the more defensible action; confirm its behavior in the target service before calling the task complete.

C:

When a developer stores a production connection string in the container image, risking disclosure to image pullers, the action 'Use managed secrets and references through Container Apps configuration or identity' can be relevant: credentials should not be baked into reusable images or build logs. For the different problem of a new Container Apps revision starts but never receives traffic because health checks fail, 'Use managed secrets and references through Container Apps configuration or identity' misses the mechanism that unhealthy revisions may be excluded from traffic despite successful image deployment. Choosing 'Use managed secrets and references through Container Apps configuration or identity' would address that other need, whereas 'Check readiness probes, target port, app startup and revision health' is intended to solve the stated condition.

D:

'Treat a revision as an immutable app version and replicas as running instances' applies to a different feature boundary because revision versioning and autoscale replica count describe different axes of deployment. In the stated scenario where a new Container Apps revision starts but never receives traffic because health checks fail, 'Treat a revision as an immutable app version and replicas as running instances' does not satisfy the mechanism that unhealthy revisions may be excluded from traffic despite successful image deployment. The necessary action is 'Check readiness probes, target port, app startup and revision health', which should be checked against this Azure resource's actual permissions and state.

Question 300

An Azure Container Apps HTTP service already has ingress and a scaling rule, with minReplicas=1 and maxReplicas=2. Peak traffic drives it to two replicas and p95 response latency rises, while the containers are healthy. Which revision scaling change should administrators test to add capacity without changing hosting platforms?

  1. Keep the same two-replica maximum and only change the monitoring dashboard to show more metrics
  2. Attach a Service Bus queue scale rule although this application only receives incoming HTTP requests
  3. Replace the registry image-pull credentials even though all running replicas are healthy and pull successfully
  4. Set minReplicas=0 for lower idle cost while retaining maxReplicas=2 during the same load peaks
  5. Raise maxReplicas to a supported tested value and tune the HTTP concurrent-request target using measured load

Explanation

Correct Answer

E:

Azure Container Apps uses HTTP scaling rules to respond to concurrent requests, constrained by the revision's minimum and maximum replica counts. The problem states the application has already reached maxReplicas=2 while serving heavy traffic; the healthy containers cannot add a third replica until that limit changes. Increase the maximum to a supported, capacity-tested value and evaluate the HTTP concurrentRequests target to align scale-out with measured p95 latency and costs. Validate resulting replica counts, backend capacity and cold-start tradeoffs under load. This is distinct from choosing Container Apps over ACI or configuring overnight scale-to-zero.

Incorrect Answers

A:

Changing charts can reveal useful details about peak traffic, concurrency and response times, but it does not change how many replicas the Container Apps revision can create. The given rule is already at maxReplicas=2 during the high-latency period. If healthy instances are capacity-constrained, the administrator needs to evaluate a higher supported maximum and the HTTP concurrency target, then measure the result. New dashboards alone leave the binding scale ceiling intact, so they cannot supply the additional service capacity requested in the question.

B:

A Service Bus scaler is designed to react to queue depth or another supported event source. The application in the question receives HTTP requests and has no stated Service Bus queue. Adding a queue trigger would not characterize the existing inbound HTTP concurrency or resolve a two-replica cap caused by the current HTTP scale configuration. Event-driven queue scaling is relevant to worker applications that actually consume such messages; this service instead needs measured adjustment of its HTTP rule and allowed replica maximum. Use the trigger that corresponds to the traffic actually described.

C:

Valid image-pull credentials are necessary for new replicas to start, but the existing revision has two healthy running replicas and no image-pull errors. Replacing successful registry credentials cannot by itself raise the maximum replica count or change the HTTP concurrency threshold that determines scale-out. Credential investigation would be relevant for failing revision starts or authorization errors, neither of which is present in the scenario. The material symptom is peak requests encountering a capacity ceiling, not an inability to retrieve the container image.

D:

Lowering minReplicas from one to zero may reduce idle charges when the application has no requests, but it does not increase the maxReplicas=2 ceiling already reached during peaks. It can also introduce cold-start considerations when traffic resumes. The question explicitly asks for additional capacity under a healthy but saturated two-replica revision, not lower idle cost. Keep the scaling goal separate from another practice scenario's idle scale-to-zero objective: this case requires raising the maximum and tuning HTTP thresholds based on observed demand, not changing only the floor.


Microsoft Azure Administrator (AZ-104) Practice Tests

Purchase Individually

AZ-104 Premium File

Premium File
AZ-104 Premium File
606 Q&A
$76.99$69.99

AZ-104 Training Video Course

Training Course
AZ-104 Training Video Course
132 Lectures
$27.49$24.99

AZ-104 Study Guide

Study Guide
AZ-104 Study Guide
458 PDF Pages
$27.49$24.99

Site Search:

 

VISA, MasterCard, AmericanExpress, UnionPay

SPECIAL OFFER: GET 10% OFF

ExamCollection Premium

ExamCollection Premium Files

Pass your Exam with ExamCollection's PREMIUM files!

  • ExamCollection Certified Safe Files
  • Guaranteed to have ACTUAL Exam Questions
  • Up-to-Date Exam Study Material - Verified by Experts
  • Instant Downloads
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

SPECIAL OFFER: GET 10% OFF

Use Discount Code:

MIN10OFF

A confirmation link was sent to your e-mail.
Please check your mailbox for a message from support@examcollection.com and follow the directions.

Next

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.