You have an Azure subscription that contains 50 virtual machines.
You plan to manage the configuration of the virtual machines by using Azure Automation State Configuration.
You need to create the Desired State Configuration (DSC) configuration files.
How should you structure the code blocks?
A. Node > Configuration > Resource
B. Configuration > Resource > Node
C. Resource > Configuration > Node
D. Configuration > Node > Resource
Show Answer
Correct Answer: D
Explanation: In PowerShell Desired State Configuration (DSC), the outermost block is the Configuration block. Inside it are one or more Node blocks that specify the target machines. Within each Node block are one or more Resource blocks that define the desired configuration for that node.
Question 219
You have an on-premises app named App1 that accesses Azure resources by using credentials stored in a configuration file.
You plan to upgrade App1 to use an Azure service principal.
What is required for App1 to programmatically sign in to Azure Active Directory (Azure AD)?
A. the application ID, a client secret, and the object ID
B. a client secret, the object ID, and the tenant ID
C. the application ID, a client secret, and the tenant ID
D. the application ID, a client secret, and the subscription ID
Show Answer
Correct Answer: C
Explanation: A service principal authenticating with a client secret requires the application (client) ID, the client secret, and the Azure AD (Microsoft Entra ID) tenant ID. The object ID identifies the service principal object but is not used for authentication, and the subscription ID is unrelated to Azure AD sign-in.
Question 220
You use GitHub for source control of .NET applications.
You need to deploy a documentation solution that meets the following requirements:
✑ Documents will be written in Markdown as developers make code changes.
✑ Changes to the documents will trigger the recompilation of a static website.
✑ Users will access the documents from the static website.
✑ Documents will be stored in a GitHub repository.
Which two tools can you use to compile the website? Each correct answer presents a complete solution.
NOTE: Each correct selection is worth one point.
A. Word Press
B. Jekyll
C. DocFX
D. caret
E. Medium
Show Answer
Correct Answer: B, C
Explanation: Jekyll and DocFX are both static site generators that compile Markdown into static websites. Jekyll integrates well with GitHub Pages, while DocFX is designed for .NET documentation and can generate static documentation sites from Markdown and .NET source code. WordPress and Medium are publishing platforms, and Caret is a Markdown editor rather than a static site compiler.
Question 221
Note: This question is part of a series of questions that present the same scenario. Each question in the series contains a unique solution that might meet the stated goals. Some question sets might have more than one correct solution, while others might not have a correct solution.
After you answer a question in this section, you will NOT be able to return to it. As a result, these questions will not appear in the review screen.
You use Azure Pipelines to build and test a React.js application.
You have a pipeline that has a single job.
You discover that installing JavaScript packages from npm takes approximately five minutes each time you run the pipeline.
You need to recommend a solution to reduce the pipeline execution time.
Solution: You recommend using pipeline artifacts.
Does this meet the goal?
A. Yes
B. No
Show Answer
Correct Answer: B
Explanation: Pipeline artifacts are intended to publish and share files produced by a pipeline between jobs or pipelines. To reduce repeated npm install time across pipeline runs, Azure Pipelines caching should be used to cache dependencies such as the npm package cache. Therefore, recommending pipeline artifacts does not meet the goal.
Question 222
You have an Azure subscription that contains multiple Azure pipelines.
You need to deploy a monitoring solution for the pipelines. The solution must meet the following requirements:
✑ Parse logs from multiple sources.
✑ Identify the root cause of issues.
What advanced feature of a monitoring tool should you include in the solution?
A. analytics
B. synthetic monitoring
C. directed monitoring
D. Alert Management
Show Answer
Correct Answer: A
Explanation: Analytics is the advanced monitoring capability that aggregates and parses logs from multiple sources and enables correlation and root cause analysis. Synthetic monitoring simulates user interactions, Alert Management focuses on notifications, and 'directed monitoring' is not the appropriate feature for these requirements.
Question 224
You have a project in Azure DevOps.
You need to push notifications about pull requests to a Microsoft Teams channel. The solution must minimize development effort.
What should you do?
A. Install the Azure Pipelines app for Teams and configure a subscription to receive notifications in the channel.
B. Use Azure Automation to connect to the Azure DevOps REST API and send messages to Teams.
C. Install the Azure Repos app for Teams and configure a subscription to receive notifications in the channel.
D. Use an Azure function to connect to the Azure DevOps REST API and send messages to Teams.
Show Answer
Correct Answer: C
Explanation: Pull request notifications are a feature of Azure Repos. The Azure Repos app for Microsoft Teams provides built-in subscriptions for repository events, including pull request creation and updates, requiring no custom development. Azure Pipelines is focused on pipeline events, while Azure Automation and Azure Functions would require unnecessary custom integration.
Question 225
You have an Azure subscription named Subscription1 that contains a custom Azure policy named Policy1. Policy1 is an audit policy that monitors naming convention compliance for the resources deployed to Subscription1.
You have a pipeline named Pipeline1 in Azure Pipelines. Pipeline1 deploys Azure Resource Manager (ARM) resources to Subscription1.
You need to ensure that the resources deployed by Pipeline1 comply with Policy1.
What should you add to Pipeline1?
A. a pre-deployment task that runs a security and compliance assessment
B. a post-deployment task that runs a security and compliance assessment
C. an ARM template deployment task to assign Policy1 to Subscription1
D. an ARM template deployment task to deploy Policy1 to Subscription1
Show Answer
Correct Answer: B
Explanation: Policy1 is already a custom audit policy that monitors naming compliance. The question asks what to add to the pipeline to ensure deployed resources comply. An audit policy does not prevent deployment; it evaluates compliance after resources exist. Therefore, add a post-deployment security and compliance assessment task to check Azure Policy compliance after deployment. Options C and D are unnecessary because the policy already exists, and A is less appropriate for an audit policy that evaluates deployed resources.
Sources:
https://learn.microsoft.com/en-us/azure/container-registry/container-registry-azure-policy
https://azure.microsoft.com/en-ca/products/azure-policy
Question 226
Your company has 60 developers who are assigned to four teams. Each team has 15 members.
The company uses an agile development methodology.
You need to structure the work of the development teams so that each team owns their respective work while working together to reach a common goal.
Which parts of the taxonomy should you enable the team to perform autonomously?
A. Features and Tasks
B. Initiatives and Epics
C. Epics and Features
D. Stories and Tasks
Show Answer
Correct Answer: D
Explanation: In Azure DevOps Agile scaling, leadership typically manages initiatives, epics, and features to align teams toward common goals, while individual development teams are given autonomy over user stories and tasks. Since the teams should own their day-to-day work while collaborating on broader objectives, Stories and Tasks are the appropriate level of autonomous ownership.
Question 227
Your company is building a new solution in Java.
The company currently uses a SonarQube server to analyze the code of .NET solutions.
You need to analyze and monitor the code quality of the Java solution.
Which task types should you add to the build pipeline?
A. Maven
B. CocoaPods
C. Xcode
D. Gulp
Show Answer
Correct Answer: A
Explanation: Maven is the standard Java build task and integrates with SonarQube/SonarScanner for Java projects in build pipelines. CocoaPods is for iOS dependencies, Xcode is Apple's IDE/build system, and Gulp is a JavaScript task runner, none of which are appropriate for building and analyzing a Java solution with SonarQube.
Question 228
Your company is building a new solution in Java.
The company currently uses a SonarQube server to analyze the code of .NET solutions.
You need to analyze and monitor the code quality of the Java solution.
Which task types should you add to the build pipeline?
A. Octopus
B. Chef
C. CocoaPods
D. Gradle
Show Answer
Correct Answer: D
Explanation: Gradle is a Java build automation tool with SonarQube integration commonly used in Azure DevOps build pipelines to build and analyze Java projects. Octopus is for deployment, Chef is configuration management, and CocoaPods is for iOS dependency management.
$19
Get all 541 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.