Courseiva
Secure Software TestingmediumMultiple ChoiceObjective-mapped

CSSLP Secure Software Testing Practice Question

A developer wants to ensure that a web application is resistant to SQL injection. Which test case should be included in the automated test suite?

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

Injecting characters like single quotes (') and comments (--) into input fields.

Testing for SQL injection involves sending input that contains special characters (like quotes) to see if the database engine returns an error or executes the injected command.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • null

    Why it's wrong here

    null

  • Changing the user agent header to a random string.

    Why it's wrong here

    This tests for user-agent filtering, not SQL injection.

  • Injecting characters like single quotes (') and comments (--) into input fields.

    Why this is correct

    These are classic SQL injection payloads to test if the application sanitizes input.

  • Uploading a large file to test buffer overflow.

    Why it's wrong here

    This is for testing file upload validation or resource exhaustion.

  • Adding a long string to an email field.

    Why it's wrong here

    This tests for input length validation.

About these practice questions

Courseiva writes every CSSLP question from scratch — 198 in total, each with an explanation and a wrong-answer breakdown. None are copied from real exams or dumps. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

JA

Written and reviewed by Johnson Ajibi, MSc IT Security

Senior Network & Security Engineer · founder of Courseiva

Last reviewed August 2026 · checked against the official (ISC)² exam blueprint

This CSSLP practice question is part of Courseiva's free (ISC)² 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 CSSLP exam.