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 | |
|---|---|---|
| 1import requests | AIgnores that other people's libraries are part of the app. A weakness in any outside code can put the whole app at risk. | |
| 2pip install flask | BTrusting a link just because it is popular. Every link in the supply chain needs checking, because an attacker can target any one of them. | |
| 3Most of an app is other people's code, so the project lists the libraries it depends on | CThe app depends on a library written by someone else, so that library is one link in its software supply chain | |
| 4Every link in the supply chain must be trusted, including tools that build and deliver the software | Ddependencies = ['flask', 'requests', 'numpy'] | |
| 5# I only wrote 5% of this app, so only my code can be a security risk | Etrusted_links = ['library', 'build tool', 'update server'] | |
| 6# The library is popular, so I trust it without checking | FDownloads a third-party package from an outside supplier and adds it to the project |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
software supply chain — Everything used to make and deliver software: code libraries, tools, build systems, suppliers and updates. Most of an app is other people's code, so every link must be trusted.import requests
print(requests.__version__)pip install requestsrequests==2.31.0libs = ["flask", "requests", "numpy"]
print(len(libs))trusted = False
if not trusted:
print("Do not install")