Microsoft

AZ-400 Free Practice Questions — Page 19

Question 185

You manage a project by using Azure Board, and you manage the project code by using Azure Repos. You have a bug work item that has an ID of 123. You need to set the work item state to Resolved. What should you add to the commit message?

A. #123 completes
B. #123 Resolved
C. Completed #123
D. Fixes #123
Show Answer
Correct Answer: D
Explanation:
Azure DevOps recognizes resolution mentions in commit messages using the keywords 'fix', 'fixes', or 'fixed' followed by the work item reference (for example, 'Fixes #123'). This automatically resolves the linked work item. The other phrases are not supported resolution keywords.

Question 186

DRAG DROP - Your company has a project in Azure DevOps named Project1. All the developers at the company have Windows 10 devices. You need to create a Git repository for Project1. The solution must meet the following requirements: • Support large binary files. • Store binary files outside of the repository. • Use a standard Git workflow to maintain the metadata of the binary files by using commits to the repository. Which three actions should you perform in sequence on each developer’s device? To answer, move the appropriate actions from the list of actions to the answer area and arrange them in the correct order.

Illustration for AZ-400 question 186
Show Answer
Correct Answer: Perform a custom installation of Git for Windows that includes Git Large File Storage (LFS). Configure personal access token (PAT)-based authentication. Configure Git Large File Storage (LFS) file tracking.
Explanation:
Git LFS is required to store large binaries outside the repository while keeping pointer files in Git. Install Git with LFS first, then configure authentication to Azure DevOps, and finally enable LFS tracking for the required file types in the repository.

Question 187

You have a GitHub Enterprise account. You need to enable push protection for secret scanning of the account repositories. What should you do first?

A. Purchase a GitHub Advanced Security license.
B. Purchase Premium Plus support.
C. Enforce multi-factor authentication (MFA).
D. Create an access policy for secrets.
Show Answer
Correct Answer: A
Explanation:
Push protection for secret scanning is a GitHub Advanced Security feature. For GitHub Enterprise repositories, the prerequisite is having a GitHub Advanced Security license before you can enable push protection. Premium Support, MFA enforcement, and secret access policies are not the required first step.

Question 188

You have an Azure subscription linked to an Azure Active Directory Premium Plan 1 tenant. A security review indicates that too many users have privileged access to resources. You need to deploy a privileged access management solution that meets the following requirements: • Enforces time limits on the use of privileged access • Requires approval to activate privileged access • Minimizes costs What should you do first?

A. Configure notifications when privileged roles are activated.
B. Configure alerts for the activation of privileged roles.
C. Enforce Azure Multi-Factor Authentication (MFA) for role activation.
D. Upgrade the license of the Azure Active Directory (Azure AD) tenant.
Show Answer
Correct Answer: D
Explanation:
The required capabilities—time-limited privileged access and approval-based activation—are provided by Azure AD Privileged Identity Management (PIM), which requires Microsoft Entra ID (formerly Azure AD) Premium P2. The tenant currently has Premium P1, so the first step is to upgrade the tenant license. After P2 is available, PIM can be configured with approval workflows, activation time limits, MFA, notifications, and alerts as needed. This also minimizes costs by upgrading only to the required licensing level rather than implementing other solutions.

Question 189

You have an Azure web app named webapp1 that uses the .NET Core runtime stack. You have an Azure Application Insights resource named AppInsights1. Webapp1 sends telemetry data to AppInsights1. You need to ensure that webapp1 sends the telemetry data at a fixed sampling rate. What should you do?

A. From the code repository of webapp1, modify the ApplicationInsights.config file.
B. From the code repository of webapp1, modify the Startup.cs file.
C. From AppInsights1, modify the Usage and estimated costs settings.
D. From AppInsights1, configure the Continuous export settings.
Show Answer
Correct Answer: B
Explanation:
For ASP.NET Core/.NET Core applications, ApplicationInsights.config is not used. Fixed-rate sampling is configured in application code during Application Insights setup, typically in Startup.cs (or Program.cs in newer .NET versions). The Usage and estimated costs setting affects ingestion/quotas, not SDK fixed-rate sampling, and Continuous export is unrelated to sampling.

Question 190

