How would you do a DNS-based canary release for a global app, and what are its risks?
AdvancedScenarioDNS & Service Discovery
Answer
Situation read → Weighted DNS records provide a gradual shift but are coarse.
What I'd do →
- Create two weighted records (for example 99 to the stable ALB and 1 to the canary ALB) with health checks
- Increase weight in steps while watching error rates and latency
- Keep TTL at 30 to 60 seconds
- Know the risk: caching means a client may stay on canary longer, and weights are by DNS query, not by request
- Prefer load-balancer weighted target groups for per-request control
Why → DNS shifts by resolver query, so low-volume clients may see skewed ratios.
Interview tip → Say you use DNS for cross-cluster shifts and ALB weights for within-region.
More on DNS & Service Discovery
A customer types www.example.com in a browser. Walk through how DNS resolves it.BeginnerWhat is the difference between an A record and a CNAME, and when do you use each?BeginnerWhy can't you put a CNAME at the zone apex, and what do you use instead?BeginnerYou are moving a site to a new server. What do you do with DNS to make the cutover smooth?BeginnerHow do you find which nameservers are authoritative for a domain and query them directly?BeginnerWhat DNS records do you set up for company email?Beginner