#1 India's Top IT Training Institute

×

About Uncodemy

Know more about who we are and what we stand for.

About Us

About Us

Discover our mission to equip individuals with essential IT skills and industry expertise.

Read More →
UnCodeMy Gallery

UnCodeMy Gallery

Explore highlights from our IT training sessions and success stories.

Read More →
×

Free Resources

Learn, practice and plan your career — bilkul free.

Tutorials

Tutorials

Step-by-step written tutorials to learn any technology at your own pace.

Read More →
Free Counselling

Free Counselling

Book a free video counselling session and pick the right course for you.

Read More →
Online Compiler

Online Compiler

Write, run and test your code online — no setup required.

Read More →
⚡ FREE · INSTANT FEEDBACK

Spring Boot MCQ Quiz: 25 Questions for Java Back-End Roles

Check your Spring Boot basics, from @SpringBootApplication to JPA and Actuator.

  • 🍃 25 questions
  • 🧩 REST and JPA
  • 💡 Short explanations

How to use the Spring Boot MCQ Quiz

  1. 1. Choose the length10 random Spring Boot questions, or all 25.
  2. 2. AnswerTap an option. You see straight away whether it's right, with a one-line reason.
  3. 3. ReviewFinish to get your score and a list of every question with the correct answer.

Areas covered

  • Basics: what @SpringBootApplication combines, auto-configuration, starters and the embedded Tomcat server.
  • Configuration: application.properties, profiles and @Value.
  • Core: dependency injection, why constructor injection is preferred, and bean scopes.
  • REST: @RestController, @GetMapping, @RequestBody, ResponseEntity, @RestControllerAdvice and @Valid.
  • Data: JpaRepository, derived query methods, @Id, @Transactional, the N+1 problem and ddl-auto.
  • Operations, testing and security: Actuator, @SpringBootTest and what adding Spring Security does by default.

A sample question explained

What query does a repository method named findByEmailAndActive(String email, boolean active) create? Spring Data JPA reads the method name and builds WHERE email = ? AND active = ? for you; there is no SQL to write. Keywords like And, Or, Between, LessThan, Like, OrderBy and Top work the same way.

Another favourite is the N+1 query problem: loading 100 orders and then lazily loading each order's customer runs 101 queries. Interviewers ask about it because it is one of the most common causes of slow Spring apps, and it is fixed with a JOIN FETCH query or an entity graph. Each attempt shuffles the 25 questions and options, and the results show where you need more revision. Read each explanation even when you get a question right; it often adds a detail worth remembering.

Frequently asked questions

Which Spring Boot version is this for?

Spring Boot 3, which needs Java 17 or newer. Most answers also hold for Boot 2.

Do I need to know Hibernate?

A few questions touch JPA and Hibernate basics like entities, transactions and lazy loading.

Are these official questions?

No. Uncodemy wrote them to cover topics often asked in Java back-end interviews.

Is the Spring Boot MCQ quiz free to take?

Yes. The Spring Boot MCQ quiz lets you answer every question with no form. At your first score screen we ask for your name and WhatsApp number once; after that, the Spring Boot MCQ quiz and all other Uncodemy tools stay open.

More free tools

See all free tools