What is the difference between weighted and latency-based routing in Amazon Route 53, and under what conditions would you choose one over the other?

Weighted routing distributes traffic based on assigned weights, while latency-based routing directs traffic to the lowest-latency resource. Choose weighted routing for A/B testing or load balancing; opt for latency-based routing when minimizing response time is crucial.