The hat question and others like it will remain. As others have posted, you have to think to yourself why are they asking this question to me? What does the question represent? Leadership skills? Communication skills? Judgement skills? Following the company policy or procedure? What are they trying to learn about me?
Once you answer those questions you will understand why they ask these types of questions at the interview.