POC Study Guide 2026
Everything you need to pass the POC exam in one place: the exam format, every topic to study, real practice questions with explanations, flashcards, and full-length practice tests. Free, no sign-up needed.
📋 POC Exam Format at a Glance
📚 POC Topics to Study (69)
✍️ Sample POC Questions & Answers
1. Which asyncio function is the standard entry point for running a top-level coroutine in Python 3.7+?
asyncio.run() creates a new event loop, runs the given coroutine until completion, and then closes the loop — it is the recommended entry point since Python 3.7.
2. What is the correct way to prevent SSRF in a Python application that fetches user-supplied URLs?
Whitelisting allowed hosts ensures the application cannot be tricked into making requests to internal network resources or cloud metadata endpoints.
3. What happens when you run `python -m module_name` instead of importing a module?
The `-m` flag locates the named module and executes it as a script, triggering the `if __name__ == '__main__':` block.
4. What is the correct way to pin a package to an exact version in `requirements.txt`?
The `==` operator in `requirements.txt` pins to an exact version, ensuring reproducible installs.
5. Which method reads all lines of a text file into a list of strings?
`readlines()` reads the entire file and returns each line as a string element in a list, including newline characters.
6. What is the primary purpose of a threading.Lock object in Python?
A Lock ensures mutual exclusion — only one thread can acquire the lock at a time, preventing race conditions on shared data.