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 56

Question 550

A production app has Azure Monitor autoscale enabled. Operations requires it never to scale below three instances overnight, even after CPU utilization falls near zero. Which autoscale setting controls the lower capacity bound?

  1. Set app Always On but leave autoscale minimum at one
  2. Set the autoscale profile's default capacity to three but leave the profile minimum instance count at one
  3. Set the autoscale profile's minimum instance count to three for the applicable period
  4. Set the maximum instance count to three and leave minimum at one

Explanation

Correct Answer

C:

The minimum is a capacity floor independent of metric-driven scale-in recommendations. The scaler can reduce instances only to the configured minimum while obeying other limits.

Incorrect Answers

A:

Always On keeps the application process warm on existing workers; it does not create or preserve a minimum of three workers under autoscale.

B:

Default capacity is not an enforced floor after autoscale actions. If minimum remains one, a scale-in rule may still reduce the app below three workers overnight; set the minimum to three.

D:

The maximum caps scale-out but does not prevent automatic scale-in to one instance. It cannot establish the requested overnight floor.

Question 551

An App Service plan hosts an app used by several teams. Finance wants to understand billing when adding a second small app to workers already allocated to the same plan, without scaling the plan. Which cost model is relevant?

  1. Assume every additional web app always creates its own dedicated billable VM worker
  2. Use each app's individual request count as the only billable App Service compute unit despite using a shared dedicated plan
  3. Bill the second small web app as an unrelated consumption plan while it still runs on the existing dedicated App Service plan
  4. Evaluate the App Service plan's worker SKU and allocated instance count as the core compute cost

Explanation

Correct Answer

D:

On dedicated App Service plans, multiple apps can share the same paid worker capacity. Adding another app without changing worker allocation need not create a separate set of plan compute charges, though other services can incur costs.

Incorrect Answers

A:

Apps in one plan share workers by design. Billing follows the plan's resource allocation rather than automatically duplicating it for each hosted app.

B:

Request volume is useful for workload sizing, but dedicated App Service plan compute charges depend primarily on the allocated worker SKU and instance capacity. Two apps sharing a plan do not receive independent per-request worker bills merely because their request counts differ.

C:

A web app hosted on existing dedicated plan workers shares that plan's allocated compute and costs. Its small size does not automatically change the billing model to consumption or create a separately metered hosting plan.

Question 552

An App Service app uses sessions tied to an instance. An operator proposes enabling ARR affinity to keep each browser on a consistent worker, but the system must tolerate an instance recycling. What limitation should they acknowledge?

  1. ARR affinity can help route a client to the same worker, but persistent session state still needs an external or recoverable store
  2. Assume ARR affinity replicates every worker's RAM automatically
  3. Enable ARR affinity while storing all session data only in the instance's ephemeral memory, assuming sticky routing survives recycling
  4. Move session files to each App Service worker's local temporary filesystem and rely on ARR cookies to protect them during restarts

Explanation

Correct Answer

A:

Affinity is a routing preference, not a backup for process memory. If a worker restarts or becomes unavailable, its in-memory session can still be lost.

Incorrect Answers

B:

Routing affinity does not copy application memory between workers. It merely influences which instance receives subsequent requests.

C:

ARR affinity encourages requests to reach the same worker, but cannot restore session data when that worker recycles. Durable or external session state is still required.

D:

Worker-local temporary storage may be lost or isolated when instances are recycled or changed. ARR cookies influence routing, not durable replication of state across workers.

Question 553

Two App Service apps run in the same paid plan. A developer assumes that assigning a system-assigned managed identity to the first app automatically gives the second app the same Azure service principal and data permissions. What identity boundary should be applied?

  1. Grant the first application’s managed identity Blob Data Contributor at subscription scope and assume the second app automatically shares it because both use one plan
  2. Configure an appropriate managed identity and data role separately for each app that needs them
  3. Attach a user-assigned managed identity to only the first web app and assume the second app inherits it because the two share an App Service plan
  4. Grant the second app Reader on the first app resource and expect this to let it obtain tokens as the first app's system-assigned identity

Explanation

Correct Answer

B:

A system-assigned managed identity belongs to its own app resource. Sharing plan workers does not mean the apps share the same identity or automatically inherit one another's Azure RBAC assignments.

Incorrect Answers

A:

Making the first app identity more privileged broadens only that principal’s data authorization. System-assigned identities belong to individual App Service resources; a second app on the same plan does not automatically become the first app’s principal. Configure and authorize an identity for each app that requires access instead of granting unnecessary subscription-wide access.

