Sadly it seems tech hiring wants to optimize for cheating by putting a lot of importance on tests and credentials. Deemphasize these, and assess candidates more holistically, and cheating is no longer a factor. It’s easy to cheat on a test, or get a credential you don’t deserve, but these are amazingly treated as the solution rather than the cause of cheating.