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 5 Question 42 Discussion

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

Consider the execution of [XQuery] as referenced in a separate window.

Assume that the following index is used when executing this [XQuery] on a certain XMLDB.

[Index Usage Standards] (assumed)

Use only the most efficient index when an index for both $A/@type and $B/@type is created.

If only one index is created, use that index.

Do not use an index if none is created.

Assume the following circumstances regarding the statistical values related to the execution of this [XQuery].

[Statistical Value] (assumed)

When creating an index for $A/@type, the response time when updating $A/@type data is one millisecond longeron average.

When creating an index for $B/@type. the response time when updating $B/@type data is one millisecond longeron average.

When creating an index for either $A/@type or$B/@type, or when creating an index for both, the response time of [XQuery] execution is at least two milliseconds shorter on average.

Of all of the values of $A/@type, the rate of inclusion of identical values is 1% on average. Of all of the values of $B/@type, the rate of inclusion of identical values is 2% on average. The ratio of $A/@type data update, $B/@type data update, and [XQuery] execution is 1:1:1 on average.

When the number of data items for both $A/@type and $B/@type are extremely large and almost identical, which is the most effective method for improving overall execution efficiency? Assume that this XMLDB has no other automated optimization functions than those described above. Assume that no other queries are executed.

Show Suggested Answer Hide Answer
Suggested Answer: A

Contribute your Thoughts:

Melynda
4 days ago
Hmm, I'm not sure. The low rate of identical values for both $A/@type and $B/@type data makes me think that creating an index for just one of them might be a better choice. Decisions, decisions...
upvoted 0 times
...
Carin
5 days ago
That's a good point, but considering the overall execution efficiency, creating an index for both might still be the best option.
upvoted 0 times
...
Douglass
8 days ago
Well, this is a tricky one. Given the statistics provided, it seems like creating an index for both $A/@type and $B/@type would be the most efficient option. The response time improvement for the [XQuery] execution is the key factor here.
upvoted 0 times
...
Melissia
9 days ago
I disagree, I believe creating an index for $B/@type would be better since the rate of inclusion of identical values is higher.
upvoted 0 times
...
Carin
15 days ago
I think creating an index for both $A/@type and $B/@type would be the most effective method.
upvoted 0 times
...

Save Cancel