The human immunodeficiency virus (HIV) changes (mutates) often. Sometimes these changes make the virus resistant to a particular medicine or class of medicines, which means the medicine is no longer effective against the virus. When this happens, the medicine no longer controls virus growth (replication) or protects the immune system.
Resistance testing is done to determine whether resistance has caused treatment to fail and to identify antiretroviral medicines that can be used to treat the infection. There are many reasons that treatment fails, such as:
The most common way people are infected with HIV is by having sex with an infected person. You can't tell by looking at a person whether they have HIV, so you have to protect yourself -- and your sex partner.
and HIV Prevention
Don't have unprotected sex outside marriage or a committed relationship. If you or your partner has ever had unprotected sex -- or if either of you uses injected drugs -- the only way to be sure you don't have HIV is to get tested. Have two HIV tests...