A colonoscopy is performed for various reasons, including investigating symptoms such as abdominal pain, rectal bleeding, chronic constipation, chronic diarrhea, and other intestinal problems. It is also a crucial screening tool for colorectal cancer and is recommended for adults starting at age 50, or earlier for those with a family history of colon cancer.