Online Exam Quiz

questionQuestion  1 to 30

What is the default embedded servlet container in Spring Boot?

  • Jetty
  • Tomcat
  • Undertow
  • GlassFish
Mark for review

What is the purpose of Spring Boot's @ConditionalOnProperty annotation?

  • To create conditional beans
  • To load properties conditionally
  • To enable conditional configuration
  • To create properties dynamically
Mark for review

What is the purpose of Spring Cloud Sleuth?

  • Distributed logging
  • Distributed tracing
  • Service discovery
  • API gateway
Mark for review

Which starter dependency is used for testing Spring Boot applications?

  • spring-boot-starter-web
  • spring-boot-starter-data-jpa
  • spring-boot-starter-test
  • spring-boot-starter-security
Mark for review

What does the @SpringBootApplication annotation include?

  • @ComponentScan, @EnableAutoConfiguration, @Configuration
  • @Component, @EnableConfig, @Configuration
  • @ScanComponents, @EnableAutoConfig, @Configure
  • @ComponentScan, @EnableConfig, @Config
Mark for review

What annotation is used to mark a Spring Boot application class?

  • @SpringBootApplication
  • @SpringApplication
  • @SpringBootConfig
  • @SpringBootMain
Mark for review

What is Spring Cloud Netflix?

  • A Spring Boot starter for Netflix
  • A set of libraries for building microservices
  • A Netflix video streaming service
  • A cloud storage service
Mark for review

Which of the following is a circuit breaker library in Spring Cloud?

  • Hystrix
  • Ribbon
  • Eureka
  • Zuul
Mark for review

Which annotation is used to declare a Spring Boot test?

  • @SpringBootTest
  • @Test
  • @RunWith
  • @MockBean
Mark for review

How do you define a custom endpoint in Spring Boot Actuator?

  • Implement the ActuatorEndpoint interface
  • Implement the Endpoint interface
  • Implement the Actuator interface
  • Implement the CustomEndpoint interface
Mark for review

Which annotation is used to define a RESTful web service in Spring Boot?

  • @RestService
  • @WebService
  • @Controller
  • @RestController
Mark for review

What is the default timeout for a Hystrix command?

  • 1000ms
  • 1500ms
  • 2000ms
  • 3000ms
Mark for review

What is the purpose of Spring Boot Actuator?

  • To monitor and manage Spring Boot applications
  • To secure Spring Boot applications
  • To configure Spring Boot applications
  • To deploy Spring Boot applications
Mark for review

What is the purpose of the @HystrixCommand annotation?

  • To configure a Hystrix command
  • To configure a Hystrix dashboard
  • To configure a Hystrix client
  • To configure a Hystrix circuit breaker
Mark for review

What is Spring Initializr used for?

  • To monitor Spring Boot applications
  • To create and bootstrap Spring Boot projects
  • To deploy Spring Boot applications
  • To secure Spring Boot applications
Mark for review

Which Spring Cloud library is used for client-side load balancing?

  • Ribbon
  • Hystrix
  • Eureka
  • Zuul
Mark for review

What is the role of Spring Cloud Gateway in a microservices architecture?

  • Service Discovery
  • API Gateway
  • Centralized Configuration
  • Circuit Breaking
Mark for review

How do you configure a Spring Boot application to use an external properties file?

  • Use --spring.config.location
  • Use --external.config
  • Use --application.config
  • Use --app.config
Mark for review

What is the purpose of the Spring Boot Maven Plugin?

  • To build a Docker image
  • To create an executable JAR
  • To deploy a Spring Boot application
  • To generate Spring Boot starters
Mark for review

How do you specify a custom banner in Spring Boot?

  • Create a banner.txt file
  • Create a customBanner.txt file
  • Create a banner.properties file
  • Create a banner.yml file
Mark for review

How do you specify the port for a Spring Boot application?

  • server.port in application.properties
  • port in application.properties
  • app.port in application.properties
  • server.port in application.yaml
Mark for review

What is the default port for a Spring Boot application running on an embedded server?

  • 8080
  • 8000
  • 9090
  • 8888
Mark for review

How can you run a Spring Boot application from the command line?

  • Using mvn run
  • Using java -jar
  • Using spring boot run
  • Using sbt start
Mark for review

What is the purpose of the @LoadBalanced annotation in Spring Cloud?

  • To enable load balancing
  • To enable service discovery
  • To enable API gateway
  • To enable circuit breaking
Mark for review

Which Spring Boot feature allows for easy creation of stand-alone applications?

  • Spring CLI
  • Spring Boot Actuator
  • Spring Boot Starters
  • Spring Data
Mark for review

What is the default scope of a Spring Bean?

  • Prototype
  • Singleton
  • Request
  • Session
Mark for review

What does the @EnableEurekaServer annotation do in a Spring Cloud application?

  • It enables a Eureka server
  • It enables a Eureka client
  • It enables a Zuul proxy
  • It enables a Hystrix dashboard
Mark for review

Which tool is commonly used for service discovery in a microservices architecture?

  • Apache Kafka
  • Consul
  • Eureka
  • RabbitMQ
Mark for review

Which tool is used to monitor and manage Spring Boot applications in production?

  • Spring CLI
  • Spring Cloud
  • Spring Boot Actuator
  • Spring Boot Starter
Mark for review

Which annotation is used to map HTTP requests to handler methods in Spring MVC?

  • @RequestMapping
  • @GetMapping
  • @PostMapping
  • @DeleteMapping
Mark for review

blinkerOnline

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • Answered
  • Not Answered
  • Marked for Review