Developing Applications Using Cisco Core Platforms and APIs (DEVCOR) — Question 403

Which two techniques protect against injection attacks? (Choose two.)

Answer options

Correct answer: A, D

Explanation

Input validation (A) ensures that only properly formatted data is accepted, which helps prevent malicious input. String escaping (D) converts potentially harmful characters into a safe format, mitigating the risk of injection. The other options, while they may improve usability or limit input size, do not directly address the vulnerabilities associated with injection attacks.