During a pelvic exam, a healthcare provider uses a speculum to open the vaginal canal and visualize the cervix. A swab, which resembles a long cotton-tipped stick, is then inserted into the endocervical canal to collect samples. The procedure is relatively quick, usually taking just a few minutes.