Exam Code : 000-137
Exam Name: Advanced Rational Application Developer v7QUESTION NO: 1
What is best practice when designing a data-intensive EJB application?
A. set the values of Entity EJBs by passing them a Data Transfer object containing the necessary
B. provide major Entity EJBs with a remote interface and relate other Entity EJBs to them via
Container Managed Relations (CMR)
C. provide all Entity EJBs with a local interface only and perform all remote access through
D. encapsulate frequently accessed read-only data in an Entity EJB for efficient caching
QUESTION NO: 2
The embedded Apache Derby database makes development easier. However, it has one severe
limitation that prevents its use in production environments. What is this limitation?
A. Connection pooling is disallowed and results in degraded performance.
B. It provides a reduced data type set without the ability to define BLOB (Binary Large Object) or
CLOB (Character Large Object) columns types.
C. It provides only English language support.
D. It allows only one application to access the database to create a connection.
E. The use of the JDBC drivers is proprietary and requires a for purchase license.
QUESTION NO: 3
During the development process, a programmer selects an EJB project containing entity beans
and selects Prepare For Deployment. Which action does this operation perform?
A. updates the deployment descriptor with a reference to the EJB JAR
B. generates the helper classes to map entity beans to the database
C. generates the EJB JAR file and includes it in the associated enterprise application project
D. guides the user through a wizard interface to determine the mapping between the fields in the
entity bean and their associated database fields
QUESTION NO: 4
A developer is building an application where the home page will have links displayed for
administrators, which will not be available for regular users of the application. Otherwise, the home
page is identical for administrators and regular users. A J2EE role-based security pattern is being
implemented with one role for users and one role for staff. What is the BEST way to display
different versions of the home page?
A. You map the two roles to different JSPs for the home page, where one includes the extra links
(for administrators) and the other does not (forusers).
B. It is not possible to display different versions of the same page for users who have different
C. You apply declarative security to the body of the JSP where the links that are only available to
the administrators are declared to be accessibleonly to that role.
D. You implement the links using a J2EE custom library, which contains a call to isUserInRole() on
the HttpServletRequest to see if the link shouldbe displayed or not.
QUESTION NO: 5
In JSP, custom tag libraries can be used to _____.
A. enable better searching in a Web application
B. package tag extensions for JSP
C. package JSPs for exporting to other projects
D. package tag extensions for JSF
QUESTION NO: 6
Using the EJB Timer Service, how does an EJB container execute business logic once a timer has
A. It calls the bean ejbTimeout() method and passes the expired timer.It calls the bean?
ejbTimeout() method and passes the expired timer.
B. It calls the method registered by the bean when the TimerService created the Timer.
C. It calls the timer getHandle() method.It calls the timer? getHandle() method.
D. It calls the timer transaction commit() method.It calls the timer transaction? commit() method.