Answer :

The only guaranteed method is abstinence 
sokeyoke
Abstinence. Nothing else is 100% guaranteed, but not engaging in any sexual acts is the only method.