BlackFriday 2024! 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 8 Question 35 Discussion

Actual exam question for XML's I10-003 exam
Question #: 35
Topic #: 8
[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:

Luis
5 months ago
I see, so we need to choose carefully to prevent any security vulnerabilities in the Web application.
upvoted 0 times
...
Rosalyn
5 months ago
I think Option C uses 'true()' function which can also bypass the query filter, so it might be a valid choice.
upvoted 0 times
...
Santos
5 months ago
Option A seems to be injecting SQL code with 'or' operator, which can lead to SQL injection.
upvoted 0 times
...
Luis
5 months ago
I agree, we need to select two options that produce the desired query result.
upvoted 0 times
...
Santos
5 months ago
I think the question is about XQuery execution with user input.
upvoted 0 times
...
Avery
5 months ago
I think I'll go with option D. It seems to have the right syntax for the query.
upvoted 0 times
...
Pete
5 months ago
That's a good point, Yolando. Option B looks like a viable choice.
upvoted 0 times
...
Yolando
6 months ago
I think option B could be correct because it contains the characters needed for the query.
upvoted 0 times
...
Avery
6 months ago
I agree with you, Pete. I think we need to carefully analyze the XQuery given.
upvoted 0 times
...
Pete
7 months ago
I feel a bit nervous about this question. It seems quite technical.
upvoted 0 times
...

Save Cancel