Which condition best describes an injection flaw?
Injection Risks and Defenses Online Quiz Questions
Use this free practice quiz with 10 questions to review Injection Risks and Defenses, test your knowledge, and prepare for your next test or exam.
When distinguishing among injection risks, which question is most useful to ask first?
- A
Whether the input came from a web form or an API.
- B
Whether the application has a firewall.
- C
Which interpreter receives the untrusted input.
- D
Whether the input contains unusual characters.
An application accepts input through an API, a file, and a cookie. What is the most appropriate first step in reviewing injection risk?
- A
Trace untrusted data from any input channel to the interpreter that consumes it.
- B
Review only values submitted through web forms.
- C
Treat input from files and cookies as trusted by default.
- D
Look for punctuation in user input without tracing where it goes.
A product-search feature joins a supplied search term into SQL text, and the database may interpret part of the term as SQL syntax. Which interpreter boundary is at risk?
- A
A browser interprets untrusted content as active HTML.
- B
A directory service interprets a changed search filter.
- C
An operating-system command processor interprets an argument as command syntax.
- D
A database interprets untrusted input as part of SQL query syntax.
A developer wants to prevent supplied search terms from changing the meaning of a database query. Which approach most directly preserves the data-versus-instructions boundary?
- A
Block all requests that contain punctuation.
- B
Use parameterized queries to separate query structure from data values.
- C
Rely on input validation instead of parameterization.
- D
Give the database account broad privileges so it can handle all queries.
A database query needs a user-selected sort column. Which practice is appropriate for this structural choice?
- A
Pass the requested table name as an ordinary query parameter.
- B
Let a generic character filter decide which identifiers are safe.
- C
Map dynamic identifiers or sort choices to a strict allowlist.
- D
Assume parameterization makes every possible query component safe.
An application must launch a process using externally influenced input. Which approach best reduces command-injection risk while addressing argument safety?
- A
Prefer a built-in API; if a process is needed, invoke a fixed executable with separated and validated arguments.
- B
Concatenate input into a shell command after removing a few characters.
- C
Assume separated arguments prevent all unsafe options from reaching the program.
- D
Run the application with extra privileges in case the process needs them.
Untrusted content is placed into a page and interpreted as active script in a user's browser. Which risk does this describe?
- A
A database interprets part of a search term as query syntax.
- B
An operating system interprets an argument as a command.
- C
A directory service interprets a filter as a changed search expression.
- D
A browser interprets untrusted content as active HTML or script.
Client-side code needs to display an untrusted string as ordinary text. Which option best preserves that intent?
- A
Parse the untrusted string as HTML and rely on a firewall.
- B
Use Content Security Policy as a replacement for safe data handling.
- C
Assign ordinary text through textContent rather than parsing the string as HTML.
- D
Remove selected punctuation and then insert the string as markup.
An application builds a directory search filter from untrusted input, and the input changes the filter's logic. Which risk is this?
- A
Untrusted content is interpreted as active markup in a browser.
- B
Untrusted input changes the structure or logic of a directory expression.
- C
A command-line argument triggers an unexpected child process.
- D
A database query returns an unexpected result.
Related study packs and tools
3 Airway, Respiration, and Ventilation
Review EMT airway assessment, breathing mechanics, airway management, ventilation support, and priorities for common respiratory emergencies.
3 Airway, Respiration, and Ventilation
Learn how to assess airway and breathing, distinguish ventilation from oxygenation and respiration, provide appropriate support, and recognize common respiratory emergencies.
4 Cardiology and Resuscitation
Review cardiac assessment and emergencies, adult and pediatric CPR, AED use, and special resuscitation priorities for EMTs.
4 Cardiology and Resuscitation
A medium-difficulty quiz on EMT cardiovascular assessment, cardiac emergencies, CPR, AED use, and special resuscitation considerations.
4 Cardiology and Resuscitation
Learn how EMTs assess cardiac emergencies, recognize poor perfusion, and provide prompt care for cardiac arrest and other resuscitation situations.
6 Medical Emergencies
Review EMT priorities and key recognition and care principles for neurologic, metabolic, respiratory, toxicologic, behavioral, and environmental emergencies.
6 Medical Emergencies
A medium-difficulty quiz on recognizing and responding to medical emergencies within EMT scope and local protocols.
6 Medical Emergencies
Learn how EMTs approach medical emergencies, recognize time-sensitive conditions, provide care within their scope and local protocols, and arrange appropriate transport.
7 Obstetrics, Gynecology, and Pediatric Emergencies
A medium-difficulty quiz on practical assessment, treatment, and transport decisions in obstetric, gynecologic, neonatal, and pediatric emergencies.
8 EMS Operations
A medium-difficulty quiz on applying EMT operational principles to scene safety, communication, incident management, patient rights, and coordinated care.
9 Comprehensive EMT Practice Scenarios and Review
Review EMT exam domains and the priorities, interventions, and responsibilities that guide safe care in common emergency scenarios.
9 Comprehensive EMT Practice Scenarios and Review
Practice applying EMT scene safety, assessment, intervention, transport, and operational principles to realistic situations.