During a biopsy, a doctor removes a small amount of tissue to examine under a microscope. Other tests can suggest that cancer is present, but only a biopsy can make a diagnosis. ... You may have the biopsy in your doctor's office. But sometimes surgery or another procedure may be needed to get a tissue sample.