Take as many assements as you can to improve your validate your skill rating
Total Questions: 20
1. ACEs(Access control entries) core consists of:-
Correct Answer is : All of the mentioned
2. Which of the following is/are part of BasePermission class:-
Correct Answer is : All of the mentioned
3. SID(Security Identity) associates with permission using.
Correct Answer is : all of the mentioned
4. Interfaces that defines operation of an ACL service.
Correct Answer is : All of the mentioned
5. Spring HibernateTemplate can simplify your DAO implementation by managing sessions and transactions for you.
Correct Answer is : TRUE
6. An alternative to Spring HibernateTemplate is:-
Correct Answer is : Hibernate contextual sessions
7. Sessionfactory can manage contextual sessions for you and allows you to retrieve them by the:-
Correct Answer is : getCurrentSession() method
8. DAO methods require access to the session factory, which can be injected:-
Correct Answer is : all of the mentioned
9. DAO methods must be made transactional.
Correct Answer is : TRUE
10. Annotation to find a transaction and then fail, complaining that no Hibernate session been bound to the thread.
Correct Answer is : @Transactional
11. In the bean configuration file for Hibernate (i.e., beans-hibernate.xml), you have to declare a HibernateTransactionManager instance for this application and enable declarative transaction via:-
Correct Answer is : tx:annotation-driven
12. HibernateTemplate will translate the native Hibernate exceptions into exceptions in Spring DataAccessException hierarchy.
Correct Answer is : TRUE
13. Annotation for Hibernate exceptions to be translated into Spring DataAccessException for consistent exception handling:-
Correct Answer is : @Repository
14. Instance to translate the native Hibernate exceptions into data access exceptions in Spring DataAccessException hierarchy.
Correct Answer is : PersistenceExceptionTranslationPostProcessor
15. You can assign a component name in this annotation and have the session factory autowired by the Spring IoC container with @Autowired.
Correct Answer is : TRUE
16. Spring provides to simplify your DAO implementation by managing entitymanagers and transactions for you:-
Correct Answer is : JpaTemplate
17. Annotation used for entity manager injection in EJB components.
Correct Answer is : @PersistenceContext
18. To use the context injection approach, you can declare an entity manager field in your DAO and annotate it with the @PersistenceContext annotation.
Correct Answer is : TRUE
19. JpaTemplate will translate the native JPA exceptions into exceptions in Spring DataAccessException hierarchy.