PT0-003 · Question #303
PT0-003 Question #303: Real Exam Question with Answer & Explanation
Sign in or unlock PT0-003 to reveal the answer and full explanation for question #303. The question stem and answer options stay visible for context.
Question
A penetration tester uses a Python script to enumerate open ports across a list of IP addresses. The current script runs sequentially, which slows it down during larger engagements. The tester wants to improve the script's performance so it can handle multiple targets simultaneously. Which of the following changes is the best way to achieve this goal?
Options
- AUsing the function to throttle the scanning rate
- BImporting a library that allows use of workers
- CReplacing the function with a loop
- DChanging the port list from a tuple to a dictionary for better lookup speed
Unlock PT0-003 to see the answer
You've previewed enough free PT0-003 questions. Unlock PT0-003 for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.