I suspect it was the horrified nature of having to discuss it that ruled them out (they failed), not the fact that they - I inferred through gentle questioning - had experimented a little with a same-sex relationship whilst at University.
If you're OK with your family finding out or it going in the local paper, you can't be blackmailed over it. You're probably fine.
If you are terrified by the thought of whatever it is - even if it's legal - becoming knowledge of those you care about, and even more so those you don't care about, that's likely a problem.
Within security services and law enforcement, hanging around with criminals - which is what drug dealers in most places are - will rule you out for obvious reasons.
Even in places where drugs (weed increasingly, booze almost everywhere in Europe and North America), being a heavy and habitual user of substances is going to raise an eyebrow and prompt a discussion, at least.
There's different types of polygraphs. The counterintelligence one is basically asking if you're a terrorist, so no trouble there. There's also a "lifestyle" polygraph that is sometimes necessary, which is more focused on how blackmailable you are. It might be an issue there, but I wouldn't be surprised if the questions for that have the same "within 7 years" qualifier.
I live overseas now though, so not sure how that process would go lol
The FBI consists of more than 35,000 special agents and professional staff who work across the globe to protect the U.S. from terrorism, espionage, cyber attacks, and major criminal threats.
Many FBI career options are traditional to the investigative and intelligence community. Others are similar in nature to careers found in most Fortune 500 companies.
* Computer Scientist (Linthicum, MD) - https://apply.fbijobs.gov/psc/ps/EMPLOYEE/HRMS/c/HRS_HRAM_FL...
* Forensic Examiner IT Specialists (All 56 Field Offices) - https://apply.fbijobs.gov/psc/ps/EMPLOYEE/HRMS/c/HRS_HRAM_FL...
* Intelligence Analyst (Nationwide) - https://apply.fbijobs.gov/psc/ps/EMPLOYEE/HRMS/c/HRS_HRAM_FL...
* Special Agent (Nationwide) - https://apply.fbijobs.gov/psc/ps/EMPLOYEE/HRMS/c/HRS_HRAM_FL...
Must be a US Citizen. Must be able to obtain a security clearance. Must pass polygraph examination. See further details in postings.