Online Exam Quiz

questionQuestion  1 to 30

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

  • @EnableAutoConfiguration
  • @EnableConfiguration
  • @AutoConfig
  • @EnableBootConfig
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 annotation is used to map HTTP requests to handler methods in Spring MVC?

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

What is the purpose of Spring Cloud Sleuth?

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

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

  • Apache Kafka
  • Consul
  • Eureka
  • RabbitMQ
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 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

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

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

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

  • Load Balancing
  • Centralized Configuration Management
  • Service Discovery
  • Authentication
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 of the following is a circuit breaker library in Spring Cloud?

  • Hystrix
  • Ribbon
  • Eureka
  • Zuul
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 default embedded servlet container in Spring Boot?

  • Jetty
  • Tomcat
  • Undertow
  • GlassFish
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 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

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

  • Zipkin
  • Ribbon
  • Hystrix
  • Sleuth
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

How do you enable caching in a Spring Boot application?

  • @EnableCache
  • @EnableCaching
  • @EnableCacheManagement
  • @EnableCacheable
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 timeout for a Hystrix command?

  • 1000ms
  • 1500ms
  • 2000ms
  • 3000ms
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

What is the default scope of a Spring Bean?

  • Prototype
  • Singleton
  • Request
  • Session
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

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

How can you exclude a particular auto-configuration class in Spring Boot?

  • Using @ExcludeAutoConfig
  • Using @EnableAutoConfiguration(exclude = ...)
  • Using @SpringBootApplication(exclude = ...)
  • Using @ComponentScan(exclude = ...)
Mark for review

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

  • @LoadBalanced
  • @RestTemplate
  • @RestClient
  • @LoadBalancer
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 Spring Cloud library is used for client-side load balancing?

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

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