What should you do?
 
Notifications
Clear all

What should you do?

1 Posts
1 Users
0 Likes
79 Views
(@kossmangonzalo)
Posts: 715
Noble Member
Topic starter
 

You have 50 Node.js-based projects that you scan by using WhiteSource. Each project includes Package.json, Package-lock.json, and Npm-shrinkwrap.json files.

You need to minimize the number of libraries reports by WhiteSource to only the libraries that you explicitly reference.

What should you do?

  • A . Configure the File System Agent plug in.
    B. Delete Package lock.json.
    C. Configure the Artifactory plug-in.
    D. Add a devDependencies section to Package-lock.json.

Show Answer Hide Answer

Suggested Answer: D

Explanation:

Separate Your Dependencies

Within your package.json file be sure you split out your npm dependencies between devDependencies and (production) dependencies. The key part is that you must then make use of the --production flag when installing the npm packages. The --production flag will exclude all packages defined in the devDependencies section.

References: https://blogs.msdn.microsoft.com/visualstudioalmrangers/2017/06/08/manage-your-open-source-usage-and-security-as-reported-by-your-cicd-pipeline/
 
Posted : 04/01/2023 11:09 am

Latest Microsoft AZ-400 Dumps Valid Version

Latest And Valid Q&A | Instant Download | Once Fail, Full Refund
Share: