A throat swab is a medical procedure used to collect a sample of cells and fluids from the back of the throat and tonsils. This sample is then analyzed to diagnose various infections, most commonly bacterial and viral infections. In pediatrics, this is particularly important for identifying conditions like streptococcal pharyngitis (strep throat).