mediumMultiple ChoiceObjective-mapped
FC0-U71 Practice Question: A developer notices that an application runs…
A developer notices that an application runs slowly when processing large files. Which optimization technique is most likely to improve performance?
⚠ Common exam trap
CompTIA ITF+ may test the misconception that recursion is always more elegant or faster than loops, but in performance-critical scenarios with large data, recursion's stack overhead and risk of stack overflow make it inferior to iterative chunked processing.
Answer choices
Why each option matters
Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.
Correct answer & explanation
✓
Implement buffered reading and process in chunks
Processing large files often causes performance bottlenecks due to excessive I/O operations. Buffered reading reads data into memory in larger blocks, reducing the number of system calls, while processing in chunks prevents memory overload and allows the application to handle data incrementally. This directly addresses the slow performance by minimizing disk access overhead.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
Increase the scope of variables to avoid passing arguments
Why it's wrong here
Variable scope does not significantly impact performance.
- ✗
Add more comments to the code
Why it's wrong here
Comments are ignored during execution.
- ✓
Implement buffered reading and process in chunks
Why this is correct
Buffered I/O and chunked processing improve efficiency for large files.
- ✗
Use recursion instead of loops
Why it's wrong here
Recursion often adds function call overhead and may not be faster.
Go deeper
Related to this question
About these practice questions
This FC0-U71 question is part of Courseiva's 988-question bank — original exam-style content with full explanations and wrong-answer analysis, never real exam questions or exam dumps. Learn why practice questions differ from exam dumps →
JA
Written by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
This FC0-U71 practice question is part of Courseiva's free CompTIA certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the FC0-U71 exam.