Are you a candidate looking to sharpen your skills? Try our practice tests or view sample interview questions & Get hired by the best. Click Here×

Online Spring Boot Test

Topics Covered

  • Spring Boot Annotations
  • Spring Boot Concepts
  • Working with DevTools
  • Spring Boot Scripts
  • Spring Boot Dependencies
  • Spring Security
  • Spring Boot Configuration

Useful for hiring

  • Spring Boot Developer
  • Senior Java J2EE Developer
  • Full Stack Developer- Spring Boot

Start hiring job-fit candidates using this assessment

GET A DEMO

"Finding quality talent is a challenge more so when you consider the sheer number of resumes we get each year. To top this, the time we spent on our recruitment process was humongous. Interview Mocha helped us to cut down on our candidate filtration time by 40%, making it our preferred assessment tool."

Pedro Furtado, Altran,
Capacity Manager
Question

One of the benefits of DevTools is the automatic reboot. Each file created in the directories that are part of your classpath will be monitored and any changes to them will result in a reboot of Spring Boot.

Based on that, what directories are monitored by DevTools?

Answer
    • ${PROJECT}/src/main/webapp
      ${PROJECT/src/resources

    • ${PROJECT}/src/main/java
      ${PROJECT/src/main/resources

    • ${PROJECT}/src/main/java/resources
      ${PROJECT/src/main/WEB-INF

    • ${PROJECT}/src/main/META-INF
      ${PROJECT/src/main/java/resources

Question

To create a new project using Spring Boot just go to https://start.spring.io/ and in the "dependencies" field, just add "Web". By doing this, a new project ready to run will already be created with all the dependencies we need to run the application. When we want to create methods that represent endpoints in Spring, we need to create a Rest Controller.

Based on this 3 annotations should be declared in the main class of the project. Which of the following represents these annotations correctly?

Answer
    • SpringBootApplication
      RestController
      EnableAutoConfiguration

    • SpringApplication
      EnableRestController
      EnableAutoConfig

    • SpringBootConfig
      Controller
      AutoConfiguration

    • SpringBootConfiguration
      EnableRestControllerConfig
      EnableAutoConfig

Question

Which of the following is not part of the concepts related to Spring Boot technology?

Answer
    • Spring Boot is based on Microservices architecture, with it, you can easily create complete applications with minimal effort since its convention-based philosophy eliminates the need for most configurations.

    • The use of xml for configuring a project with Spring Boot is almost minimal. In addition, Spring Boot has an embedded version of Tomcat.

    • Each project created with Spring Boot has a main class with a method that tells Spring Boot to start the application using the settings contained in it.

    • The type of packaging allowed in the Spring Boot is only of the type war. Any other type of declared packaging in the pom.xml file will result in project compilation errors.

Good News! You can customize this test as per your requirement

  • Choose and add questions from Interview Mocha question libraries

  • Add your own set of questions

  • Customize test settings like duration, number of questions, passing score, web proctoring and much more

  • Mail us at support@interviewmocha.com to create a custom test

Looking for a tailor-made test, to suit your assessment needs?

Get in touch

Global companies using Mocha assessments

  • altran
  • credit suisse
  • sephora
  • nielsen
  • capgemini
  • akamai

How Mocha assessments are brewed

Speed up your IT recruitment with Interview Mocha

  • 500+ IT skill tests
  • 20+ coding languages
  • 50+ domain knowledge tests
  • 100+ digital 2.0 skill tests
  • Customer focus aptitude tests
  • Enterprise ready features & more...
GET A DEMO

Why hiring managers and recruiters across the globe love Interview Mocha

Take your first step to hire job fit candidates

GET A DEMO