Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Microsoft AZ-400 Exam - Topic 2 Question 9 Discussion

Posted by Cristy on May 05, 2022 at 12:21 PM

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 lakes approximately five minutes each time you run the pipeline.

You need to recommend a solution to reduce the pipeline execution time.

Solution: You recommend enabling pipeline caching.

Does this meet the goal?

Suggested Answer: A

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.


https://www.npmjs.com/package/npm-cache

Get Premium AZ-400 Questions as Interactive Web-Based Practice Test or PDF Real Exam Format Detailed Explanations Instant Access Get Your Practice Test
13 comments · newest first
FR
Francesco 12 months ago
Yes, this is a solid recommendation!
PI
Pilar 1 year ago
I thought caching only works for certain packages?
CH
Cherelle 1 year ago
Not sure if that's enough to cut it down significantly though.
XE
Xenia 1 year ago
Totally agree, it should help with the npm install time.
RE
Ressie 1 year ago
Enabling pipeline caching can definitely speed things up!
DE
Deeann 1 year ago
I feel like there might be some limitations with caching, but overall, it sounds like a good approach to try.
FR
Francoise 1 year ago
I think we practiced a similar question where caching was mentioned as a solution. It makes sense to reduce installation time.
CA
Carrol 1 year ago
I'm not entirely sure if caching will work for every scenario. What if the packages change frequently?
EL
Elli 1 year ago
I remember reading about pipeline caching in our study materials. It seems like it should help speed things up by storing the npm packages.
TR
Tracey 1 year ago
I think the key here is to focus on the configuration required on the CE device. The question is specifically asking about that, so I'll need to carefully review the options and think through the requirements for MC-LAG.
TO
Tomas 1 year ago
Okay, let me think this through. REST services are all about web-based APIs, so the most logical protocol would be HTTP. I'm pretty confident that's the right answer here.
BE
Bernadine 1 year ago
Ah, I see what they're getting at now. The key is understanding how to properly declare the copyServiceAPI interface in the module-info.java file. I think I've got it.
JU
Juan 1 year ago
This is a good question. I'd say the auditor is least likely to consider whether outside resources are needed, since that's more of a secondary concern compared to the team's experience and availability.
0/2000 characters

Save Cancel