Spring Cloud Quiz - MCQ - Multiple Choice Questions
Q. What is the purpose of Spring Cloud?
A. To build distributed systemsB. To manage cloud infrastructure
C. To integrate APIs
D. To provide microservices architecture
Q. What is the function of Eureka in Spring Cloud?
A. Service discovery and registrationB. Load balancing
C. Circuit breaking
D. API gateway
Q. Which component of Spring Cloud is responsible for API gateway functionality?
A. EurekaB. Zuul
C. Hystrix
D. Ribbon
Q. What is the purpose of the Ribbon component in Spring Cloud?
A. Service discovery and registrationB. Load balancing
C. Circuit breaking
D. API gateway
Q. Which component of Spring Cloud is responsible for circuit breaking functionality?
A. EurekaB. Zuul
C. Hystrix
D. Ribbon
Q. What is the purpose of the Config Server component in Spring Cloud?
A. Service discovery and registrationB. Load balancing
C. Configuration management
D. API gateway
Q. Which component of Spring Cloud is responsible for service discovery and registration?
A. EurekaB. Zuul
C. Hystrix
D. Ribbon
Q. What is the purpose of the Feign component in Spring Cloud?
A. Service discovery and registrationB. Load balancing
C. Circuit breaking
D. Declarative REST client
Q. What is the purpose of the Hystrix component in Spring Cloud?
A. To produce resultsB. To consume values
C. To provide fault tolerance
D. To transform values
Q. What is the purpose of the Zuul component in Spring Cloud?
A. Service discovery and registrationB. Load balancing
C. Circuit breaking
D. API gateway
Q. Which annotation is used to define a Spring Boot REST Controller?
A.@RestControllerB.
@ControllerC.
@RequestMappingD.
@ResponseBody
Q. Which annotation is used to handle GET requests in a Spring Boot REST Controller?
A.@PostMappingB.
@GetMappingC.
@PutMappingD.
@DeleteMapping