Here are some things you can do if you are asked illegal questions in an interview:
Politely but firmly decline to answer the question. You can explain that you are not comfortable answering questions about your age or marital status because they are not relevant to the job.
Ask the interviewer how the question relates to the job requirements. This can help you understand their true motive for asking the question.
Report the incident to the Equal Employment Opportunity Commission (EEOC). You can file a complaint online or by calling 1-800-669-4000.
It’s important to remember that you have rights as a job applicant, and you should not feel pressured to answer illegal questions.