0
0
HLDsystem_design~20 mins

Distributed tracing in HLD - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Distributed Tracing Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate
2:00remaining
Purpose of Distributed Tracing in Microservices

Which of the following best describes the primary purpose of distributed tracing in a microservices architecture?

ATo automatically scale microservices based on request volume.
BTo monitor and visualize the flow of requests across multiple services to identify latency and errors.
CTo encrypt all data transmitted between microservices for security.
DTo store all logs from microservices in a centralized database.
Attempts:
2 left
💡 Hint

Think about how distributed tracing helps understand request paths and performance.

Architecture
intermediate
2:00remaining
Key Components of a Distributed Tracing System

Which set of components is essential for implementing a distributed tracing system?

ALoad balancers, API gateways, and service registries.
BDatabase replicas, cache servers, and message queues.
CTrace context propagators, trace collectors, and a trace storage backend.
DAuthentication servers, firewalls, and VPN gateways.
Attempts:
2 left
💡 Hint

Focus on components that handle trace data collection and storage.

scaling
advanced
2:00remaining
Scaling Trace Data Collection in High-Traffic Systems

In a high-traffic distributed system, what is the best approach to scale trace data collection without overwhelming storage and processing?

ASend trace data synchronously with each request to ensure completeness.
BStore all trace data indefinitely without filtering.
CDisable tracing during peak traffic to reduce load.
DImplement sampling to collect traces only for a subset of requests.
Attempts:
2 left
💡 Hint

Consider how to reduce data volume while keeping useful information.

tradeoff
advanced
2:00remaining
Tradeoffs Between Synchronous and Asynchronous Trace Reporting

What is a key tradeoff when choosing between synchronous and asynchronous trace reporting in distributed tracing?

ASynchronous reporting ensures trace completeness but increases request latency; asynchronous reduces latency but may lose trace data on failure.
BSynchronous reporting reduces request latency but may lose trace data; asynchronous increases latency but guarantees trace completeness.
CBoth synchronous and asynchronous reporting have the same impact on latency and data loss.
DSynchronous reporting is only used for error traces; asynchronous is used for all other traces.
Attempts:
2 left
💡 Hint

Think about how reporting method affects user experience and data reliability.

estimation
expert
3:00remaining
Estimating Storage Requirements for Distributed Tracing Data

A system handles 1 million requests per minute. Each trace generates approximately 10 KB of data. If the system stores traces for 7 days, what is the approximate storage needed for trace data?

AApproximately 100 TB
BApproximately 70 TB
CApproximately 1 TB
DApproximately 10 TB
Attempts:
2 left
💡 Hint

Calculate total data per minute, then multiply by minutes in 7 days.