Unit 2: Evolution of Cloud Microservices - Practice Quiz

INT363 — Cloud Microservices 50 Questions
0 Correct 0 Wrong 50 Left
0/50

1 Which of the following best describes a Monolithic Architecture?

A. An architecture where the application is built as a collection of small independent services
B. An architecture relying solely on serverless functions
C. An architecture where the entire application is built as a single, unified unit
D. An architecture that distributes data across peer-to-peer networks

2 What is a primary characteristic of Microservices Architecture?

A. Centralized deployment of the entire system
B. Tightly coupled components
C. Single shared database for all modules
D. Loose coupling and high cohesion

3 In the context of Domain-Driven Design (DDD), what is 'Ubiquitous Language'?

A. The standardized API documentation language
B. A programming language like Java or Python
C. A common language shared by developers and domain experts to describe the system
D. A translation layer between different microservices

4 What is the primary role of an API Gateway in a microservices architecture?

A. To store all application data
B. To execute the core business logic of the application
C. To directly manage database schemas
D. To act as a single entry point for all client requests

5 Which of the following is a significant challenge in Distributed Architectures compared to Monoliths?

A. Simplicity of debugging
B. Network latency and partial failures
C. Inability to scale
D. Lack of modularity

6 In DDD, what is a 'Bounded Context'?

A. The maximum memory limit of a service
B. The limit of database connections allowed
C. A logical boundary within which a particular domain model is defined and applicable
D. The physical network boundary of the cloud provider

7 How does scaling typically differ between Monolithic and Microservices architectures?

A. Monoliths require scaling the entire application; Microservices allow scaling individual services
B. There is no difference in scaling strategies
C. Microservices cannot be scaled horizontally
D. Monoliths scale horizontally by function; Microservices scale vertically

8 What is the 'Database per Service' pattern?

A. Services connect to a database based on the user's location
B. All services share a single massive database
C. Databases are forbidden in microservices
D. Each microservice manages its own database data exclusively

9 Which principle suggests that organizations design systems that mirror their communication structures?

A. Moore's Law
B. Conway's Law
C. Murphy's Law
D. The CAP Theorem

10 What is a 'BFF' in the context of API Gateways?

A. Backend for Frontend
B. Basic Failover Function
C. Binary File Format
D. Best Friends Forever

11 Which of the following is an advantage of Monolithic architecture over Microservices?

A. Easier to implement continuous deployment
B. Simpler to test and debug initially
C. Independent scaling of components
D. Better fault isolation

12 What is 'Polyglot Persistence'?

A. Translating database queries into different languages
B. Writing code in multiple languages within one file
C. Using different data storage technologies for different services based on needs
D. Persisting data only in memory

13 What is an 'Aggregate' in Domain-Driven Design?

A. A collection of all microservices
B. The total sum of all data transactions
C. A backup of the database
D. A cluster of domain objects that can be treated as a single unit

14 Which mechanism is commonly used for communication between Microservices?

A. Global Variables
B. Lightweight protocols like HTTP/REST or gRPC
C. Direct Database Links
D. Shared Memory

15 What is the function of the 'Anti-Corruption Layer' in DDD?

A. To prevent viruses
B. To encrypt database traffic
C. To translate between two different domain models to prevent concepts from one leaking into the other
D. To clean up unused code

16 When defining Service Boundaries, which approach is recommended?

A. Decomposition by hardware availability
B. Decomposition by codebase size
C. Decomposition by alphabetical order
D. Decomposition by Business Capability

17 What is a 'Sidecar' pattern in microservices?

A. A backup server
B. A monitoring dashboard
C. A helper component that runs alongside the main service container
D. A secondary database

18 Which of the following creates a 'Single Point of Failure' if not properly managed?

A. Local Logging
B. CI/CD Pipeline
C. Microservice Container
D. API Gateway

19 What is 'Service Discovery'?

A. A security scan for vulnerabilities
B. A marketing tool for services
C. A mechanism for services to find the network locations of other services
D. A method to discover new business opportunities

20 In DDD, what defines the identity of an 'Entity'?

A. Its JSON representation
B. Its attributes and properties
C. The table name it is stored in
D. A unique identifier (ID) that persists over time

21 Unlike Entities, 'Value Objects' in DDD are defined by:

A. Their relationship to the database
B. Their creation date
C. Their attributes and immutability
D. Their unique ID

22 What is the 'Strangler Fig' pattern used for?

A. Securing API keys
B. Compressing data traffic
C. Migrating a Monolithic application to Microservices gradually
D. Strangling process threads that hang

23 Which feature is NOT typically handled by an API Gateway?

A. Rate Limiting
B. Request Routing
C. Protocol Translation
D. Business Logic implementation

24 What is 'Eventual Consistency' in distributed microservices?

A. Data is always instantly consistent across all nodes
B. Consistency is handled manually by the user
C. Data is never consistent
D. The system guarantees that if no new updates are made, eventually all accesses will return the last updated value

