Carmille Llo

Greenhorn
+ Follow
since May 08, 2009
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Carmille Llo

Maybe I'm not picturing this correctly.

What I see is at first the DD looks something like this:



which I understand that the <auth-constraint/> in the second <security-contraint> prevents anyone from accessing the resource.

Now when the multiple choice says "If the second <auth-constraint> tag is removed", does it mean this:



If so, then from what I understand, the second <security-contraint> is allowing everyone to access, while the first <security-contraint> only allows students to access. And then from rule 4 of pg 671 of the book, the 2 constraints combine and in turn allows everyone to access.

What is it that I'm picturing wrong here?

Thanks for your help Ranjit!
Hi,

Q30 says:

Your web application has a valid deployment descriptor in which student and sensei are the only security roles that have been defined. The deployment descriptor contains two security constraints that declare the same resource to be constrained. The first security constraint contains:



And the second security constraint contains:


Which are true?

A. As the deployment descriptor stands now, the constrained resource can be accessed by both roles.
B. As the deployment descriptor stands now, the constrained resource can be accessed only by sensei users.
C. As the deployment descriptor stands now, the constrained resource can be accessed only by student users.
D. If the second <auth-constraint> tag is removed, the constrained resource can be accessed by both roles.
E. If the second <auth-constraint> tag is removed, the constrained resource can be accessed only by sensei users.
F. If the second <auth-constraint> tag is removed, the constrained resource can be accessed only by student users.



The book indicated that D was correct, which I agreed.

But under the errata list, it says that F was the correct answer instead. And this confuses me because in the book on pg. 671, rule 4 states that:

If one of the <security-constraint> elements has no <auth-constraint> element, it combines with anything else to allow access to everybody.



So which part is correct?

Thanks,
C