my dog learned polymorphism*
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes How come 'D' Option correct Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "How come Watch "How come New topic
Author

How come 'D' Option correct

Marut pandey
Ranch Hand

Joined: Mar 10, 2008
Posts: 43
Your web application has a valid dd with a single <security-constraint> tag.
Within this tag exists:
- a single http method that declares GET
All of the resources in your application exist within directory1 and directory2 and the only defined roles are BEGINNER and EXPERT.
If you want to restrict BEGINNERs from using resources in directory2, which are true about the url and role tag(s) you should declare? (Choose all that apply.)
A. A single url tag should declare directory1 and a single role tag should declare EXPERT.
B. A single url tag should declare directory2 and a single role tag should declare EXPERT.
C. A single url tag should declare directory1 and a single role tag should declare BEGINNER.
D. A single url tag should declare directory2 and a single role tag should declare BEGINNER.
E. One url tag should declare ANY and its role tag should declare EXPERT, and another url tag should declare directory2 and its role tag should declare BEGINNER.
F. One url tag should declare both directories, and its role tag should declare EXPERT, and another url tag should declare directory1 and its role tag should declare BEGINNER.

Correct Answer is D. but As per my understanding it should be B

Can anybody clarify that.


Matteo Palmieri
Greenhorn

Joined: Sep 09, 2008
Posts: 28
Hi Marut,

please check this thread for an answer to your question.

Matteo


SCJP1.4: 96% SCWCD5: 91%
Marut pandey
Ranch Hand

Joined: Mar 10, 2008
Posts: 43
Thanks Matteo !!. I should have seen previous post.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How come 'D' Option correct
 
Similar Threads
HFSP 2nd edition Mock Exam Q69
HFSJ Mock Exam 1.5 Errata Discussion
Final Mock Test Question 49,69, Head First and Servlets
HFSJ 2nd edition Mock exam questions 6, 11,26,34,49 and 69
SCWCD 1.5 HFSJ Final Mock exam queries