Very carefully. All persons who apply for a clearance fills out an SF-86 form that contains a very wide range of questions regarding family, friends, relatives, schools attended, and so on (google SF-86). This and other questionnaires form the basis for a background check. In addition to questions, interviews are also conducted and financial information is gathered.All of the above applies to the FBI and all other three letter agencies of the Intelligence Community.