Questions
As we conclude, here is a list of questions for you to test your knowledge regarding this chapter's material. You will find the answers in the Assessments section of the Appendix:
- Which function does Python provide to evaluate a string of Python code?
- Which is the recommended function from the
yaml
module for converting a YAML document to a Python object in a secure way? - Which Python module and method returns a sanitized string that can be used in a shell command line in a secure way without any issues to interpret the commands?
- Which Bandit plugin has the capacity to search methods and calls related to
subprocess
modules that are using theshell = True
argument? - What is the function provided by Flask to escape and validate the input data?