Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

HFSJ final mock exam question

 
Archana Annamaneni
Ranch Hand
Posts: 147
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Your web application has a valid deplyment 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:

234. <auth-constraint>
235. <role-name>student</role-name>
236. </auth-constraint>

And the second security constraint contains:
<auth-constraint/>

which are true?(choose all that apply)

A. As the deployment descriptor stands now,the constrained resource can be accessed by both rules.

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 senseiusers.

F. If the second <auth-constraint> tag is removed , the constrained resource can be accessed only by studentusers.

Can some one answer this please?


Archana
 
Roopa Maheshkumar
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think the answer is 'D'.

<auth-constraint/> has the final word.It means no users are allowed. So if the <auth-constraint/> tag is removed.It means it the resource is open to all users.
 
Ranjit Gopinathan
Ranch Hand
Posts: 46
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

F is the answer , I think.

When <auth-constraint/> removed , the access is specified only for student roles.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic