DNS & Domain Resolution — Concept Check
Questions on DNS & Domain Resolution. DNS translates human-readable domain names (api.example.com) into IP addresses. Understanding DNS is essential for system design because it is the first hop of every request and enables load balancing, failover, and service discovery.
Questions in this quiz
7 questions on DNS & Domain Resolution — Concept Check. Work through them here, then start the quiz to answer them and see your score.
1.A user reports that accessing 'api.example.com' is slow. You check the TTL for DNS records and find it's set to 3600 seconds. What could be a reason for the slowness?
- AHigh TTL causes longer cache retention, delaying updates.
- BHigh TTL causes DNS records to expire too quickly.
- CLow TTL causes DNS records to be cached too long.
- DLow TTL increases DNS query load, slowing access.
2.A service in India is experiencing high latency when accessing 'api.example.com'. The DNS uses latency-based routing. What is a likely cause?
- AThe DNS is using weighted routing instead of latency-based routing.
- BThe service is not configured to use DNS at all.
- CThe closest region's health check failed, routing traffic elsewhere.
- DThe DNS records have a high TTL, causing outdated routing decisions.
3.A company uses DNS for service discovery. They observe that their DNS queries have increased significantly. What change might they have made?
- ADecreased the TTL for DNS records.
- BStarted using TXT records for verification.
- CIncreased the TTL for DNS records.
- DSwitched from A records to CNAME records.
4.What happens when a browser cannot find a DNS record in its cache?
- AIt queries the root server immediately.
- BIt returns an error to the user.
- CIt queries the OS cache for the record.
- DIt directly queries the authoritative nameserver.
5.A DNS resolver returns an IP address for 'api.example.com'. Which server was the last in the query chain?
- AAuthoritative nameserver for example.com
- BRoot server
- CTLD server for .com
- DISP's recursive resolver
6.In a DNS resolution process, which server provides the TLD server information?
- AAuthoritative nameserver
- BISP's DNS server
- CRecursive resolver
- DRoot server
7.What type of DNS record should be used to alias 'www.example.com' to 'api.example.com'?
- ACNAME
- BTXT
- CMX
- DA