Spring Boot Microservices: Basics of Inter-Service Communication
A beginner's quiz on inter-service communication in Spring Boot microservices.
Questions in this quiz
15 questions on Spring Boot Microservices: Basics of Inter-Service Communication. Work through them here, then start the quiz to answer them and see your score.
1.What is the primary purpose of inter-service communication in microservices?
- ATo enhance user interface design
- BTo improve database performance
- CTo allow services to communicate and share data
- DTo reduce code duplication
2.Which protocol is commonly used for synchronous communication between microservices?
- AFTP
- BSMTP
- CHTTP
- DSNMP
3.What is a common tool for asynchronous communication in Spring Boot microservices?
- AMySQL
- BRedis
- CRabbitMQ
- DApache Tomcat
4.Which of the following is a RESTful web service feature?
- AStateful interactions
- BTightly coupled services
- CStateless interactions
- DHigh latency
5.What is the role of a service registry in microservices architecture?
- ATo manage service instances and their locations
- BTo store user data
- CTo serve static content
- DTo handle database connections
6.Which annotation is used in Spring Boot to create a REST controller?
- A@RestController
- B@Service
- C@Repository
- D@Component
7.What is the purpose of the @FeignClient annotation in Spring Boot?
- ATo configure security
- BTo connect to a database
- CTo create a REST client
- DTo manage transactions
8.Which tool helps in monitoring and managing microservices communication?
- AJUnit
- BJPA
- CHibernate
- DSpring Boot Actuator
9.What does the term 'circuit breaker' refer to in microservices?
- AA method for scaling services
- BA pattern to handle service failures gracefully
- CA type of load balancer
- DA tool for database migration
10.Which of the following is a benefit of using microservices?
- AIncreased coupling
- BSingle point of failure
- CMonolithic architecture
- DIndependent deployment
11.What is the function of the @RequestMapping annotation in Spring Boot?
- ATo define service dependencies
- BTo initialize application context
- CTo map web requests to specific handler methods
- DTo configure database connections
12.Which component is responsible for load balancing in microservices?
- AKafka
- BMongoDB
- CEureka
- DRibbon
13.What is the main advantage of using asynchronous communication in microservices?
- AIncreased complexity
- BImproved user interface
- CDecoupled services
- DReduced latency
14.Which Spring Boot feature helps in configuring externalized properties?
- ASpring Cloud Config
- BSpring MVC
- CSpring Security
- DSpring Data JPA
15.What is the purpose of using a gateway in microservices architecture?
- ATo handle service registry
- BTo manage database transactions
- CTo provide a single entry point for client requests
- DTo store logs