A biopsy is the only sure way to diagnose salivary gland cancer. A fine-needle aspiration biopsy is the type often used to diagnose salivary gland cancer.