How do TCP and TLS relate to each other? What problem does TLS solve?
Frontend
If TLS encrypts traffic, but an attacker intercepts the packet and re-sends it to the server (replay attack) — why won't this work? What happens during the steps of establishing a TLS connection?
What are the advantages and disadvantages of TypeScript compared to JavaScript?
Evaluate the following authorization implementation: login/password form, backend searches for a user in the database (table: id, username, password), takes an integer ID and writes it into a cookie with HttpOnly flag. What's wrong with this implementation and how to fix it?
How does React work under the hood? Explain the reconciliation mechanism, Virtual DOM, Fiber architecture, and why there are two phases (render and commit).
HTTP is a protocol of which OSI model layer? What is underneath it?
Describe what happens network-wise when a browser requests a page — for example, you enter a link in the address bar. Outline all steps from that moment until the HTML code is received.
Provide an example of a poorly designed functional component that causes unnecessary re-renders, and explain how to fix it.
What is React, why is it needed, and what tasks does it solve? When should you use React, and when is plain JavaScript enough?
How to properly generate authorization tokens? What should be inside the token to protect against brute force?
How is asymmetric encryption used within TLS and what is it for?
What does an HTTP request consist of? Name its main parts and blocks.
When using HTTPS, which parts of the HTTP request are encrypted and which remain open? For example, is the URL, headers, or request body encrypted?
Besides IP address, what else is needed to open a TCP connection?
How do sessions and authorization work? How do subsequent requests not require re-authorization after login?
A user clicks the pay button for 100 rubles, a POST request is sent to the server, but no response is received — timeout. How to prevent double charging on retry? How is this handled on the frontend and architecture?