C:

A user-assigned identity can deliberately be shared across apps, but each app must explicitly attach or reference that identity. The shared hosting plan does not automatically attach it to the second app or grant that app tokens. This proposal configures only the first app and therefore fails the requested second app's data-plane access.

D:

Reader over an App Service resource is an ARM permission, not authority to impersonate that resource's system-assigned managed identity. The second app cannot request tokens as the first app's identity merely by reading its settings. It needs its own authorized managed identity or an explicitly attached shared user-assigned identity and appropriate data access roles.

Question 554

A web application uses separate production and staging deployment slots. Both slots use the same code, but their database connection strings must continue pointing to their own environments even after code is swapped. What must the administrator configure?

  1. Mark the connection strings as deployment-slot settings
  2. Delete the staging connection string before each swap
  3. Store the production connection string inside application code that is swapped with the staging content
  4. Make both slots use the same database connection string throughout testing

Explanation

Correct Answer

A:

Deployment-slot settings are sticky to the slot instead of moving with the swapped application configuration. Marking the environment-specific connection strings sticky keeps production connected to the production database.

Incorrect Answers

B:

Deleting staging values can break staging tests and does not provide controlled slot-specific configuration behavior during a swap.

C:

Bundling a production secret with swappable code risks moving it into the staging slot and breaks environment-specific isolation. Slot-sticky configuration is the supported setting.

D:

Using one database for both environments may let staging tests touch production data and contradicts the requirement that each slot retain its own database.

Question 555

A web team deploys a new release to an App Service staging slot, validates it using the staging hostname, then promotes it to production with minimal configuration changes. They also want a straightforward way to restore the previously running application if validation fails after promotion. What workflow is intended?

  1. Use staging-to-production traffic splitting alone and assume that a traffic percentage change swaps the two slot versions for instant rollback.
  2. Mark every staging application setting as slot-sticky and assume the setting change also promotes staging code to production.
  3. Swap the staging and production slots and retain the previous production content in the other slot for possible swap back
  4. Enable unconditional auto swap for every new staging build before validation, assuming it still waits for a deliberate promotion decision.

Explanation

Correct Answer

C:

Deployment slots allow preproduction validation and controlled swapping of app content/routing. The prior version remains available in the other slot for rapid rollback, subject to configuration and warm-up considerations.

Incorrect Answers

A:

Traffic percentages route selected requests among active deployment slots; they do not perform the two-slot exchange that places the former production content into staging. The described release-and-swap-back workflow requires an actual slot swap.

B:

Slot-sticky settings control which configuration remains bound to a slot during swaps. Marking settings sticky does not move application content or initiate promotion. Validate staging, perform the swap, and swap back if postrelease checks fail.

D:

Auto swap promotes supported staging deployments after warm-up without the manual approval step. It can be useful for a fully automated pipeline but conflicts with the stated validate-THEN-promote decision and deliberate rollback workflow here.

Question 556

An App Service application has production and beta deployment slots. The product team configured beta to receive 0% of automatically routed traffic. Individual testers should be able to opt into the beta slot using a production-host URL without swapping code or changing the 0% distribution. Which documented routing mechanism meets this requirement?

  1. Swap beta into production for each tester session and swap back immediately
  2. Set the x-ms-routing-name query parameter to beta on the production-host URL, so routing can pin that tester to the beta slot
  3. Define 0% slot traffic routing with a Microsoft Entra group as an audience condition, assuming the built-in traffic rule selects only named beta testers
  4. Configure WEBSITE_SWAP_WARMUP_PING_PATH for the beta slot and assume warm-up checks automatically pin individual users from the production hostname to beta

Explanation

Correct Answer

B:

App Service supports opt-in slot routing through the x-ms-routing-name query parameter. A production-host request with x-ms-routing-name=beta routes the tester to the named beta slot and can set a routing cookie to maintain that choice. A 0% automatic distribution can remain in place, so other users stay on production.

Incorrect Answers

A:

A slot swap exchanges content/configuration according to swap rules for the application, not a single opt-in browser session. Frequent swaps would expose new code broadly and disrupt the release workflow. The team explicitly wants production to stay intact with no automatic beta traffic distribution.

C:

App Service slot routing percentages are not a built-in Entra group-based audience filter. Testers can opt in by using the documented x-ms-routing-name query parameter, which sets slot affinity without changing the global percentage.

