DEV Community

Cover image for Networking Interview Preparation
Shagun Bidawatka
Shagun Bidawatka

Posted on • Updated on

Networking Interview Preparation

I'll sharing important and mostly asked networking topics in interview. In order to keep this blog short and crisp, I'll just add the topic and the intro to the topic. Let's start...

  • Learn basic of how the internet works

The internet is a system of connected networks that enables global communication, using protocols, IP addresses, and domain names to direct traffic and exchange information efficiently.

internet

  • Protocols in Internet communication

Protocols provide a set of rules and standards that ensure data is transmitted efficiently, securely, and consistently across the global network.

Common protocols- HTTP/HTTPS, TCP/IP, DNS, FTP, SMTP, UDP. Give a brief read to each one of them.

  • Difference between HTTP and HTTPS

HTTP is a protocol for transferring data between a browser and a server without encryption, making it vulnerable to interception. HTTPS, on the other hand, encrypts the data using SSL/TLS, ensuring secure and private communication over the internet.

  • Understanding of IP address, Domain name and DNS

IP Addresses - Every device connected to the internet has a unique identifier.

Domain names- Are easy-to-remember addresses that correspond to IP addresses.

DNS- When you type a domain name into your browser, DNS takes over to find the corresponding IP address of the website’s server.

  • REST (Representational State Transfer)

Architectural style for designing web services that allows systems to communicate over the internet using standard HTTP methods.

Key concepts- stateless communication, HTTP Methods, Uniform Interface, Representation of Resources.

Give a read to - HTTP methods like GET, POST, PUT, and DELETE.

  • Status code

They provide information about whether a request was successful, if there was an error, or if further action is needed.
1xx (Informational) - 100
2xx (Success) - 200, 201
3xx (Redirection) - 301,302
4xx (Client Errors) - 400, 401, 403, 404
5xx (Server Errors) - 500, 503

  • OPTIONS method

It doesn’t request the resource itself, but rather asks what HTTP methods (e.g., GET, POST, DELETE) are supported and what other capabilities are allowed, such as authentication, headers, or CORS (Cross-Origin Resource Sharing) rules.

When a client (e.g., a web browser) makes a cross-origin request (i.e., a request to a different domain), the browser first sends an OPTIONS request to the server to check if the actual request is allowed. It is crucial for security.

  • Headers

https://dev.to/shagun/understanding-request-and-response-headers-in-rest-apis-43nf

I just tried to collate the topics, you should give a brief read about them. I'll be adding further more blogs on interview questions.
Feel free to comment, if you find any missed out topics or want to add anything on it.

For 1:1 discussion, connect here: https://topmate.io/shagun

Top comments (0)