Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

XML I10-003 Exam - Topic 5 Question 80 Discussion

Posted by Gregoria on Jul 02, 2026 at 09:45 AM

See separate window.

A certain Web application displays user information according to user input via Web browser. The XML data managing user information is as shown in [example.xml] (separate window). The following [XQuery] is executed when the Web application retrieves user information from [example xml].

[XQuery]

{

fn:doc("example.xml")//data[userid = "(1)"][password = "(2)"]

}

At this time, the Web application completes the [XQuery] by replacing (1) and (2) with the user input character string, and executes the query.

No character escapes (e.g. convert "<" to "<") are performed for character string input by the user. Select two of the following that produces the query execution result in [Execution Result] (separate window) when the character string is as shown in each answer choice.

Suggested Answer: B, F

Get Premium I10-003 Questions as Interactive Web-Based Practice Test or PDF Real Exam Format Detailed Explanations Instant Access Get Your Practice Test
23 comments · newest first
VI
Vicki 3 days ago
I think option A could work.
MA
Marti 8 days ago
I feel the same.
VI
Vicki 13 days ago
This question is tricky!
CO
Colette 18 days ago
Same here!
LE
Leanna 24 days ago
I just hope I pick the right ones!
CO
Corinne 29 days ago
True, it could break the query.
CO
Colette 1 month ago
F might not return the right result.
LE
Leanna 1 month ago
What about F?
CO
Corinne 1 month ago
E is interesting!
CO
Colette 2 months ago
I’m leaning towards E.
CO
Corinne 2 months ago
A makes sense, but B looks good too.
LE
Leanna 2 months ago
I think option A could work.
CO
Corinne 2 months ago
I feel the same.
LE
Leanna 2 months ago
This question is tricky!
GL
Gladis 3 months ago
I think E is also a valid option, right?
DY
Dyan 3 months ago
C and D won't work, they don't match the expected format.
BE
Belen 3 months ago
Wait, can you really use "or""=" like that? Seems sketchy.
DY
Dyan 3 months ago
Totally agree, those inputs exploit the query!
TH
Thea 3 months ago
A) and B) will definitely work!
OM
Omer 3 months ago
I’m a bit confused about the difference between options C and D. They both seem to involve function calls, but I can't recall which one would execute correctly.
MA
Margart 4 months ago
I feel like I’ve seen something similar with the "or" statements before. I wonder if option E would actually return the expected results.
PO
Pok 4 months ago
I think option B looks familiar from our practice questions. It seems like it could exploit the query, but I’m not entirely confident about the syntax.
GO
Goldie 4 months ago
I remember we discussed how user input can lead to SQL injection-like vulnerabilities in XQuery. I'm not sure if the first option would work, though.
0/2000 characters

Save Cancel