New Year Sale 2026! 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

Actual exam question for Microsoft's AZ-400 exam
Question #: 9
Topic #: 2
[All AZ-400 Questions]

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?

Show Suggested Answer Hide Answer
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

Contribute your Thoughts:

0/2000 characters
Francesco
4 months ago
Yes, this is a solid recommendation!
upvoted 0 times
...
Pilar
4 months ago
I thought caching only works for certain packages?
upvoted 0 times
...
Cherelle
4 months ago
Not sure if that's enough to cut it down significantly though.
upvoted 0 times
...
Xenia
5 months ago
Totally agree, it should help with the npm install time.
upvoted 0 times
...
Ressie
5 months ago
Enabling pipeline caching can definitely speed things up!
upvoted 0 times
...
Deeann
5 months ago
I feel like there might be some limitations with caching, but overall, it sounds like a good approach to try.
upvoted 0 times
...
Francoise
5 months ago
I think we practiced a similar question where caching was mentioned as a solution. It makes sense to reduce installation time.
upvoted 0 times
...
Carrol
5 months ago
I'm not entirely sure if caching will work for every scenario. What if the packages change frequently?
upvoted 0 times
...
Elli
5 months 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.
upvoted 0 times
...
Tracey
5 months 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.
upvoted 0 times
...
Tomas
5 months 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.
upvoted 0 times
...
Bernadine
5 months 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.
upvoted 0 times
...
Juan
5 months 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.
upvoted 0 times
...

Save Cancel