There were two coding problems.
code
protocol://domain:port/path?security#fragment
NOTE: port range is from 1 - 65535
Validate the logs, which will be in the format below.
Format: Date | IP | Status Code | Endpoint
Eg: 2025-02-13 12:45:12 | 192.168.158.125 | 200 | /profile
There may also be malformed entries in the log file.
How would you validate these entries and how will you store it ?
2025-02-13 12:45:12 | 192.168.158.125 | 200 | /profile | 134
NOTE: time frame is like 1.00 - 2.00, 2.00 - 3.00, 12.00 - 13.00, etc.,
Redesigning the Architecture.
In this architecture, There are ‘N’ clients running some automated tests and sending step-by-step tests results to the database. And there is a web app that fetches results from the database to display it on the frontend.
With the current architecture, lock
may occur while all the test clients and the frontend are trying to read/write to the database. How would you solve this problem ?
I’m not sure if the interviewer was from HR since he was talking about a lot of technical stuff.
Uff…That’s all about the interview rounds. Only thing is to be technically enough to some level, So you could tackle the different counter questions. Communicate with the interviewer more, speak out while you are thinking.