Coffee Cram: Mock Exam Answers

  1. Which are features every EJB 2.0 container must implement or support? (Choose all that apply.)

    (spec: 30)

    A.

    A GUI bean deployment utility.

    - it doesn’t have to be GUI

    B.

    Synchronous invocation for all bean types.

    - MDBs cannot be synchronous

    C.

    Transaction support for all bean types.

    D.

    Remote client views for all bean types.

    - MDBs do not have client views

    E.

    JNDI 1.2 namespace.

  2. Which are guaranteed capabilities of EJB 2.0? (Choose all that apply.)

    A.

    Local home interfaces for message-driven beans.

    - MDBs don’t have clients

    B.

    Dirty detection mechanisms to reduce memory footprints.

    - nice, but not guaranteed

    C.

    Run-as security identity functionality.

    D.

    The JDBC 2.0 extension.

    E.

    Session bean failover.

    - maybe available, but not guaranteed

  3. Which are features in EJB 2.0? (Choose all that apply.)

    (spec: 25-26)

    A.

    Portable finder query syntax.

    B.

    Container managed persistence.

    C.

    Local interfaces for session beans.

    D.

    XML based deployment descriptors.

    E.

    Synchronous message-driven beans.

    - MDBs are always asynchronous

Get Head First EJB now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.