Is it relevant to the ability to do the job or not? If not, it doesn't matter if it's known up front. I suppose it's fine for a company to put on a job description that "we don't want no Catholic pedophiles up in here" as long as its stated clearly and unambiguously? Hey, if you don't want to be asked about your religion, don't apply. Right?