DNS and DHCP MCQ Test: Networking Services Simplified
Test your knowledge on DNS and DHCP with this comprehensive MCQ exam. Understand key networking services, IP address management and domain name resolution to boost your networking skills and exam performance.
📌 Important Instructions
- ✅ This is a free test. Beware of scammers who ask for money to attend this test.
- 📋 Total Number of Questions: 30
- ⏳ Time Allotted: 30 Minutes
- 📝 Marking Scheme: Each question carries 1 mark. There is no negative marking.
- ⚠️ Do not refresh or close the page during the test, as it may result in loss of progress.
- 🔍 Read each question carefully before selecting your answer.
- 🎯 All the best! Give your best effort and ace the test! 🚀
Time Left: 00:00
1. What does DNS stand for?
- Domain Network Service
- Domain Name System
- Digital Network System
- Distributed Name System
2. Which of the following is the primary function of DNS?
- To assign IP addresses to devices
- To resolve domain names to IP addresses
- To secure network traffic
- To manage network traffic
3. What is the role of a DNS resolver?
- To store IP addresses for quick access
- To send requests to authoritative DNS servers
- To block harmful websites
- To route domain names to DNS servers
4. Which DNS record type maps a domain name to an IPv4 address?
- A record
- AAAA record
- MX record
- CNAME record
5. What does the "MX" record in DNS represent?
- Mail Exchange record
- Master Exchange record
- Multiple Extension record
- Media Exchange record
6. What type of DNS record is used to associate a domain name with an IPv6 address?
- A record
- AAAA record
- CNAME record
- PTR record
7. Which protocol does DNS primarily use for communication?
- TCP
- UDP
- HTTP
- FTP
8. What is a DNS cache used for?
- To store domain names for future queries
- To block unwanted traffic
- To encrypt DNS queries
- To filter IP addresses
9. What is the purpose of a DNS server?
- To store and manage the domain name database
- To monitor network security
- To route data packets between networks
- To perform encryption
10. Which type of DNS query is made when a user directly requests an IP address for a domain?
- Iterative query
- Recursive query
- Non-recursive query
- Forward lookup
11. Which of the following is a DHCP message type that is sent by a client to request an IP address from a DHCP server?
- DHCP Discover
- DHCP Offer
- DHCP Request
- DHCP Acknowledge
12. What is the purpose of DHCP relay agents?
- To relay DHCP messages between clients and servers
- To route traffic between different subnets
- To block unauthorized IP address assignments
- To handle DNS queries
13. What is a DHCP scope?
- A set of available IP addresses that a DHCP server can assign
- A list of DHCP servers in the network
- A method for encrypting DHCP traffic
- A technique for segmenting the network
14. What happens when a DHCP server cannot assign an IP address due to a lack of available addresses?
- The client receives a default IP address
- The client will be assigned a private IP address
- The client cannot access the network
- The DHCP server will continue to attempt to assign an address
15. What is the purpose of a DHCP Reservation?
- To ensure a specific device always receives the same IP address
- To assign a temporary IP address to devices
- To restrict access to a network based on IP address
- To automatically configure DNS settings
16. What does the term "DNS poisoning" refer to?
- Corrupting the DNS cache with incorrect IP address information
- Encrypting DNS traffic
- Filtering DNS queries to block malicious sites
- Assigning incorrect IP addresses to devices
17. Which of the following is an advantage of using DHCP over static IP assignment?
- Reduces manual configuration and errors
- Ensures greater security for network traffic
- Requires less bandwidth for IP assignment
- Assigns IP addresses faster
18. What is the purpose of DNS recursion?
- To search for the IP address associated with a domain name across multiple DNS servers
- To filter malicious DNS queries
- To monitor DNS traffic
- To configure DNS settings on devices
19. What is the primary function of a CNAME record in DNS?
- To alias one domain name to another
- To map a domain name to an IP address
- To assign a specific mail server for a domain
- To associate a domain name with an IPv6 address
20. How can DNS security be enhanced to prevent DNS attacks?
- By implementing DNSSEC (DNS Security Extensions)
- By disabling DNS caching
- By using static DNS records only
- By restricting DNS queries to internal users only
21. What is the main advantage of using DHCP over manual IP address configuration?
- Simplifies network management by automating IP address allocation
- Provides more security by assigning unique IP addresses
- Reduces the chances of IP conflicts
- Speeds up network traffic
22. Which of the following tools is used for testing and troubleshooting DNS?
- ipconfig
- nslookup
- ping
- traceroute
23. What type of DNS record is typically used for load balancing across multiple servers?
- A record
- CNAME record
- MX record
- SRV record
24. What does a DNS TTL (Time to Live) value indicate?
- The time duration for which DNS information is cached
- The number of DNS servers in a query
- The time it takes for DNS queries to be resolved
- The priority level of a DNS record
25. What happens when a DHCP lease expires?
- The device loses its assigned IP address and must request a new one
- The device retains the IP address until the server is reset
- The device is automatically assigned a new static IP address
- The device will continue using the same IP address without interruption
26. What is an authoritative DNS server?
- A server that provides the definitive answer to DNS queries for a domain
- A server that filters unwanted DNS requests
- A server that handles DNS caching
- A server that blocks specific websites
27. What is a key feature of Dynamic DNS (DDNS)?
- It allows automatic updating of DNS records when IP addresses change
- It prevents DNS caching
- It improves DNS query performance
- It resolves DNS errors automatically
28. Which of the following best describes the role of a DHCP client?
- To request an IP address from the DHCP server
- To assign static IP addresses to devices
- To filter DNS queries
- To act as a DNS resolver
29. How does a DNS resolver function in the context of a recursive query?
- It queries multiple DNS servers until it gets an authoritative response
- It stores DNS records locally for faster lookup
- It sends requests to only local DNS servers
- It filters DNS requests based on security rules
30. What is the primary function of a DNS forwarder?
- To send DNS queries to another DNS server for resolution
- To block malicious DNS queries
- To encrypt DNS queries
- To perform DNS lookups locally