25 Which of the following is a disadvantage of Microservices?

A. Inability to use different technologies
B. Operational complexity
C. Slower development speed for small teams initially
D. Vendor lock-in

26 In a distributed architecture, what is 'Fault Tolerance'?

A. The logging of all faults
B. The ability of the system to continue operating properly in the event of the failure of some of its components
C. The prevention of all bugs
D. The ability of the system to stop working when a fault occurs

27 What is 'Context Mapping' in DDD?

A. Mapping user locations on a map
B. Identifying the relationships and integration patterns between different Bounded Contexts
C. Creating a sitemap for the application
D. Mapping database tables to UI fields

28 Which is a common method to prevent 'Cascading Failures' in microservices?

A. Infinite Loops
B. Tight Coupling
C. Monolithic Databases
D. Circuit Breaker Pattern

29 The term 'Smart Endpoints and Dumb Pipes' refers to:

A. Putting logic in the services and using the network only for transport
B. Using dumb terminals
C. Putting logic in the message bus/ESB
D. Using AI in network cables

30 What is 'Request Aggregation' in an API Gateway?

A. Gathering multiple requests from a client into a single request to the backend
B. Gathering data from multiple services to return a single response to the client
C. Blocking all requests
D. Deleting duplicate requests

31 Which architecture is known for 'Spaghetti Code' if not managed well?

A. Microservices
B. Event-Driven
C. Serverless
D. Monolithic

32 What is a 'Domain Event'?

A. A server restart
B. Something that happened in the domain that the experts care about
C. A scheduled meeting
D. A coding error

33 Which testing strategy is most complex in Microservices?

A. Static Analysis
B. Unit Testing
C. Manual Testing
D. End-to-End (Integration) Testing

34 Idempotency in API design means:

A. The API is fast
B. An API call is only allowed once
C. The API is secure
D. An API call can be made multiple times without changing the result beyond the initial application

35 What helps ensure 'High Cohesion' in a microservice?

A. Ensuring the service does one thing and does it well
B. Connecting to multiple databases
C. Spreading related logic across multiple services
D. Grouping unrelated functions together

36 In the context of service boundaries, what is 'Decomposition by Subdomain'?

A. Splitting services based on URL subdomains
B. Splitting services by developer teams
C. Defining services corresponding to Domain-Driven Design (DDD) subdomains
D. Dividing services by file size

37 What is the relationship between an API Gateway and Cross-Cutting Concerns?

A. API Gateway ignores cross-cutting concerns
B. Microservices must handle all cross-cutting concerns individually
C. API Gateway offloads concerns like auth, logging, and SSL termination from individual services
D. Cross-cutting concerns are handled by the database

38 Which of the following best describes 'Loose Coupling'?

A. Services share the same memory space
B. Services are heavily dependent on each other's internal implementation
C. Changes in one service do not require changes in other services
D. Services must differ in programming languages

39 What is a 'Shared Kernel' in DDD Context Mapping?

A. A shared physical server
B. A shared database password
C. A shared operating system
D. A subset of the domain model shared by two teams/contexts

40 Which format is most commonly used for Microservices configuration?

A. Binary code
B. C++ Header files
C. HTML
D. YAML or JSON

41 The 'Two-Phase Commit' (2PC) protocol is often avoided in Microservices because:

A. It is only for Monoliths
B. It is not secure
C. It creates tight coupling and reduces availability (blocking)
D. It is too fast

42 Ideally, a Microservice should be:

A. Dependent on a central orchestrator
B. Independently deployable
C. Large and comprehensive
D. Written in the same language as all other services

43 What does 'API Composition' refer to?

A. Querying data from several services and combining it in memory
B. Writing documentation for APIs
C. Encrypting APIs
D. Compiling API code

44 In DDD, a 'Repository' is responsible for:

A. Managing user sessions
B. Storing source code (like Git)
C. Encapsulating the logic to access data sources and returning domain objects
D. Routing HTTP requests

45 What is the risk of 'Chatty' communication between microservices?

A. Database corruption
B. Too many log files
C. Increased network latency and reduced performance
D. Social engineering attacks

46 Which of the following is a symptom of a 'Distributed Monolith'?

A. Services are independently deployable
B. Services must be deployed together in a specific order
C. Services share high cohesion
D. Each service has its own database

47 Domain-Driven Design focuses primarily on:

A. The database schema
B. The core business logic and domain complexities
C. The user interface design
D. The infrastructure setup

48 Rate Limiting in an API Gateway helps to:

A. Limit the number of developers on a project
B. Protect services from being overwhelmed by too many requests
C. Reduce the cost of software licenses
D. Increase the speed of the internet

49 Who coined the term 'Microservices'?

A. Bill Gates
B. Steve Jobs
C. Linus Torvalds
D. Dr. Peter Rogers (or popularized by Martin Fowler/James Lewis)

50 Which technology is most closely associated with containerizing Microservices?

A. Docker
B. MySQL
C. VirtualBox
D. Apache Tomcat