Upper endoscopy is performed to rule out intrinsic upper gastrointestinal disease, because, after gastric bypass surgery, the ability to nonsurgically visualize the distal stomach and the duodenum could be a challenge.