Self-Test Java EE Architecture

Download as pdf or txt
Download as pdf or txt
You are on page 1of 8

Self-test Java EE Architecture

Document: e1218test.fm 22/03/2012

ABIS Training & Consulting P.O. Box 220 B-3000 Leuven Belgium

TRAINING & CONSULTING

INTRODUCTION SELF-TEST JAVA EE ARCHITECTURE


The following questionnaire might help to check your personal knowledge of the various topics discussed in the Java EE architecture course. In this Java EE test, 20 questions are asked. For most questions, there is only one answer possible. If multiple answers are possible, it will be clearly indicated. The question is answered correctly, if and only if all correct answers are given. There are no real trick questions (at least not intentional) but read question and answer attentively. You must take into account that this test will take you about 15 minutes. You can find the right answers and guidelines for the evaluation at the end of this document. Note: The questions are based on the Java EE 6 specification.

22/03/2012

Self-test Java EE Architecture

QUESTIONS SELF-TEST JAVA EE ARCHITECTURE


1. Java EE, the Java Enterprise Edition, is an improved version of the Java Standard Edition for business professionals a development environment, designed for creating enterprise applications a platform for enterprise class level, distributed applications a replacement of the Java Virtual Machine for running internet applications O (a) O (b) O (c) O (d) 2.

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

O (a) O (b) O (c) O (d)

4.

Which elements are not part of the Java EE specification (2 answers) applets Java Mail portlets Unified Expression Language

[_] [a] [_] [b] [_] [c] [_] [d] 5.

Which of the following descriptions of a Java EE web application are correct (2 correct

22/03/2012

Self-test Java EE Architecture

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

O (a) O (b) O (c) O (d) 7.

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

[_] [a] [_] [b] [_] [c] [_] [d] 8.

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

O (a) O (b) O (c) O (d) 9.

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

O (a) O (b) O (c) O (d)

22/03/2012

Self-test Java EE Architecture

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

O (a) O (b) O (c) O (d) 11.

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

O (a) O (b) O (c) O (d) 12.

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

O (a) O (b) O (c) O (d) 13.

The EJB specification architecture defines (2 correct answers) Client side security and encryption Distributed object components Relational database components Transactional components

[_] [a] [_] [b] [_] [c] [_] [d] 14.

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

O (a) O (b) O (c) O (d)

22/03/2012

Self-test Java EE Architecture

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

O (a) O (b) O (c) O (d) 16.

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

O (a) O (b) O (c) O (d) 17.

Web services can NOT be implemented for servlets JavaServer Pages Container Managed Persistence entities Message Driven Beans

O (a) O (b) O (c) O (d) 18.

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

O (a) O (b) O (c) O (d) 19.

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

[_] [a] [_] [b] [_] [c] [_] [d]

22/03/2012

Self-test Java EE Architecture

20.

Which pattern is NOT defined as a Java EE pattern (or Java EE blueprint) Business Delegate Decorator Service to Worker Data Access Object

O (a) O (b) O (c) O (d)

22/03/2012

Self-test Java EE Architecture

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

Self-test Java EE Architecture

You might also like