nerdexam
CompTIA

CAS-003 · Question #98

A developer is determining the best way to improve security within the code being developed. The developer is focusing on input fields where customers enter their credit card details. Which of the…

The correct answer is D. Regular expression matching. Regular expression matching is a technique for reading and validating input, particularly in web software. This question is asking about securing input fields where customers enter their credit card details. In this case, the expected input into the credit card number field…

Technical Integration of Enterprise Security

Question

A developer is determining the best way to improve security within the code being developed. The developer is focusing on input fields where customers enter their credit card details. Which of the following techniques, if implemented in the code, would be the MOST effective in protecting the fields from malformed input?

Options

  • AClient side input validation
  • BStored procedure
  • CEncrypting credit card details
  • DRegular expression matching

How the community answered

(14 responses)
  • B
    7% (1)
  • C
    7% (1)
  • D
    86% (12)

Explanation

Regular expression matching is a technique for reading and validating input, particularly in web software. This question is asking about securing input fields where customers enter their credit card details. In this case, the expected input into the credit card number field would be a sequence of numbers of a certain length. We can use regular expression matching to verify that the input is indeed a sequence of numbers. Anything that is not a sequence of numbers could be

Topics

#input validation#regex#credit card security#injection prevention

Community Discussion

No community discussion yet for this question.

Full CAS-003 Practice