Question 51
MediumWhat does a CDN do for a website?
- A.
Encrypts DNS
Popular companies
Prepare company by company
Hiring pattern, syllabus, past questions and mocks for each company.
All companiesPractice by subject
Computer Networks
What does a CDN do for a website?
Encrypts DNS
Registers domain names
Serves content from servers close to users, reducing latency and load on the origin
Replaces the web server's database
Sign up free to see the answer and a step-by-step explanation.
How does HTTP/1.1 persistent connection (keep-alive) improve performance?
It encrypts data
It sends requests over UDP
Several requests reuse one TCP connection, avoiding repeated handshakes
It compresses headers
Sign up free to see the answer and a step-by-step explanation.
What is a REST API's typical response format today?
Plain text over Telnet
Binary over SMTP
JSON over HTTP
XML over FTP only
Sign up free to see the answer and a step-by-step explanation.
What is the role of the Host header in HTTP/1.1?
It holds the client's IP
It names the website requested, so one IP address can host many sites
It sets the cache time
It carries the cookie
Sign up free to see the answer and a step-by-step explanation.
In what order is a domain name resolved by an iterative DNS lookup when nothing is cached?
TLD → root → authoritative
Root server → TLD server (.com) → authoritative server for the domain
The browser contacts the website directly
Authoritative server → root → TLD
Sign up free to see the answer and a step-by-step explanation.
What does a CNAME record do?
Names the domain's mail server
Makes one domain name an alias of another name
Maps a name to an IPv6 address
Stores text for verification
Sign up free to see the answer and a step-by-step explanation.
Which HTTP version introduced multiplexing many requests over a single TCP connection with binary framing?
HTTP/1.1
HTTP/2
HTTP/0.9
HTTP/1.0
Sign up free to see the answer and a step-by-step explanation.
Which protocol assigns IP addresses using the DISCOVER, OFFER, REQUEST, ACK exchange?
DNS
DHCP
BOOTP only
ARP
Sign up free to see the answer and a step-by-step explanation.
Which HTTP header lets a browser cache a response and reuse it for a set time?
Cache-Control
User-Agent
Host
Content-Type
Sign up free to see the answer and a step-by-step explanation.
Why does an HTTPS website need a certificate signed by a trusted authority?
To make the site load faster
So the browser can verify the server's identity and safely set up encryption
To use port 80
To get a domain name
Sign up free to see the answer and a step-by-step explanation.