Your company has multiple microservices-based apps that use the following tracing libraries: • OpenTelemetry • OpenCensus • OpenTracing • Honeycomb • Jaeger The company purchases an Azure subscription and implements Application Insights in Azure Monitor. You plan to centralize distributed tracing for the apps. You need to identify which libraries can integrate directly with Application Insights. Which two libraries should you identify? Each correct answer presents a complete solution. NOTE: Each correct solution is worth one point.

A. Honeycomb
B. OpenTracing
C. Jaeger
D. OpenTelemtry
E. OpenCensus
Show Answer
Correct Answer: D, E
Explanation:
Application Insights (Azure Monitor) supports direct integration with OpenTelemetry and, for legacy scenarios, OpenCensus. OpenTelemetry is the current recommended standard, while OpenCensus is supported for existing instrumentation. OpenTracing, Jaeger, and Honeycomb do not have direct native integration with Application Insights in the way asked by the question.

Question 191

HOTSPOT - You have an Azure web app named webapp1 that uses the .NET Core runtime stack. You have an Azure Application Insights resource named AppInsights1 that collects telemetry data generated by webapp1. You plan to deploy webapp1 by using an Azure DevOps pipeline. You need to modify the sampling rate of the telemetry data processed by AppInsights1 without having to redeploy webapp1 after each modification. What should you do? To answer, select the appropriate options in the answer area. NOTE: Each correct selection is worth one point.

Illustration for AZ-400 question 191
Show Answer
Correct Answer: From the code repository of webapp1: Disable adaptive sampling. From AppInsights1: Modify the Usage and estimated costs settings.
Explanation:
To change sampling without redeploying the .NET Core app, use Application Insights ingestion sampling. In ASP.NET Core, adaptive sampling is enabled by default and must be disabled in the app so ingestion sampling can take effect. The ingestion sampling rate is then changed in the Application Insights 'Usage and estimated costs' settings, without redeployment.

Question 192

DRAG DROP - You have a GitHub repository that contains the source code for an app named App1. You need to create process documentation for App1. The solution must include a diagram that displays the relationships between the phases of App1 as shown in the following exhibit. How should you complete the markdown code? To answer, drag the appropriate values to the correct targets. Each value may be used once, more than once, or not at all. You may need to drag the split bar between panes or scroll to view content. NOTE: Each correct selection is worth one point.

Illustration for AZ-400 question 192 Illustration for AZ-400 question 192
Show Answer
Correct Answer: stateDiagram Processing
Explanation:
The Mermaid syntax is for a state diagram, and the composite state block is named Processing, matching the depicted parent state.

Question 193

You have multiple teams that work on multiple projects in Azure DevOps. You need to plan and manage the consumers and producers for each project. The solution must provide an overview of all the projects. What should you do?

A. Add a Predecessor or Successor link to the feature or user story for the items of each project.
B. Add a Parent or Child link to the feature or user story for the items of each project.
C. Install the Dependency Tracker extension and create dependencies for each project.
D. Create a custom query to show the consumers and producers and add a widget to a dashboard.
Show Answer
Correct Answer: C
Explanation:
The Dependency Tracker extension was specifically designed to manage consumer/producer relationships and visualize dependencies across multiple teams and projects. It provides an overview of project dependencies, matching the requirement. Although current Microsoft guidance recommends using Delivery Plans instead because Dependency Tracker is deprecated/unsupported, among the provided options the exam-intended answer is the Dependency Tracker extension.

Question 194

SIMULATION - You need to ensure that an Azure web app named az400-123456789-main supports rolling upgrades. The solution must ensure that only 10 percent of users who connect to az400-123456789-main use update versions of the app. The solution must minimize administrative effort. To complete this task, sign in to the Microsoft Azure portal.

Show Answer
Correct Answer: In the deployment slots for az400-123456789-main, configure Traffic routing so the staging/update slot receives 10% of traffic.
Explanation:
Rolling upgrades with minimal administration are achieved by using deployment slots and traffic routing. Assign 10% of traffic to the updated (staging) slot so only 10% of users use the new version.

$19

Get all 534 questions with detailed answers and explanations

  • Instant download HTML + PDF delivered the moment payment clears.
  • Secure Stripe checkout we never see or store your card details.
  • 7-day refund if files are defective see our refund policy.