ExamGecko
Home Home / Microsoft / AZ-400

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

Question list
Search
Search

List of questions

Search

Related questions











You have an Azure DevOps organization named Contoso and an Azure subscription.

You use Azure DevOps to build a containerized app named App1 and deploy App1 to an Azure container instance named ACI1. You need to restart ACI1 when App1 stops responding.

What should you do?

A.
Add a liveness probe to the YAML configuration of App1.
A.
Add a liveness probe to the YAML configuration of App1.
Answers
B.
Add a readiness probe to the YAML configuration of App1.
B.
Add a readiness probe to the YAML configuration of App1.
Answers
C.
Use Connection Monitor in Azure Network Watcher.
C.
Use Connection Monitor in Azure Network Watcher.
Answers
D.
Use IP flow verify in Azure Network Watcher.
D.
Use IP flow verify in Azure Network Watcher.
Answers
Suggested answer: B

Explanation:

For containerized applications that serve traffic, you might want to verify that your container is ready to handle incoming requests. Azure Container Instances supports readiness probes to include configurations so that your container can't be accessed under certain conditions. The readiness probe behaves like a Kubernetes readiness probe. For example, a container app might need to load a large data set during startup, and you don't want it to receive requests during this time.

YAML is used to setup a liveness probe.

Reference: https://docs.microsoft.com/en-us/azure/container-instances/container-instances-readiness-probe

You have a multi-tier application that has an Azure Web Apps front end and an Azure SQL Database back end.

You need to recommend a solution to capture and store telemetry data. The solution must meet the following requirements:

Support using ad-hoc queries to identify baselines.

Trigger alerts when metrics in the baseline are exceeded.

Store application and database metrics in a central location.

What should you include in the recommendation?

A.
Azure Event Hubs
A.
Azure Event Hubs
Answers
B.
Azure SQL Database Intelligent Insights
B.
Azure SQL Database Intelligent Insights
Answers
C.
Azure Application Insights
C.
Azure Application Insights
Answers
D.
Azure Log Analytics
D.
Azure Log Analytics
Answers
Suggested answer: D

Explanation:

Azure Platform as a Service (PaaS) resources, like Azure SQL and Web Sites (Web Apps), can emit performance metrics data natively to Log Analytics. The Premium plan will retain up to 12 months of data, giving you an excellent baseline ability.

There are two options available in the Azure portal for analyzing data stored in Log analytics and for creating queries for ad hoc analysis. Incorrect Answers:

B: Intelligent Insights analyzes database performance by comparing the database workload from the last hour with the past seven-day baseline workload. However, we need handle application metrics as well.

Reference: https://docs.microsoft.com/en-us/azure/azure-monitor/platform/collect-azurepass-posh

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 use Azure DevOps to build a web app named App1 and deploy App1 to VMSS1. App1 is used heavily and has usage patterns that vary on a weekly basis. You need to recommend a solution to detect an abnormal rise in the rate of failed requests to App1. The solution must minimize administrative effort. What should you include in the recommendation?

A.
the Smart Detection feature in Azure Application Insights
A.
the Smart Detection feature in Azure Application Insights
Answers
B.
the Failures feature in Azure Application Insights
B.
the Failures feature in Azure Application Insights
Answers
C.
an Azure Service Health alert
C.
an Azure Service Health alert
Answers
D.
an Azure Monitor alert that uses an Azure Log Analytics query
D.
an Azure Monitor alert that uses an Azure Log Analytics query
Answers
Suggested answer: A

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

SIMULATION

You need to ensure that Microsoft Visual Studio 2017 can remotely attach to an Azure Function named fa-11566895. To complete this task, sign in to the Microsoft Azure portal.

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

Explanation:

Enable Remote Debugging

Before we start a debugging session to our Azure Function app we need to enable the functionality.

1. Navigate in the Azure portal to your function app fa-11566895

2. Go to the “Application settings”

3. Under “Debugging” set Remote Debugging to On and set Remote Visual Studio version to 2017.

Reference:

https://www.locktar.nl/uncategorized/azure-remote-debugging-manually-in-visual-studio-2017/

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) identifies.

Support role-based access control (RBAC) by using Azure Active Directory (Azure AD) identifies.

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 Monitor
A.
Azure Monitor
Answers
B.
Microsoft Power BI
B.
Microsoft Power BI
Answers
C.
Azure Data Explorer
C.
Azure Data Explorer
Answers
D.
Azure dashboards
D.
Azure dashboards
Answers
Suggested answer: C

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

You are automating the testing process for your company.

You need to automate UI testing of a web application.

Which framework should you use?

A.
JaCoco
A.
JaCoco
Answers
B.
Playwright
B.
Playwright
Answers
C.
Xamarin.UITest
C.
Xamarin.UITest
Answers
D.
Microsoft.CodeAnalysis
D.
Microsoft.CodeAnalysis
Answers
Suggested answer: B

Explanation:

Performing user interface (UI) testing as part of the release pipeline is a great way of detecting unexpected changes, and need not be difficult. Selenium can be used to test your website during a continuous deployment release and test automation.

Reference: https://docs.microsoft.com/en-us/azure/devops/pipelines/test/continuous-test-selenium?view=azure-devops

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 <InitialSamplingPercentage>99</InitialSamplingPercentage> parameter to the ApplicationInsights.config file.
A.
Add the <InitialSamplingPercentage>99</InitialSamplingPercentage> parameter to the ApplicationInsights.config file.
Answers
B.
From the code of the application, enable adaptive sampling.
B.
From the code of the application, enable adaptive sampling.
Answers
C.
From the code of the application, add Azure Application Insights telemetry.
C.
From the code of the application, add Azure Application Insights telemetry.
Answers
D.
Add the <MaxTelemetryItemsPerSecond>5</MaxTelemetryItemsPerSecond> parameter to the ApplicationInsights.config file.
D.
Add the <MaxTelemetryItemsPerSecond>5</MaxTelemetryItemsPerSecond> parameter to the ApplicationInsights.config file.
Answers
E.
From the code of the application, disable adaptive sampling.
E.
From the code of the application, disable adaptive sampling.
Answers
Suggested answer: B, D

