nerdexam
CompTIACompTIA

CS0-003 · Question #530

CS0-003 Question #530: Real Exam Question with Answer & Explanation

Sign in or unlock CS0-003 to reveal the answer and full explanation for question #530. The question stem and answer options stay visible for context.

Submitted by mike_84· Mar 6, 2026Security Operations / Threat and Vulnerability Management - Understanding how improper input validation in XML configurations can cause application errors and how XML schema constraints (XSD) can enforce data integrity to mitigate these issues (CompTIA CySA+ or Security+ Domain: Software and Systems Security / Incident Response)

Question

The SOC receives a number of complaints regarding a recent uptick in desktop error messages that are associated with workstation access to an internal web application. An analyst, identifying a recently modified XML file on the web server, retrieves a copy of this file for review, which contains the following code: Which of the following XML schema constraints would stop these desktop error messages from appearing? A. B. C. D.

Options

  • A<xs:element name="firstIntro"> <xs:simpleType> <xs:restriction base="xs:token"> <xs:pattern value="[0-9]{3}-[0-9]{2}-[0-9]{4}"/> </xs:restriction> </xs:simpleType> </xs:element>
  • B<xs:element name="firstIntro"> <xs:simpleType> <xs:restriction base="xs:string"> <xs:pattern value="[a-zA-Z 0-9]*"/> </xs:restriction> </xs:simpleType> </xs:element>
  • C<xs:element name="firstIntro"> <xs:simpleType> <xs:restriction base="xs:string"> <xs:pattern value="[0-9]*"/> </xs:restriction> </xs:simpleType> </xs:element>
  • D<xs:element name="firstIntro"> <xs:simpleType> <xs:restriction base="xs:positiveInteger"/> <xs:pattern value="[0-9]"/> </xs:restriction> </xs:simpleType> </xs:element>

Unlock CS0-003 to see the answer

You've previewed enough free CS0-003 questions. Unlock CS0-003 for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.

Topics

#XML Schema Validation#Input Validation#Web Application Security#XSD Constraints
Full CS0-003 PracticeBrowse All CS0-003 Questions