Microsoft

AZ-400 Free Practice Questions — Page 19

Question 186

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 Repos supports resolution mentions that automatically update work item states when specific keywords are used in commit messages. The supported keywords are fix, fixes, and fixed (case-insensitive). Using "Fixes #123" links the commit to work item 123 and sets the bug state to Resolved. The other options do not use supported resolution keywords.

Question 187

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 187
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 support large binary files stored outside the repository, so Git for Windows must be installed with LFS first. Authentication to Azure DevOps is then configured using a PAT to allow cloning and pushing. Finally, Git LFS tracking is configured in the repository to ensure large files are managed via LFS metadata commits.

Question 188

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 part of GitHub Advanced Security. For GitHub Enterprise accounts, you must first have an Advanced Security license before you can enable secret scanning push protection on repositories. Other options like MFA, support plans, or access policies are not prerequisites for this feature.

Question 189

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 requirements (time-limited privileged access and approval for activation) are core capabilities of Azure AD Privileged Identity Management (PIM). PIM requires Azure AD Premium P2 licensing, while the tenant currently has Premium P1. To meet the requirements while minimizing costs, the first step is to upgrade the Azure AD tenant license to enable PIM.

Question 190

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:
Webapp1 uses the .NET Core runtime. For ASP.NET Core applications, telemetry sampling (including fixed-rate sampling) is configured in code via the Application Insights SDK, typically in Startup.cs (or Program.cs for newer .NET versions) using AddApplicationInsightsTelemetry and sampling settings. ApplicationInsights.config applies to .NET Framework apps, not .NET Core, and Application Insights resource settings don’t control fixed client-side sampling.

Question 191

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:
Azure Application Insights supports direct integration via exporters with OpenTelemetry and, historically, OpenCensus. Both libraries can send distributed tracing data directly to Application Insights, enabling centralized tracing. OpenTracing and Jaeger do not integrate directly, and Honeycomb is a separate observability platform.

Question 192

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 192
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, use ingestion sampling configured in Application Insights. Ingestion sampling only applies when SDK adaptive sampling is disabled. The sampling rate is then adjusted in the Application Insights Usage and estimated costs settings, without modifying or redeploying the .NET Core app.

Question 193

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 193 Illustration for AZ-400 question 193
Show Answer
Correct Answer: stateDiagram Processing
Explanation:
The exhibit shows system states and transitions, including a composite state (Processing) containing Incomplete and Complete. In Mermaid, this requires a stateDiagram, and the nested block must be named Processing to match the diagram.

Question 195

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: Create an App Service deployment slot (for example, staging) Route 10% of production traffic to the staging slot
Explanation:
Azure App Service deployment slots support rolling upgrades with traffic splitting. Creating a staging slot and setting its traffic percentage to 10% ensures only 10% of users use the updated version while minimizing administrative effort.

Question 197

SIMULATION - You need to configure an Azure web app named az400-123456789-main to contain an environmental variable named `MAX_ITEMS`. The environmental variable must have a value of 50. To complete this task, sign in to the Microsoft Azure portal.

Show Answer
Correct Answer: Azure Portal → App Services → az400-123456789-main Configuration → Application settings → New application setting Name: MAX_ITEMS Value: 50 Save
Explanation:
In Azure App Service, application settings are exposed as environment variables at runtime. Adding an application setting with the specified name and value creates the required environment variable.

$19

Get all 531 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.