Win a copy of TDD for a Shopping Website LiveProject this week in the Testing forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
Bartenders:
  • Piet Souris
  • Himai Minh

EPractize Labs's. Question 50 of Mock Exam 3. Implementing security.

 
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi friends

I have one doubt for the exam.

It regards EPractize Labs' Question 50 of Mock Exam 3 on the subject of implementing security.

The print screen of the question is in attach.

The lab says D and E are the correct answers.

In my opinion choosing D and E is a contradiction in terms.

With answer D, javax.annotation.security.RollesAllowed annotation there is overriding. " If applied at both the class and methods level , the method value overrides the class value if the two conflict" - https://docs.oracle.com/javaee/6/api/javax/annotation/security/RolesAllowed.html

With answer E, <method-permission> of ejb.jar.xml there is union - "The method permissions relation is defined as the union of all the method permissions defined in the individual method-permission elements." - pag 495 of http://download.oracle.com/otn-pub/jcp/ejb-3.1-fr-eval-oth-JSpec/ejb-3_1-fr-spec.pdf?AuthParam=1420603814_a14da73103af4bd19350064fcae1e929

My guess is the correct answer is C and D.

Does anybody has an opinion regarding this question?

Thank you in advance,

FR
implementing-security.png
[Thumbnail for implementing-security.png]
EPractize Labs
 
Creator of Enthuware JWS+ V6
Posts: 3398
312
Android Eclipse IDE Chrome
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You are right, that question has an error.

I would also say that C, D correct.

Answer E is questionable, but you can define one <method-permission> element allowing all methods by "admin" like this:
however the phrasing of the sentence is odd. The problem statement says the majority of methods will be used by the role "admin". In other words: there will be methods that won't be used by the role "admin", but by other roles. This is then not implementable byusing one <method-permission> element (because of the union).

Regards,
Frits
 
Filipe Rosa
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thank you Frits,

that´s what I thought.

That one was puzzling me.

Best Regards,

Filipe
 
MyExamCloud Software Support
Posts: 711
2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Filipe Rosa wrote:Hi friends

I have one doubt for the exam.

It regards EPractize Labs' Question 50 of Mock Exam 3 on the subject of implementing security.

The print screen of the question is in attach.

The lab says D and E are the correct answers.

In my opinion choosing D and E is a contradiction in terms.

With answer D, javax.annotation.security.RollesAllowed annotation there is overriding. " If applied at both the class and methods level , the method value overrides the class value if the two conflict" - https://docs.oracle.com/javaee/6/api/javax/annotation/security/RolesAllowed.html

With answer E, <method-permission> of ejb.jar.xml there is union - "The method permissions relation is defined as the union of all the method permissions defined in the individual method-permission elements." - pag 495 of http://download.oracle.com/otn-pub/jcp/ejb-3.1-fr-eval-oth-JSpec/ejb-3_1-fr-spec.pdf?AuthParam=1420603814_a14da73103af4bd19350064fcae1e929

My guess is the correct answer is C and D.

Does anybody has an opinion regarding this question?

Thank you in advance,

FR




We really sorry for the error. We will immediately correct this issue on Java EE 6 EJB OCE Training Lab.
 
Bartender
Posts: 2162
13
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks. I will buy this EPractice Lab exam in a few days, will I get the latest updates ?
 
Jhonson Fernando
MyExamCloud Software Support
Posts: 711
2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Himai Minh,

Himai Minh wrote:Thanks. I will buy this EPractice Lab exam in a few days, will I get the latest updates ?



Yes, you can get the latest updates, new version with the above mentioned fix is updated. Now you can get the latest update from our website.

Thanks for the interest Himai!
 
Tick check! Okay, I guess that was just an itch. Oh wait! Just a tiny ad:
free, earth-friendly heat - a kickstarter for putting coin in your pocket while saving the earth
https://coderanch.com/t/751654/free-earth-friendly-heat-kickstarter
reply
    Bookmark Topic Watch Topic
  • New Topic