A prostate biopsy is the only way to diagnose prostate cancer. It is often performed after other tests show the possibility of prostate cancer. These tests include:  Prostate-specific antigen, or PSA, test. Digital rectal examination, or DRE. Transrectal ultrasound, or TRUS.