A cystoscopy is a diagnostic procedure in which a thin, flexible scope is passed through the urethra to examine the lining of the bladder and prostate. This helps to determine if an enlarged prostate is causing a blockage in the flow of urine.