
Answer-first summary for fast verification
Answer: Increase the load on your test and staging environments
The question focuses on addressing performance bugs that only appear in production, not in staging or test environments. Option C (Increase the load on your test and staging environments) is the most direct solution because performance issues often stem from inadequate load testing in pre-production environments. By simulating production-level loads, these bugs can be identified and fixed before deployment. The community discussion supports this, with many comments emphasizing that 'performance' relates to load and that replicating production conditions in testing is key. While option D (canary deployment) is a valid deployment strategy, it does not directly address the root cause—insufficient load testing—and may not catch performance issues if the subset of users does not generate enough load. Options A and B are less relevant as they do not specifically tackle the performance testing gap.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
No comments yet.
You are experiencing performance issues in production that weren't present in staging or test environments. How should you modify your testing and deployment processes to prevent this in the future?
A
Deploy fewer changes to production
B
Deploy smaller changes to production
C
Increase the load on your test and staging environments
D
Deploy changes to a small subset of users before rolling out to production