Which action is required to prevent API injection attacks?
Choose an answer
Tap an option to check your answer.
Correct answer: Validate, filter, and sanitize all incoming data..
Why this is the answer
API injection attacks exploit vulnerabilities by inserting malicious code into data inputs. The most effective preventative measure is to rigorously validate, filter, and sanitize all incoming data. This process ensures that only expected and safe data formats are processed, neutralizing malicious payloads before they can execute. Logging and monitoring failed attempts is reactive, helping detect attacks but not preventing them. Using password hashes with biometric authentication enhances user authentication but doesn't protect against API injection itself. Short-lived access tokens and authenticating applications improve overall API security and authorization but don't directly address the vulnerability of malicious data input.
Pass your exam — without the endless answer hunt
Get every verified question and explanation for this exam in one place, and save hours of prep. 1,000+ certifications · 20+ languages · free to start.
Pass your exam faster → No card needed