ExamGecko
Home Home / Microsoft / AZ-400

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

Question list
Search
Search

List of questions

Search

Related questions











You use Azure SQL Database Intelligent Insights and Azure Application Insights for monitoring.

You need to write ad-hoc queries against the monitoring data.

Which query language should you use?

A.
Kusto Query Language (KQL)
A.
Kusto Query Language (KQL)
Answers
B.
PL/pgSQL
B.
PL/pgSQL
Answers
C.
PL/SQL
C.
PL/SQL
Answers
D.
Transact-SQL
D.
Transact-SQL
Answers
Suggested answer: A

Explanation:

Azure Monitor Logs is based on Azure Data Explorer, and log queries are written using the same Kusto query language (KQL). This is a rich language designed to be easy to read and author, and you should be able to start using it with minimal guidance.

Reference:

https://docs.microsoft.com/en-us/azure/azure-monitor/log-query/log-query-overview

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
A.
Azure Logic Apps
Answers
B.
Azure Pipelines
B.
Azure Pipelines
Answers
C.
Microsoft Visual Studio App Center
C.
Microsoft Visual Studio App Center
Answers
D.
Azure DevOps Project
D.
Azure DevOps Project
Answers
E.
Azure Application Insights
E.
Azure Application Insights
Answers
Suggested 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-exceptions

https://docs.microsoft.com/en-us/azure/azure-monitor/app/automate-custom-reports

Your company is building a mobile app that targets Android and iOS devices.

Your team uses Azure DevOps to manage all work items and release cycles.

You need to recommend a solution to perform the following tasks:

Collect crash reports for issue analysis.

Distribute beta releases to your testers.

Get user feedback on the functionality of new apps.

What should you include in the recommendation?

A.
the Microsoft Test & Feedback extension
A.
the Microsoft Test & Feedback extension
Answers
B.
Microsoft Visual Studio App Center integration
B.
Microsoft Visual Studio App Center integration
Answers
C.
Azure Application Insights widgets
C.
Azure Application Insights widgets
Answers
D.
Jenkins integration
D.
Jenkins integration
Answers
Suggested answer: A

Explanation:

The "Exploratory Testing" extension is now "Test & Feedback" and is now Generally Available.

Anyone can now test web apps and give feedback, all directly from the browser on any platform: Windows, Mac, or Linux. Available for Google Chrome and Mozilla Firefox (required version 50.0 or above) currently. Support for Microsoft Edge is in the pipeline and will be enabled once Edge moves to a Chromium-compatible web platform.

Reference:

https://marketplace.visualstudio.com/items?itemName=ms.vss-exploratorytesting-web

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 stateful 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.
A.
Modify the load balancer settings of VMSS1.
Answers
B.
Redeploy VMSS1.
B.
Redeploy VMSS1.
Answers
C.
Upload a custom script file to sa1.
C.
Upload a custom script file to sa1.
Answers
D.
Modify the Custom Script extension settings of VMSS1.
D.
Modify the Custom Script extension settings of VMSS1.
Answers
E.
Update the configuration of a virtual machine in VMSS1.
E.
Update the configuration of a virtual machine in VMSS1.
Answers
Suggested answer: B, C, D

SIMULATION

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 five-minute period. The notification must trigger the “https:// contoso.com/notify” webhook.

To complete this task, sign in to the Microsoft Azure portal.

A.
See solution below.
A.
See solution below.
Answers
Suggested answer: A

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

Reference:

https://azure.microsoft.com/es-es/blog/webhooks-for-azure-alerts/

SIMULATION

You need to create and configure an Azure Storage account named az400lod11566895stor in a resource group named RG1lod11566895 to store the boot diagnostics for a virtual machine named VM1.

To complete this task, sign in to the Microsoft Azure portal.

A.
See solution below.
A.
See solution below.
Answers
Suggested answer: A

Explanation:

Step 1: To create a general-purpose v2 storage account in the Azure portal, follow these steps:

1. On the Azure portal menu, select All services. In the list of resources, type Storage Accounts. As you begin typing, the list filters based on your input. Select Storage Accounts.

2. On the Storage Accounts window that appears, choose Add.

3. Select the subscription in which to create the storage account.

4. Under the Resource group field, select RG1lod11566895

5. Next, enter a name for your storage account named: az400lod11566895stor

6. Select Create.

Step 2: Enable boot diagnostics on existing virtual machine

To enable Boot diagnostics on an existing virtual machine, follow these steps:

1. Sign in to the Azure portal, and then select the virtual machine VM1.

2. In the Support + troubleshooting section, select Boot diagnostics, then select the Settings tab.

3. In Boot diagnostics settings, change the status to On, and from the Storage account drop-down list, select the storage account az400lod11566895stor.

4. Save the change.

You must restart the virtual machine for the change to take effect.

Reference:

https://docs.microsoft.com/en-us/azure/storage/common/storage-account-create

https://docs.microsoft.com/en-us/azure/virtual-machines/troubleshooting/boot-diagnostics

