Networks and the Internet: Question 10
Syllabus 2.1
Solstice Bakery's website can be reached using the URL
https://www.solsticebakery.example.com/menu/pastries.html.
Which statement correctly identifies the protocol, the domain name and the path used in this URL?
Show worked solution Hide worked solution
Worked solution
Why B is correct
A URL is built from several distinct parts, in a fixed order:
- The protocol comes first, written before the
://separator, here,https. - The domain name comes next, identifying the specific web server being contacted, here,
www.solsticebakery.example.com. - The path comes after the domain name, starting from the first single forward slash, and
locates a specific resource on that server, here,
/menu/pastries.html, which points to thepastries.htmlfile inside amenufolder on the server.
Putting these together: protocol https, domain name www.solsticebakery.example.com, path
/menu/pastries.html, exactly what option B states.
Why the other options are wrong
- A swaps the protocol and domain name around, treating
wwwas the protocol andhttpsas part of the domain name, which is backwards. - C treats the path as the protocol and the domain name as the path, and also misidentifies
httpsas the domain name. None of the three parts are matched correctly. - D correctly identifies
httpsas the protocol, but then swaps the domain name and the path around, describing the path as the domain name and the domain name as the path.
Final answer
B, protocol https, domain name www.solsticebakery.example.com, path /menu/pastries.html.