21 Data & JPA questions from the Spring bank, written for Indian campus drives and tech interviews. Every question has a verified answer and an AI-tutor explanation on placd.
Free to start: the 2-minute IT readiness check — six questions and a result.
A.the abstraction that generates persistence implementations from repository interfaces, reducing boilerplate data code
B.an annotation marking a class as a persistent domain object mapped to a database table
C.a repository method whose database lookup is generated automatically by parsing its name, such as findByLastName
D.a transaction setting that suspends any existing transaction and always starts a fresh independent one
Answer + AI explanation with Pro
2. Which term means: "the abstraction that generates persistence implementations from repository interfaces, reducing boilerplate data code"?
Junior
A.Propagation.REQUIRES_NEW
B.Spring Data JPA
C.@Query
D.Derived query method
Answer + AI explanation with Pro
3. Which statement is correct?
Junior
A.Spring Data JPA — an annotation letting you attach a custom JPQL or native statement to a repository method
B.Spring Data JPA — a transaction setting that suspends any existing transaction and always starts a fresh independent one
C.Spring Data JPA — an annotation that wraps a method in a database transaction, committing on success and rolling back on runtime errors
D.Spring Data JPA — the abstraction that generates persistence implementations from repository interfaces, reducing boilerplate data code
Answer + AI explanation with Pro
4. What is JpaRepository?
Mid
A.a transaction setting that suspends any existing transaction and always starts a fresh independent one
B.the interface you extend to inherit ready-made CRUD, paging, and sorting operations for an entity
C.an annotation that wraps a method in a database transaction, committing on success and rolling back on runtime errors
D.an annotation marking a class as a persistent domain object mapped to a database table
Answer + AI explanation with Pro
5. Which term means: "the interface you extend to inherit ready-made CRUD, paging, and sorting operations for an entity"?
Mid
A.JpaRepository
B.@Query
C.Derived query method
D.Propagation.REQUIRES_NEW
Answer + AI explanation with Pro
6. Which statement is correct?
Mid
A.JpaRepository — a repository method whose database lookup is generated automatically by parsing its name, such as findByLastName
B.JpaRepository — an annotation marking a class as a persistent domain object mapped to a database table
C.JpaRepository — an annotation letting you attach a custom JPQL or native statement to a repository method
D.JpaRepository — the interface you extend to inherit ready-made CRUD, paging, and sorting operations for an entity
Answer + AI explanation with Pro
7. What is @Entity?
Junior
A.the abstraction that generates persistence implementations from repository interfaces, reducing boilerplate data code
B.a transaction setting that suspends any existing transaction and always starts a fresh independent one
C.an annotation marking a class as a persistent domain object mapped to a database table
D.an annotation that wraps a method in a database transaction, committing on success and rolling back on runtime errors
Answer + AI explanation with Pro
8. Which term means: "an annotation marking a class as a persistent domain object mapped to a database table"?
Junior
A.JpaRepository
B.@Entity
C.Spring Data JPA
D.@Transactional
Answer + AI explanation with Pro
9. Which statement is correct?
Junior
A.@Entity — an annotation that wraps a method in a database transaction, committing on success and rolling back on runtime errors
B.@Entity — a transaction setting that suspends any existing transaction and always starts a fresh independent one
C.@Entity — an annotation marking a class as a persistent domain object mapped to a database table
D.@Entity — the abstraction that generates persistence implementations from repository interfaces, reducing boilerplate data code
Answer + AI explanation with Pro
10. What is Derived query method?
Mid
A.the abstraction that generates persistence implementations from repository interfaces, reducing boilerplate data code
B.a repository method whose database lookup is generated automatically by parsing its name, such as findByLastName
C.an annotation letting you attach a custom JPQL or native statement to a repository method
D.a transaction setting that suspends any existing transaction and always starts a fresh independent one
Answer + AI explanation with Pro
11. Which term means: "a repository method whose database lookup is generated automatically by parsing its name, such as findByLastName"?
Mid
A.@Query
B.Derived query method
C.@Transactional
D.Propagation.REQUIRES_NEW
Answer + AI explanation with Pro
12. Which statement is correct?
Mid
A.Derived query method — an annotation marking a class as a persistent domain object mapped to a database table
B.Derived query method — an annotation letting you attach a custom JPQL or native statement to a repository method
C.Derived query method — a repository method whose database lookup is generated automatically by parsing its name, such as findByLastName
D.Derived query method — a transaction setting that suspends any existing transaction and always starts a fresh independent one
Answer + AI explanation with Pro
13. What is @Query?
Mid
A.the abstraction that generates persistence implementations from repository interfaces, reducing boilerplate data code
B.a transaction setting that suspends any existing transaction and always starts a fresh independent one
C.an annotation that wraps a method in a database transaction, committing on success and rolling back on runtime errors
D.an annotation letting you attach a custom JPQL or native statement to a repository method
Answer + AI explanation with Pro
14. Which term means: "an annotation letting you attach a custom JPQL or native statement to a repository method"?
Mid
A.JpaRepository
B.@Query
C.Spring Data JPA
D.Derived query method
Answer + AI explanation with Pro
15. Which statement is correct?
Mid
A.@Query — a repository method whose database lookup is generated automatically by parsing its name, such as findByLastName
B.@Query — the interface you extend to inherit ready-made CRUD, paging, and sorting operations for an entity
C.@Query — an annotation letting you attach a custom JPQL or native statement to a repository method
D.@Query — an annotation that wraps a method in a database transaction, committing on success and rolling back on runtime errors
Answer + AI explanation with Pro
16. What is @Transactional?
Mid
A.an annotation that wraps a method in a database transaction, committing on success and rolling back on runtime errors
B.an annotation marking a class as a persistent domain object mapped to a database table
C.a repository method whose database lookup is generated automatically by parsing its name, such as findByLastName
D.a transaction setting that suspends any existing transaction and always starts a fresh independent one
Answer + AI explanation with Pro
17. Which term means: "an annotation that wraps a method in a database transaction, committing on success and rolling back on runtime errors"?
Mid
A.Propagation.REQUIRES_NEW
B.@Query
C.Spring Data JPA
D.@Transactional
Answer + AI explanation with Pro
18. Which statement is correct?
Mid
A.@Transactional — a transaction setting that suspends any existing transaction and always starts a fresh independent one
B.@Transactional — an annotation that wraps a method in a database transaction, committing on success and rolling back on runtime errors
C.@Transactional — an annotation marking a class as a persistent domain object mapped to a database table
D.@Transactional — an annotation letting you attach a custom JPQL or native statement to a repository method
Answer + AI explanation with Pro
19. What is Propagation.REQUIRES_NEW?
Senior
A.a repository method whose database lookup is generated automatically by parsing its name, such as findByLastName
B.an annotation that wraps a method in a database transaction, committing on success and rolling back on runtime errors
C.an annotation letting you attach a custom JPQL or native statement to a repository method
D.a transaction setting that suspends any existing transaction and always starts a fresh independent one
Answer + AI explanation with Pro
20. Which term means: "a transaction setting that suspends any existing transaction and always starts a fresh independent one"?
Senior
A.JpaRepository
B.@Query
C.Derived query method
D.Propagation.REQUIRES_NEW
Answer + AI explanation with Pro
21. Which statement is correct?
Senior
A.Propagation.REQUIRES_NEW — an annotation that wraps a method in a database transaction, committing on success and rolling back on runtime errors
B.Propagation.REQUIRES_NEW — a repository method whose database lookup is generated automatically by parsing its name, such as findByLastName
C.Propagation.REQUIRES_NEW — a transaction setting that suspends any existing transaction and always starts a fresh independent one
D.Propagation.REQUIRES_NEW — the abstraction that generates persistence implementations from repository interfaces, reducing boilerplate data code
Answer + AI explanation with Pro
Free to start
Start with a free readiness check
Sign up free for the 2-minute IT readiness check and a scored result. Answers, explanations and the AI tutor on every Data & JPA question come with Pro.