CCARF Practice Question
Correct answer: C
A: Calling Edit 12 times is inefficient. The Edit tool's replace_all parameter is designed for exactly this use case — renaming a variable across an entire file in a single call.
B: Read + Write rewrites the entire file, which is wasteful for a simple rename. The Edit tool with replace_all handles this more efficiently by sending only the diff.
C: The Edit tool's replace_all parameter replaces all occurrences of the specified string in a single operation. This is the most efficient approach for renaming a variable throughout a file.
D: While sed can perform the replacement, the exam expects candidates to use built-in tools for file modifications. Edit with replace_all is the purpose-built tool for this task.