Medium AZ-400 practice questions
Applied — put a concept to work in a realistic situation. 118 medium questions available — no sign-up, always free.
Your team uses Azure App Configuration to manage feature flags for a web application deployed through Azure Pipelines. The product owner wants to enable a new checkout experience only for internal beta testers (identified by a specific Azure AD group) while keeping it disabled for all other users, without redeploying the application. Which App Configuration feature flag capability should you use?
Your team runs an ASP.NET Core API instrumented with Application Insights. Support reports that certain checkout requests fail intermittently, but the front-end only logs a generic 500 error. You need a KQL query in Log Analytics that returns each failed checkout request together with the specific exception thrown during that same request execution, so you can identify the root-cause exception type per failing operation. Which query correctly correlates the two telemetry types?
Your team runs an Application Insights-instrumented web API. Product management wants a weekly report showing the 99th percentile server response time grouped by each API operation (URL path), covering the last 7 days. You need to write a KQL query against the requests table that returns one row per operation with its p99 duration. Which query satisfies this requirement?
Your team runs a customer-facing web API on Azure App Service. Leadership wants proactive detection of outages from multiple global locations, including verification that a login endpoint returns a valid token before the checkout endpoint is exercised, all without deploying any code into the application. You are configuring Application Insights. Which monitoring capability should you implement?
Your microservices application is instrumented with Application Insights across five services. A customer reports that a specific checkout request failed intermittently. You have the operation_Id from the failed request captured in a support ticket. You need to reconstruct the complete end-to-end distributed trace — including all requests, dependencies, and exceptions across every service — for that single transaction using KQL. Which query approach correctly retrieves the full trace?
Your team runs a microservice on Azure App Service instrumented with Application Insights. After a recent release, users report intermittent slowness. You suspect a downstream SQL dependency is the cause. You need a KQL query that returns, for the last 24 hours, the 95th percentile duration of failed dependency calls grouped by the target dependency, so you can identify which dependency degraded most. Which query should you run in the Logs (Analytics) blade?
Your team uses Application Insights with Log Analytics. The reliability lead wants a dashboard tile showing the trend of the 95th percentile server response time bucketed into 15-minute intervals over the last 24 hours, visualized as a line chart. Which KQL query produces the correct result?
A production ASP.NET Core web app is instrumented with Application Insights. During a promotional event, on-call engineers report that the app is intermittently returning 500 errors, and they need to observe request rates, failure rates, and server CPU in real time as the traffic surges — with sub-second latency and without waiting for telemetry to be ingested and indexed. Which Application Insights capability should they use?
Your team runs a customer-facing web API instrumented with Application Insights. Leadership wants to be automatically notified when the failure rate of the API rises abnormally compared to its typical baseline, without manually defining static numeric thresholds that would need constant tuning as traffic patterns change throughout the day. You must configure this with the least ongoing maintenance. What should you use?
Your team publishes an internal .NET library to an Azure Artifacts feed. Leadership requires that every package version encode the release date so consumers can immediately identify the age of a dependency, and the versioning scheme must not require manual increment of a major/minor number for each release. The library is released on an unpredictable cadence, sometimes multiple times per day. Which versioning approach should you implement in the Azure Pipelines build that produces the NuGet package?
Your organization uses an Azure Artifacts feed named 'Shared-Libs' to distribute internal NuGet packages. A new team of developers needs to restore packages from this feed in their local builds and in a pipeline, but they must not be able to publish new package versions or delete existing ones. The feed currently grants the 'Project Collection Build Service' the Contributor role. What is the most appropriate way to grant the new team the access they require while following least-privilege principles?
Your team publishes NuGet packages to an Azure Artifacts feed. Developers continuously push prerelease packages during active development, but downstream consumer teams must only be able to restore packages that have passed QA validation. You want to promote validated packages so consumers can reference a stable set without changing their feed source URL to a different feed. Which approach should you implement?
Your team publishes internal NuGet packages to an Azure Artifacts feed. Developers consuming these packages report that when they step into library code during debugging in Visual Studio, they cannot see the original source or line-level breakpoints. You want to enable full source-level debugging of the published packages without manually distributing PDB files. What should you configure in the build pipeline that produces the packages?
Your team maintains an Azure Artifacts feed named 'Contoso-NuGet' for internal .NET packages. Developers currently restore both your internal packages and public packages from nuget.org, but you want a single feed URL in the NuGet.config that resolves internal packages while also caching and vetting public packages so the same versions are always available even if nuget.org is unavailable. You also need to promote only tested internal package versions to a 'Release' view consumed by production build pipelines. Which combination of Azure Artifacts capabilities should you configure?
Your team runs automated tests in an Azure Pipelines build that publishes test results to Azure DevOps. Leadership wants a dashboard widget that shows the trend of automated test pass rate over the last 12 weeks so they can spot regressions in test quality across sprints. The data must reflect historical results, not just the latest run. Which dashboard widget should you configure to meet this requirement?
Your team lead wants a dashboard that answers a single question: 'Once a developer starts actively working on a work item, how long does it take on average to reach the Done state?' The team uses Azure Boards with a Kanban board whose columns map to the states New, Active, Resolved, and Closed (mapped to Done). Management is NOT interested in how long items sat in the backlog before work began. Which Azure Boards analytics widget should you add to the dashboard to answer this question?
Your team develops in a GitHub repository and tracks work in Azure Boards. Developers want commits and pull requests in GitHub to automatically link to Azure Boards work items so that the deployment/development section of each work item shows the related code changes. You have already installed the Azure Boards app for GitHub and connected the repository. What must developers do in their commit messages or PR descriptions to create these links?
Your team uses GitHub for source control and Azure Boards for work tracking. Leadership wants full end-to-end traceability so that anyone viewing a work item can see which pull requests implemented it and whether the associated build succeeded, without leaving Azure Boards. Developers already reference work items in commit messages using AB#123 syntax. What must you configure to satisfy this requirement with the least custom development?
Your organization stores code in GitHub and manages sprint planning in Azure Boards. Developers work in GitHub using GitHub Flow, opening feature branches and pull requests. Product managers want work item state in Azure Boards to automatically move to 'Closed' when the linked pull request is merged, without developers manually updating boards. You have installed the Azure Boards app on the GitHub organization. Which configuration achieves automatic state transition on PR merge?
Your engineering organization uses Azure Boards for backlog management and Slack for team communication. The delivery lead wants engineers to receive a Slack message in the #team-releases channel whenever a work item in the 'Delivery' area path transitions to the 'Resolved' state, but they do NOT want notifications for any other state change or area path. The solution must require minimal ongoing maintenance and avoid custom code hosting. Which approach should you implement?
Your engineering leadership wants a dashboard metric that measures the total elapsed time from the moment a customer feature request is created as a work item until it is marked Done, so they can quantify overall responsiveness to customer demand. The team already tracks how long items spend actively being worked. Which Azure Boards analytics metric should you add to the dashboard to satisfy leadership's request?
Your team wants a dashboard widget that visualizes how many User Stories were completed each week over the last three months, grouped by the assigned team member, so the delivery manager can spot workload imbalances. You have an existing flat-list query returning all completed User Stories with their Closed Date and Assigned To fields. What is the most appropriate way to configure this visualization in Azure Boards?
Your team runs sprints in Azure Boards and deploys via Azure Pipelines. Product management wants an automatically generated release notes document published to the team wiki after each successful production deployment. The notes must list all completed User Stories and Bugs associated with the commits included in that release, without requiring anyone to manually curate the list. Which approach best satisfies this requirement with the least ongoing maintenance?
Your team collaborates primarily in Microsoft Teams. Product owners want a dedicated Teams channel to automatically receive a notification whenever any work item in the 'Payments' area path on the Azure Boards project transitions to the 'Resolved' state, so testers can begin verification promptly. You must configure this with the least administrative effort and without writing custom code. What should you do?
Your platform team wants developers to self-provision ephemeral test environments in Azure on demand, but the environments must only use pre-approved infrastructure templates, be deployed into specific subscriptions per project, and be automatically tracked for cleanup. Developers should request environments through a catalog without having direct rights to write ARM/Bicep at will. Which Azure service and configuration best meets these requirements?