πŸ”

AZ-400 β€” questions

Page 4 of 18 Β· 358 total questions.

Topic 3 Β· Question 94

You are automating the testing process for your company. You need to automate UI testing of a web application. Which framework should you use?

  • AJaCoco
  • BSelenium (correct answer)
  • CXamarin.UITest
  • DMicrosoft.CodeAnalysis
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: Selenium.

Topic 3 Β· Question 95 Β· Select all that apply

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

  • AAdd the 99 parameter to the ApplicationInsights.config file.
  • BFrom the code of the application, enable adaptive sampling. (correct answer)
  • CFrom the code of the application, add Azure Application Insights telemetry. (correct answer)
  • DAdd the 5 parameter to the ApplicationInsights.config file.
  • EFrom the code of the application, disable adaptive sampling.
Reveal answer & explanation
Correct answer: B, C

The correct answer is B, C. Option B: From the code of the application, enable adaptive sampling. Option C: From the code of the application, add Azure Application Insights telemetry.

Explanation

Application Insights provides application performance monitoring and diagnostics for apps.

Topic 3 Β· Question 96

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?

  • Aan Azure Load Balancer health probe
  • BAzure Monitor autoscale
  • Cthe Custom Script Extension
  • Dthe Application Health extension (correct answer)
Reveal answer & explanation
Correct answer: D

The correct answer is D. Option D: the Application Health extension.

Topic 3 Β· Question 98 Β· Select all that apply

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.

  • ASet Flaky test detection to Off.
  • BClear Flaky tests included in test pass percentage. (correct answer)
  • CEnable Test Impact Analysis (TIA).
  • DManually mark the test as flaky. (correct answer)
  • EEnable test slicing.
Reveal answer & explanation
Correct answer: B, D

The correct answer is B, D. Option B: Clear Flaky tests included in test pass percentage. Option D: Manually mark the test as flaky.

Topic 3 Β· Question 99

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?

  • Aan Azure Scheduler job
  • Ba trigger
  • Ca gate (correct answer)
  • Dan Azure function
Reveal answer & explanation
Correct answer: C

The correct answer is C. Option C: a gate.

Topic 3 Β· Question 100

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 manage a project in Azure DevOps. You need to prevent the configuration of the project from changing over time. Solution: Perform a Subscription Health scan when packages are created. Does this meet the goal?

  • AYes
  • BNo (correct answer)
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: No.

Topic 3 Β· Question 101 Β· Select all that apply

Your company uses the following resources: β€’ Windows Server 2019 container images hosted in an Azure Container Registry. β€’ Azure virtual machines that run the latest version of Ubuntu β€’ An Azure Log Analytics workspace β€’ Azure Active Directory (Azure AD) β€’ An Azure key vault For which two resources can you receive vulnerability assessments in Azure Security Center? Each correct answer presents part of the solution. NOTE: Each correct selection is worth one point.

  • Athe Azure Log Analytics workspace
  • Bthe Azure key vault
  • Cthe Azure virtual machines that run the latest version of Ubuntu (correct answer)
  • DAzure Active Directory (Azure AD)
  • EThe Windows Server 2019 container images hosted in the Azure Container Registry. (correct answer)
Reveal answer & explanation
Correct answer: C, E

The correct answer is C, E. Option C: the Azure virtual machines that run the latest version of Ubuntu Option E: The Windows Server 2019 container images hosted in the Azure Container Registry.

Explanation

An Azure Virtual Machine provides full control of the OS when you need to run custom or legacy workloads.

Topic 3 Β· Question 102

You use Azure Pipelines to manage build pipelines, GitHub to store source code, and Dependabot to manage dependencies. You have an app named App1. Dependabot detects a dependency in App1 that requires an update. What should you do first to apply the update?

  • ACreate a pull request.
  • BApprove the pull request. (correct answer)
  • CCreate a branch.
  • DPerform a commit.
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: Approve the pull request.

Topic 3 Β· Question 103

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 manage a project in Azure DevOps. You need to prevent the configuration of the project from changing over time. Solution: Add a code coverage step to the build pipelines. Does this meet the goal?

  • AYes
  • BNo (correct answer)
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: No.

Topic 3 Β· Question 104

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 manage a project in Azure DevOps. You need to prevent the configuration of the project from changing over time. Solution: Implement Continuous Integration for the project. Does this meet the goal?

  • AYes
  • BNo (correct answer)
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: No.

