100% Latest & Updated Microsoft AZ-104 Practice Test Questions, Exam Dumps & Verified Answers!
30 Days Free Updates, Instant Download!
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?
- Use the staging slot's assigned hostname or a configured slot hostname
- Use only the production hostname because slots cannot receive requests directly
- Add a custom DNS CNAME for qa.example.com that points to the production app hostname, without assigning a hostname to the staging slot
- 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.
Question 561
A deployment slot is directly reachable from the Internet at its staging hostname. Security wants to permit only the testing team's corporate IP ranges to use that preproduction URL. Which App Service control should be configured for that slot?
- Enable authentication on the staging slot for tester sign-in, but leave HTTP access unrestricted by source IP
- Configure slot-specific access restrictions for the allowed tester source ranges
- Mark the production database connection string as a slot setting
- Assign subscription Owner to the testers and leave the staging URL open
Explanation
Correct Answer
B:Slots can have their own inbound access restriction rules. Limiting the staging endpoint protects unpromoted code while retaining the intended QA access.
Incorrect Answers
A:App Service authentication controls who can authenticate but does not itself satisfy the stated network-source restriction. Even with identity enforcement, other public IPs can reach the staging endpoint; slot-specific access restrictions are required for IP allowlisting.
C:A sticky setting affects swap behavior of configuration values, not which external client IPs can send requests to staging. It is the wrong security layer.
D:Azure RBAC management access does not restrict anonymous HTTP requests to a public staging endpoint. It also gives testers excessive platform control.
Question 562
An App Service production site must send 5% of requests to a staging build for a canary test while keeping the regular production hostname. The team does not want to swap the slots yet. Which deployment-slot feature supports this?
- Change the custom domain's CNAME to point to staging for all users
- Add an App Service autoscale rule based on CPU and assume scaling the production workers automatically routes 5% of requests to the staging slot
- Configure deployment-slot traffic routing to direct a small percentage to the chosen staging slot
- Swap the slots immediately and assume exactly 5% of traffic moves
Explanation
Correct Answer
C:Slot traffic allocation can route a subset of users to staging while most requests stay on production. It allows staged exposure and validation before deciding whether to perform a full swap.
Incorrect Answers
A:A DNS change would tend to move an uncontrolled portion or eventually all clients rather than enforce an App Service percentage split through slot routing.
B:Autoscale changes the number of worker instances available to an App Service plan or app; it is not a request-distribution rule between deployment slots. Even if CPU-driven autoscale triggers, it does not establish a 5% staging canary. The app’s deployment-slot Traffic % configuration is the control for a production-to-staging allocation.
D:A swap exchanges which app content serves the production slot; it does not inherently implement a 5% controlled canary allocation.
Question 563
A production App Service continuously runs a queue-processing WebJob. The team publishes the same web app and job to a staging deployment slot for testing, but staging must not consume production queue messages or execute the duplicate background worker. Production must continue processing. What should be set on staging before any swap?
- Stop the App Service plan, which suspends only the staging worker while production stays active.
- Set WEBJOBS_STOPPED=1 in staging and mark that app setting as a deployment-slot setting so it does not swap into production.
- Enable auto swap; a swap automatically ensures only production can run WebJobs across all slots.
- Disable the production queue’s network ACL for all Azure addresses; WebJobs in staging will stop without affecting production.
Explanation
Correct Answer
B:App Service recognizes WEBJOBS_STOPPED=1 to stop all WebJobs on that site or slot. Setting it only in staging and marking it as a sticky deployment-slot setting prevents an unsafe swap from carrying the stop flag into production. The production WebJob continues while staged code can be tested without duplicate queue consumption.
Incorrect Answers
A:Stopping the shared App Service plan affects the compute supporting production and staging; it is not a per-slot control of background processing. The requirement is specifically to keep production processing while preventing staging from running its own WebJobs.
C:Auto swap is a promotion mechanism, not isolation for background worker execution. Publishing a WebJob to a slot does not imply Azure automatically suppresses that job until promotion; duplicate work can occur unless a slot-specific guard is configured.
D:A queue network ACL that blocks all Azure sources would also block the intended production WebJob. The scenario needs to suspend staging WebJobs only, not alter the queue to reject both production and staging activity.
Question 564
An App Service team uses a slot swap with preview to observe the target production settings on the source slot before completing promotion. The initial preview reveals an unexpected dependency. What operation preserves the current production app while the issue is fixed?
- Cancel the swap-with-preview operation, correct the dependency, and retry the controlled promotion
- Complete the swap immediately because preview automatically certifies application health
- Configure an automatic slot swap from staging to production and expect the existing preview issue to be ignored safely
- Finish promotion and rely on a later manual rollback if the dependency causes production errors
Explanation
Correct Answer
A:Preview pauses before final slot exchange so the source can be tested against target settings. Canceling avoids completing the promotion when testing reveals a mismatch.
Incorrect Answers
B:Preview is a validation opportunity, not proof that dependencies work. Completing a known-broken deployment would expose production traffic to the problem.
C:Auto Swap automates promotion; it does not resolve a failed dependency discovered during the paused preview or protect production from that dependency. The controlled recovery is to cancel the current preview, repair staging configuration, validate it, and then deliberately retry.
D:Rollback is a possible incident recovery action but it exposes production to the already known failing dependency during the swap. Canceling preview prevents that unsafe promotion and preserves the current production configuration while the team corrects the source slot.
Question 565
A team creates a staging deployment slot for an App Service app on a Standard plan. During slot creation it selects Clone configuration from production. The new staging slot has the expected app settings and runtime configuration but displays no application code. What additional action is required before testing the proposed release in staging?
- Swap staging with production immediately, because configuration cloning intentionally requires a production swap to create its first content files
- Wait for the App Service plan scale controller to copy production code automatically after the first warm-up interval
- Deploy the new application content separately to the staging slot, for example using its deployment profile or CI/CD pipeline
- Upgrade the hosting plan from Standard to Premium, because only Premium copies application files when cloning a deployment slot configuration
Explanation
Correct Answer
C:Microsoft documents that the Clone configuration option copies settings such as runtime, app settings and connection strings but a new staging slot does not contain the production app content merely because configuration was cloned. Publish the candidate release to the staging slot through its deployment endpoint or a CI/CD job, validate, and then choose whether to swap it into production.
Incorrect Answers
A:A slot swap moves the app content/configuration according to swap rules after both slots have been prepared; it is not the mechanism that initially publishes the planned release into staging. Swapping an empty or untested slot into production creates unnecessary release risk. The team should first deploy the candidate code into the new staging slot and test it before any promotion.
B:A new deployment slot can clone supported configuration values, but copying app code is not an asynchronous plan-scaling or warm-up operation. Waiting will not deploy the intended new build. The staging slot needs its own content deployment, which can use the same supported methods as a regular App Service app.
D:Standard supports deployment slots, and moving to Premium does not change the separation between configuration cloning and application content deployment. Hosting tier controls eligibility and some limits, not the automatic copying of code files as part of the Clone configuration operation. The proper fix is to deploy the intended build to the new slot.
Question 566
A deployment pipeline updates the production slot's custom DNS hostname and TLS certificate binding, then swaps code between staging and production. An engineer assumes the custom hostname and its binding will follow the code into staging. What configuration behavior should be checked?
- Mark the production custom hostname and TLS certificate binding as a deployment-slot setting so they follow the swapped code
- Grant subscription Owner to staging testers so their DNS follows the code
- Treat hostname and certificate bindings as slot-scoped properties rather than assuming they move with code
- Assume all platform bindings and settings are copied atomically to the other slot
Explanation
Correct Answer
C:Deployment slot swaps exchange application content and selected settings, while several platform connection and hostname properties remain associated with each slot. Test the production endpoint after promotion.
Incorrect Answers
A:Custom hostnames and TLS certificate bindings are slot-scoped platform properties, not ordinary sticky application-setting values that can be marked to swap. The pipeline must verify bindings on each intended slot rather than assuming the code swap moves them.
B:RBAC permissions do not make a custom hostname travel with a slot's code. Domain bindings must be configured and maintained explicitly.
D:Slots deliberately keep some settings and resources attached to their original slot. Blindly treating the entire app resource as swapped can cause access or certificate confusion.
Question 567
An App Service staging slot returns HTTP 200 at `/` even while its dependency health endpoint `/ready` returns 503. A slot swap proceeds because the default warm-up check only probes the root path. Which setting makes the swap wait for a supported readiness response from the actual dependency check?
- Change only the staging slot's public hostname and leave the warm-up path at /
- Raise the production slot's NSG rule priority so readiness checks are skipped
- Enable WEBSITE_WARMUP_PATH alone and assume the same validation is enforced during a slot swap
- Set WEBSITE_SWAP_WARMUP_PING_PATH to /ready and constrain WEBSITE_SWAP_WARMUP_PING_STATUSES to the acceptable readiness codes
Explanation
Correct Answer
D:App Service slot swaps support a configurable warm-up request path and permitted response statuses. Checking the dependency-aware readiness endpoint blocks completion when it returns 503, instead of treating a generic root-page response as healthy.
Incorrect Answers
A:A hostname change does not make the swap verify dependency readiness. The platform would still probe the default root path and could promote an instance whose required service is unavailable.
B:App Service slot warm-up uses application-level HTTP responses, not an NSG priority bypass mechanism. Skipping a readiness check would undermine the requirement to stop an unsafe promotion.
C:The general app-start warm-up path is not the same control as the specific swap warm-up ping path and status restrictions. The team must configure the swap-specific settings to enforce its readiness criterion.
Question 568
A web app is reachable through its default azurewebsites.net address. The owner now wants visitors to reach portal.example.org over a trusted HTTPS connection using the custom hostname. The DNS mapping exists, but TLS binding has not been completed. What should be added?
- A valid private TLS certificate bound to the custom hostname in App Service
- Enable HTTPS Only for the site without adding a custom-domain certificate binding
- Add another DNS CNAME for the custom hostname but leave the TLS binding unchanged
- Upload a TLS certificate to an unrelated App Service application without binding it to portal.example.org
Explanation
Correct Answer
A:App Service must have a suitable certificate and HTTPS binding covering the custom domain for clients to establish trusted TLS with that name. DNS resolution alone does not establish the certificate identity.
Incorrect Answers
B:HTTPS Only redirects or requires TLS, but does not supply a valid certificate matching portal.example.org. Clients would still fail trusted-hostname validation.
C:DNS resolves the name but cannot make the site present a trusted certificate for that hostname. The missing step remains the App Service TLS binding.
D:A certificate uploaded elsewhere is not the certificate served by this hostname. The target app requires a suitable binding for the custom name.
Question 569
An App Service application has an HTTPS certificate bound to admin.example.com, and DNS resolves correctly. Browsers trust the issuer but still warn that the certificate does not match the requested host name. The certificate contains only api.example.com in its subject alternative names. What specifically must change?
- Obtain and bind a trusted certificate whose subject alternative names cover admin.example.com, or an appropriate wildcard
- Increase the number of App Service workers without changing the certificate name coverage
- Add another A record pointing at the same App Service IP while keeping the mismatched certificate
- Disable Azure Monitor diagnostic settings for the app to avoid certificate warnings
Explanation
Correct Answer
A:TLS hostname validation checks whether the requested hostname appears in the certificate’s valid name set. A trusted certificate for api.example.com alone cannot validate admin.example.com; the bound certificate must cover the requested hostname.
Incorrect Answers
B:Scaling workers does not change the certificate subject alternative names that a browser validates. Additional capacity cannot correct a hostname identity mismatch.
C:DNS only determines where a hostname connects. Repeating the address mapping does not make the presented certificate valid for a hostname missing from its name coverage.
D:Diagnostics affect telemetry collection, not TLS certificate identity validation. Disabling them would remove useful incident evidence while leaving the mismatch unchanged.
Question 570
An Azure App Service website already has a working CNAME from shop.example.com to its azurewebsites.net hostname. The security team requires the app-specific DNS ownership-verification TXT proof before accepting this custom hostname, and the portal shows that the specified verification record is missing. Which DNS change satisfies that requirement without changing traffic routing?
- Publish the app-specific Domain Verification ID as the required TXT record at asuid.shop.example.com
- Recreate the existing shop.example.com CNAME with the same Azure hostname and omit the missing verification TXT record
- Publish an asuid.shop.example.com TXT record using the verification ID copied from an unrelated App Service app
- Publish the correct verification ID in a TXT record at shop.example.com rather than at the specified asuid.shop.example.com name
Explanation
Correct Answer
A:The App Service custom-domain workflow provides a Domain Verification ID and the exact TXT host name for ownership proof. The required asuid.shop.example.com record must contain the verification ID belonging to this app. A correctly configured TXT record verifies control of the hostname separately from the existing CNAME traffic mapping. This scenario explicitly requires the additional TXT verification; Microsoft recommends it to reduce subdomain-takeover risk even where some mappings can otherwise validate.
Incorrect Answers
B:A CNAME routes shop.example.com to the Azure app, and the scenario states it already resolves correctly. Recreating that same mapping does not publish the app-specific domain-verification token required by the security procedure. DNS resolution and evidence of ownership are distinct checks; leaving the asuid record absent preserves the reported validation gap.
C:The asuid TXT name is correct, but the value must match the Domain Verification ID shown for the App Service app being associated with this hostname. An ID taken from a different app does not prove authority to bind shop.example.com to this application, even if that other ID is otherwise valid. Use the current app’s token.
D:DNS TXT records are looked up by their complete owner name. A TXT record published at shop.example.com is not the same record as asuid.shop.example.com requested in this custom-domain validation flow. A correctly valued token at the wrong DNS owner name will not satisfy the stated missing-record check. Publish the token at the exact app-provided asuid location.
Microsoft Azure Administrator (AZ-104) Practice Tests