A colonoscopy and upper endoscopy (EGD) is a combined procedure that involves the insertion of one long, flexible camera into the rectum and another into the mouth.