Master Microsoft DevOps Magic 2026 – Turbocharge Your AZ-400 Skills!

1 / 20

You have multiple Node.js-based projects that you need to scan for libraries. What should you do to minimize the number of libraries reported by WhiteSource?

Configure the File System Agent plug-in

Add a devDependencies section to Package-lock.json

Adding a devDependencies section to the Package-lock.json file is an effective strategy to minimize the number of libraries reported by WhiteSource during the scanning process. When you categorize dependencies as devDependencies, it clearly indicates to tools like WhiteSource that these libraries are only needed for development and not for production. This differentiation allows WhiteSource to focus on the libraries that are essential for running the application, thus reducing the overall count of libraries reported and potentially minimizing security vulnerabilities and maintenance issues related to unnecessary dependencies.

In Node.js projects, the dependencies are typically split into two categories: those needed for production and those required for development (devDependencies). By explicitly adding a devDependencies section, developers can control which dependencies are included in the scans, ensuring that only relevant libraries that contribute directly to the functionality of the application are reported. Consequently, this reduces clutter and provides a clearer understanding of the actual libraries in use.

The other options, such as configuring various plug-ins or deleting Package-lock.json, do not achieve the intended result effectively. Configuring the File System Agent or Artifactory plug-ins pertains to specific integrations and does not inherently address the categorization of dependencies. Deleting Package-lock.json would remove critical information about dependencies and their versions, leading to potential issues when running

Get further explanation with Examzify DeepDiveBeta

Configure the Artifactory plug-in

Delete Package-lock.json

Next Question
Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy