Spring Boot Embedded Servers - Tomcat, Jetty, Undertow

    Question 1CORE SPRING BOOT - Purpose of Embedded Servers

    What is the main advantage of using embedded servers in Spring Boot?

    Question 2CORE SPRING BOOT - Default Embedded Server

    Which embedded server does Spring Boot use by default in a web application?

    Question 3CORE SPRING BOOT - Switching Embedded Servers

    How can you switch the embedded server from Tomcat to Jetty or Undertow?

    Question 4CORE SPRING BOOT - Embedded Server Ports

    Which property is used to configure the port of an embedded server in Spring Boot?

    Question 5CORE SPRING BOOT - Code Snippet (Custom Port)

    What port will the embedded Tomcat server run on with the following configuration?

    server: port: 9090

    Question 6CORE SPRING BOOT - Code Snippet (Embedded Server Selection)

    Which server will Spring Boot use when this dependency is included?

    <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-undertow</artifactId> </dependency>

    Question 7CORE SPRING BOOT - Code Snippet (Context Path)

    What is the base URL for the application with the following configuration?

    server: port: 8081 servlet: context-path: /api

    Question 8CORE SPRING BOOT - Embedded Server Threads

    Which of the following is true regarding embedded server thread configuration in Spring Boot?

    Question 9CORE SPRING BOOT - Advantages of Undertow

    Which of the following is an advantage of using Undertow as an embedded server?

    Question 10CORE SPRING BOOT - Best Practices for Embedded Servers

    Which of the following is a best practice when using embedded servers in Spring Boot?