A colonoscopy is a test which allows your gastroenterologist to look in the colon. A thin tube with a camera is inserted into the rectum. This can be done for a variety of reasons, including as routine screening for polyps and cancers. The exam is usually done under sedation and requires a bowel cleansing preparation.