Answering the questions the way the tester wants some answered and their true feelings are two separate things
Of course; that’s life.
At least if they answer the way that is wanted indicates they know what the answer should be, and if they advocate in their actual teaching DEI and other nonsense then it is clear they are insubordinate rather than just stupid.