Tip: Choose Save as PDF in the print dialog to download. Use A4 paper size.
Shade in the A or B circle for each question.
Draw a line connecting each item on the left to its match on the right.
| Left column | Right column | |
|---|---|---|
| 1requests==2.31.0 | APins the dependency to one exact version so a surprise new release cannot slip into your project | |
| 2npm audit | Bflask==3.0.0 | |
| 3Pin a dependency to an exact, reviewed version so it does not change without you knowing | Cpip install --require-hashes -r requirements.txt | |
| 4Check a dependency's downloaded file matches a trusted fingerprint to verify its integrity | DThe package was added without reviewing it. The odd name could be a fake lookalike of a trusted package. Check the name, author and popularity first, then install the trusted one. | |
| 5requests>=2.0 | EAutomatically scans your dependencies for known vulnerabilities and reports them | |
| 6pip install fast-requestz | FThe >= sign allows any newer version, so an unreviewed or compromised release could be installed. Pin it with == to one exact version, like requests==2.31.0. |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
reduce supply chain risk — Use fewer, trusted dependencies, pin versions, verify integrity and scan for known vulnerabilities so a weak link in code you rely on cannot harm your system.requests==2.31.0
flask==3.0.0npm auditnpm ciIF trusted AND needed THEN
add(package)
ENDIFpip-audit -r requirements.txt