AZ-400 – Question 214

0
124
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 use Azure Pipelines to build and test a React.js application.
You have a pipeline that has a single job.
You discover that installing JavaScript packages from npm takes approximately five minutes each time you run the pipeline.
You need to recommend a solution to reduce the pipeline execution time.

Q.1 – Solution: You recommend defining a container job that uses a custom container that has the JavaScript packages preinstalled.
Does this meet the goal?

A. Yes
B. No

Correct Answer: B

Instead enable pipeline caching.
Note: npm-cache is a command line utility that caches dependencies installed via npm, bower, jspm and composer.
It is useful for build processes that run [npm|bower|composer|jspm] install every time as part of their build process. Since dependencies don’t change often, this often means slower build times. npm-cache helps alleviate this problem by caching previously installed dependencies on the build machine.

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

Q.2 – Solution: You recommend enabling pipeline caching.
Does this meet the goal?

A. Yes
B. No

Correct Answer: A

Q.3 – Solution: You recommend enabling parallel jobs for the pipeline.
Does this meet the goal?

A. Yes
B. No

Correct Answer: B

Q.4 – Solution: Create two standalone templates, each of which will deploy the resources in its respective group.
Does this meet the goal?

A. Yes
B. No

Correct Answer: B

Q.5 – Solution: Create a single standalone template that will deploy all the resources.
Does this meet the goal?

A. Yes
B. No

Correct Answer: B

Q.6 – Solution: You deploy a Kubernetes cluster on-premises. You deploy a Helm agent to the cluster. You add a Download Build Artifacts task to the deployment pipeline.
Does this meet the goal?

A. Yes
B. No

Correct Answer: B