Security Operations
A scanner flags calls to a function its vendor deprecated in favor of a safer one. What is the best response?
Show the answer
Correct answerD. Replace the calls with the vendor's recommended function
AWhy not this: Renaming only hides the finding and leaves the deprecated function in use.
BWhy not this: A firewall rule does not change what the code does inside the application.
CWhy not this: Compiling successfully says nothing about safety; the function stays unmaintained or unsafe.
DWhy this is right: Moving to the supported replacement removes the use of the unsafe or unmaintained function.
Vendors deprecate functions because they are unsafe or will no longer be maintained, so the fix is to move to the recommended replacement. Code compiling does not mean the function is safe, so suppressing the finding leaves the risk.