Explanation:

Sampling is a feature in Azure Application Insights. It is the recommended way to reduce telemetry traffic, data costs, and storage costs, while preserving a statistically correct analysis of application data.

The Application Insights SDK for ASP.NET Core supports both fixed-rate and adaptive sampling. Adaptive sampling is enabled by default.

D: For adaptive sampling: The volume is adjusted automatically to keep within a specified maximum rate of traffic, and is controlled via the setting MaxTelemetryItemsPerSecond. If the application produces a low amount of telemetry, such as when debugging or due to low usage, items won't be dropped by the sampling processor as long as volume is below MaxTelemetryItemsPerSecond.

Note: In ApplicationInsights.config, you can adjust several parameters in the AdaptiveSamplingTelemetryProcessor node. The figures shown are the default values:

<MaxTelemetryItemsPerSecond>5</MaxTelemetryItemsPerSecond>

Reference:

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

You have an Azure DevOps organization named Contoso and an Azure subscription. The subscription contains an Azure virtual machine scale set named VMSS1 and an Azure Standard Load Balancer named LB1. LB1 distributes incoming requests across VMSS1 instances.

You use Azure DevOps to build a web app named App1 and deploy App1 to VMSS1. App1 is accessible via HTTPS only and configured to require mutual authentication by using a client certificate.

You need to recommend a solution for implementing a health check of App1. The solution must meet the following requirements:

Identify whether individual instances of VMSS1 are eligible for an upgrade operation.

Minimize administrative effort.

What should you include in the recommendation?

A.
an Azure Load Balancer health probe
A.
an Azure Load Balancer health probe
Answers
B.
Azure Monitor autoscale
B.
Azure Monitor autoscale
Answers
C.
the Custom Script Extension
C.
the Custom Script Extension
Answers
D.
the Application Health extension
D.
the Application Health extension
Answers
Suggested answer: D

Explanation:

Monitoring your application health is an important signal for managing and upgrading your deployment. Azure virtual machine scale sets provide support for rolling upgrades including automatic OS-image upgrades, which rely on health monitoring of the individual instances to upgrade your deployment. You can also use health extension to monitor the application health of each instance in your scale set and perform instance repairs using automatic instance repairs.

Reference:

https://docs.microsoft.com/en-us/azure/virtual-machine-scale-sets/virtual-machine-scale-sets-health-extension

You have a build pipeline in Azure Pipelines that occasionally fails.

You discover that a test measuring the response time of an API endpoint causes the failures.

You need to prevent the build pipeline from failing due to the test.

Which two actions should you perform? Each correct answer presents part of the solution.

NOTE: Each correct selection is worth one point.

A.
Set Flaky test detection to Off.
A.
Set Flaky test detection to Off.
Answers
B.
Clear Flaky tests included in test pass percentage.
B.
Clear Flaky tests included in test pass percentage.
Answers
C.
Enable Test Impact Analysis (TIA).
C.
Enable Test Impact Analysis (TIA).
Answers
D.
Manually mark the test as flaky.
D.
Manually mark the test as flaky.
Answers
E.
Enable test slicing.
E.
Enable test slicing.
Answers
Suggested answer: B, D

Explanation:

D: You can mark or unmark a test as flaky based on analysis or context, by choosing Flaky.

To configure flaky test management, choose Project settings, and select Test management in the Pipelines section.

B:

Slide the On/Off button to On.

Reference:

https://docs.microsoft.com/en-us/azure/devops/pipelines/test/flaky-test-management

Your company hosts a web application in Azure. The company uses Azure Pipelines for the build and release management of the application. Stakeholders report that the past few releases have negatively affected system performance.

You configure alerts in Azure Monitor.

You need to ensure that new releases are only deployed to production if the releases meet defined performance baseline criteria in the staging environment first. What should you use to prevent the deployment of releases that fall to meet the performance baseline?

A.
an Azure Scheduler job
A.
an Azure Scheduler job
Answers
B.
a trigger
B.
a trigger
Answers
C.
a gate
C.
a gate
Answers
D.
an Azure function
D.
an Azure function
Answers
Suggested answer: C

Explanation:

Scenarios and use cases for gates include:

Quality validation. Query metrics from tests on the build artifacts such as pass rate or code coverage and deploy only if they are within required thresholds.

Quality validation. Query metrics from tests on the build artifacts such as pass rate or code coverage and deploy only if they are within required thresholds.

Use Quality Gates to integrate monitoring into your pre-deployment or post-deployment. This ensures that you are meeting the key health/performance metrics (KPIs) as your applications move from dev to production and any differences in the infrastructure environment or scale is not negatively impacting your KPIs.

Note: Gates allow automatic collection of health signals from external services, and then promote the release when all the signals are successful at the same time or stop the deployment on timeout. Typically, gates are used in connection with incident management, problem management, change management, monitoring, and external approval systems.

Reference:

https://docs.microsoft.com/en-us/azure/azure-monitor/continuous-monitoring

https://docs.microsoft.com/en-us/azure/devops/pipelines/release/approvals/gates?view=azure-devops

Total 482 questions
Go to page: of 49