MockCertMockCert
Menu

Broadcom conceptsSpring Professional DevelopData management

2V0-72.22 data management: what the exam tests

What the Spring Professional Develop exam asks about data management: JdbcTemplate, @Transactional rollback and propagation, and Spring Data JPA.

By MockCert EditorialPublished Nov 13, 2026

3 min read

JdbcTemplate logs all the SQL it issues at DEBUG level. And a data JPA test rolls back at the end of each test by default.

01 What does the exam test about data management?

It is the night before a mock exam, and your data access notes blur JDBC, transactions and JPA into one page. Pull them apart, because the exam asks about each one separately.

You need plain JDBC through JdbcTemplate, transactions through @Transactional, and JPA through Spring Boot and Spring Data.

What each data management objective asks

  1. 2.1 JDBC with JdbcTemplateWhich template method fits a statement, and how JDBC exceptions are translated.
  2. 2.2 TransactionsHow the transactional proxy works, the default propagation, and which exceptions roll back.
  3. 2.3 Spring Boot and Spring Data JPAWhat the JPA starter sets up, how repositories build queries, and how JPA tests behave.
Each objective has its own defaults, so learn them one at a time.

Study JdbcTemplate, @Transactional and Spring Data JPA as separate skills, each with its own defaults.

02 What should you know about JdbcTemplate?

Start with JDBC. JdbcTemplate creates and releases resources for you, which helps you avoid forgetting to close a connection. Use update(..) for inserts, updates and deletes, and execute(..) for arbitrary SQL such as DDL.

Its entry points throw DataAccessException rather than SQLException.

Expect to match a statement to its JdbcTemplate method and to name the exception it throws.

03 Which transaction defaults catch candidates out?

Transactions wrap that data access. Spring applies them through AOP proxies driven by XML or annotation metadata. In proxy mode, the default, a call from one method to another in the same object gets no transaction.

What rolls back a @Transactional method by default

Rolls back

  • Any RuntimeException
  • Any Error

Does not roll back

  • Any checked exception
A checked exception commits unless you change the default.

The default propagation is PROPAGATION_REQUIRED.

Memorize self-invocation, the rollback defaults and the default propagation.

04 What does Spring Boot set up for JPA?

With transactions in place, JPA is the last layer. The spring-boot-starter-data-jpa starter brings in Hibernate and the HikariCP connection pool. Entity scanning replaces persistence.xml.

Spring Data JPA repositories are interfaces, and their queries come from method names. In tests, @DataJpaTest scans entities and configures repositories. Then check yourself with quizzes on each objective before your next mock exam.

Know what the JPA starter configures and what @DataJpaTest does by default.

Summary

  1. JdbcTemplate manages resources and throws DataAccessException, not SQLException.
  2. @Transactional works through proxies, so self-invocation gets no transaction.
  3. By default, checked exceptions do not roll back a transaction.
  4. The JPA starter brings Hibernate and HikariCP, and repositories derive queries from method names.

Sources

  1. Using the JDBC Core Classes to Control Basic JDBC Processing and Error Handling :: Spring Framework (opens in a new tab)
  2. Understanding the Spring Framework’s Declarative Transaction Implementation :: Spring Framework (opens in a new tab)
  3. Using @Transactional :: Spring Framework (opens in a new tab)
  4. SQL Databases :: Spring Boot (opens in a new tab)
  5. Testing Spring Boot Applications :: Spring Boot (opens in a new tab)