A colonoscopy is a medical procedure that allows a doctor, typically a gastroenterologist, to examine the inner lining of your large intestine (rectum and colon). The procedure is performed using a long, flexible tube called a colonoscope, which has a small camera on its end to transmit images to a video monitor.