Back to programming Quizzes

Spring Boot Quiz (Advanced)

This advanced Spring Boot quiz targets experienced developers and senior interview preparation. It focuses on deep internals, performance tuning, transactions, security, auto-configuration, and real-world production scenarios.

15
Questions
~8
Minutes
8
Min Limit

Try a few sample questions

The question bank contains 47 questions. Your scored round uses up to 15 different questions. These samples are excluded from your round; try each one before opening its answer and explanation.

1. Why does self-invocation break @Transactional behavior in Spring Boot?

  1. Transaction manager fails
  2. Proxy is bypassed
  3. Bean is not loaded
  4. Database connection closes
Reveal sample answer and explanation

Answer: Proxy is bypassed

Self-invocation bypasses the Spring proxy, so transactions are not applied.

2. Which transaction propagation always starts a new transaction?

  1. REQUIRED
  2. SUPPORTS
  3. MANDATORY
  4. REQUIRES_NEW
Reveal sample answer and explanation

Answer: REQUIRES_NEW

REQUIRES_NEW suspends the existing transaction and starts a new one.

3. Why is @Transactional ineffective on private methods?

  1. Annotation ignored
  2. Compilation issue
  3. Proxy cannot intercept private methods
  4. Bean not created
Reveal sample answer and explanation

Answer: Proxy cannot intercept private methods

Spring proxies cannot intercept private methods.