ExamGecko
Home Home / Microsoft / AZ-400

Microsoft AZ-400 Practice Test - Questions Answers, Page 30

Question list
Search
Search

List of questions

Search

Related questions











You need to the merge the POC branch into the default branch. The solution must meet the technical requirements. Which command should you run?

A.
get push
A.
get push
Answers
B.
get merge -- allow-unrelated-histories
B.
get merge -- allow-unrelated-histories
Answers
C.
get rebase
C.
get rebase
Answers
D.
get merge --sqash
D.
get merge --sqash
Answers
Suggested answer: C

Explanation:

You need to meet the technical requirements for controlling access to Azure DevOps.

What should you use?

A.
Azure Multi-Factor Authentication (MFA)
A.
Azure Multi-Factor Authentication (MFA)
Answers
B.
on-premises firewall rules
B.
on-premises firewall rules
Answers
C.
conditional access policies in Azure AD
C.
conditional access policies in Azure AD
Answers
D.
Azure role-based access control (Azure RBAC)
D.
Azure role-based access control (Azure RBAC)
Answers
Suggested answer: C

Explanation:

Scenario: Access to Azure DevOps must be restricted to specific IP addresses.

Azure DevOps is authenticated through Azure Active Directory. You can use Azure AD's conditional access to prevent logins from certain geographies and address ranges.

Reference:

https://www.rebeladmin.com/2018/08/step-step-guide-configure-location-based-conditional-access-policies/

You need to configure Azure Pipelines to control App2 builds.

Which authentication method should you use?

A.
Windows NTLM
A.
Windows NTLM
Answers
B.
certificate
B.
certificate
Answers
C.
SAML
C.
SAML
Answers
D.
personal access token (PAT)
D.
personal access token (PAT)
Answers
Suggested answer: D

Explanation:

Scenario: Deploy App2 to an Azure virtual machine named VM1.

A personal access token (PAT) is used as an alternate password to authenticate into Azure DevOps.

Reference:

https://docs.microsoft.com/en-us/azure/devops/organizations/accounts/use-personal-access-tokens-to-authenticate

DRAG DROP

You need to configure authentication for App1. The solution must support the planned changes.

Which three actions should you perform in sequence? To answer, move all actions from the list of actions to the answer area and arrange them in the correct order.


Question 294
Correct answer: Question 294

Explanation:

Woodgrove Bank plans to implement the following changes to the identity environment:

Configure App1 to use a service principal.

Reference:

https://docs.microsoft.com/en-us/azure/active-directory/develop/howto-create-service-principal-portal

You add the virtual machines as managed nodes in Azure Automation State Configuration.

You need to configure the managed computers in Pool7.

What should you do next?

A.
Modify the RefreshMode property of the Local Configuration Manager (LCM).
A.
Modify the RefreshMode property of the Local Configuration Manager (LCM).
Answers
B.
Run the Register-AzureRmAutomationDscNode Azure Powershell cmdlet.
B.
Run the Register-AzureRmAutomationDscNode Azure Powershell cmdlet.
Answers
C.
Modify the ConfigurationMode property of the Local Configuration Manager (LCM).
C.
Modify the ConfigurationMode property of the Local Configuration Manager (LCM).
Answers
D.
Install PowerShell Core.
D.
Install PowerShell Core.
Answers
Suggested answer: B

Explanation:

The Register-AzureRmAutomationDscNode cmdlet registers an Azure virtual machine as an APS Desired State Configuration (DSC) node in an Azure Automation account.

Scenario: The Azure DevOps organization includes:

The Docker extension

A deployment pool named Pool7 that contains 10 Azure virtual machines that run Windows Server 2019

Reference:

https://docs.microsoft.com/en-us/powershell/module/azurerm.automation/register-azurermautomationdscnode

DRAG DROP

Case Study

This is a case study. Case studies are not timed separately. You can use as much exam time as you would like to complete each case. However, there may be additional case studies and sections on this exam. You must manage your time to ensure that you are able to complete all questions included on this exam in the time provided.

To answer the questions included in a case study, you will need to reference information that is provided in the case study. Case studies might contain exhibits and other resources that provide more information about the scenario that is described in the case study. Each question is independent of the other question on this case study.

At the end of this case study, a review screen will appear. This screen allows you to review your answers and to make changes before you move to the next sections of the exam. After you begin a new section, you cannot return to this section.

To start the case study

