Online Exam Quiz

questionQuestion  1 to 30

Which annotation is used to enable a Hystrix circuit breaker?

  • @EnableHystrix
  • @EnableCircuitBreaker
  • @EnableHystrixDashboard
  • @EnableCircuit
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 the primary purpose of the Spring Cloud Config Server?

  • Load Balancing
  • Centralized Configuration Management
  • Service Discovery
  • Authentication
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 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

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

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

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

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

  • Ribbon
  • Hystrix
  • Eureka
  • Zuul
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 annotation is used to enable Spring Boot auto-configuration?

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

Which annotation is used to declare a configuration class in Spring Boot?

  • @Configuration
  • @Configurable
  • @ConfigurationClass
  • @Bean
Mark for review

How do you enable scheduling in a Spring Boot application?

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

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

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

How do you enable caching in a Spring Boot application?

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

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

Which of the following is NOT a Spring Boot starter dependency?

  • spring-boot-starter-web
  • spring-boot-starter-data-jpa
  • spring-boot-starter-security
  • spring-boot-starter-database
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

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 role of Spring Cloud Gateway in a microservices architecture?

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

What is the default scope of a Spring Bean?

  • Prototype
  • Singleton
  • Request
  • Session
Mark for review

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

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

What is the default timeout for a Hystrix command?

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

What is the default embedded servlet container in Spring Boot?

  • Jetty
  • Tomcat
  • Undertow
  • GlassFish
Mark for review

What does the @SpringBootApplication annotation include?

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

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

  • Hystrix
  • Ribbon
  • Eureka
  • Zuul
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

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