Engineering
Engineering MCQs With Answers
0 Engineering MCQs for CSS, PPSC, FPSC, NTS and entry-test preparation. Take a scored quiz instead →
In microservices architecture, managing distributed transactions across multiple independent service databases without global two-phase commit relies on the:
ATwo-Phase Commit (2PC)
BUnit of Work Pattern
CActive Record Pattern
DSaga Pattern
Which microservices pattern isolates elements into pools so that if one component fails, the remaining components continue operating without system-wide crash?
ACircuit Breaker Pattern
BBulkhead Pattern
CStrangler Fig Pattern
DSidecar Pattern
An architectural migration pattern that incrementally replaces legacy monolithic system features with new microservices until the monolith is phased out is:
ABig Bang Migration Pattern
BAdapter Pattern
CStrangler Fig Pattern
DProxy Pattern
An architectural pattern that captures all changes to an application state as a chronological sequence of immutable events is:
ACQRS
BPublish-Subscribe
CObserver Pattern
DEvent Sourcing
In microservices architecture, what resiliency pattern prevents cascade failures by wrapping remote calls and immediately returning a fallback if error thresholds are exceeded?
ACircuit Breaker Pattern
BBulkhead Pattern
CRetry Pattern
DSaga Pattern
An architectural pattern that segregates the read data model from the write data model to optimize performance and scalability is:
AEvent Sourcing
BDomain-Driven Design
CCommand Query Responsibility Segregation (CQRS)
DModel-View-Controller
In Domain-Driven Design (DDD), an entity that acts as the root gatekeeper for a cluster of associated domain objects to enforce consistency boundaries is an:
AAggregate Root
BValue Object
CDomain Service
DRepository
In Domain-Driven Design (DDD), an object defined solely by its attribute values rather than a unique identity is a:
AEntity
BValue Object
CAggregate Root
DFactory
In software architecture, the principle that modules should exhibit high cohesion internally while maintaining low coupling externally is:
ALoose Coupling & High Cohesion Principle
BSingle Responsibility Principle
COpen-Closed Principle
DLaw of Demeter
The Law of Demeter (Principle of Least Knowledge) states that an object’s method should only invoke methods of:
AAny global object anywhere in the application
BItself, its parameters, objects it instantiates, and its immediate direct component fields
CSubclasses located 3 levels deep in the inheritance tree
DRemote microservices without authentication
