Interview questions you will be asked
Stage 6 · Lesson 4 · 25 minutes · Requires Stages 0, 1 and 5
The one-line answer
A fresher security interview mostly checks three things: do you understand the fundamentals, can you explain them simply, and can you talk through something you actually did — all of which you've been building since Stage 0.
Why you should care
The interview is where your portfolio pays off and where a lot of candidates fall apart — not because they don't know the material, but because they've never said it out loud. Knowing HTTP and explaining HTTP in a calm, clear sentence to an interviewer are different skills.
The good news: fresher security interviews are predictable. The same core questions come up again and again, because interviewers are testing the same fundamentals. This lesson gives you the real questions and how to answer them, so you practise before you're in the room, not during.
How it actually works
Fresher interviews usually have a few parts: a quick chat, fundamentals, a scenario or two, questions about your projects, and your questions for them. Here's what each tends to ask.
Fundamentals — know these cold
These are near-guaranteed. Answer in one or two clear sentences, not a lecture.
"Explain the difference between encoding, encryption and hashing." Encoding changes the format and is reversible by anyone (Base64). Encryption hides data and needs a key to reverse (AES). Hashing is one-way and can't be reversed, used for integrity and password storage (bcrypt). (Stage 0 Lesson 6.)
"What happens when you type a URL and press Enter?" DNS resolves the name to an IP, a TCP connection (and TLS handshake for HTTPS) is set up, the browser sends an HTTP request, the server responds, the browser renders it. They want to see you connect DNS → TCP/IP → HTTP. (Stages 0–1.)
"What's the difference between TCP and UDP?" TCP is connection-oriented and reliable (handshake, ordering, retransmission); UDP is connectionless and fast with no guarantees. (Stage 1 Lesson 3.)
"What are the HTTP status code families / what's the difference between 401 and 403?" 2xx success, 3xx redirect, 4xx client error, 5xx server error. 401 = not authenticated (who are you?); 403 = authenticated but not allowed. (Stage 0 Lesson 3.)
"What is the CIA triad?" Confidentiality, Integrity, Availability — the three properties security protects.
"Symmetric vs asymmetric encryption?" Symmetric uses one shared key (fast, AES); asymmetric uses a public/private key pair (solves key distribution, RSA/ECC). HTTPS uses asymmetric to agree a key, then symmetric for speed.
Web security — the OWASP staples
"What is SQL injection and how do you prevent it?" User input is concatenated into a database query, letting an attacker change what it does. Prevent it with parameterised queries / prepared statements, plus least-privilege DB accounts. Always end on the fix — interviewers care that you know the defence.
"What is XSS? The types?" Running attacker-controlled JavaScript in a victim's browser. Reflected (in the response to a request), stored (saved and served to others), DOM-based (client-side). Fix: context-aware output encoding, a Content-Security-Policy, HttpOnly cookies.
"What is CSRF, and how is it different from XSS?" CSRF tricks a logged-in user's browser into making a state-changing request to a site they're authenticated on. XSS runs script in the page. CSRF is defended with SameSite cookies and anti-CSRF tokens; XSS with output encoding and CSP.
"What is the OWASP Top 10?" The most common/critical web risks (injection, broken access control, broken auth, etc.). You don't need to recite all ten — know what it is and be able to discuss two or three.
SOC / blue-team scenarios
If you're interviewing for SOC, expect scenario questions — exactly the Stage 5 labs in spoken form.
"You see 500 failed logins then one success from the same IP. What is it and what do you do?" A successful brute force. Investigate what the account did after, confirm the source, contain it (disable/reset), and check for lateral movement. (Stage 5 / the log labs.)
"How would you tell a phishing email is malicious?" Check the real sending domain vs the display name, the SPF/DKIM/DMARC results, where the links actually go, and the pressure/urgency tactics. (Stage 5 phishing labs.)
"Walk me through how you'd triage a security alert." Understand what fired, gather context (user, host, time), separate false positive from real, establish a timeline, escalate with a clear write-up if it's real. They're testing your process, not a magic answer.
Your projects — where you win
"Tell me about a vulnerability or finding you've worked on." This is why Lesson 1 exists. Pick one lab or writeup and tell it as a story: what the goal was, what you tried, why it worked, and the fix. Being able to explain the fix and the why is what separates you. Prepare two of these in advance and rehearse them.
Behavioural / fit
"Why security?" — a genuine, short reason, not a rehearsed speech. "How do you keep up with security?" — name real sources you actually read (a blog, a newsletter, PortSwigger, a few people you follow). (Stage 0 Lesson 10 habits.) "Tell me about a time you were stuck." — your Stage 0 Lesson 10 unsticking process, honestly.
Your questions for them
Always have two or three. It signals interest and judgement:
- "What does a typical day look like for this role in the first six months?"
- "Is this a SOC shift role, and how is the rotation structured?"
- "What's the path from here to L2 / a specialism?"
Do it now
- Pick the 8 fundamentals questions above and answer each out loud — to a friend, a mirror, or your phone's voice recorder. Aim for two clear sentences, not two minutes.
- Prepare two project stories from your portfolio using goal → attempts → why it works → fix. Rehearse them until they're smooth.
- Record yourself answering five questions and watch it back. You'll catch filler words, rambling, and the spots where you actually don't know it yet — and can go study.
- Write three questions to ask them, tailored to the role.
- Say "I don't know, but here's how I'd find out" out loud a few times, so it feels natural. It's a strong answer when you genuinely don't know something.
How this goes wrong
Reciting without understanding. A memorised definition collapses on the follow-up "why?". Understand the concept (you do — it's the whole course) so you can handle the second question.
Rambling. A 90-second answer to a 10-second question signals you can't prioritise. Answer crisply; let them ask for more.
Bluffing. Making up an answer when you don't know. Experienced interviewers spot it instantly, and it costs you trust. "I haven't worked with that directly, but my understanding is… and I'd confirm by…" is far stronger.
No project story ready. Fumbling "tell me about something you did" when it's the most predictable question and your biggest advantage. Have two ready.
No questions for them. "No, I'm good" at the end reads as low interest. Always have a couple.
Common mistakes
Forgetting the fix. Explaining an attack but not its defence. Interviewers care more about the fix, especially for defensive roles.
Over-claiming from your resume. Every line on it is fair game. If you listed it, be ready.
Trashing the basics prep to study advanced topics. They'll ask the fundamentals, not obscure exploits. Nail HTTP, TCP/IP, encoding-vs-hashing, OWASP basics first.
Letting nerves hide real knowledge. The fix is rehearsal out loud. You know this material; practice turns knowing into saying.
Check yourself
- In one or two sentences each, answer: encoding vs encryption vs hashing; 401 vs 403; how to prevent SQL injection.
- You're asked a question about a tool you've never used. What's the best way to answer?
- Why is "tell me about a finding you worked on" the question you should prepare for most?
Answers
- Encoding changes format and anyone can reverse it (Base64); encryption hides data and needs a key (AES); hashing is one-way and can't be reversed (bcrypt for passwords). 401 means not authenticated; 403 means authenticated but not authorised. SQL injection is prevented with parameterised queries plus least-privilege database accounts.
- Be honest and show process: "I haven't used that directly, but I understand it's used for X; I'd get up to speed by reading its docs and trying it on a lab." Bluffing a fake answer is worse than admitting a gap with a plan.
- Because it's highly predictable, it's where your portfolio becomes a real advantage, and telling it well (goal → attempts → why it works → fix) demonstrates hands-on skill, understanding and communication all at once — the three things the interview is testing.
Your task
Run a mock interview.
- Have someone (or your phone) ask you the 8 fundamentals and 2 scenario questions from this lesson.
- Record it. Watch it back once.
- Note the three answers that were weakest and study those specifically.
- Polish your two project stories until you can tell either one in under 90 seconds.
Do this before your first real interview, not during it.
Summary in your language
தமிழ் சுருக்கம் (Tamil summary)
உங்களிடம் கேட்கப்படும் Interview கேள்விகள்
Fresher security interview பெரும்பாலும் மூன்றைச் சோதிக்கிறது: fundamentals புரிகிறதா, எளிமையாக விளக்க முடிகிறதா, நீங்கள் செய்த ஒன்றைப் பற்றிப் பேச முடிகிறதா.
கட்டாயம் தெரிந்திருக்க வேண்டிய fundamentals (ஒவ்வொன்றும் 1–2 வரியில்):
- Encoding vs encryption vs hashing
- URL type செய்து Enter அழுத்தினால் என்ன நடக்கிறது (DNS → TCP → HTTP)
- TCP vs UDP
- HTTP status codes; 401 vs 403
- CIA triad; symmetric vs asymmetric encryption
Web security: SQL injection என்றால் என்ன + fix (parameterised queries); XSS வகைகள் + fix; CSRF vs XSS; OWASP Top 10.
SOC scenarios: "500 failed logins பின் ஒரு success — என்ன?" (brute force); phishing email-ஐ எப்படி அடையாளம் காண்பது; alert-ஐ எப்படி triage செய்வது. — இவை Stage 5 labs.
உங்கள் projects (இங்கே வெல்கிறீர்கள்): "நீங்கள் செய்த ஒரு finding பற்றி சொல்லுங்கள்" — ஒரு lab-ஐ கதையாகச் சொல்லுங்கள்: இலக்கு → முயற்சிகள் → ஏன் வேலை செய்தது → fix. இரண்டை முன்கூட்டியே தயார் செய்யுங்கள்.
உங்கள் கேள்விகள்: அவர்களிடம் 2–3 கேள்விகள் தயாராக வையுங்கள்.
கவனிக்க:
- மனப்பாடம் செய்யாதீர்கள் — புரிந்துகொள்ளுங்கள். Follow-up கேள்வி வரும்.
- சுருக்கமாகப் பதில் சொல்லுங்கள்; ramble செய்யாதீர்கள்.
- தெரியாவிட்டால் bluff செய்யாதீர்கள்: "தெரியாது, ஆனால் இப்படி கண்டுபிடிப்பேன்."
- சத்தமாகப் பயிற்சி செய்யுங்கள் — record செய்து பாருங்கள்.
हिंदी सारांश (Hindi summary)
जो Interview सवाल आपसे पूछे जाएँगे
Fresher security interview ज़्यादातर तीन चीज़ें जाँचता है: fundamentals समझते हैं, सरलता से समझा सकते हैं, और जो आपने किया उस पर बात कर सकते हैं।
ज़रूर आने वाले fundamentals (हर एक 1–2 line में):
- Encoding vs encryption vs hashing
- URL type करके Enter दबाने पर क्या होता है (DNS → TCP → HTTP)
- TCP vs UDP
- HTTP status codes; 401 vs 403
- CIA triad; symmetric vs asymmetric encryption
Web security: SQL injection क्या है + fix (parameterised queries); XSS के प्रकार + fix; CSRF vs XSS; OWASP Top 10।
SOC scenarios: "500 failed logins फिर एक success — क्या है?" (brute force); phishing email कैसे पहचानें; alert कैसे triage करें। — ये Stage 5 labs हैं।
आपके projects (यहाँ जीतते हैं): "कोई finding बताइए जो आपने की" — एक lab को कहानी की तरह बताएँ: लक्ष्य → कोशिशें → क्यों काम किया → fix। दो पहले से तैयार रखें।
आपके सवाल: उनसे पूछने के लिए 2–3 सवाल तैयार रखें।
ध्यान दें:
- रटें नहीं — समझें। Follow-up सवाल आएगा।
- संक्षेप में जवाब दें; ramble न करें।
- न पता हो तो bluff न करें: "पता नहीं, पर ऐसे पता करूँगा।"
- ज़ोर से अभ्यास करें — record करके देखें।
Want this summary in Malayalam, Telugu, Kannada or another language? Tell us — the most requested languages get added next.
What's next
Interviews often have an HR filter before the technical round, and a certification on your resume can help you clear it. But which ones are actually worth your money as a beginner? The honest answer next.
→ Lesson 5: Certifications: which ones are worth paying for