Business Tier Technologies Questions

Start course

In this course, we'll cover the basics of Enterprise JavaBeans (EJB) before moving on to explore the various components of the service. We'll round off the course with some example exam questions on business tier technologies.

Learning Objectives

  • Learn the basics of EJB
  • Learn about the various components of EJB:
    • Stateless session and stateful session beans
    • Singleton session beans
    • Message-driven beans

Intended Audience

This course is intended for anyone who already has basic knowledge of Java and now wants to learn about Java Enterprise Edition.


Basic knowledge of Java programming.


Hello. Now we have finished business tier technologies topic. Now, we will start to solve some questions about this topic to make more practice. Let's begin with the first question. One. The Serengeti Trading Company is starting to develop a new system that allows its participants residing anywhere in the world to buy and sell products in an auction style. The Serengeti's primary aim is to ensure that all participants are treated absolutely equal in all respects. This includes allocating resources to each participant, so they do not affect each other. The Serengeti has enough funds to procure whatever it takes in the tech budget to achieve its goal. Which of the options and solutions would you recommend?

A, stateless session bean (SLSB). B, message driven beans (MDB). C, BMP entity beans. D, Stateful session beans (SFSB). Answer, D. Two. An example application needs to read messages from a JMS queue, call a web service using the data provided in the message and pass the data from the web service feedback in a database table.

For this, what kind of EJB should you use? A, message driven bean(MDB). B, stateful session bean (SFSB). C, stateless session bean(SLSB). D, entity class. Answer, A. 3. If you are going to follow best practices and best practices for the Java EE architecture, where would you place the business rules and usability accordingly? A, Java servlets. B, enterprise beans(EJB). C, JAX-WS web services. D, JAX-RS web services. Answer, B. 4. Which of the following options would you recommend for the logic of operation for a highly accessible complex transaction system? A. Use JPA. B, use a web centric architecture. C, use stateful session beans. D, use session beans with JPA. Answer, D. 5. If you are designing an application that will be used by a large number of users, which of the following types of EJBs should you avoid as much as possible? A, stateful session bean (SFSB). B, stateless session bean (SLSB.) C, message driven bean (MDB). D, entity bean. Answer, A. 6. ABC Corp is a small B2C reverse auction online business.

You have been asked to recommend a persistent strategy for their new platform with a greenfield, i.e, no existing code or database schema project. The top priorities are ease of development and integration with the EJB 3. What would you recommend on this subject? A, JDBC. B, CMP entity beans. C, BMP entity beans. D, JPA. Answer, D. 7. Which of the following is not considered a benefit of JPA persistence technology? A, callable outside of the EJB container. B, utilizes POJOs. C, works with NoSQL data sources. D, eliminates JNDI lookups. Answer, C. 8. Which of the following options is not considered a benefit of CMP persistence technology? A, it takes less time to develop than others. B, container generates SQL. C, can be switched to JPA later on. D, deeper knowledge of SQL is required. Answer, D. 9. You have been commissioned to advise a company with a view to making some of its existing EJB based business functions available to external customers for a fast-approaching short term. What advice would you give if security is not taken into account? A, create a Java servlet that calls EJB. B, create a JSP that calls EJB. C, expose an existing EJB as a web service. D, create a JAX-WS web service that calls EJB. Answer, C. 10. Which of the following options is a disadvantage of calling web services from an EJB component? A, it is against the preferred architectural approach. B, it increases the validity of the data. C, increased productivity. D, increased security. Answer, A.

11. An existing application heavily uses EJB 2.0 CMP asset kernels. The app has no major issues in production and little development is planned for the future. You were asked to recommend a method to adopt when making minor changes to the application. What would you recommend on this subject? A. JPA entity classes. B, CMP entity beans. C, use DAO accessing JDBC directly. D, BMP entity beans. Answer, B. 12. You are responsible for architecting a new Java EE application that executes data represented in Java objects in a relational database. Which of the following options would you recommend? A, use DAO accessing JDBC directly. B, JPA entity classes. C, BMP entity beans. D, CMP entity beans. Answer, B.


About the Author
Learning Paths

OAK Academy is made up of tech experts who have been in the sector for years and years and are deeply rooted in the tech world. They specialize in critical areas like cybersecurity, coding, IT, game development, app monetization, and mobile development.

Covered Topics