Topic 3 Β· Question 105

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 manage a project in Azure DevOps. You need to prevent the configuration of the project from changing over time. Solution: Implement Continuous Assurance for the project. Does this meet the goal?

  • AYes (correct answer)
  • BNo
Reveal answer & explanation
Correct answer: A

The correct answer is A. Option A: Yes.

Topic 3 Β· Question 106

You are designing a configuration management solution to support five apps hosted on Azure App Service. Each app is available in the following three environments: development, test, and production. You need to recommend a configuration management solution that meets the following requirements: β€’ 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) permissions β€’ 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?

  • AAzure Cosmos DB
  • BAzure App Service
  • CAzure App Configuration (correct answer)
  • DAzure Key Vault
Reveal answer & explanation
Correct answer: C

The correct answer is C. Option C: Azure App Configuration.

Topic 3 Β· Question 107

You have a containerized solution that runs in Azure Container Instances. The solution contains a frontend container named App1 and a backend container named DB1. DB1 loads a large amount of data during startup. You need to verify that DB1 can handle incoming requests before users can submit requests to App1. What should you configure?

  • Aa liveness probe
  • Ba performance log
  • Ca readiness probe (correct answer)
  • Dan Azure Load Balancer health probe
Reveal answer & explanation
Correct answer: C

The correct answer is C. Option C: a readiness probe.

Topic 3 Β· Question 108 Β· Select all that apply

You are designing a strategy to monitor the baseline metrics of Azure virtual machines that run Windows Server. You need to collect detailed data about the processes running in the guest operating system. Which two agents should you deploy? Each correct answer presents part of the solution. NOTE: Each correct selection is worth one point.

  • Athe Telegraf agent
  • Bthe Azure Log Analytics agent (correct answer)
  • Cthe Azure Network Watcher Agent for Windows
  • Dthe Dependency agent (correct answer)
Reveal answer & explanation
Correct answer: B, D

The correct answer is B, D. Option B: the Azure Log Analytics agent Option D: the Dependency agent

Explanation

Log Analytics queries collected logs and metrics to investigate and alert on resource behavior.

Topic 3 Β· Question 110

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 DevOps, configure the Notifications settings for Project1. Does this meet the goal?

  • AYes
  • BNo (correct answer)
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: No.

Topic 3 Β· Question 111

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 DevOps, configure the Service hooks settings for Project1. Does this meet the goal?

  • AYes
  • BNo (correct answer)
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: No.

Topic 3 Β· Question 112

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, create an action group. Does this meet the goal?

  • AYes (correct answer)
  • BNo
Reveal answer & explanation
Correct answer: A

The correct answer is A. Option A: Yes.

Topic 3 Β· Question 114

You have an Azure subscription linked to an Azure Active Directory Premium Plan 1 tenant. A security review indicates that too many users have privileged access to resources. You need to deploy a privileged access management solution that meets the following requirements: β€’ Enforces time limits on the use of privileged access β€’ Requires approval to activate privileged access β€’ Minimizes costs What should you do first?

  • AConfigure notifications when privileged roles are activated.
  • BConfigure alerts for the activation of privileged roles.
  • CEnforce Azure Multi-Factor Authentication (MFA) for role activation.
  • DUpgrade the license of the Azure Active Directory (Azure AD) tenant. (correct answer)
Reveal answer & explanation
Correct answer: D

The correct answer is D. Option D: Upgrade the license of the Azure Active Directory (Azure AD) tenant.

Explanation

Azure Active Directory (Microsoft Entra ID) provides identity, single sign-on, and conditional access.

Topic 3 Β· Question 115

You have a GitHub Enterprise account. You need to enable push protection for secret scanning of the account repositories. What should you do first?

  • APurchase a GitHub Advanced Security license. (correct answer)
  • BPurchase Premium Plus support.
  • CEnforce multi-factor authentication (MFA).
  • DCreate an access policy for secrets.
Reveal answer & explanation
Correct answer: A

The correct answer is A. Option A: Purchase a GitHub Advanced Security license.

Topic 4 Β· Question 118

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?

  • Aaccess reviews
  • Bmanaged identities
  • Centitlement management
  • Dconditional access (correct answer)
Reveal answer & explanation
Correct answer: D

The correct answer is D. Option D: conditional access

Explanation

Conditional Access enforces access policies based on user, device, location, and risk signals.

Showing questions 61–80 of 358 Β· Page 4 of 18