My favorite math class I ever took had optional homework, but every exam problem was taken directly from the homework. So if you did all the homework the exams were very easy.
I imagine this would work very well in the current period since there’s no reason to use LLMs for this homework. Of course even back then many students didn’t do it and got low grades, but you have to be responsible at some point.