It’s a combination of two antiretroviral drugs also used in HIV treatment (Tenofovir and Emtricitabine) and the effectiveness of it can’t really be overstated - my understanding is that there are only two documented cases of someone correctly using this drug becoming HIV-positive, and in both cases due to rare strains with resistance to both drugs.
It’s not a vaccine, but it does change the picture massively for at-risk groups.
So then it is only a matter of time before we have 'super' HIV strains that are resistant running around. Perhaps it's not such a great idea to have large numbers of people exposing these drugs to the virus regularly, else we'll end up with more resistant strains..
The bigger risk of drug-resistant strains emerging is due to poor adherence to medication regimes. Missing doses of antiretroviral therapy can cause drug resistance to emerge rapidly, as viral replication is no longer suppressed and HIV mutates like crazy.