exam questions

Exam CS0-002 All Questions

View all questions & answers for the CS0-002 exam

Exam CS0-002 topic 1 question 274 discussion

Actual exam question from CompTIA's CS0-002
Question #: 274
Topic #: 1
[All CS0-002 Questions]

A developer is working on a program to convert user-generated input in a web form before it is displayed by the browser. The technique is referred to as:

  • A. Output encouting.
  • B. Data protection.
  • C. Query paramererization.
  • D. Input validation.
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
encxorblood
Highly Voted 2 years, 4 months ago
Selected Answer: A
The technique referred to in the scenario is option A, output encoding. Output encoding, also known as output sanitization, is a technique used to convert user-generated input in a web form before it is displayed by the browser. This technique helps to prevent cross-site scripting (XSS) attacks, which occur when attackers inject malicious code into a web page, causing it to execute in the user's browser.
upvoted 5 times
2Fish
2 years, 3 months ago
Agree. Output encoding is correct.
upvoted 1 times
...
...
TAC45
Most Recent 1 year, 7 months ago
Selected Answer: A
Input validation is the process of checking whether the data provided by users or other sources meets the expected format, type, and range. Output encoding is the process of transforming the data that is sent to the browser or other destinations into a safe and consistent format.
upvoted 1 times
...
kyky
2 years ago
Selected Answer: A
The correct answer in this case would be A. output encoding. Output encoding is a technique used to convert user-generated input before it is displayed by the browser, specifically to prevent cross-site scripting (XSS) attacks. It involves encoding or escaping special characters that could be interpreted as HTML or JavaScript code, thereby preventing the browser from executing them as intended by an attacker.
upvoted 2 times
...
PhillyCheese
2 years, 4 months ago
Selected Answer: A
Output "encoding". Horrible spelling, but since encouting is a thing, The motivation behind output encoding is to change over untrusted input into a protected structure where the information is shown as information to the client without executing as code in the program or in straightforward words , Encoding includes making an interpretation of extraordinary characters into some comparable that is as of now not critical in the objective mediator. Thus, for instance, utilizing HTML substance encoding prior to sending untrusted information into a program will safeguard against many types of Cross-site Scripting (XSS).
upvoted 2 times
PhillyCheese
2 years, 4 months ago
*isn't a thing......
upvoted 3 times
...
...
IanRogerStewart
2 years, 5 months ago
Selected Answer: A
The developer is converting (encoding) the output, hence A. It could be D but in this case I think they are looking for A.
upvoted 2 times
...
Kashim
2 years, 5 months ago
Selected Answer: A
It should be A. Output encouting. based on "before it is displayed by the browser". Encoding (commonly called “Output Encoding”) involves translating special characters into some different but equivalent form that is no longer dangerous in the target interpreter, for example translating the < character into the &lt; string when writing to an HTML page.
upvoted 2 times
...
gnnggnnggnng
2 years, 5 months ago
Selected Answer: D
Input validation is a technique to ensure that user-generated input conforms to specific rules or constraints, such as data type, length, and format, before it is processed and displayed by the browser. By performing input validation, a developer can prevent malicious input from being processed and displayed, and thus reduce the risk of security vulnerabilities such as code injection, cross-site scripting, and buffer overflow.
upvoted 3 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...