Test your understanding of key concepts in Microservices architecture and Spring Boot, including design principles, REST APIs, and essential Spring Boot features.
Benefits of Microservices Architecture
Which of the following is a benefit of using a microservices architecture in software development?
- It requires no configuration
- It enforces monolithic scalability
- There are no network communications between components
- Each service can be deployed independently
- All code exists in a single codebase
Spring Boot's Primary Feature
What is one primary feature of Spring Boot that simplifies application development?
- Requires XML setup for every bean
- No support for integration
- Manual configuration for everything
- Enforces tight coupling of services
- Embedded servers
Microservices and Loose Coupling
In the context of microservices, what does 'loose coupling' mean?
- Business logic and database access are tightly linked
- Interfaces cannot change independently
- All services share the same database schema
- Services require manual deployment in one unit
- Each service has minimal dependencies on others
Spring Boot Dependency Injection
Which Spring Boot feature enables automatic wiring of components to reduce boilerplate code?
- Exteranalisation
- Hardcoded linking
- Manual instantiation
- Dependency injection
- Dpendency injextion
REST in Microservices
What does the acronym REST stand for in designing APIs for microservices?
- Representational State Transfer
- Random Execution Syntax Tree
- Remote Entity Synchronization Tool
- Relational System Testing
- Resource State Tranfser
Port Number in Spring Boot
By default, on which port does a Spring Boot embedded Tomcat server run?
- 80
- 443
- 3000
- 8000
- 8080
Service Discovery Concept
What is the main purpose of service discovery in a microservices architecture?
- To force single deployment of all services
- To statically configure service addresses
- To encrypt database passwords
- To enable services to find and communicate with each other dynamically
- To calculate CPU usage
Spring Boot Starter Benefits
Which statement correctly describes 'Spring Boot Starters'?
- They provide a set of pre-configured dependencies for common functionalities
- They only support Python applications
- They are collections of HTML templates for web design
- They are scripts for database backups
- They require manual dependency management for each library
Scaling Microservices
If one microservice needs more processing power, what is a common technique to scale it?
- Split the database into more tables
- Combine all services into a monolith
- Deploy multiple instances of that service
- Increase network latency intentionally
- Copy and paste the source code
Spring Boot Configuration File
Which file does Spring Boot commonly use for default application configuration?
- settings.txt
- env.config
- propertylist.xml
- application.properties
- aplication.propertis