Upper GI endoscopy and colonoscopy are simple procedures that allow your health care provider to look inside your digestive tract. They help to discover certain diseases, such as ulcers, cancer, and inflammatory diseases.