VMware vRealize Automation 8.x (2022) — Question 76
Which two statements are true about Spring Boot and Spring Data JPA? (Choose two.)
Answer options
- A. @EntityScan and spring.jpa.* properties can be used to customize Spring Data JPA.
- B. Any kind of Hibernate property can be passed to Spring Data JPA like spring.jpa.properties.xxx.
- C. Spring Data JPA is the only implementation for relational databases.
- D. Scanning of JPA Entities can not be customized, the whole classpath is scanned.
- E. Embedded Databases (H2, HSQLDB, Derby) are not re-created during the startup.
Correct answer: A, B
Explanation
Option A is correct because @EntityScan and spring.jpa.* properties allow for customization of entity scanning and JPA settings. Option B is also correct as it indicates that Hibernate properties can be configured via Spring Data JPA. Options C, D, and E are incorrect; Spring Data JPA is not the only implementation for relational databases, entity scanning can be customized, and embedded databases can be re-created during startup under certain configurations.