D:

A slot swap warm-up ping prepares application instances during swaps; it is not a per-client routing selector. At 0% automatic traffic, use the x-ms-routing-name query parameter/cookie for an opted-in beta session.

Question 557

A team uses staging-to-production slot swaps and expects the staging slot’s managed identity and VNet integration to move to production along with its code. That assumption causes a private-service authorization failure after a swap. What should be corrected?

  1. Reassign production RBAC to the staging identity only during each swap
  2. Change the staging slot hostname to the production hostname before each swap
  3. Configure each slot’s non-swapped identity and VNet integration for its target environment
  4. Mark the slot connection string sticky and expect the managed identity principal ID to swap

Explanation

Correct Answer

C:

Deployment slots exchange appropriate application content and swappable settings, but managed identities and VNet integration are slot-specific. Configure each slot’s identity permissions and networking independently.

Incorrect Answers

A:

Production retains its configured identity, so relying on staging principal permissions creates unpredictable access after content moves.

B:

Custom hostnames and identity/VNet settings are slot-specific and not a fix for production’s missing private resource permissions.

D:

Slot-setting stickiness affects supported application settings; the identity principal itself is not swapped with code or ordinary settings.

Question 558

A web app has production and staging slots. Before cutting over a new build, the team wants to verify it starts successfully with production slot-specific configuration and still have the option to cancel the swap before traffic changes. Which feature should be used?

  1. Swap with preview, inspecting the warmed-up source slot before completing
  2. Perform an immediate staging-to-production swap without the preview pause
  3. Enable Auto Swap on every code push without any preproduction validation gate
  4. Copy production app settings manually into staging and execute a normal swap immediately

Explanation

Correct Answer

A:

Swap with preview lets staging initialize with relevant target-slot configuration, pauses the operation, and allows validation or cancellation before completing the production cutover.

Incorrect Answers

B:

An ordinary direct swap can promote the staged version, but it does not provide the requested pause to inspect production-target configuration before completion.

C:

Automatic swap can promote staging changes as part of deployment, but it removes the explicit opportunity to pause and cancel after validation with target settings.

D:

Manual copying can approximate configuration but may mishandle slot-specific settings and lacks the supported preview pause and cancellation workflow.

Question 559

A Windows Azure App Service uses a staging deployment slot. Every time CI/CD deploys new code to staging, the team wants App Service to warm it and then promote it automatically to production with no manual swap request. Which feature should it consider?

  1. Configure Auto swap for the staging-to-production slot deployment
  2. Mark every staging setting as a sticky deployment-slot setting and assume content automatically promotes
  3. Configure swap with preview but require a person to complete each production swap
  4. Set staging slot traffic percentage to 100% and assume App Service swaps staging code into production automatically

Explanation

Correct Answer

A:

Auto swap can perform a staged, warmed production swap after code is pushed to a configured source slot on supported Windows web apps. It automates content promotion rather than merely preserving settings.

Incorrect Answers

B:

Slot-specific settings stay with their slot but do not by themselves initiate a swap when a deployment completes.

C:

Swap with preview pauses for validation and still needs an explicit completion, so it does not satisfy hands-off promotion after every code push.

D:

Traffic percentages can route requests to a slot but do not execute an automatic deployment-slot swap. For the stated post-deployment warm-up and promotion, configure Auto Swap on a supported Windows App Service slot.

Question 560

A team deploys a release to an App Service staging slot and wants a stable URL for QA testers to exercise that code before any traffic swap. Which endpoint should they target?

  1. Use the staging slot's assigned hostname or a configured slot hostname
  2. Use only the production hostname because slots cannot receive requests directly
  3. Add a custom DNS CNAME for qa.example.com that points to the production app hostname, without assigning a hostname to the staging slot
  4. Rename the VM running the App Service worker to staging

Explanation

Correct Answer

A:

Deployment slots are live applications with separate endpoints. Testing the staging endpoint validates the new code without sending normal production traffic to that revision.

Incorrect Answers

B:

Slots can have their own accessible endpoints. Requiring production traffic for testing would defeat the isolation of a preproduction slot.

C:

A production-host CNAME routes users to the production app, not automatically to the isolated staging slot's code. QA should use the staging slot's own endpoint or an explicitly configured custom staging-slot hostname before any swap.

D:

App Service abstracts the worker infrastructure; VM naming is not how slot endpoints are addressed. The slot hostname remains the correct target.

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.