Topic 4: Mix Questions Set

Your company plans to deploy an application to the following endpoints:
• Ten virtual machines hosted in Azure.
• Ten virtual machines hosted in an on-premises data center environment
All the virtual machines have the- Azure Pipelines agent.
You need to implement a release strategy for deploying the application to the endpoints.
What should you recommend using to deploy the application to the endpoints? To answer, drag the appropriate components to the correct endpoint.
Each component may be used once, more than once, or not at all. You may need to drag the split bar between panes or soon to view content
NOTE: Each correct selection n worth one point.




Explanation:
Box 1: A deployment group
When authoring an Azure Pipelines or TFS Release pipeline, you can specify the deployment targets for a job using a deployment group.
If the target machines are Azure VMs, you can quickly and easily prepare them by installing the Azure Pipelines Agent Azure VM extension on each of the VMs, or by using the Azure Resource Group Deployment task in your release pipeline to create a deployment group dynamically.
Box 2: A deployment group

You use WhiteSource Bolt to scan a Node.js application. The WhiteSource Bolt scan identifies numerous libraries that have invalid licenses. The libraries are used only during development and are not part of a production deployment. You need to ensure that WhiteSource Bolt only scans production dependencies.
Which two actions should you perform?
Each correct answer presents part of the solution.
NOTE: Each correct selection is worth one point.

A. Run npm install and specify the --production flag.

B. Modify the WhiteSource Bolt policy and set the action for the licenses used by the development tools to Reassign.

C. Modify the devDependencies section of the project’s Package.json file.

D. Configure WhiteSource Bolt to scan the node_modules directory only.

A.   Run npm install and specify the --production flag.
C.   Modify the devDependencies section of the project’s Package.json file.

Explanation:
A: To resolve NPM dependencies, you should first run "npm install" command on the relevant folders before executing the plugin.
C: All npm packages contain a file, usually in the project root, called package.json - this file holds various metadata relevant to the project. This file is used to give information to npm that allows it to identify the project as well as handle the project's dependencies. It can also contain other metadata such as a project description, the version of the project in a particular distribution, license information, even configuration data - all of which can be vital to both npm and to the end users of the package.

You are designing a build pipeline in Azure Pipelines. The pipeline requires a self-hosted agent. The build pipeline will run once daily and will take 30 minutes to complete. You need to recommend a compute type for the agent. The solution must minimize costs. What should you recommend?

A. Azure virtual machines

B. an Azure virtual machine scale set

C. an Azure Kubernetes Service (AKS) cluster

D. Azure Container Instances

D.   Azure Container Instances

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.

B.   Smart Detection uses the first 24 hours to establish the normal behavior of the web app.

You have an Azure DevOps organization named Contoso and art 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 Appl and deploy Appl to VMSS1. Appl 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 Appl.
The solution must minimize administrative effort.
What should you include in the recommendation?

A. an Azure Service Health alert

B. the Failures feature in Azure Application Insights

C. the Smart Detection feature m Azure Application Insights

D. an Azure Monitor alert that uses an Azure Log Analytics query

C.   the Smart Detection feature m Azure Application Insights

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.

Your company uses Azure Artifacts for package management. You need to configure an upstream source in Azure Artifacts for Python packages. Which repository type should you use as an upstream source?

A. PyPI

B. npmjs.org

C. Maven Central

D. third-party trusted Python

A.   PyPI

Explanation:
Get started with Python packages in Azure Artifacts
Create a feed

  • Select Artifacts (in the left navigation of your Azure DevOps project).
  • On the Artifacts page, select Create Feed.
  • In the Create new feed dialog box:
  • In the Name field, give the feed a name.
PyPI is the default repository name for twine, which is a tool for publishing Python packages.

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. Enable Test Impact Analysis (TIA).

B. Enable test slicing.

C. Clear Flaky tests included in test pass percentage

D. Set Flaky test detection to Off

E. Manually mark the test as flaky

C.   Clear Flaky tests included in test pass percentage
E.   Manually mark the test as flaky

You are designing the development process for your company. You need to recommend a solution for continuous inspection of the company’s code base to locate common code patterns that are known to be problematic. What should you include in the recommendation?

A. Microsoft Visual Studio test plans

B. Gradle wrapper scripts

C. SonarCloud analysis

D. the JavaScript task runner

C.   SonarCloud analysis

Explanation:
SonarCloud is a cloud service offered by SonarSource and based on SonarQube. SonarQube is a widely adopted open source platform to inspect continuously the quality of source code and detect bugs, vulnerabilities and code smells in more than 20 different languages.
Note: The SonarCloud Azure DevOps extension brings everything you need to have your projects analyzed on SonarCloud very quickly.

You manage an Azure web app that supports an e-commerce website. You need to increase the logging level when the web app exceeds normal usage patterns. The solution must minimize administrative overhead. Which two resources should you include in the solution?
Each correct answer presents part of the solution.
NOTE: Each correct selection is worth one point.

A. an Azure Monitor alert that has a dynamic threshold

B. an Azure Automation runbook

C. an Azure Monitor alert that uses an action group that has an email action

D. the Azure Monitor autoscale settings

E. an Azure Monitor alert that has a static threshold

B.   an Azure Automation runbook
C.   an Azure Monitor alert that uses an action group that has an email action

You have an Azure DevOps organization named Contoso and an Azure DevOps project named Project1. You plan to use Microsoft-hosted agents to build container images that will host full Microsoft .NET Framework apps in a YAML pipeline in Project1. What are two possible virtual machine images that you can use for the Microsoft-hosted agent pool?
Each correct answer presents a complete solution.
NOTE: Each correct selection is worth one point.

A. vs2017-win2016

B. ubuntu-16.04

C. win1803

D. macOS-10.13

E. vs.2015-win2012r2

A.   vs2017-win2016
E.   vs.2015-win2012r2

Page 17 out of 49 Pages