OCM Java® EE 6 Enterprise Architect Exam Guide: (Exams 1Z0-807, 1Z0-865 & 1Z0-866) by Allen Paul R. & Bambara Joseph J

OCM Java® EE 6 Enterprise Architect Exam Guide: (Exams 1Z0-807, 1Z0-865 & 1Z0-866) by Allen Paul R. & Bambara Joseph J

Author:Allen, Paul R. & Bambara, Joseph J.
Language: eng
Format: epub
Tags: -
Publisher: McGraw-Hill Education
Published: 2014-07-03T16:00:00+00:00


SELF TEST

The following questions will help you measure your understanding of the material presented in this chapter. Read all the choices carefully because there may be more than one correct answer. Choose all correct answers for each question.

Identify the Correct EJB Technology to Apply for a Given Scenario, Including Entity Classes, Session Beans, Message-Driven Beans, Timers, Interceptors, and POJOs

 1.  Serengeti Trading Company is starting to develop a new system that enables its participants, who reside anywhere around the world, to buy and sell items in an open auction fashion. Serengeti has a primary goal to ensure that all participants are treated absolutely equally in all respects; this includes dedicating resources to each participant so that they do not impact each other. Serengeti has sufficient funding to procure whatever is needed on the technology budget to achieve its goal. Which one of the following solutions do you recommend?

A. Stateless session beans (SLSB)

B. Stateful session beans (SFSB)

C. Message-driven beans (MDB)

D. BMP entity beans

 2.  An application needs to read messages from a JMS queue, call a web service using data provided within the message, and persist data from the web service response in a database table. Which type of EJB will you use?

A. Stateful session bean (SFSB)

B. Stateless session bean (SLSB)

C. Message-driven bean (MDB)

D. Entity class

 3.  If you are to follow the best practice for Java EE architecture, where would you place business rules and functionality?

A. Java servlets

B. Enterprise beans (EJB)

C. JAX-RS Web Services

D. JAX-WS Web Services

 4.  Which of the following would you recommend for business logic for a highly available, complex transactional system?

A. Use session beans with JPA

B. Use JPA

C. Use a web-centric architecture

D. Use stateful session beans

 5.  Which of the following EJB types should be avoided where possible if you are architecting an application for use by a very high number of users?

A. Entity bean

B. Message-driven bean (MDB)

C. Stateful session bean (SFSB)

D. Stateless session bean (SLSB)



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.