MODEL QUESTION PAPER – SPRING BOOT MICROSERVICES
(Simple Practice Set)
Maximum Marks: 100 Duration: 3 Hours
PART – A (2 Marks Each)
Answer all questions. (10 × 2 = 20 Marks)
1. What is Spring Boot?
2. Why do we use @RestController?
3. What is the use of [Link]?
4. What is dependency injection in Spring?
5. Write any two annotations used in Spring Boot.
6. What is a microservice?
7. Define REST API in one line.
8. What is the use of @Autowired annotation?
9. What is the difference between @GetMapping and @PostMapping?
10. Why is Spring Boot preferred for microservices?
PART – B (5 Marks Each)
Answer any five questions. (5 × 5 = 25 Marks)
11. Explain how to create a simple REST API in Spring Boot.
12. What are the advantages of using microservices?
13. Write short notes on Spring Boot Starter dependencies.
14. How can you connect Spring Boot with MySQL database?
15. Explain the use of @Service and @Repository annotations.
16. Write the steps to create a new Spring Boot project using Spring Initializr.
17. What is an API Gateway? Give a simple explanation.
PART – C (10 Marks Each)
Answer any three questions. (3 × 10 = 30 Marks)
18. Write a Spring Boot program for user registration and login using REST API.
19. Explain the working of a Product and Order Management system using microservices.
20. Describe the structure of a Spring Boot project with an example.
21. Explain how microservices communicate with each other using REST calls.
22. What are the key differences between monolithic and microservice architectures?
PART – D (Case Study – 25 Marks)
Answer the following question. (1 × 25 = 25 Marks)
23. Case Study: Design a small shopping application using Spring Boot microservices.
Include user service, product service, and order service. Explain how they interact and
share data.