SIMULATION

You have a web app that connects to an Azure SQL Database named db1.

You need to configure db1 to send Query Store runtime statistics to Azure Log Analytics.

To complete this task, sign in to the Microsoft Azure portal.

A.
See solution below.
A.
See solution below.
Answers
Suggested answer: A

Explanation:

To enable streaming of diagnostic telemetry for a single or a pooled database, follow these steps:

1. Go to Azure SQL database resource.

2. Select Diagnostics settings.

3. Select Turn on diagnostics if no previous settings exist, or select Edit setting to edit a previous setting. You can create up to three parallel connections to stream diagnostic telemetry.

4. Select Add diagnostic setting to configure parallel streaming of diagnostics data to multiple resources.

5. Enter a setting name for your own reference.

6. Select a destination resource for the streaming diagnostics data: Archive to storage account, Stream to an event hub, or Send to Log Analytics.

7. For the standard, event-based monitoring experience, select the following check boxes for database diagnostics log telemetry: QueryStoreRuntimeStatistics

8. For an advanced, one-minute-based monitoring experience, select the check box for Basic metrics.

9. Select Save.

Reference:

https://docs.microsoft.com/en-us/azure/azure-sql/database/metrics-diagnostic-telemetry-logging-streaming-export-configure

You are monitoring the health and performance of an Azure web app by using Azure Application Insights. You need to ensure that an alert is sent when the web app has a sudden rise in performance issues and failures. What should you use?

A.
custom events
A.
custom events
Answers
B.
Application Insights Profiler
B.
Application Insights Profiler
Answers
C.
usage analysis
C.
usage analysis
Answers
D.
Smart Detection
D.
Smart Detection
Answers
E.
Continuous export
E.
Continuous export
Answers
Suggested answer: D

Explanation:

Smart Detection automatically warns you of potential performance problems and failure anomalies in your web application. It performs proactive analysis of the telemetry that your app sends to Application Insights. If there is a sudden rise in failure rates, or abnormal patterns in client or server performance, you get an alert.

Reference:

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

You have a private GitHub repository.

You need to display the commit status of the repository on Azure Boards.

What should you do first?

A.
Configure multi-factor authentication (MFA) for your GitHub account.
A.
Configure multi-factor authentication (MFA) for your GitHub account.
Answers
B.
Add the Azure Pipelines app to the GitHub repository.
B.
Add the Azure Pipelines app to the GitHub repository.
Answers
C.
Add the Azure Boards app to the repository.
C.
Add the Azure Boards app to the repository.
Answers
D.
Create a GitHub action in GitHub.
D.
Create a GitHub action in GitHub.
Answers
Suggested answer: C

Explanation:

To connect Azure Boards to GitHub.com, connect and configure from Azure Boards. Or, alternatively, install and configure the Azure Boards app from GitHub. Both methods have been streamlined and support authenticating and operating via the app rather than an individual.

Note (see step 4 below):

Add a GitHub connection:

1. Sign into Azure Boards.

2. Choose (1) Project Settings, choose (2) GitHub connections and then (3) Connect your GitHub account.

3. If this is your first time connecting to GitHub from Azure Boards, you will be asked to sign in using your GitHub credentials. Choose an account for which you are an administrator for the repositories you want to connect to.

4. The Add GitHub Repositories dialog automatically displays and selects all GitHub.com repositories for which you are an administrator. Unselect any repositories that you don't want to participate in the integration.

Reference:

https://docs.microsoft.com/en-us/azure/devops/boards/github/connect-to-github

You are integrating Azure Pipelines and Microsoft Teams.

You install the Azure Pipelines app in Microsoft Teams.

You have an Azure DevOps organization named Contoso that contains a project name Project1.

You subscribe to Project1 in Microsoft Teams.

You need to ensure that you only receive events about failed builds in Microsoft Teams.

What should you do first?

A.
From Microsoft Teams, run @azure pipelines subscribe https://dev.azure.com/Contoso/Project1.
A.
From Microsoft Teams, run @azure pipelines subscribe https://dev.azure.com/Contoso/Project1.
Answers
B.
From Azure Pipelines, add a Publish Build Artifacts task to Project1.
B.
From Azure Pipelines, add a Publish Build Artifacts task to Project1.
Answers
C.
From Microsoft Teams, run @azure pipelines subscriptions.
C.
From Microsoft Teams, run @azure pipelines subscriptions.
Answers
D.
From Azure Pipelines, enable continuous integration for Project1.
D.
From Azure Pipelines, enable continuous integration for Project1.
Answers
Suggested answer: A

Explanation:

To start monitoring all pipelines in a project, use the following command inside a channel:

@azure pipelines subscribe [project url]

The project URL can be to any page within your project (except URLs to pipelines).

For example:

@azure pipelines subscribe https://dev.azure.com/myorg/myproject/

Reference:

https://docs.microsoft.com/en-us/azure/devops/pipelines/integrations/microsoft-teams

Total 482 questions
Go to page: of 49