1.
Which among these is not an applications server provided by Spring Boot?
Correct Answer
D. Binary link
Explanation
The options provided in the question are all application servers that can be used with Spring Boot. However, "Binary link" is not an application server provided by Spring Boot. It is likely an incorrect option that was mistakenly included in the question.
2.
Does Spring Boot in any way reduce the need to write lots of configuration?
Correct Answer
A. Yes
Explanation
Spring Boot reduces the need to write lots of configurations by providing a convention-over-configuration approach. It comes with sensible defaults and auto-configuration, which means that developers don't have to manually configure every aspect of their application. Spring Boot also includes a wide range of starter dependencies that automatically configure common libraries and frameworks, further reducing the need for manual configuration. This allows developers to focus more on writing business logic and less on boilerplate configuration code.
3.
Why is it possible to get started with minimum effort on Spring Boot?
Correct Answer
C. Because it has an opinionated view on Spring platform.
Explanation
Spring Boot is designed to have an opinionated view on the Spring platform, which means it provides default configurations and sensible defaults, reducing the amount of code and configuration needed to get started. This allows developers to quickly start building applications with minimum effort, as they don't have to spend time manually configuring and setting up the Spring framework.
4.
Which among these does Spring Boot not provide?
Correct Answer
B. Equalizer
Explanation
Spring Boot provides many features to simplify the development of Java applications. It offers externalized configuration, which allows developers to configure their applications using external properties files. It also provides health checks, which can be used to monitor the health of the application. Additionally, Spring Boot offers metrics, which can be used to collect and analyze data about the application's performance. However, Spring Boot does not provide an equalizer feature.
5.
The auto-configuration chooses what to create based on the availability of what?
Correct Answer
C. Beans
Explanation
The auto-configuration chooses what to create based on the availability of beans.
6.
Which is a peculiar quality of the Spring Boot platform?
Correct Answer
B. It is micro-service ready.
Explanation
The peculiar quality of the Spring Boot platform is that it is micro-service ready. This means that it is designed to easily build and deploy microservices, which are small, independent, and loosely coupled components that work together to form a larger application. The platform provides features and tools that simplify the development, configuration, and deployment of microservices, making it a popular choice for building scalable and modular applications.
7.
Which of these is not true of Spring Boot?
Correct Answer
A. It is invasive.
Explanation
Spring Boot is not invasive. In fact, it is known for its non-invasive nature. Spring Boot simplifies Spring dependencies, allowing developers to build applications with less code. It also provides the ability to run applications straight from a command line. However, it does not impose any invasive behavior on the application.
8.
Does Spring Boot require XML Configuration to function?
Correct Answer
B. No
Explanation
Spring Boot does not require XML configuration to function. It is designed to be a convention-over-configuration framework, which means that it provides sensible defaults and auto-configurations based on the dependencies present in the project. This allows developers to quickly set up and run applications without the need for XML configuration files. Instead, Spring Boot uses annotations and properties files to configure the application.
9.
Does Spring Boot favor Configuration over Convention?
Correct Answer
B. No
Explanation
Spring Boot does not favor configuration over convention. In fact, it follows the convention over configuration principle, which means that it provides sensible defaults and auto-configuration options based on conventions. This allows developers to get started quickly without having to spend a lot of time on configuration. However, Spring Boot also provides flexibility and allows for configuration when needed. Therefore, the correct answer is No.
10.
Which of these is not true of Spring Boot?
Correct Answer
C. No starter POMs
Explanation
Spring Boot does not require starter POMs. Starter POMs are a feature of Spring Boot that provides a simplified way to include dependencies in a project. They are pre-configured with the necessary dependencies and configurations to quickly start a specific type of application. Since Spring Boot does not require starter POMs, it means that developers have the flexibility to manually include dependencies and configure their projects according to their specific needs.