Online Exam Quiz

questionQuestion  1 to 30

What is the default embedded servlet container in Spring Boot?

  • Jetty
  • Tomcat
  • Undertow
  • GlassFish
Mark for review

Which Spring Boot feature provides health check endpoints?

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

How do you enable scheduling in a Spring Boot application?

  • @EnableScheduling
  • @EnableSchedule
  • @EnableTimers
  • @EnableTimer
Mark for review

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

  • It declares a REST client
  • It declares a service discovery client
  • It declares a circuit breaker
  • It declares a configuration client
Mark for review

Which annotation is used to create a RestTemplate bean with load balancing?

  • @LoadBalanced
  • @RestTemplate
  • @RestClient
  • @LoadBalancer
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

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

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

  • @RestService
  • @WebService
  • @Controller
  • @RestController
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

What is the purpose of Spring Cloud Sleuth?

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

What is the primary purpose of the Spring Cloud Config Server?

  • Load Balancing
  • Centralized Configuration Management
  • Service Discovery
  • Authentication
Mark for review

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

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

Which library is used for tracing and visualization in Spring Cloud?

  • Zipkin
  • Ribbon
  • Hystrix
  • Sleuth
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 does the @SpringBootApplication annotation include?

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

How do you enable caching in a Spring Boot application?

  • @EnableCache
  • @EnableCaching
  • @EnableCacheManagement
  • @EnableCacheable
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

Which dependency is needed to create RESTful web services in Spring Boot?

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

Which Spring Cloud component helps in routing and filtering requests to microservices?

  • Spring Cloud Circuit Breaker
  • Spring Cloud Zuul
  • Spring Cloud Config
  • Spring Cloud Eureka
Mark for review

Which annotation is used to bind application properties to a Java class in Spring Boot?

  • @BindProperties
  • @Value
  • @ConfigurationProperties
  • @PropertySource
Mark for review

What is the primary benefit of using Spring Boot in microservices architecture?

  • Simplified configuration
  • Enhanced security
  • Improved logging
  • Increased performance
Mark for review

What is the default scope of a Spring Bean?

  • Prototype
  • Singleton
  • Request
  • Session
Mark for review

What annotation is used to enable Spring Boot auto-configuration?

  • @EnableAutoConfiguration
  • @EnableConfiguration
  • @AutoConfig
  • @EnableBootConfig
Mark for review

What is the purpose of the Spring Boot DevTools?

  • To secure Spring Boot applications
  • To monitor Spring Boot applications
  • To provide additional development-time features
  • To manage Spring Boot configurations
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

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

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

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 enable a Hystrix circuit breaker?

  • @EnableHystrix
  • @EnableCircuitBreaker
  • @EnableHystrixDashboard
  • @EnableCircuit
Mark for review

Which annotation is used to declare a Spring Boot test?

  • @SpringBootTest
  • @Test
  • @RunWith
  • @MockBean
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