CompTIACompTIA
PT0-002 · Question #614
PT0-002 Question #614: Real Exam Question with Answer & Explanation
The correct answer is D: Option D. For processing a large number of URLs, the best performance is achieved through asynchronous or parallel processing.
Tools and Code Analysis
Question
A penetration tester is writing a web scraper to process a list of more than 100.000 URLs: Which of the following script snippets should the tester use for the best performance?
Options
- AOption A
- BOption B
- COption C
- DOption D
Explanation
For processing a large number of URLs, the best performance is achieved through asynchronous or parallel processing.
Common mistakes.
- A. Option A likely represents a sequential processing approach, which would be slow for 100,000 URLs as each request waits for the previous one to complete.
- B. Option B likely represents a sequential processing approach, which would be slow for 100,000 URLs as each request waits for the previous one to complete.
- C. Option C likely represents a sequential processing approach, which would be slow for 100,000 URLs as each request waits for the previous one to complete.
Concept tested. Web scraping performance, concurrent programming
Topics
#Web scraping#Scripting#Performance optimization#Concurrency
Community Discussion
No community discussion yet for this question.