B . If an embedded database is on the classpath, it will be used to configure a DataSource by default. This is true because the @DataJpaTest annotation enables auto-configuration of an embedded database if one is available on the classpath, such as H2, HSQLDB, or Derby. This allows the test to run with a temporary and isolated database that can be configured with test data. D . It auto-configures a TestEntityManager bean. This is true because the @DataJpaTest annotation provides a TestEntityManager bean that can be used to perform common JPA operations in the test. The TestEntityManager is an alternative to the standard EntityManager that provides some convenience methods and exception translation. Reference: https://docs.spring.io/springboot/docs/current/api/org/springframework/boot/test/autoconfigure/ orm/jpa/DataJpaTest.html