Bookmark this page

Quiz: Data Sources

Data Sources

Based on the previous lecture, choose the correct answer to the following questions:


  1. 1.

    Which validation method, by default, causes the largest strain on the database load? (Choose one)

    A

    validate-on-match

    B

    background-validation

  2. 2.

    Which items listed are required for creating a data source? (Choose two)

    A

    Installing the relevant JDBC Driver.

    B

    Configuring connection validation.

    C

    Defining the data source in the EAP configuration file.

    D

    Adjusting the size of the connection pool.

  3. 3.

    Which term describes a feature that a Jakarta EE application server provides to open multiple database connections? (Choose one)

    A

    Datasource

    B

    JDBC

    C

    Database Connection Pool

    D

    JNDI

  4. 4.

    Which Java API is responsible for defining names to a data source? (Choose one)

    A

    JDBC

    B

    JNDI

    C

    JBDS

    D

    JPA

  5. 5.

    Which statements describe advantages for using a connection pool? (Choose three)

    A

    It provides a simple naming convention for accessing the database.

    B

    Connection pools improve performance by maintaining a pool of available connections, avoiding creating a physical connection each time.

    C

    The size of the connection pool is customizable to maximize the database efficiency for each data source.

    D

    Verifying the database connections can be accomplished either in the background or when the connection pool returns a connection.

    E

    Connection pools protect secure connection credentials.

Revision: ad248-7.4-18a9db2