While primary immunodeficiencies are the result of genetic defects, secondary immunodeficiencies are caused by environmental factors, such as HIV/AIDS.