Technical round
Programming, OOP, DBMS, operating systems and your project, the core of most Deloitte fresher interviews.
7. What is phishing, and how can organisations prevent it?
Phishing is a social engineering attack where attackers send fake emails, messages or websites that look genuine to trick people into revealing passwords, clicking malicious links or transferring money. Prevention includes security awareness training, email filtering, multi-factor authentication, verifying payment requests through a second channel, and checking sender addresses and links carefully.
8. Write a SQL query to find each department's highest-paid employee.
Use a window function to rank employees within each department by salary and keep rank one. Using RANK keeps ties; ROW_NUMBER would keep only one employee per department.
SELECT department, name, salary
FROM (
SELECT department, name, salary,
RANK() OVER (PARTITION BY department ORDER BY salary DESC) AS rnk
FROM employees
) ranked
WHERE rnk = 1;