Notice: Due to an ongoing migration of our storage and publishing system, material requested since last month will not be uploaded for the time being, and new requests are paused. All existing notes remain available.
Which of the following best describes a Monolithic Architecture?
Not quite. Try another option.
Answer: An architecture where the entire application is built as a single, unified unit
A monolithic architecture integrates all components (UI, business logic, data access) into a single deployable unit.
Question 2 of 50
What is a primary characteristic of Microservices Architecture?
Not quite. Try another option.
Answer: Loose coupling and high cohesion
Microservices are designed to be loosely coupled so they can be updated independently, while maintaining high cohesion within their specific business domain.
Question 3 of 50
In the context of Domain-Driven Design (DDD), what is 'Ubiquitous Language'?
Not quite. Try another option.
Answer: A common language shared by developers and domain experts to describe the system
Ubiquitous Language is a DDD principle ensuring that technical and business teams use the same terminology to avoid ambiguity.
Question 4 of 50
What is the primary role of an API Gateway in a microservices architecture?
Not quite. Try another option.
Answer: To act as a single entry point for all client requests
An API Gateway accepts incoming traffic from clients and routes it to the appropriate microservices, often handling cross-cutting concerns.
Question 5 of 50
Which of the following is a significant challenge in Distributed Architectures compared to Monoliths?
Not quite. Try another option.
Answer: Network latency and partial failures
Distributed systems introduce complexity regarding network communication, latency, and the risk that one part of the system may fail while others remain active.
Question 6 of 50
In DDD, what is a 'Bounded Context'?
Not quite. Try another option.
Answer: A logical boundary within which a particular domain model is defined and applicable
Bounded Context defines the limits of a specific subsystem or microservice, ensuring terms and models have a specific meaning only within that boundary.
Question 7 of 50
How does scaling typically differ between Monolithic and Microservices architectures?
In a monolith, if one module needs more resources, the whole app must be replicated. Microservices allow scaling only the specific service experiencing high load.
Question 8 of 50
What is the 'Database per Service' pattern?
Not quite. Try another option.
Answer: Each microservice manages its own database data exclusively
To ensure loose coupling, microservices usually own their data store, preventing other services from bypassing the API to access data directly.
Question 9 of 50
Which principle suggests that organizations design systems that mirror their communication structures?
Not quite. Try another option.
Answer: Conway's Law
Conway's Law states that systems defined by organizations are constrained to produce designs that are copies of the communication structures of these organizations.
Question 10 of 50
What is a 'BFF' in the context of API Gateways?
Not quite. Try another option.
Answer: Backend for Frontend
Backend for Frontend (BFF) is a variation of the API Gateway pattern where separate gateways are created for different client types (e.g., Mobile, Web).
Question 11 of 50
Which of the following is an advantage of Monolithic architecture over Microservices?
Not quite. Try another option.
Answer: Simpler to test and debug initially
Monoliths are easier to test and debug initially because all code is in one place, and there is no need to trace requests across a network of services.
Question 12 of 50
What is 'Polyglot Persistence'?
Not quite. Try another option.
Answer: Using different data storage technologies for different services based on needs
Microservices allow teams to choose the best database (SQL, NoSQL, Graph, etc.) for the specific problem a service is solving.
Question 13 of 50
What is an 'Aggregate' in Domain-Driven Design?
Not quite. Try another option.
Answer: A cluster of domain objects that can be treated as a single unit
An Aggregate is a pattern in DDD where a cluster of entities and value objects are treated as a single unit for data changes, controlled by an Aggregate Root.
Question 14 of 50
Which mechanism is commonly used for communication between Microservices?
Not quite. Try another option.
Answer: Lightweight protocols like HTTP/REST or gRPC
Microservices communicate over a network using lightweight, technology-agnostic protocols like HTTP (REST) or gRPC.
Question 15 of 50
What is the function of the 'Anti-Corruption Layer' in DDD?
Not quite. Try another option.
Answer: To translate between two different domain models to prevent concepts from one leaking into the other
An Anti-Corruption Layer is used when a new system needs to communicate with a legacy system, translating the legacy model into the new model to maintain integrity.
Question 16 of 50
When defining Service Boundaries, which approach is recommended?
Not quite. Try another option.
Answer: Decomposition by Business Capability
Services should be defined around business capabilities (e.g., Shipping, Billing) rather than technical layers or arbitrary metrics.
Question 17 of 50
What is a 'Sidecar' pattern in microservices?
Not quite. Try another option.
Answer: A helper component that runs alongside the main service container
The Sidecar pattern involves deploying a helper service (handling logging, proxying, etc.) alongside the main application container.
Question 18 of 50
Which of the following creates a 'Single Point of Failure' if not properly managed?
Not quite. Try another option.
Answer: API Gateway
Since all traffic flows through the API Gateway, if it goes down, the entire application becomes inaccessible unless the gateway is clustered/redundant.
Question 19 of 50
What is 'Service Discovery'?
Not quite. Try another option.
Answer: A mechanism for services to find the network locations of other services
In dynamic cloud environments, service instances change IP addresses frequently; Service Discovery allows them to locate each other dynamically.
Question 20 of 50
In DDD, what defines the identity of an 'Entity'?
Not quite. Try another option.
Answer: A unique identifier (ID) that persists over time
Entities are domain objects defined by their continuity and identity (e.g., a User ID), not just by their attributes.
Question 21 of 50
Unlike Entities, 'Value Objects' in DDD are defined by:
Not quite. Try another option.
Answer: Their attributes and immutability
Value Objects (e.g., a Currency or Coordinate) do not have a unique identity; they are defined by their values and are typically immutable.
Question 22 of 50
What is the 'Strangler Fig' pattern used for?
Not quite. Try another option.
Answer: Migrating a Monolithic application to Microservices gradually
The Strangler Fig pattern involves gradually replacing specific functionalities of a monolith with new microservices until the monolith is shut down.
Question 23 of 50
Which feature is NOT typically handled by an API Gateway?
Not quite. Try another option.
Answer: Business Logic implementation
An API Gateway handles cross-cutting concerns (routing, auth, throttling). Placing core business logic in the gateway is an anti-pattern.
Question 24 of 50
What is 'Eventual Consistency' in distributed microservices?
Not quite. Try another option.
Answer: The system guarantees that if no new updates are made, eventually all accesses will return the last updated value
In distributed systems, immediate consistency is hard to achieve without sacrificing availability; eventual consistency allows temporary inconsistencies.
Question 25 of 50
Which of the following is a disadvantage of Microservices?
In a distributed architecture, what is 'Fault Tolerance'?
Not quite. Try another option.
Answer: The ability of the system to continue operating properly in the event of the failure of some of its components
Fault tolerance ensures that the failure of a single service does not crash the entire distributed application.
Question 27 of 50
What is 'Context Mapping' in DDD?
Not quite. Try another option.
Answer: Identifying the relationships and integration patterns between different Bounded Contexts
Context Mapping visualizes how different Bounded Contexts interact and integrate (e.g., Shared Kernel, Customer/Supplier).
Question 28 of 50
Which is a common method to prevent 'Cascading Failures' in microservices?
Not quite. Try another option.
Answer: Circuit Breaker Pattern
The Circuit Breaker pattern detects failures and prevents the application from trying to perform an action that is doomed to fail, protecting the system.
Question 29 of 50
The term 'Smart Endpoints and Dumb Pipes' refers to:
Not quite. Try another option.
Answer: Putting logic in the services and using the network only for transport
Microservices prefer keeping intelligence (business logic) within the services (endpoints) rather than in the communication mechanism (pipes/ESBs).
Question 30 of 50
What is 'Request Aggregation' in an API Gateway?
Not quite. Try another option.
Answer: Gathering data from multiple services to return a single response to the client
Request Aggregation allows the gateway to call multiple backend services and combine the results, reducing the number of round-trips the client must make.
Question 31 of 50
Which architecture is known for 'Spaghetti Code' if not managed well?
Not quite. Try another option.
Answer: Monolithic
Monoliths often degrade into 'Big Balls of Mud' or spaghetti code where dependencies are tangled, making maintenance difficult.
Question 32 of 50
What is a 'Domain Event'?
Not quite. Try another option.
Answer: Something that happened in the domain that the experts care about
Domain Events capture significant occurrences within the business domain (e.g., 'OrderPlaced', 'PaymentFailed').
Question 33 of 50
Which testing strategy is most complex in Microservices?
Not quite. Try another option.
Answer: End-to-End (Integration) Testing
Testing a flow that spans multiple independent services is difficult due to the need to coordinate states and environments across distributed systems.
Question 34 of 50
Idempotency in API design means:
Not quite. Try another option.
Answer: An API call can be made multiple times without changing the result beyond the initial application
Idempotency ensures that retrying a request (e.g., due to network failure) does not cause unintended side effects (like charging a card twice).
Question 35 of 50
What helps ensure 'High Cohesion' in a microservice?
Not quite. Try another option.
Answer: Ensuring the service does one thing and does it well
High cohesion means that the elements within a module/service belong together and are focused on a single responsibility.
Question 36 of 50
In the context of service boundaries, what is 'Decomposition by Subdomain'?
Not quite. Try another option.
Answer: Defining services corresponding to Domain-Driven Design (DDD) subdomains
This strategy uses DDD concepts to identify Core, Supporting, and Generic subdomains and maps services to them.
Question 37 of 50
What is the relationship between an API Gateway and Cross-Cutting Concerns?
Not quite. Try another option.
Answer: API Gateway offloads concerns like auth, logging, and SSL termination from individual services
Centralizing things like authentication and SSL in the Gateway simplifies the individual microservices.
Question 38 of 50
Which of the following best describes 'Loose Coupling'?
Not quite. Try another option.
Answer: Changes in one service do not require changes in other services
Loose coupling ensures that services interact via defined interfaces, so internal changes in one do not break others.
Question 39 of 50
What is a 'Shared Kernel' in DDD Context Mapping?
Not quite. Try another option.
Answer: A subset of the domain model shared by two teams/contexts
Shared Kernel is a pattern where two bounded contexts share a common part of the model/code, requiring close coordination.
Question 40 of 50
Which format is most commonly used for Microservices configuration?
Not quite. Try another option.
Answer: YAML or JSON
Configuration (like Kubernetes manifests or Docker Compose) is typically human-readable YAML or JSON.
Question 41 of 50
The 'Two-Phase Commit' (2PC) protocol is often avoided in Microservices because:
Not quite. Try another option.
Answer: It creates tight coupling and reduces availability (blocking)
Distributed transactions like 2PC lock resources across services, hurting performance and availability. Sagas are preferred.
Question 42 of 50
Ideally, a Microservice should be:
Not quite. Try another option.
Answer: Independently deployable
The core value of microservices is the ability to deploy changes to one service without redeploying the whole system.
Question 43 of 50
What does 'API Composition' refer to?
Not quite. Try another option.
Answer: Querying data from several services and combining it in memory
API Composition is a pattern (often in the Gateway) to retrieve data from multiple services to build a view.
Question 44 of 50
In DDD, a 'Repository' is responsible for:
Not quite. Try another option.
Answer: Encapsulating the logic to access data sources and returning domain objects
Repositories provide a collection-like interface for accessing domain objects, hiding the details of the underlying database.
Question 45 of 50
What is the risk of 'Chatty' communication between microservices?
Not quite. Try another option.
Answer: Increased network latency and reduced performance
If services call each other too frequently (chatty), the network overhead accumulates, slowing down the application.
Question 46 of 50
Which of the following is a symptom of a 'Distributed Monolith'?
Not quite. Try another option.
Answer: Services must be deployed together in a specific order
If microservices are so tightly coupled that they cannot be deployed independently, the system loses the benefits of microservices and becomes a distributed monolith.
Question 47 of 50
Domain-Driven Design focuses primarily on:
Not quite. Try another option.
Answer: The core business logic and domain complexities
DDD emphasizes tackling complexity in the heart of the software (the business domain) rather than technology first.
Question 48 of 50
Rate Limiting in an API Gateway helps to:
Not quite. Try another option.
Answer: Protect services from being overwhelmed by too many requests
Rate limiting restricts the number of requests a client can make in a given timeframe to prevent abuse or overload.
Question 49 of 50
Who coined the term 'Microservices'?
Not quite. Try another option.
Answer: Dr. Peter Rogers (or popularized by Martin Fowler/James Lewis)
While the concept evolved, the term was popularized by Martin Fowler and James Lewis, and originated from ideas discussed by Dr. Peter Rogers.
Question 50 of 50
Which technology is most closely associated with containerizing Microservices?
Not quite. Try another option.
Answer: Docker
Docker is the standard platform for creating containers, which are lightweight execution environments perfect for microservices.
That's unit 2
Answer a few questions and your score shows up here.
Nearly through. Did unit 2 of INT363 save you a night before the exam?
LPU Notes is free. A student pays for the servers.
Did unit 2 of INT363 save you a night before the exam?
Then you can help keep it free for the next batch. Ads cover part of the server bill;
the rest comes out of a student's own pocket: the domain, the storage, and keeping
the site up through the weeks everyone needs it at once.
The payment button didn't load. An ad blocker or a filtered network is the usual reason.
to try again.