Microservices Fundamentals
What is the main advantage of building an application with microservices instead of a monolithic architecture?
- A. Microservices allow each component to scale independently.
- B. Microservices require fewer programming languages.
- C. Microservices eliminate the need for APIs.
- D. Microservices are always faster to develop.
- E. Microservices use only one database for all services.
Communication Methods
Which is an example of asynchronous communication between microservices?
- A. HTTP REST API call
- B. Synchronous function call
- C. Messaging through a queue (e.g., RabbitMQ)
- D. Direct database query
- E. gRPC without streaming
API Gateway Role
What is one of the main roles of an API Gateway in a microservices architecture?
- A. Storing all service data centrally
- B. Routing client requests to the correct service
- C. Replacing authentication for every service
- D. Writing automated unit tests
- E. Managing developer onboarding
Service Discovery
In microservices, which component helps services find and communicate with each other dynamically?
- A. Service mesh
- B. Load balancer
- C. Service registry
- D. Static IP tables
- E. Configuration map
Microservices Testing
What is a common challenge when testing microservices compared to monolithic applications?
- A. Lack of programming languages
- B. Difficulty in isolating dependent services
- C. Excessive use of hardcoded values
- D. Easy integration with single databases
- E. Single-threaded performance issues
Fault Tolerance Mechanisms
Which pattern helps prevent system failure by stopping calls to a malfunctioning microservice?
- A. Retry pattern
- B. Singleton design
- C. Circuit breaker
- D. Load shedding
- E. Cache invalidation
Eventual Consistency
What does eventual consistency mean in a distributed microservices environment?
- A. Data in all services is always synchronized instantly.
- B. Data changes may take time to propagate, but will be consistent eventually.
- C. Each service uses the same database schema.
- D. Services do not need to sync data at all.
- E. Only the fastest service's data is valid.
Containerization in Microservices
What is the primary role of Docker in a microservices environment?
- A. Orchestrating network traffic
- B. Managing business logic
- C. Packaging services into containers for consistent deployment
- D. Rewriting legacy code automatically
- E. Handling database backups
Security Practices
Which method enhances secure communication between microservices?
- A. Using HTTP without encryption
- B. Applying rate limiting
- C. Implementing mutual TLS (mTLS)
- D. Logging debug information to console
- E. Storing passwords in plain text
Service Boundaries
In Domain-Driven Design, what does a 'bounded context' refer to in microservices?
- A. A physical network boundary used for security
- B. A clearly defined business domain owned by a specific microservice
- C. A type of service deployment tool
- D. An API version boundary
- E. An undefined area shared by all services