Cloud Native Patterns Flashcards
7 cards from real KCNA practice questions. Tap to flip, then mark Knew It or Still Learning โ missed cards come back until you master them.
Read the first 7 Cloud Native Patterns flashcards as text
Which cloud native pattern ensures that a service remains available even when one of its dependencies is experiencing failures?
Answer: Circuit Breaker
The Circuit Breaker pattern prevents cascading failures by stopping requests to a failing dependency and allowing it time to recover.
In the Sidecar pattern, what is the relationship between the sidecar container and the main application container?
Answer: They share the same Pod and network namespace
Sidecar containers in a Pod share the same network namespace and can communicate over localhost with the main container.
What problem does the Strangler Fig pattern primarily address in cloud native migrations?
Answer: Incrementally replacing a legacy monolith with microservices
Strangler Fig allows teams to gradually migrate a monolith by routing new features to microservices while the legacy system remains operational.
Which pattern uses a single entry point to handle cross-cutting concerns like authentication and rate limiting before forwarding requests to backend services?
Answer: API Gateway
An API Gateway acts as a single entry point that enforces cross-cutting concerns such as authentication, logging, and rate limiting.
In event-driven architecture, what is the role of an event broker like Apache Kafka?
Answer: Decouples producers and consumers by persisting and distributing events
An event broker like Kafka decouples producers from consumers by durably storing events and allowing consumers to process them independently.
What is the primary benefit of using the CQRS (Command Query Responsibility Segregation) pattern?
Answer: Separates read and write models to optimize each independently
CQRS separates the read and write sides of a system, allowing each to be independently scaled, optimized, and evolved.
Which pattern helps prevent a slow or failing service from consuming all resources and degrading other services in the system?
Answer: Bulkhead
The Bulkhead pattern isolates failures by partitioning resources (e.g., thread pools, connection pools) so one service's failure cannot exhaust shared resources.