EJB Architecture  «Prev  Next»

Containers, Servers, Deployment, and Transactions - Quiz

1. In Jakarta EE 11, which component is responsible for managing the lifecycle of a CDI managed bean?
Please select the best answer.
  A. The developer, by explicitly calling new() in application code
  B. The Jakarta EE container
  C. The client stub
  D. The deployment descriptor

2. In Jakarta EE 11, which annotations can be used to define transaction behavior on a CDI bean method?
Please select all the correct answers.
  A. @Transactional
  B. @TransactionAttribute
  C. @ApplicationScoped
  D. @RolesAllowed

3. Which of the following statements about deployment in Jakarta EE 11 are correct?
Please select all the correct answers.
  A. beans.xml is required in every CDI archive
  B. Jakarta EE 11 supports annotation-based configuration without deployment descriptors
  C. Stubs and skeletons must be manually generated before deployment
  D. CDI bean discovery can be configured via the bean-discovery-mode attribute