Exam 2v0-7222 All QuestionsBrowse all questions from this exam
Question 6

Which two statements are true regarding a Spring Boot-based Spring MVC application? (Choose two.)

    Correct Answer: A, C

    In a Spring Boot-based Spring MVC application, the default embedded servlet container can be replaced with Undertow. This is achieved by configuring the project dependencies accordingly. Additionally, Spring Boot starts up an embedded servlet container by default to serve the web application. The default servlet container is Tomcat, but it can be replaced with other options like Jetty or Undertow if desired.

Discussion
qulytOptions: AC

A - https://docs.spring.io/spring-boot/docs/1.5.3.RELEASE/reference/html/howto-embedded-servlet-containers.html#:~:text=own%20JettyEmbeddedServletContainerFactory.-,73.13,-Use%20Undertow%20instead

james2033Options: AC

(A) Undertow for Spring Reactive https://undertow.io/ See https://springhow.com/spring-boot-undertow/ <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-web</artifactId> <exclusions> <exclusion> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-tomcat</artifactId> </exclusion> </exclusions> </dependency> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-undertow</artifactId> </dependency> (B) Jetty for Spring Reactive. (C) wrong, it is 8080, not 8088 (D) true (E) wrong, use in-memory with Spring Data JPA or Spring Security or declaring H2 database in pom.xml or build.gradle .

zakupowerOptions: AC

Default embedded servlet container is Tomcat. Jetty and Undertow can be used instead of it.

james2033Options: CD

(A) Undertow for Spring Reactive https://undertow.io/ (B) Jetty for Spring Reactive. (C) true, (D) true, (E) wrong, use in-memory with Spring Data JPA or Spring Security or declaring H2 database in pom.xml or build.gradle .

james2033

I have mistake, default port is 8080, not 8088, make D is wrong.

AzuniOptions: AC

Went though the VMWare Spring Boot course again for Configuration of WAR and JAR deployments and it confirms what the commenters below said.