




























































































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!





























































































Question 1 Question: What is a primary characteristic that distinguishes microservices architecture from monolithic architecture? A. Centralized data storage B. Modular and independently deployable components C. Single codebase for the entire application D. Tight coupling between components Correct: B Explanations: Microservices are designed as modular, independently deployable components, whereas monolithic architectures are typically built as a single, tightly coupled codebase. Question 2 Question: Which of the following is NOT a benefit of microservices? A. Improved fault isolation B. Enhanced agility C. Simplified distributed systems management D. Independent scalability
Correct: C Explanations: Distributed systems management is more complex in microservices compared to monolithic systems, so this is not a benefit. Question 3 Question: Which company is widely recognized for pioneering large-scale microservices adoption? A. Microsoft B. Netflix C. Twitter D. Facebook Correct: B Explanations: Netflix is renowned for adopting and popularizing microservices at scale. Question 4 Question: In microservices, what is a “bounded context” primarily associated
Explanations: An API Gateway centralizes key concerns like routing, security, and monitoring for microservices. Question 6 Question: What is the primary challenge when decomposing a monolithic application into microservices? A. Choosing a programming language B. Identifying service boundaries C. Setting up a CI/CD pipeline D. Deciding on the operating system Correct: B Explanations: Determining logical service boundaries is crucial and often challenging in decomposing monoliths. Question 7 Question: What is the main advantage of using the Saga pattern in microservices?
A. Centralizes database management B. Manages distributed transactions across services C. Provides a single point of failure D. Eliminates the need for service discovery Correct: B Explanations: The Saga pattern helps coordinate distributed transactions and maintain data consistency across services. Question 8 Question: Which protocol is commonly used for synchronous communication between microservices? A. SMTP B. REST over HTTP C. FTP D. SNMP Correct: B Explanations: REST over HTTP is a standard protocol for synchronous inter- service communication.
C. Kubernetes D. Ansible Correct: B Explanations: Hystrix is a popular library for implementing circuit breakers in Java. Question 11 Question: In microservices, what is “polyglot persistence”? A. Using only relational databases B. Using multiple database technologies within an application C. Using a single programming language D. Using a single database for all services Correct: B Explanations: Polyglot persistence refers to using different database technologies for different services, based on their needs.
Question 12 Question: What does eventual consistency mean in microservices data management? A. Data is always immediately consistent B. Data will become consistent over time C. Data is never synchronized D. Data is consistent only on one node Correct: B Explanations: Eventual consistency means that, though not immediate, the system will eventually reach a consistent state. Question 13 Question: Which of the following is NOT a typical challenge in microservices architecture? A. Data consistency B. Scalability C. Distributed system complexity D. Deployment overhead
A. All services must be deployed together B. Services can be deployed independently C. Deployment is only possible quarterly D. There is no impact on agility Correct: B Explanations: Independent deployment is a crucial advantage for enabling continuous delivery in microservices. Question 16 Question: What is the role of a service mesh in microservices? A. Provides user authentication B. Manages inter-service communication, security, and monitoring C. Hosts application databases D. Builds frontend applications Correct: B Explanations: Service meshes manage communication, security, and observability between services.
Question 17 Question: Which container orchestration tool is most widely used for managing microservices? A. Puppet B. Jenkins C. Kubernetes D. Chef Correct: C Explanations: Kubernetes is the leading container orchestration platform for deploying and managing microservices. Question 18 Question: What is the main benefit of using OAuth 2.0 in microservices? A. Simplifies database queries B. Provides standardized authentication and authorization C. Increases API latency
Question 20 Question: What is the primary function of Prometheus in a microservices infrastructure? A. Source code version control B. Metrics collection and monitoring C. API Gateway management D. Service discovery Correct: B Explanations: Prometheus is used for collecting and monitoring metrics in microservices environments. Question 21 Question: Which of the following best describes “contract testing” in microservices? A. Testing only the database schema B. Verifying that service interfaces meet agreed-upon specifications C. Testing network latency D. Testing frontend user interfaces
Correct: B Explanations: Contract testing ensures that service interfaces and their interactions conform to agreed contracts. Question 22 Question: What does “database per service” mean in microservices architecture? A. All services share a single database B. Each service manages its own database C. Databases are managed by a central team D. No databases are used Correct: B Explanations: The “database per service” pattern means each microservice has its own dedicated database. Question 23 Question: Which microservices testing type simulates real user scenarios
Question 25 Question: What is the primary goal of blue/green deployment in microservices? A. Increase downtime B. Enable zero-downtime deployment by switching traffic between two environments C. Reduce test coverage D. Deploy all services simultaneously Correct: B Explanations: Blue/green deployments allow seamless switching between old and new environments for zero-downtime updates. Question 26 Question: Which of the following is a principle of designing microservices? A. Low cohesion B. Large codebases per service
C. Single responsibility per service D. Centralized data management Correct: C Explanations: Each microservice should have a single responsibility for modularity and maintainability. Question 27 Question: In a microservices system, what is the main advantage of using message queues? A. Increase tight coupling B. Enable asynchronous communication C. Reduce system scalability D. Slow down service interactions Correct: B Explanations: Message queues provide asynchronous communication, decoupling services for better scalability and reliability.
Explanations: Ansible is used for configuration management, not container orchestration. Question 30 Question: What does “graceful degradation” mean in microservices? A. The system fails completely B. The system maintains partial functionality when some services are unavailable C. The system always operates at full capacity D. No error handling is implemented Correct: B Explanations: Graceful degradation allows a system to provide limited functionality in the face of service failures. Question 31 Question: Which protocol is commonly used for asynchronous messaging in microservices?
Correct: B Explanations: AMQP is widely used for asynchronous messaging between microservices. Question 32 Question: In Domain-Driven Design (DDD), what is a “domain model”? A. A database schema B. An object model that represents business logic C. A user interface D. A network topology Correct: B Explanations: A domain model encapsulates business logic and rules in DDD.