A service must meet a latency target at expected peak traffic before each release, without affecting production users. Where should the pipeline run the load test?
Show the answer
Correct answerB. In a production-like environment before release approval
AWhy not this: Individual handler measurements do not capture the deployed system's end-to-end performance under load.
BWhy this is right: Representative infrastructure and dependencies allow meaningful load testing before production exposure.
CWhy not this: Applying peak test traffic in production risks affecting users and does not validate performance before release.
DWhy not this: Mocks omit real dependency behavior and cannot establish deployed-service latency under peak traffic.
A production-like preproduction environment allows representative load testing before release without affecting users. Testing isolated handlers can measure local performance but omits infrastructure and dependency bottlenecks.