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 Exam I10-003 Topic 6 Question 58 Discussion

Actual exam question for XML's I10-003 exam
Question #: 58
Topic #: 6
[All I10-003 Questions]

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.

Show Suggested Answer Hide Answer
Suggested Answer: B, F

Contribute your Thoughts:

Marcelle
5 days ago
But A seems to be the most logical choice based on the XQuery provided.
upvoted 0 times
...
Gussie
9 days ago
Wow, option F looks pretty nasty. I bet that would give the dev team a real headache to fix.
upvoted 0 times
...
Margurite
10 days ago
I'm just glad I'm not the one who has to fix this mess. Imagine the boss's face when he sees the bug report!
upvoted 0 times
...
Martina
14 days ago
I disagree, I believe the correct answer is B.
upvoted 0 times
...
Melodie
17 days ago
This query is a classic example of SQL injection vulnerability. Looks like the application is not properly sanitizing user input. Scary stuff!
upvoted 0 times
Fallon
2 days ago
User 2: Definitely, they should sanitize the input to prevent SQL injection.
upvoted 0 times
...
Deangelo
3 days ago
User 1: Yeah, that's a major security flaw.
upvoted 0 times
...
...
Marcelle
17 days ago
I think the answer is A.
upvoted 0 times
...

Save Cancel