0
0
HLDsystem_design~20 mins

DNS and how domain resolution works in HLD - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
DNS Mastery Badge
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate
2:00remaining
What is the primary role of a DNS resolver in domain name resolution?
In the process of resolving a domain name to an IP address, what does the DNS resolver do?
AIt stores the website content and serves it to the user after resolution.
BIt translates the domain name into an IP address by querying DNS servers on behalf of the client.
CIt assigns IP addresses to devices within a local network.
DIt encrypts the domain name to secure the connection between client and server.
Attempts:
2 left
💡 Hint
Think about the component that acts as a middleman between your device and DNS servers.
Architecture
intermediate
2:00remaining
Which component is responsible for storing authoritative DNS records for a domain?
In the DNS hierarchy, which server holds the definitive information about a domain's IP address?
AAuthoritative DNS server
BRoot DNS server
CRecursive resolver
DCaching DNS server
Attempts:
2 left
💡 Hint
This server provides the final answer for a domain's IP address.
scaling
intermediate
2:30remaining
How does DNS caching improve the scalability of domain resolution?
Consider a large number of users requesting the same domain name. How does DNS caching help handle this load efficiently?
ABy increasing the number of root DNS servers to handle more requests.
BBy assigning new IP addresses dynamically to reduce server load.
CBy encrypting DNS queries to prevent unauthorized access.
DBy storing previously resolved IP addresses locally to reduce repeated queries to authoritative servers.
Attempts:
2 left
💡 Hint
Think about how repeated requests for the same domain can be answered faster.
tradeoff
advanced
2:30remaining
What is a tradeoff when setting a very long TTL (Time To Live) for DNS records?
If a DNS record has a very long TTL, what is a potential downside?
AChanges to the domain's IP address take longer to propagate, causing outdated information to be used.
BIt increases the number of DNS queries to authoritative servers.
CIt causes DNS resolvers to ignore the record completely.
DIt reduces the security of DNS queries by exposing them longer.
Attempts:
2 left
💡 Hint
Think about how long cached information stays valid before updating.
estimation
expert
3:00remaining
Estimate the number of DNS queries a recursive resolver handles per second if it serves 1 million users daily, each making 100 domain requests, with a cache hit rate of 90%.
Calculate the approximate number of DNS queries sent to upstream servers per second by the recursive resolver.
AApproximately 11,574 queries per second
BApproximately 100,000 queries per second
CApproximately 116 queries per second
DApproximately 10,000 queries per second
Attempts:
2 left
💡 Hint
Calculate total daily requests, apply cache hit rate, then divide by seconds in a day.