exam questions

Exam 1z0-900 All Questions

View all questions & answers for the 1z0-900 exam

Exam 1z0-900 topic 1 question 48 discussion

Actual exam question from Oracle's 1z0-900
Question #: 48
Topic #: 1
[All 1z0-900 Questions]

You created two filters for your web application by using the @WebFilter annotation, one for authorization and the other for narrowing results by the provided search criteria. The authorization filter must be invoked first.
How can you specify this?

  • A. setting the priority attribute of the @WebFilter annotation for each of the filters
  • B. placing the filter mapping elements in the required order in the web.xml deployment descriptor
  • C. placing @WebFilterMapping annotations in the required order
  • D. specifying the filter precedence order by using the @Priority annotation
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
pedrolima
Highly Voted 3 years, 5 months ago
Correct answer is B. https://stackoverflow.com/questions/6560969/how-to-define-servlet-filter-order-of-execution-using-annotations-in-war
upvoted 5 times
...
orjava
Most Recent 7 months ago
Answer B. You can only define the order of filters in the chain using web.xml file.
upvoted 2 times
...
devmsaleh
2 years ago
Correct answer is B
upvoted 3 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago