Self-Test Java EE Architecture
Self-Test Java EE Architecture
Self-Test Java EE Architecture
ABIS Training & Consulting P.O. Box 220 B-3000 Leuven Belgium
22/03/2012
Container services are configured via O (a) O (b) O (c) O (d) special configuration methods in Java Access Beans deployment descriptors and/or annotations resource property files application server administration configuration
3.
Which of the following is NOT true Java EE applications are based on 4 phases: development, assembly, deployment, administration Java EE applications are autonomic self-managing, self-healing, self-protecting enterprise applications Java EE applications are split up in multiple tiers: client tier, web tier, EJB tier and integration tier Java EE applications are typically a combination of application clients, web components and business components
4.
Which elements are not part of the Java EE specification (2 answers) applets Java Mail portlets Unified Expression Language
Which of the following descriptions of a Java EE web application are correct (2 correct
22/03/2012
answers) [_] [a] [_] [b] [_] [c] [_] [d] 6. A Java EE web application may contain servlets and applets A Java EE web application may contain servlets and EJBs A Java EE web application may contain JavaServer Pages and Message Driven Beans A Java EE web application must contain Java Server Faces and applets
JavaServer Faces are a replacement of JavaServer Pages are used as a facade for servlets and JavaServer Pages is an MVC based web framework is the new name of the Struts framework
Enterprise Java Beans (2 correct answers) may be deployed in a Java EE web container implement server side business components are used as a replacement of a relational database are necessary for the integration with enterprise services
Java Messaging Service (JMS) allows messages to participate in a distributed transaction enables the synchronous exchange of messages is necessary for sending and receiving e-mails is a non-standard Java EE feature of IBM WebSphere MQ
Java Management Extensions are used for static monitoring of applications control directly the execution of Enterprise Java Beans provide monitoring and timer services for Java EE applications provide additional security features for Java EE applications
22/03/2012
10.
The best way to access a database from a standard Java EE application is based on a dynamic lookup of a datasource via JPA (Java Persistence Architecture) using a JDBC DriverManager to optimize the connection to the database working with static SQL statements via SQLJ developing a customised persistency framework, based on JDBC type 1 drivers
Which quote illustrates best the support of web services in Java EE: Java EE application servers contain a specific web services container to interact with other web services Java EE provides the required XML APIs and tools in order to quickly and effectively design, develop, test and deploy web services The web services support is part of the Java SE, and as such is available in Java EE too. The Java EE server provides special deployment descriptors for web services
The use of a relational database in a Java EE environment is supported best by Bean Managed Persistent Enterprise Entity Beans POJO Entities with annotations and controlled by an implementation of the Java Persistence Architecture Container Managed Transactional beans with direct JDBC access POJO beans and the specification of SQL in the EJB deployment descriptor
The EJB specification architecture defines (2 correct answers) Client side security and encryption Distributed object components Relational database components Transactional components
What type of enterprise bean is used to embody application processing state information? javax.ejb.EnterpriseBean javax.ejb.MessageBean javax.ejb.SessionBean javax.ejb.EntityBean
22/03/2012
15.
A Java EE Enterprise Application Archive (EAR) contains typically client modules, web modules, EJB modules and resource adapters EJB modules and the associated deployment descriptors web modules and the associated deployment descriptors all the deployment descriptors for the enterprise modules
The Java Connector Architecture (JCA) defines the rules for exchanging messages between Java EE containers is based on the JDBC protocol for exchanging data specifies standard connectivity to EIS systems provides services for load balancing and data synchronisation
Web services can NOT be implemented for servlets JavaServer Pages Container Managed Persistence entities Message Driven Beans
Which quote about Java EE transaction management is NOT correct Java EE transaction management supports distributed transactions with 2-phase commit Java EE transaction management supports the Web services - Transaction specification Java EE transaction management supports the flat transaction model Java EE transaction management implies by default auto commit
Security in Java EE (2 correct answers) is provided by the Java EE containers requires the Java Authentication and Authorisation Service (JAAS) on the web tier is implemented as single sign-on feature, relying on an LDAP server is based on realms, users, groups and roles
22/03/2012
20.
Which pattern is NOT defined as a Java EE pattern (or Java EE blueprint) Business Delegate Decorator Service to Worker Data Access Object
22/03/2012
EVALUATION.
Here are the correct answers to all questions: 1. 2. 3. 4. 5. 6. 7. 8. 9. c b b ac ab c ab a c
10. a 11. b 12. b 13. b d 14. c 15. a 16. c 17. c 18. b 19. a d 20. b Give yourself 1 point for each correctly answered question (for questions with multiple solutions, this means that every correct answer should have been indicated). If your score is more than 80%, than this course is probably not useful for you any more. When you have a score between 50% and 80%, you already know some of the concepts, but you will still learn a lot in the Java EE Architecture course. When your score is less than 50%, we strongly suggest you to follow the Java EE Architecture course.
22/03/2012