To display the first question on this case study, click the Next button. Use the buttons in the left pane to explore the content of the case study before you answer the questions. Clicking these buttons displays information such as business requirements, existing environment, and problem statements. If the case study has an All Information tab, note that the information displayed is identical to the information displayed on the subsequent tabs. When you are ready to answer a question, click the Question button to return to the question.

Background

Contoso, Ltd. is a manufacturing company that has a main office in Chicago.

Contoso plans to improve its IT development and operations processes by implementing Azure DevOps principles. Contoso has an Azure subscription and creates an Azure DevOps organization.

The Azure DevOps organization includes:

The Docker extension

A deployment pool named Pool7 that contains 10 Azure virtual machines that run Windows Server 2019

The Azure subscription contains an Azure Automation account.

Contoso plans to create projects in Azure DevOps as shown in the following table.

Technical requirements

Contoso identifies the following technical requirements:

Implement build agents for Project1.

Whenever possible, use Azure resources.

Avoid using deprecated technologies.

Implement a code flow strategy for Project2 that will:

-Enable Team2 to submit pull requests for Project2.

-Enable Team2 to work independently on changes to a copy of Project2.

-Ensure that any intermediary changes performed by Team2 on a copy of Project2 will be subject to the same restrictions as the ones defined in the build policy of Project2. Whenever possible implement automation and minimize administrative effort.

Implement Project3, Project5, Project6, and Project7 based on the planned changes

Implement Project4 and configure the project to push Docker images to Azure Container Registry.

You need to implement the code flow strategy for Project2 in Azure DevOps.

Which three actions should you perform in sequence? To answer, move the appropriate actions from the list of actions to the answer area and arrange them in the correct order. Select and Place:


Question 296
Correct answer: Question 296

Explanation:

Step 1: Create a repository

A Get repository, or repo, is a folder that you've told Git to help you track file changes in. You can have any number of repos on your computer, each stored in their own folder.

Step 2: Create a fork

Step 3: Add a build policy for the fork

Build policies help teams protect their important branches of development. Policies enforce your team's code quality and change management standards.

Scenario:

Implement a code flow strategy for Project2 that will:

Enable Team2 to submit pull requests for Project2.

Enable Team2 to work independently on changes to a copy of Project2.

Ensure that any intermediary changes performed by Team2 on a copy of Project2 will be subject to the same restrictions as the ones defined in the build policy of Project2.

Reference:

https://docs.microsoft.com/en-us/azure/devops/repos/git/manage-your-branches

DRAG DROP

Case Study

This is a case study. Case studies are not timed separately. You can use as much exam time as you would like to complete each case. However, there may be additional case studies and sections on this exam. You must manage your time to ensure that you are able to complete all questions included on this exam in the time provided.

To answer the questions included in a case study, you will need to reference information that is provided in the case study. Case studies might contain exhibits and other resources that provide more information about the scenario that is described in the case study. Each question is independent of the other question on this case study.

At the end of this case study, a review screen will appear. This screen allows you to review your answers and to make changes before you move to the next sections of the exam. After you begin a new section, you cannot return to this section.

To start the case study

To display the first question on this case study, click the Next button. Use the buttons in the left pane to explore the content of the case study before you answer the questions. Clicking these buttons displays information such as business requirements, existing environment, and problem statements. If the case study has an All Information tab, note that the information displayed is identical to the information displayed on the subsequent tabs. When you are ready to answer a question, click the Question button to return to the question.

Background

Contoso, Ltd. is a manufacturing company that has a main office in Chicago.

Contoso plans to improve its IT development and operations processes by implementing Azure DevOps principles. Contoso has an Azure subscription and creates an Azure DevOps organization.

The Azure DevOps organization includes:

The Docker extension

A deployment pool named Pool7 that contains 10 Azure virtual machines that run Windows Server 2019

The Azure subscription contains an Azure Automation account.

Contoso plans to create projects in Azure DevOps as shown in the following table.

Technical requirements

Contoso identifies the following technical requirements:

Implement build agents for Project1.

Whenever possible, use Azure resources.

Avoid using deprecated technologies.

Implement a code flow strategy for Project2 that will:

-Enable Team2 to submit pull requests for Project2.

-Enable Team2 to work independently on changes to a copy of Project2.

-Ensure that any intermediary changes performed by Team2 on a copy of Project2 will be subject to the same restrictions as the ones defined in the build policy of Project2. Whenever possible implement automation and minimize administrative effort.

Implement Project3, Project5, Project6, and Project7 based on the planned changes

Implement Project4 and configure the project to push Docker images to Azure Container Registry.

