Pediatricians typically decide on a specialization during their residency training. Exposure to different subspecialties during this period can help them determine their areas of interest. Some factors that influence this decision include personal interests, the prevalence of certain conditions, and the need for specialists in specific areas.