D1: Architectural Patterns
AWS Associate AWS Certified Developer – Associate exam practice questions · 11 flashcards
Question
Event-driven architecture?
1 / 11
Tip: Space flips the card, ← / → navigate.
Show all 11 Architectural Patterns practice questions and answers
- Event-driven architecture?Components react to events (state changes) published by producers, typically via EventBridge, SNS, SQS.
- Microservices architecture?Application split into small, independently deployable services communicating via APIs/events.
- Monolithic architecture?Single deployable unit containing all functionality; simpler but harder to scale/deploy independently.
- Choreography?Services react to each other's events with no central controller (e.g. via EventBridge).
- Orchestration?A central coordinator (e.g. Step Functions) directs the workflow steps.
- Fan-out pattern?One message delivered to many consumers, e.g. SNS topic → multiple SQS queues.
- Stateless vs stateful?Stateless services keep no session data locally (store it in DynamoDB/ElastiCache); stateful keep it in memory, hindering scaling.
- Tightly vs loosely coupled?Tightly coupled components depend directly on each other; loosely coupled communicate via queues/events and tolerate failures.
- Synchronous vs asynchronous?Synchronous waits for a response (API call); asynchronous hands off work (queue/event) and continues.
- Choreography vs orchestration trade-off?Choreography: loosely coupled, harder to trace. Orchestration: visible, central control, easier error handling.
- Saga pattern?Manages distributed transactions as steps with compensating actions on failure (often Step Functions).