Spring Boot with gRPC: Fundamentals for High-Performance Microservices
An introductory quiz on building microservices using Spring Boot with gRPC.
Questions in this quiz
15 questions on Spring Boot with gRPC: Fundamentals for High-Performance Microservices. Work through them here, then start the quiz to answer them and see your score.
1.What is gRPC primarily used for in microservices architecture?
- AData storage
- BFile compression
- CUser authentication
- DRemote procedure calls
2.Which protocol does gRPC use for communication?
- AFTP
- BSMTP
- CHTTP/2
- DHTTP/1.1
3.In Spring Boot, which annotation is used to enable gRPC services?
- A@EnableGrpcServer
- B@EnableGrpcServices
- C@GrpcService
- D@EnableGrpc
4.What file format is used to define gRPC service contracts?
- AYAML
- BProtocol Buffers
- CJSON
- DXML
5.What is the primary advantage of using gRPC over REST for microservices?
- AHuman readability
- BHigher performance
- CEasier debugging
- DMore widespread use
6.Which tool is commonly used to generate Java code from Protocol Buffer files?
- AMaven
- BGradle
- CAnt
- Dprotoc
7.What is a key feature of HTTP/2 that gRPC leverages?
- AMultiplexing
- BText-based messages
- CSingle connection per request
- DStateless communication
8.Which of the following is NOT a characteristic of gRPC?
- ALanguage-agnostic
- BUses JSON for data serialization
- CSupports bidirectional communication
- DSupports streaming
9.How does gRPC handle service discovery in microservices?
- AUses DNS
- BBuilt-in service registry
- CRelies on external service discovery mechanisms
- DNo service discovery
10.What is the role of a stub in gRPC?
- AActs as a database
- BStores data
- CManages server-side logic
- DHandles client-side logic
11.Which annotation is used to define a gRPC service in a proto file?
- Aoption
- Brpc
- Cmessage
- Dservice
12.What is the default port for gRPC services?
- A80
- B8080
- C443
- D50051
13.Which of the following is a benefit of using Protocol Buffers with gRPC?
- ALimited language support
- BSmaller message size
- CSlower serialization
- DHuman-readable format
14.What is the purpose of the 'rpc' keyword in a proto file?
- ASpecify a service
- BSet options
- CDefine a remote procedure call
- DDefine a message
15.Which component in gRPC is responsible for managing server-side logic?
- AClient
- BService implementation
- CStub
- DChannel