Show List

Quiz - Microservices - 7

64%

Public Average Score
Select the right answer for below questions:

What is the purpose of the @Async annotation in Spring Boot?
It marks a method as asynchronous and runs it in a separate thread
It defines a web endpoint for HTTP POST requests
It maps the request body to a method parameter
It marks a method as asynchronous and runs it in a separate thread

Which of the following is an example of a popular circuit breaker used in microservices architecture?
Netflix Hystrix
Apache Cassandra
Redis
Netflix Hystrix

What is the purpose of the @ResponseBody annotation in Spring Boot?
It maps a request parameter to a method parameter
It injects dependencies into a class
It maps the method result to the response body
It maps the method result to the response body

Which of the following is a benefit of using Spring Cloud Stream with Apache Kafka binder in microservices architecture?
It provides load balancing and failover capabilities
It simplifies handling of streaming data
It provides centralized configuration management
It simplifies handling of streaming data

What is the purpose of the @Qualifier annotation in Spring Boot?
It specifies which dependency to inject when multiple dependencies of the same type exist
It marks a class as a component
It defines a web endpoint
It specifies which dependency to inject when multiple dependencies of the same type exist

Which of the following is a benefit of using Spring Cloud Gateway in microservices architecture?
It simplifies handling of streaming data
It provides centralized configuration management
It provides a flexible and powerful API gateway
It provides a flexible and powerful API gateway

What is the purpose of a health check in microservices architecture?
To provide centralized configuration management
To monitor the status of services
To locate and connect to services
To monitor the status of services

Which of the following is an example of a popular health check tool used in microservices architecture?
Spring Boot Actuator
Apache Kafka
Elasticsearch
Spring Boot Actuator

What is the purpose of the @PathVariable annotation in Spring Boot?
It maps a request parameter to a method parameter
It defines a web endpoint for HTTP GET requests
It maps a URL path variable to a method parameter
It maps a URL path variable to a method parameter

Which of the following is a benefit of using Spring Cloud Config in microservices architecture?
It simplifies handling of streaming data
It provides centralized configuration management
It provides load balancing and failover capabilities
It provides centralized configuration management

Submit
Retry
{"qz1-288982":"It marks a method as asynchronous and runs it in a separate thread","qz1-288983":"Netflix Hystrix","qz1-288984":"It maps the method result to the response body","qz1-288985":"It simplifies handling of streaming data","qz1-288986":"It specifies which dependency to inject when multiple dependencies of the same type exist","qz1-288987":"It provides a flexible and powerful API gateway","qz1-288988":"To monitor the status of services","qz1-288989":"Spring Boot Actuator","qz1-288990":"It maps a URL path variable to a method parameter","qz1-288991":"It provides centralized configuration management"}

    Leave a Comment


  • captcha text