If you are looking for free AZ-400 dumps than here we have some sample question answers available. You can prepare from our Microsoft AZ-400 exam questions notes and prepare exam with this practice test. Check below our updated AZ-400 exam dumps.
DumpsGroup are top class study material providers and our inclusive range of AZ-400 Real exam questions would be your key to success in Microsoft Microsoft Azure Certification Exam in just first attempt. We have an excellent material covering almost all the topics of Microsoft AZ-400 exam. You can get this material in Microsoft AZ-400 PDF and AZ-400 practice test engine formats designed similar to the Real Exam Questions. Free AZ-400 questions answers and free Microsoft AZ-400 study material is available here to get an idea about the quality and accuracy of our study material.
Sample Question 4
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 websites
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.
A. Jeky11 B. Medium C. caret D. WordPress E. Doc FX
Answer: A,E Explanation: A. Jekyll is a static site generator that can be used to generate a static website from Markdown files stored in a GitHub repository. Jekyll supports the use of
Markdown for writing documentation, and it can automatically recompile the website
whenever changes are made to the documentation.
E. Doc FX is another tool that can be used to compile a static website from Markdown files
stored in a GitHub repository. It is an open-source tool that can be used to generate API
documentation, reference documentation, and other types of documentation from source
code and other files. Doc FX supports the use of Markdown for writing documentation and
it can automatically recompile the website whenever changes are made to the
documentation.
Sample Question 5
You have a GitHub repository that is integrated with Azure Boards Azure Boards has a
work item that has the number 715.
You need to ensure that when you commit source code in GitHub, the work item is updated
automatically. What should you include in the commit comments?
A. @714 B. =715 C. the URL of the work item D. AB#715
Answer: B
Sample Question 6
You have a project in Azure DevOps named Project1. You implement a Continuous Integration/Continuous Deployment (CI/CD) pipeline that
uses PowerShell Desired State Configuration (DSC) to configure the application
infrastructure.
You need to perform a unit test and an integration test of the configuration before Project1
is deployed.
What should you use?
A. the PS Script Analyzer tool B. the Pester test framework C. the PS Code Health module D. the Test-Ds Configuration cmdlet
Answer: B Explanation: You should use the Pester test framework to perform a unit test and an integration test of the configuration before Project1 is deployed. The Pester test framework is a PowerShell testing framework that can be used to validate PowerShell DSC configurations.
Sample Question 7
You use GitHub for source control and project-related discussions. You receive a notification when an entry is made to any team discussion. You need to ensure that you receive email notifications only for discussions in which you commented or in which you are mentioned. Which two Notifications settings should you clear? Each correct answer presents part of the solution. NOTE: Each correct selection is worth one poin Supports feature flags
Tracks configuration changes from the past 30 days
Stores hierarchically structured configuration values
Controls access to the configurations by using role-based access control (RBAC)
permission
Stores shared values as key/value pairs that can be used by all the apps
Which Azure service should you recommend as the configuration management solution?
A. Azure Cosmos DB B. Azure App Service C. Azure App Configuration D. Azure Key Vault
Answer: C
Explanation:
The Feature Manager in the Azure portal for App Configuration provides a UI for creating
and managing the feature flags that you use in your applications.
App Configuration offers the following benefits:
A fully managed service that can be set up in minutes
Flexible key representations and mappings
Tagging with labels
Point-in-time replay of settings
Dedicated UI for feature flag management
Comparison of two sets of configurations on custom-defined dimensions
Enhanced security through Azure-managed identities
Encryption of sensitive information at rest and in transit
Native integration with popular frameworks
App Configuration complements Azure Key Vault, which is used to store application
secrets.
Reference:
https://docs.microsoft.com/en-us/azure/azure-app-configuration/overviewc
Sample Question 8
You use GitHub for source control and project-related discussions.
You receive a notification when an entry is made to any team discussion.
You need to ensure that you receive email notifications only for discussions in which you
commented or in which you are mentioned.
Which two Notifications settings should you clear? Each correct answer presents part of
the solution.
NOTE: Each correct selection is worth one poin
A. Participating B. Automatically watch repositories C. Automatically watch teams D. Watching
Answer: B,D
Sample Question 9
You manage projects by using Azure Boards.
You have a current work item name item A that is dependant on a work item named item3.
You need to define the dependency for item A.
What should you do in the web portal for Azure DevOps?
A. From Backlogs, open the context menu, select Add link and then select item3. Set Link
type to Related and add the ID of item A B. From item A open the Links tab, and then select Add link. Set Link type to Successor and add the ID of item B. C. From Queries, open the context menu, select Add link, and then select Existing item. Set Link type to Affected By and add the ID of item B. D. From item A, open the Links tab, and then select Add link. Set Link type to References and add the ID Of item B.
Answer: B
Sample Question 10
You have an Azure DevOps organization named Contoso.
You need to recommend an authentication mechanism that meets the following
requirements:
• Supports authentication from Get
• Minimizes the need to provide credentials during authentication
What should you recommend?
A. managed identities in Azure Active Directory (Azure AD) B. personal access tokens (PATs) in Azure DevOps C. user accounts in Azure Active Directory (Azure AD) D. Alternate credentials in Azure DevOps
Answer: B Explanation:
Personal access tokens (PATs) give you access to Azure DevOps and Team Foundation
Server (TFS), without using your username and password directly. These tokens have an
expiration date from when they're created. You can restrict the scope of the data they can
access. Use PATs to authenticate if you don't already have SSH keys set up on your
system or if you need to restrict the permissions that are granted by the credential.
Reference:
https://docs.microsoft.com/en-us/azure/devops/repos/git/auth-overview
Sample Question 11
You have an Azure DevOps project named Project1 and an Azure subscription named
Sub1. Sub1 contains an Azure virtual machine scale set named VMSS1. VMSS1 hosts a
web application named
WebApp1. WebApp1 uses state full sessions.
The WebApp1 installation is managed by using the Custom Script extension. The script
resides in an Azure Storage account named sa1.
You plan to make a minor change to a UI element of WebApp1 and to gather user
feedback about the change.
You need to implement limited user testing for the new version of WebApp1 on VMSS1.
Which three actions should you perform? Each correct answer presents part of the
solution.
NOTE: Each correct selection is worth one point.
A. Modify the load balancer settings of VMSS1. B. Redeploy VMSS1. C. Upload a custom script file to sa1. D. Modify the Custom Script extension settings of VMSS1. E. Update the configuration of a virtual machine in VMSS1.
Answer: B,C,D
Sample Question 12
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 (DSO configuration files.
How should structure the code blocks?
A. Node>Configuration>Resource B. Configuration>Node> Resource C. Configuration>Resource>Node D. Resource>Configuration>Node
Answer: B Explanation: In Azure Automation State Configuration, the Desired State Configuration
(DSC) configuration files are used to define the desired state of resources on a system.
The structure of the code blocks in a DSC configuration file should be organized in a logical
and meaningful way.
One way to structure the code blocks is as follows:
Configuration: This block defines the overall configuration, including any
parameters that are used in the configuration.
Node: This block defines the target node(s) for the configuration, typically specified
by the hostname or IP address of the target system.
Resource: This block defines the resources that are managed by the configuration,
including the resource type, module, and properties.
"A configuration script consists of the following parts:
The Configuration block. This is the outermost script block. You define it by using the
Configuration keyword and providing a name. In this case, the name of the configuration is
My Dsc Configuration.
One or more Node blocks. These define the nodes (computers or VMs) that you are
configuring. In the above configuration, there is one Node block that targets a computer
named TEST-PC1. The Node block can accept multiple computer names.
One or more resource blocks. This is where the configuration sets the properties for the
resources that it is configuring. In this case, there are two resource blocks, each of which
call the Windows Feature resource."
https://docs.microsoft.com/en-us/powershell/dsc/configurations/configurations?view=dsc1.1#configura...
Sample Question 13
Your team uses Azure Pipelines to deploy applications.
You need to ensure that when a failure occurs during the build or release process. all the
team members are notified by using Microsoft Teams. The solution must minimize
development effort.
What should you do?
A. Use Azure Automation to connect to the Azure DevOps REST API and notify the team
members. B. Install the Azure Pipelines app for Teams and configure a subscription to receive notifications in a channel. C. Install the Azure Boards app for Teams and configure a subscription to receive notifications in a channel. D. Use an Azure function to connect to the Azure DevOps REST API and notify the team members.
Answer: C
Sample Question 14
You use GitHub for source control.
A file that contains sensitive data is committed accidentally to the Get repository of a
project.
You need to delete the file and its history form the repository.
Which two tools can you use? Each correct answer presents a complete solution. NOTE: Each correct selection is worth one point.
A. the git filter-branch command B. BFG Repo-Cleaner C. the git rebase command D. GitHub Desktop
You have a project m Azure DevOps that has a release pipeline.
You need to integrate work item tracking and an Agile project management system to meet the following requirements:
• Ensure that developers can track whether their commits are deployed to production.
• Report the deployment status.
• Minimize integration effort.
Which system should you use?
A. Trello B. Jira C. Basecamp D. Asana
Answer: B Explanation:
Jira Software is a development tool used by agile teams to plan, track, and manage
software releases. Using Azure Pipelines, teams can configure CI/CD pipelines for
applications of any language, deploying to any platform or any cloud.
Note: Microsoft and Atlassian have partnered together to build an integration between
Azure Pipelines and Jira Software.
This integration connects the two products, providing full tracking of how and when the
value envisioned with an issue is delivered to end users. This enables teams to setup a
tight development cycle from issue creation through release. Key development milestones
like builds and deployments associated to a Jira issue can then be tracked from within Jira
Software.
Reference:
https://devblogs.microsoft.com/devops/azure-pipelines-integration-with-jira-software
Sample Question 16
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 enabling parallel jobs for the pipeline.
Does this meet the goal?
A. Yes B. No
Answer: B Explanation: Instead enable pipeline caching. Note: npm-cache is a command line utility that caches dependencies installed via npm, bower, jspm and composer. It is useful for build processes that run [npm|bower|composer|jspm] install every time as part of their build process. Since dependencies don't change often, this often means slower build times. npm-cache helps alleviate this problem by caching previously installed dependencies on the build machine. Reference: https://www.npmjs.com/package/npm-cache
Sample Question 17
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 enabling parallel jobs for the pipeline.
Does this meet the goal?
A. Yes B. No
Answer: B Explanation: Instead enable pipeline caching. Note: npm-cache is a command line utility that caches dependencies installed via npm, bower, jspm and composer. It is useful for build processes that run [npm|bower|composer|jspm] install every time as part of their build process. Since dependencies don't change often, this often means slower build times. npm-cache helps alleviate this problem by caching previously installed dependencies on the build machine. Reference: https://www.npmjs.com/package/npm-cache
Sample Question 18
You need to create a notification if the peak average response time of an Azure web app
named az400-9940427-main is more than five seconds when evaluated during a fiveminute period. The notification must trigger the “https://contoso.com/notify” webhook.
To complete this task, sign in to the Microsoft Azure portal.
Answer: See explanation below
Explanation:
1. Open Microsoft Azure Portal
2. Log into your Azure account and go to App Service and look under Monitoring then you
will see Alert.
3. Select Add an alert rule
4. Configure the alert rule as per below and click Ok.
Source: Alert on Metrics
Resource Group: az400-9940427-main
Resource: az400-9940427-main
Threshold: 5
Period: Over the last 5 minutes
Webhook: https://contoso.com/notify
Sample Question 19
Your company has an Azure DevOps project,
The source code for the project is stored in an on-premises repository and uses on an onpremises build
server.
You plan to use Azure DevOps to control the build process on the build server by using a
self-hosted agent.
You need to implement the self-hosted agent.
You download and install the agent on the build server. Which two actions should you perform next? Each correct answer presents part of the
solution.
A. From Azure, create a shared access signature (SAS). B. From the build server, create a certificate, and then upload the certificate to Azure Storage. C. From the build server, create a certificate, and then upload the certificate to Azure Key Vault. D. From DevOps, create a personal access token (PAT). E. From the build server, run config.cmd
You have an Azure subscription that contains an Azure pipeline named Pipeline1 and a
GitHub repository named Repo1, Repo1 contains Bicep modules. Pipeline1 deploys Azure
resources by using the Bicep modules.
You need to ensure that all releases comply with Azure Policy before they are deployed to
production.
What should you do?
A. Configure a deployment gate for Pipeline' include the Azure DevOps Security and
compliance assessment task. B. Create an Azure DevOps build runs on the creation of a pull request assesses the code tor compliance. C. To Pipeline1, add a step that runs a What If deployment before the deployment step. D. Configure a deployment gate for Pipeline' that uses Azure Automation to run a What If deployment
Answer: A
Sample Question 21
You are integrating an Azure Boards project and a GitHub repository.
You need to authenticate Azure Boards to GitHub.
Which two authentication methods can you use? Each correct answer presents a complete
solution.
NOTE: Each correct selection is worth one point.
A. a trusted root certificate B. a publisher certificate C. Azure Active Directory (Azure AD) D. GitHub user credentials E. a personal access token (PAT)
Answer: C,D
Sample Question 22
You use GitHub for source control and Azure Boards for project management. GitHub and
Azure Boards are integrated.
You plan to create a pull request in GitHub.
You need to automatically link the request to an existing Azure Boards work item by using
the text of AB#.
To which two elements can you add the text? Each correct answer presents a complete
solution. NOTE: Each correct selection is worth one point.
A. milestone B. comment C. title D. description E. label
You have an Azure subscription that contains four Azure virtual machines
You need to configure the virtual machines to use a single identity. The solution must meet
the following requirements:
• Ensure that the credentials for the identity are managed automatically.
• Support granting privileges to the identity.
Which type of identity should you use?
A. a service principal B. a user-assigned managed identity C. a system-assigned managed identity D. a user account
Answer: C Explanation: System-assigned managed identities enable Azure resources to authenticate to cloud services without storing credentials in code. They also support granting privileges to the identity, making them the ideal choice for this scenario. Source: Microsoft
Sample Question 24
You have a project in Azure DevOps.
You create the following YAML template named Template1.yml. steps:
- script: 9pm install
- script: yarn install
- script: 9pm run compile
You create the following pipeline named File1.yml.
parameters:
users steps:
- task: MyTask@1
- script: echo Done
You need to ensure that Template1.yaml runs before File1.yml.
How should you update File1.yml?
A. parameters: user steps: extends: template: template1.yml
- task: MyTask@1 - script: echo Done B. template: template1.yml parameters: user steps: - task: MyTask@1 - script: echo Done C. extends: template: templatel.yml parameters: user steps: - task: MyTask@1 - script: echo Done D. parameters: user steps: - template: templatel.yml - task: MyTask@1 - script: echo Done
Answer: C Explanation:
Azure Pipelines offers two kinds of templates: includes and extends. Included templates
behave like #include in C++: it's as if you paste the template's code right into the outer file,
which references it. To continue the C++ metaphor, extends templates are more like
inheritance: the template provides the outer structure of the pipeline and a set of places
where the template consumer can make targeted alterations.
Example:
extends:
template: template.yml@templates parameters:
usersteps:
- script: echo This is my first step
- script: echo This is my second step
Reference:
https://docs.microsoft.com/en-us/azure/devops/pipelines/security/templates
Sample Question 25
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 have an approval process that contains a condition. The condition requires that
releases be approved by a team leader before they are deployed.
You haw a pokey stating that approvals must occur within eight hours.
You discover that deployments only if the approvals take longer than two hours.
You need to ensure that the deployments only fail if the approvals take longer than hours.
Solution From Post -deployment conditions, you modify the Timeout setting for postdeployment approvals.
Does this meet the goal?
A. Yes B. NO
Answer: B
Sample Question 26
You use Calendar Versioning (CalVer) for code assets.
You need to store an optional tag of beta as part of the version.
Which part of the version should you use for the tag?
A. micro B. minor C. major D. modifier
Answer: D
Sample Question 27
Note: This question n 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 have an approval process that contains a condition. The condition requires that
releases be approved by a team leader before they are deployed.
You have a policy stating that approvals must occur within eight hours.
You discover that deployments fail if the approvals lake longer than two hours.
You need to ensure that the deployments only fail if the approvals take longer than eight
hours.
Solution: From Pre-deployment conditions, you modify the Timeout setting for predeployment approvals.
Does this meet the goal?
You have an Azure subscription that contains Azure DevOps build pipelines.
You to implement pipeline caching by using the cache task HOW should you complete the YAML definition? TO answer, select the appropriate options
in the answer area.
Answer: See the image in explanation for answer.
Explanation:
Sample Question 29
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 Premium Plus support. B. Enforce multi-factor authentication (MFA). C. Purchase a GitHub Advanced Security license. D. Create an access policy for secrets.
Answer: C
Sample Question 30
Your company uses Azure DevOps for the build pipelines and deployment pipelines of
Java-based projects.
You need to recommend a strategy for managing technical debt.
Which action should you include in the recommendation?
A. Configure post-deployment approvals in the deployment pipeline. B. Integrate Azure DevOps and Sonar Rube. C. Integrate Azure DevOps and Azure Dev Test Labs.
Answer: B Explanation: You can manage technical debt with Sonar Rube and Azure DevOps.
Note: Technical debt is the set of problems in a development effort that make forward
progress on customer value inefficient. Technical debt saps productivity by making code
hard to understand, fragile, time-consuming to change, difficult to validate, and creates
unplanned work that blocks progress. Unless they are managed, technical debt can
accumulate and hurt the overall quality of the software and the productivity of the
development team in the long term
SonarQube an open source platform for continuous inspection of code quality to perform
automatic reviews with static analysis of code to:
Detect Bugs
Code Smells
Security Vulnerabilities
Centralize Quality
What’s covered in this lab
Reference:
https://azuredevopslabs.com/labs/vstsextend/sonarqube/
Sample Question 31
You have an Azure virtual machine that is monitored by using Azure Monitor.
The virtual machine has the Azure Log Analytics agent installed.
You plan to deploy the Service Map solution from Azure Marketplace.
What should you deploy to the virtual machine to support the Service Map solution?
A. the Telegraf agent B. the Azure Monitor agent C. the Dependency agent D. the Windows Azure diagnostics extension (WAD)
Answer: C
Sample Question 32
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 have an Azure DevOps project.
Your build process creates several artifacts.
You need to deploy the artifacts to on-premises servers.
Solution: You deploy an Octopus Deploy server. You deploy a polled Tentacle agent to an
on-premises server. You add an Octopus task to the deployment pipeline.
Does this meet the goal?
A. Yes B. No
Answer: B Explanation: Instead you should deploy an Azure self-hosted agent to an on-premises server. Note: To build your code or deploy your software using Azure Pipelines, you need at least one agent. If your on-premises environments do not have connectivity to a Microsoft-hosted agent pool (which is typically the case due to intermediate firewalls), you'll need to manually configure a self-hosted agent on on-premises computer(s). Reference: https://docs.microsoft.com/en-us/azure/devops/pipelines/agents/agents?view=azuredevops
Sample Question 33
You need to create a notification if the peak average response time of an Azure web app
named az400-9940427-main is more than five seconds when evaluated during a fiveminute period. The notification must trigger the “https://contoso.com/notify” webhook.
To complete this task, sign in to the Microsoft Azure portal.
Answer: See solution below.
Explanation:
1. Open Microsoft Azure Portal
2. Log into your Azure account and go to App Service and look under Monitoring then you
will see Alert.
3. Select Add an alert rule
4. Configure the alert rule as per below and click Ok.
Source: Alert on Metrics
Resource Group: az400-9940427-main
Resource: az400-9940427-main
Threshold: 5
Period: Over the last 5 minutes
Webhook: https://contoso.com/notify
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 Repos 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 Pipelines 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.
Answer: A
Sample Question 35
Your team uses Azure Pipelines to deploy applications.
You need to ensure that when a failure occurs during the build or release process, all the
team members are notified by using Microsoft Teams. The solution must minimize
development effort.
What should you do?
A. Install the Azure Boards app for Teams and configure a subscription to receive
notifications in a channel. B. Use Azure Automation to connect to the Azure DevOps REST API and notify the team members. C. Use an Azure function to connect to the Azure DevOps REST API and notify the team members. D. Install the Azure Pipelines app for Teams and configure a subscription to receive notifications in a channel.
Answer: D
Sample Question 36
You are building an ASP.NET Core application.
You plan to create an application utilization baseline by capturing telemetry data. You need to add code to the application to capture the telemetry data. The solution must
minimize the costs of storing the telemetry data.
Which two actions should you perform? Each correct answer presents part of the solution.
NOTE: Each correct selection is worth one point.
A. Add the 99 parameter to the
ApplicationInsights.config file. B. From the code of the application, enable adaptive sampling. C. From the code of the application, add Azure Application Insights telemetry. D. Add the 5 parameter to the ApplicationInsights.config file. E. From the code of the application, disable adaptive sampling.
You have an Azure solution that contains a build pipeline in Azure Pipelines. You
experience intermittent delays before the build pipeline starts. You need to reduce the time
it takes to start the build pipeline. What should you do?
A. Split the build pipeline into multiple stages. B. Purchase an additional parallel job. C. Create a new agent pool. D. Enable self-hosted build agents.
Your company has an Azure DevOps project that produces Node Package Manager (npm)
packages. Multiple projects consume the packages.
You need to minimize the amount of disk space used by older packages in Azure Artifacts.
What should you modify?
A. the retention settings of the project's pipeline B. the retention settings of the project's release C. the retention settings of the project's tests D. the retention settings of the company pipeline
Answer: B Explanation: To minimize the amount of disk space used by older packages in Azure
Artifacts, you should modify the retention settings of the project's release. This can be done
by navigating to the project's release settings and adjusting the retention policy. For more
information, please refer to the Microsoft documentation.
Sample Question 39
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.
The lead developer at your company reports that adding new application features takes
longer than expected due to a large accumulated technical debt.
You need to recommend changes to reduce the accumulated technical debt.
Solution: You recommend reducing the code coupling and the dependency cycles?
Does this meet the goal?
You have a pipeline named Pipeline1 in Azure Pipelines.
You need to create a service connection to enable Pipeline1 to download a public container
image.
Which type of service connection should you create?
A. a Docker host B. Azure Service Fabric C. Azure Kubernetes Service (AKS) D. a Docker registry
Answer: D
Sample Question 41
You use Azure DevOps processes to build and deploy code.
You need to compare how much time is spent troubleshooting issues found during
development and how much time is spent troubleshooting issues found in released code.
Which KPI should you use?
A. defect escape rate B. unplanned work rate C. defect rate D. rework rate
Answer: D Explanation:
The defect escape rate is a metric that assesses the collective quality of software releases
by evaluating how often errors are discovered and rectified in the pre-production process
versus during production.
The defect escape rate is a KPI (Key Performance Indicator) that measures how many
defects are found in released code versus how many are found during development. This
KPI can help you to compare how much time is spent troubleshooting issues found during
development versus how much time is spent troubleshooting issues found in released
code. The higher the defect escape rate, the more defects are found in released code, and
thus more time is spent troubleshooting issues in released code.
Sample Question 42
You haw an Azure subscription that contains multiple Azure services. You need to send an
SMS alert when scheduled maintenance is planned for the Azure services. Which two
actions should you perform? Each correct answer presents part of the solution. NOTE:
Each correct selection is worth one point.
A. Create an Azure Service Health alert. B. Enable Azure Security Center. C. Create and configure an action group D. Create and configure an Azure Monitor alert rule
Answer: A,D
Sample Question 43
You use Get for source control.
You need to commit a 3-G3 ZIP file that contains virtual machines used for testing. The
solution must meet the following requirements:
The file must be versioned.
The file must be associated with the corresponding code commits.
Which two actions should you include in the solution? Each correct answer presents part of
the solution.
NOTE: Each correct selection is worth one point.
A. Store files in Azure Storage and enable blob versions. B. Install the Get IFS extension and associate the extension to ZIP files. C. Use G Zip to compress the file before committing the file. D. Install the get-stash extension and associate the extension to ZIP files. E. Install the get-fat extension and associate the extension to ZIP files.
Answer: B,D
Sample Question 44
You use Azure Pipelines to build and release application code, The pipelines include
validation tests that must be completed successfully before deployment proceeds from the
test stage to production.
You discover inconsistent test outcomes for the same source code.
You need to validate the test logic.
What should you do?
A. Decrease the test pass rate. B. Configure a parallel test runner. C. Enable flaky test detection. D. Install the Analytics extension.
Answer: B
Sample Question 45
You have an Azure Automation account that contains a webbook. The webbook is used to
configure the application infrastructure of an Azure subscription.
You have a project in Azure DevOps named Project). Project1 contains a repository that
stores code for the webbook.
You need to ensure that every committed change to the code will update automatically and
publish the webbook to Azure Automation.
What should you configure?
A. the Connections settings for the Automation account B. the Service hooks settings for Project1 C. the Source control settings for the Automation account D. the Service connections settings for Project1
Answer: C
Sample Question 46
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 9pm 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
Answer: B Explanation:
Pipeline artifacts are a way to persist build outputs, test results, and other files generated
during a pipeline run. They allow you to share data between stages, jobs, and pipelines,
and to persist data for longer than the lifetime of a pipeline run. While artifacts can be
useful for sharing data between pipeline runs and reducing the time required to download
dependencies, they are not a solution for reducing the time required to install JavaScript
packages from 9pm during a pipeline run.
The solution of reducing the pipeline execution time could be achieved by using package
caching, which allows you to store and reuse 9pm packages from previous pipeline runs.
There are several package caching options available for Azure Pipelines, including the 9pm
task, the 9pm cache task, and the 9pm ci task. All of these options allow you to configure
caching for your 9pm packages, which can significantly reduce the time required to install
packages during subsequent pipeline runs.
Another solution could be using a dedicated agent that has those packages already
installed, this way the pipeline doesn't have to install them again.
You can find more information on package caching by following this link
https://docs.microsoft.com/en-us/azure/devops/pipelines/tasks/package/npmcache?view=azure-devops
Sample Question 47
You use Get for source control. You have an app named Appt.
In the main branch. you need to restore the third most recent revision of a file named
App.exe.config .
How should you complete command?
Answer: See the explanation for answer below.
Explanation:
Answer is as:
Sample Question 48
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
Answer: C Explanation: https://docs.microsoft.com/en-us/azure/active-directory/develop/app-objectsand-service-principals "When you've completed the app registration, you've a globally unique instance of the app (the application object) which lives within your home tenant or directory. You also have a globally unique ID for your app (the app or client ID). In the portal, you can then add secrets or certificates and scopes to make your app work, customize the branding of your app in the sign-in dialog, and more."
Sample Question 49
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 togs from multiple sources
• Identify the root cause of issues.
What advanced feature of a monitoring tool should you include in the solution?
A. synthetic monitoring B. Alert Management C. analytics D. directed monitoring
Answer: C Explanation: An analytics feature in a monitoring solution would allow you to parse logs from multiple sources and analyze them to identify the root cause of issues in your Azure pipelines. This feature would typically provide tools for searching, filtering, and visualizing log data, as well as for identifying patterns and anomalies. With analytics, you can also create custom dashboards and alerts to monitor your pipelines and quickly identify and troubleshoot any issues.
Sample Question 50
You have a GitHub repository that contains multiple versions of an Azure Pipelines
template. You plan to deploy multiple pipelines that will use a template stored in the
repository. You need to ensure that you use a fixed version of the template. What should
you use to reference which version of the template repository to use?
A. the runner B. the branch C. the SHA-based hashes D. the serial
Answer: B
Sample Question 51
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 have an Azure DevOps organization named Contoso and an Azure subscription. The
subscription contains an Azure virtual machine scale set named VMSS1 that is configured
for auto scaling.
You have a project in Azure DevOps named Project1. Project1 is used to build a web app
named App1 and deploy App1 to VMSS1.
You need to ensure that an email alert is generated whenever VMSS1 scales in or out.
Solution: From Azure DevOps, configure the Service hooks settings for Project1.
Does this meet the goal?
A. Yes B. No
Answer: B
Sample Question 52
You have a GitHub repository that contains workflows. The workflows contain steps that
execute predefined actions. Each action has one or more versions.
You need to request the specific version of an action to execute.
Which three attributes can you use to identify the version? Each correct answer presents a
complete solution.
NOTE: Each correct selection is worth one point.
A. the SHA-based hashes B. the tag C. the runner D. the branch E. the serial
Answer: A,B,D Explanation: https://docs.github.com/en/actions/using-workflows/workflow-syntax-forgithub-actions
"We strongly recommend that you include the version of the action you are using by
specifying a Git ref, SHA, or Docker tag. If you don't specify a version, it could break your
workflows or cause unexpected behavior when the action owner publishes an update.
Using the commit SHA of a released action version is the safest for stability and security. If
the action publishes major version tags, you should expect to receive critical fixes and
security patches while still retaining compatibility. Note that this behavior is at the discretion
of the action's author. Using the default branch of an action may be convenient, but if
someone releases a new major version with a breaking change, your workflow could
break."
Sample Question 53
You have several Azure Active Directory (Azure AD) accounts.
You need to ensure that users use multi-factor authentication (MFA) to access Azure apps
from untrusted networks.
What should you configure in Azure AD?
A. access reviews B. managed identities C. entitlement management D. conditional access
You have an Azure DevOps organization named Contoso and an Azure subscription. The
subscription contains an Azure virtual machine scale set named VMSS1 that is configured
for auto scaling.
You have a project m Azure DevOps named Project 1. Project! is used to build a web app
named App1 and deploy App1 to VMSSt.
You need to ensure that an email alert is generated whenever VMSS1 scales in or out.
Solution: From Azure Monitor, configure the auto scale settings.
Does this meet the goal?
A. Yes B. No
Answer: B
Sample Question 55
You have a project in Azure DevOps named Project1. Project1 contains a published wiki.
You need to change the order of pages in the navigation pane of the published wiki in the
Azure DevOps portal.
What should you do?
A. At the root of the wiki, create a file named order that defines the page hierarchy. B. At the root of the wiki, create a file named wiki.md that defines the page hierarchy. C. Rename the pages in the navigation pane. on: D. Drag and drop the pages in the navigation pane.
Answer: D Explanation: Reorder a wiki page
You can reorder pages within the wiki tree view to have pages appear in the order and
hierarchy you want. You can drag-and-drop a page title in the tree view to do the following
operations:
Change the parent-child relationship of a page
Change the order of the page within the hierarchy
Reference:
https://docs.microsoft.com/en-us/azure/devops/project/wiki/add-edit-wiki
Sample Question 56
You plan to onboard 10 new developers.
You need to recommend a development environment that meets the following
requirements:
Integrates with GitHub
Provides integrated debugging tools
Supports remote workers and hot-desking environments
Supports developers who use browsers, tablets, and Chromebooks
What should you recommend?
A. VS Code B. Xamarin Studio C. Mono Develop D. Github/Visual Studio Code spaces
Answer: D Explanation:
Visual Studio Code spaces is built to accommodate the widest variety of projects or tasks,
including GitHub and integrating debugging.
Visual Studio Code spaces conceptually and technically extends the Visual Studio Code
Remote Development extensions.
In addition to "backend" environments, Visual Studio Code spaces supports these
"frontend" editors:
Visual Studio Code
Visual Studio Code-based editor in the browser
Reference:
https://docs.microsoft.com/sv-se/visualstudio/codespaces/overview/what-is-vsonline
Sample Question 57
Note: This question is part of * 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 sett 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 have an approval process that contains a condition. The condition requires that
releases be approved by a team leader before they are deployed.
You have a poky stating that approvals must occur within eighthour.
You discover that deployments fail if the approvals take longer than two hours. You need to ensure that the deployments only fail if the approvals take longer than eight
hours.
Solution: From Post-deployment conditions, you modify the Time between re-evaluation of
gates option.
Does this meet the goal?
You need to recommend an integration strategy for the build process of a Java application.
The solution must meet the following requirements:
• The builds must access an on-premises dependency management system.
• The build outputs must be stored as Server artifacts in Azure DevOps.
• The source code must be stored in a Git repository in Azure DevOps.
Solution: Configure the build pipeline to use a Microsoft-hosted agent pool running a Linux
image. Include the Java Tool Installer task in the build pipeline.
Does this meet the goal?
Your company creates a web application.
You need to recommend a solution that automatically sends to Microsoft Teams a daily
summary of the exceptions that occur in the application.
Which two Azure services should you recommend? Each correct answer presents part of
the solution.
NOTE: Each correct selection is worth one point.
A. Azure Logic Apps B. Azure Pipelines C. Microsoft Visual Studio App Center D. Azure DevOps Project E. Azure Application Insights
Answer: A,E Explanation:
E: Exceptions in your live web app are reported by Application Insights.
Note: Periodical reports help keep a team informed on how their business critical services
are doing. Developers, DevOps/SRE teams, and their managers can be productive with
automated reports reliably
delivering insights without requiring everyone to sign in the portal. Such reports can also
help identify gradual increases in latencies, load or failure rates that may not trigger any
alert rules.
A: You can programmatically query Application Insights data to generate custom reports on
a schedule. The following options can help you get started quickly:
Automate reports with Microsoft Flow
Automate reports with Logic Apps
Reference:
https://docs.microsoft.com/en-us/azure/azure-monitor/app/asp-net-exceptionshttps://docs.microsoft.com/en-us/azure/azure-monitor/app/automate-custom-reports
Sample Question 60
You have an Azure function hosted in an App Service plan named az400-9940427-func1.
You need to configure az400-9940427-func1 to upgrade the functions automatically
whenever new code is committed to the master branch of https://github.com/AzureSamples/functions-quickstart.
To complete this task, sign in to the Microsoft Azure portal.
Answer: See solution below.
Explanation:
1. Open Microsoft Azure Portal
2. Log into your Azure account, select App Services in the Azure portal left navigation, and
then select configure az400-9940427-func1. 3. On the app page, select Deployment Center in the left menu.
4. On the Build provider page, select Azure Pipelines (Preview), and then select Continue.
5. On the Configure page, in the Code section:
For GitHub, drop down and select the Organization, Repository, and Branch you want to
deploy continuously.
6. Select Continue.
7. On the Test page, choose whether to enable load tests, and then select Continue.
8. Depending on your App Service plan pricing tier, you may see a Deploy to staging page.
Choose whether to enable deployment slots, and then select Continue.
9. After you configure the build provider, review the settings on the Summary page, and
then select Finish.
References:
https://docs.microsoft.com/en-us/azure/app-service/deploy-continuous-deployment
Sample Question 61
You are evaluating the use of code review assignments in GitHub.
Which two requirements can be met by using code review assignments' Each correct
answer presents a complete solution.
NOTE: Each correct selection is worth one point
A. Automatically choose and assign reviewers based on a list of available personnel B. Automatically choose and assign reviewers based on who has the most completed review requests. C. Ensure that each team member reviews an equal number of pull requests during any
30-day period. D. Automatically choose and assign reviewers based on who received the least recent review requests.
Answer: A,C
Sample Question 62
You manage code by using GitHub.
You need to ensure that repository owners are notified if a new vulnerable dependency or
malware is found in their repository.
What should you do?
A. Configure branch protection rules for each repository. B. Configure Dependabot alerts. C. Configure CodeQL scanning actions. D. Subscribe all the repository owners to the GitHub Advisory Database.
Answer: B
Sample Question 63
You have an Azure DevOps organization named Contoso.
You need to receive Microsoft Teams notifications when work items are updated.
What should you do?
A. From Azure DevOps, configure a service hook subscription B. From Microsoft Teams, configure a connector C. From the Microsoft Teams admin center, configure external access D. From Microsoft Teams, add a channel E. From Azure DevOps, install an extension
Answer: A Explanation:
Service hooks let you run tasks on other services when events happen in your Azure
DevOps projects. For example, create a card in Trello when a work item is created or send
a push notification to your team's mobile devices when a build fails. You can also use
service hooks in custom apps and services as a more efficient way to drive activities when
events happen in your projects.
Note: Service hook publishers define a set of events. Subscriptions listen for the events
and define actions to take based on the event. Subscriptions also target consumers, which
are external services that can run their own actions, when an event occurs.
Reference:
https://docs.microsoft.com/en-us/azure/devops/service-hooks/overview
Sample Question 64
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 have an approval process that contains a condition. The condition requires that
releases be approved by a team leader before they are deployed.
You have a policy stating that approvals must occur within eight hours.
You discover that deployment fail if the approvals take longer than two hours.
You need to ensure that the deployments only fail if the approvals take longer than eight
hours.
Solution: From Post-deployment conditions, you modify the Timeout setting for postdeployment approvals.
Does this meet the goal?
You manage source code control and versioning by using GitHub.
A large file it committed to a repository accidentally.
You need to reduce the size of the repository. The solution must remove the file from the
repository.
What should you use?
A. bfg B. 1fs C. gvfs D. init
Answer: A
Sample Question 66
You configure Azure Application Insights and the shared service plan tier for a web app.
You enable Smart Detection.
You confirm that standard metrics are visible in the logs, but when you test a failure, you do
not receive a Smart Detection notification
What prevents the Smart Detection notification from being sent?
A. You must restart the web app before Smart Detection is enabled. B. Smart Detection uses the first 24 hours to establish the normal behavior of the web app. C. You must enable the Snapshot Debugger for the web app. D. The web app is configured to use the shared service plan tier.
Answer: B
Sample Question 67
You have an Azure DevOps organization that contains a project named Project1.
You need to create a published wiki in Project1.
What should you do first?
A. Modify the Storage settings of Project1. B. In Project1, create an Azure DevOps pipeline. C. In Project1, create an Azure DevOps repository. D. Modify the Team configuration settings of Project1.
You manage source code control and versioning by using GitHub. You need to ensure that a PowerShell script is executed automatically before rebase
operations are performed.
What should you use?
A. a package B. GitHub Copilot C. a webbook D. a gist
Answer: C
Sample Question 69
You are creating a dashboard in Azure Boards.
You need to visualize the time from when work starts on a work item until the work item is
closed.
Which type of widget should you use?
A. cycle time B. velocity C. cumulative flow D. lead time
Answer: D
Sample Question 70
Your company uses GitHub for source control. The company has a team that performs
code reviews. You need to automate the assignment of the code reviews. The solution must meet the
following requirements:
Prioritize the assignment of code reviews to team members who have the fewest
outstanding assignments.
Ensure that each team member performs an equal number of code reviews in any 30-day
period.
Prevent the assignment of code reviews to the team leader.
Which two actions should you perform? Each correct answer presents part of the solution.
NOTE: Each correct selection is worth one point.
A. Clear Never assign certain team members. B. Select If assigning team members, don’t notify the entire team. C. Select Never assign certain team members. D. Set Routing algorithm to Round robin. E. Set Routing algorithm to Load balance.
Answer: A,E Explanation:
A: To always skip certain members of the team, select Never assign certain team
members. Then, select one or more team members you'd like to always skip. In this case
select the team leader.
E: The load balance algorithm chooses reviewers based on each member's total number of
recent review requests and considers the number of outstanding reviews for each member.
The load balance algorithm tries to ensure that each team member reviews an equal
number of pull requests in any 30day period.
Reference:
https://docs.github.com/en/organizations/organizing-members-into-teams/managing-codereview-assignme...
Sample Question 71
You have an Azure subscription that contains resources in several resource groups.
You need to design a monitoring strategy that will provide a consolidated view. The solution
must support the following requirements:
• Support role-based access control (RBAC) by using Azure Active Directory (Azure AD)
identities.
• Include visuals from Azure Monitor that are generated by using the Kusto query language.
• Support documentation written in markdown.
• Use the latest data available for each visual. What should you use to create the consolidated view?
A. Azure Data Explorer B. Azure dashboards C. Azure Monitor D. Microsoft Power Bl
Answer: A Explanation:
There are several tools available for running queries in Azure Data Explorer, including
Kusto.
Kusto uses a role-based access control (RBAC) model, under which authenticated
principals are mapped to roles, and get access according to the roles they're assigned.
Note: Azure Data Explorer is a highly scalable and secure analytics service that enables
you to do rich exploration of structured and unstructured data for instant insights. Optimized
for ad-hoc queries, Azure Data Explorer enables rich data exploration over raw, structured,
and semi-structured data delivering fast time to insight. Query with a modern, intuitive
query language that offers fast, ad-hoc, and advanced query capabilities over high-rate
data volumes and varieties
Reference:
https://docs.microsoft.com/en-us/azure/data-explorer/tools-integrations-overview
Sample Question 72
You have an Azure subscription that contains multiple Azure pipelines.
You need to deploy a monitoring solution for the pi*lines. 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 include in the solution?
A. directed monitoring B. synthetic monitoring C. analytics D. Alert Management
Answer: B
Exam Code: AZ-400Exam Name: Microsoft Azure DevOps SolutionsLast Update: May 03, 2024Questions: 459