You need to configure Azure Automation for the computers in Group7.

Which three actions should you perform in sequence? To answer, move the appropriate actions from the list of actions to the answer area and arrange them in the correct order. Select and Place:


Question 297
Correct answer: Question 297

Explanation:

Step 1: Create a Desired State Configuration (DSC) configuration file that has an extension of .ps1.

Step 2: Run the Import-AzureRmAutomationDscConfiguration Azure Powershell cmdlet

The Import-AzureRmAutomationDscConfiguration cmdlet imports an APS Desired State Configuration (DSC) configuration into Azure Automation. Specify the path of an APS script that contains a single DSC configuration.

Example:

PS C:\>Import-AzureRmAutomationDscConfiguration -AutomationAccountName "Contoso17"-ResourceGroupName "ResourceGroup01" -SourcePath "C:\DSC\client.ps1" -Force

This command imports the DSC configuration in the file named client.ps1 into the Automation account named Contoso17. The command specifies the Force parameter. If there is an existing DSC configuration, this command replaces it.

Step 3: Run the Start-AzureRmAutomationDscCompilationJob Azure Powershell cmdlet

The Start-AzureRmAutomationDscCompilationJob cmdlet compiles an APS Desired State Configuration (DSC) configuration in Azure Automation.

References:

https://docs.microsoft.com/en-us/powershell/module/azurerm.automation/import-azurermautomationdscconfiguration

https://docs.microsoft.com/en-us/powershell/module/azurerm.automation/start-azurermautomationdsccompilationjob

You have 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.
Enable Azure Security Center.
A.
Enable Azure Security Center.
Answers
B.
Create and configure an Azure Monitor alert rule.
B.
Create and configure an Azure Monitor alert rule.
Answers
C.
Create an Azure Service Health alert.
C.
Create an Azure Service Health alert.
Answers
D.
Create and configure an action group.
D.
Create and configure an action group.
Answers
Suggested answer: C, D

Explanation:

Creating planned maintenance alerts using Azure Service Health 1. Login into the Azure portal and select Service Health. 2. Select Health alerts followed by + Create service health alert from the top of the window on the right. 3. In the Edit Alert blade, give the alert a Name, Description, check the subscription is correct and choose a resource group. 4. The next step is to work through the Criteria section choosing which services, regions and types of event alerts should be monitored. For the purpose of this article all services and regions have been checked but only planned maintenance events. 5. Select or create an Action group. (An Action group is a group of actions to be taken, should an event be logged.) 6. Configure the actions to be taken. We are only configuring an email alert, so we first name the action, then chose Email/SMS/Push/Voice from the drop down list.

Note: Azure Service Health can be used to view problems with Azure services that may impact any of your cloud services. Service Health monitors three types of health event:

Service issues – Azure services that are currently experiencing problems

Planned maintenance – Any known future maintenance that may affect the availability of your services Health advisories – Changes in services, for example, deprecated features or exceeded quota usage.

Reference: https://www.techkb.onl/azure-using-service-health-to-alert-against-planned-maintenance/

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 autoscaling.

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 Monitor, configure the autoscale settings.

Does this meet the goal?

A.
Yes
A.
Yes
Answers
B.
No
B.
No
Answers
Suggested answer: B

Explanation:

Instead create an action group.

Note: An action group is a collection of notification preferences defined by the owner of an Azure subscription. Azure Monitor, Service Health and Azure Advisor alerts use action groups to notify users that an alert has been triggered.

Reference: https://docs.microsoft.com/en-us/azure/azure-monitor/alerts/action-groups

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 enable the Snapshot Debugger for the web app.
A.
You must enable the Snapshot Debugger for the web app.
Answers
B.
Smart Detection uses the first 24 hours to establish the normal behavior of the web app.
B.
Smart Detection uses the first 24 hours to establish the normal behavior of the web app.
Answers
C.
The web app is configured to use the shared service plan tier.
C.
The web app is configured to use the shared service plan tier.
Answers
D.
You must restart the web app before Smart Detection is enabled.
D.
You must restart the web app before Smart Detection is enabled.
Answers
Suggested answer: B

Explanation:

After setting up Application Insights for your project, and if your app generates a certain minimum amount of data, Smart Detection of failure anomalies takes 24 hours to learn the normal behavior of your app, before it is switched on and can send alerts.

Reference: https://docs.microsoft.com/en-us/azure/azure-monitor/app/proactive-failure-diagnostics

Total 482 questions
Go to page: of 49