As usual Terrence Tao nailed. Professors can design a very complex exam using ChatGPT too. And students can use the same tool to solve this. But you can design questions that ChatGPT have not the capability to answer.