Question 1 · choose 1
A company runs version 1 of an API behind a load balancer and has deployed version 2 behind a second load balancer in the same AWS Region. Both are reached through api.example.com in Amazon Route 53. The team wants to send about 10% of requests to version 2, watch its error rate, and then raise the share step by step. Which routing policy should the team use?
- ALatency-based routing, with one record for each load balancer
- BWeighted routing, with weights of 90 and 10 on the records
- CGeolocation routing, sending one country's users to version 2
- DFailover routing, with version 2 as the secondary record
Show the answer and why
ALatency-based routing, with one record for each load balancer
Incorrect
Latency routing picks the Region with the lowest latency for the user. Both stacks are in one Region, so it cannot split traffic by share.
BWeighted routing, with weights of 90 and 10 on the records
Correct
Weighted routing sends traffic to each record in proportion to its weight, which AWS describes for testing new versions of software.
CGeolocation routing, sending one country's users to version 2
Incorrect
Geolocation routes by where users are. The share of traffic would depend on the chosen location, not on a percentage the team sets.
DFailover routing, with version 2 as the secondary record
Incorrect
Failover routing sends traffic to the secondary only when the primary is unhealthy, so version 2 would get no traffic in normal operation.
Canary releases at the DNS level use weighted records: change the weights to shift the share without touching the clients.
AWS documentation