Pump shaft extensions are typically selected based on several factors including the type of pump, its application, and the specific requirements of the system. Factors such as torque, speed, alignment, and the need for additional space or flexibility are considered to ensure the shaft extension is appropriately sized and designed for optimal performance and reliability.