A service meets average latency targets but has very high p99 latency during peak hours. Requests share one unbounded worker pool and low-priority batch jobs compete with interactive work. Which capacity control is best?
Answer: C
Explanation
Workload Isolation and Tail-Latency Control The p99 problem indicates that a subset of requests is waiting or competing under peak load, even though the average looks acceptable. Separate queues and concurrency budgets can prevent background batch work from consuming all capacity needed by interactive requests. Priority should be paired with admission control so low-priority jobs are deferred or rejected gracefully when the service is saturated. Queue age, service time, and dependency latency should be monitored by workload class to identify the source of tail delay. Increasing timeouts may keep requests waiting longer and worsen congestion. A more expensive model does not solve queue contention. This design isolates latency-sensitive work and gives the system an explicit overload behavior. It improves the experience for interactive users while retaining a controlled path for background throughput. How to apply it For this scenario, workload isolation and tail-latency control should be implemented as an explicit application contract: persist the relevant inputs and state, validate preconditions at the responsible boundary, and expose the outcome in a trace. Define safe behavior for missing or inconsistent state, then verify it with normal, failure, and retry-path tests before rollout.