Two Laptop Bag*
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes HFSP 2nd edition Mock Exam Q69 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "HFSP 2nd edition Mock Exam Q69" Watch "HFSP 2nd edition Mock Exam Q69" New topic
Author

HFSP 2nd edition Mock Exam Q69

Bill Choi
Greenhorn

Joined: Dec 17, 2008
Posts: 2
Hi Ranchers,

I've seen this question has been asked before, but I still have one question on it.

So here's the question:
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.

The correct answer is B. The exam question is asking to restrict BEGINNERs from using resources in directory2. So with the current setting, we are only restricting BEGINNERs from GET, then shouldn't BEGINNERs will allow to access through other http methods?
Christophe Verré
Sheriff

Joined: Nov 24, 2005
Posts: 14687
    
  16

I've seen this question has been asked before

Can you link to the original thread, or quote where it's from ?


[My Blog]
All roads lead to JavaRanch
Bill Choi
Greenhorn

Joined: Dec 17, 2008
Posts: 2
Hi Christophe,

This question is from HFSP 2nd Edition Final Mock #69. Below is one of the previous thread that is related to this question but I don't see a clear explanation regarding the answer.

http://www.coderanch.com/t/177893/java-Web-Component-SCWCD/certification/HFSJ-nd-edition-Final-Mock
[ December 17, 2008: Message edited by: Bill Choi ]
 
jQuery in Action, 2nd edition
 
subject: HFSP 2nd edition Mock Exam Q69
 
Similar Threads
HFSJ Mock Exam 1.5 Errata Discussion
SCWCD 1.5 HFSJ Final Mock exam queries
How come 'D' Option correct
HFSJ 2nd edition Mock exam questions 6, 11,26,34,49 and 69
Final Mock Test Question 49,69, Head First and Servlets