0
0
Microservicessystem_design~20 mins

Chaos engineering basics in Microservices - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Chaos Engineering Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate
1:30remaining
What is the primary goal of chaos engineering?

Chaos engineering is a practice used in microservices to improve system reliability. What is its main goal?

ATo intentionally introduce failures to identify weaknesses before they cause real problems
BTo speed up the deployment process by automating tests
CTo replace manual monitoring with automated alerts
DTo reduce the number of microservices in a system
Attempts:
2 left
💡 Hint

Think about why we would want to cause failures on purpose in a system.

Architecture
intermediate
1:30remaining
Which component is essential in a chaos engineering system for safely running experiments?

In a microservices architecture, chaos experiments must be controlled to avoid major outages. Which component helps manage this safely?

ALoad balancer that distributes traffic evenly
BChaos experiment orchestrator that schedules and controls failure injections
CDatabase replication system for backups
DAPI gateway for routing requests
Attempts:
2 left
💡 Hint

Consider which part controls when and how failures happen during chaos testing.

scaling
advanced
2:00remaining
How should chaos experiments scale in a large microservices system?

When applying chaos engineering to a large system with many microservices, what is the best approach to scaling experiments?

AStart with small, isolated experiments on critical services and gradually increase scope
BRun chaos experiments on all services simultaneously to find all issues quickly
CScale experiments by increasing the number of injected failures per service immediately
DOnly test non-critical services to avoid impacting users
Attempts:
2 left
💡 Hint

Think about minimizing risk while learning about system weaknesses.

tradeoff
advanced
2:00remaining
What is a key tradeoff when running chaos experiments in production?

Running chaos experiments in a live production environment can improve reliability but also has risks. What is a key tradeoff?

AChoosing between faster deployments and slower rollback times
BSelecting between cloud and on-premise infrastructure
CBalancing between discovering hidden failures and risking temporary user impact
DDeciding whether to use manual or automated monitoring tools
Attempts:
2 left
💡 Hint

Consider what happens when you cause failures in a system users rely on.

estimation
expert
2:30remaining
Estimate the minimum number of chaos experiments needed to cover 10 microservices with 3 failure types each, assuming independent tests.

You have 10 microservices and want to test 3 failure types (e.g., latency, error, crash) on each independently. What is the minimum number of chaos experiments to cover all cases?

A10 experiments
B13 experiments
C3 experiments
D30 experiments
Attempts:
2 left
💡 Hint

Multiply the number of services by the number of failure types for independent tests.