Measuring knowledge at scale is futile, harmful, and pointless. The fact that a lot of society has been arranged around the fiction that this is a feasible endeavor does not mean it has borne out in practice, and prioritizing assessment in this way has been gradually hollowing out most forms of pedagogy of their value while building an ever-expanding series of increasingly meaningless hoops for people to jump through to get what they actually need. We have deemed it necessary to create assessments to prop up the idea that education can be easily measured and should gate meaningful life outcomes for most people. Most if not all "cheating" behavior is either just a rational, strategic response to this situation, or a disconnect between how people actually solve problems (e.g. often collaborative and laser-focused on the part of the problem that drives the outcome, in this case the assessment) and some weird cultist notion of what it means for an individual to do it "correctly".
Effective pedagogy will never scale unless we get some really AGI-like technologies (I loved The Diamond Age as a kid, but A Young Lady's Illustrated Primer is from the perspective of extant tech a total pie-in-the-sky fantasy, illustrative of how meaningful teaching requires individualized approaches), and we see time and time again that teacher-to-student ratios as well as particularly good specific teachers are overwhelmingly the drivers of even the stupid metrics we are optimizing for
In short, this whole system is broken because its fundamental premise is flawed