Cybersecurity/November 11, 2026/19 min read
Cyber Security Interview Questions and Answers for Freshers and Experienced Candidates
Prepare for cyber security interviews with 60 practical questions and clear answers across networking, app security, SOC, cloud, incident response, and more.
On this page
Cyber security interview questions can cover anything from networking basics to incident response, cloud security, and risk management. This guide gives you 60 questions with clear answers for freshers and experienced candidates in India. It covers common security roles, including SOC analyst, security engineer, application security tester, and incident responder.
Use the answers to understand the concepts, not as scripts to memorise. Interviewers often ask follow-up questions, so be ready to explain your reasoning and give examples from your own study, projects, or work. If you have not used a tool or handled an incident yourself, say so and explain how you would approach it.
What cyber security fundamentals should you know?
1. What is the CIA triad?
The CIA triad stands for confidentiality, integrity, and availability. Confidentiality limits access to authorised people, integrity helps prevent unauthorised changes, and availability keeps systems and data usable when needed. A good security decision considers all three.
2. What is the difference between a threat, a vulnerability, and a risk?
A threat is something that could cause harm, such as a malicious actor or accidental deletion. A vulnerability is a weakness that could be used or triggered. Risk describes the possible impact and likelihood of that threat affecting a vulnerability in a particular environment.
3. What is the difference between a vulnerability and an exploit?
A vulnerability is a weakness in software, a system, or a process. An exploit is a method or piece of code that attempts to use that weakness. Finding a vulnerability does not automatically mean an attacker can exploit it in every environment.
4. How is a vulnerability assessment different from a penetration test?
A vulnerability assessment looks for and helps prioritise weaknesses across a defined scope. A penetration test uses authorised, controlled testing to check whether selected weaknesses can lead to meaningful impact. A test must have clear permission and rules of engagement.
5. What is the difference between a security event, an alert, and an incident?
An event is an observable activity, such as a login. An alert is a signal that activity may need investigation. An incident is a confirmed or suspected security event that requires a coordinated response under the organisation's process.
What networking and network defence concepts come up in interviews?
1. What are the seven layers of the OSI model?
The layers are Physical, Data Link, Network, Transport, Session, Presentation, and Application. The model helps teams describe where a network function or problem sits. In practice, the TCP/IP model is also widely used.
2. How are TCP and UDP different?
TCP establishes a connection and provides ordered, reliable delivery, which suits many web and file-transfer use cases. UDP has lower protocol overhead and does not guarantee delivery or order, which can suit real-time voice, video, or DNS traffic. The right choice depends on the application.
3. What does DNS do, and why is DNS monitoring useful?
The Domain Name System maps names such as example.com to records that clients can use to reach services. Monitoring DNS can help identify unusual lookups, misconfigurations, or connections to suspicious domains. DNS data is useful evidence, but it does not by itself prove a system is compromised.
4. What is the difference between an IDS and an IPS?
An intrusion detection system (IDS) monitors activity and raises alerts about possible threats. An intrusion prevention system (IPS) can also take configured actions to block or limit traffic. Both need tuning and review because they can miss threats or disrupt legitimate activity.
5. Does HTTPS prevent every man-in-the-middle attack?
HTTPS protects data in transit when TLS is configured correctly and the client validates the server certificate. It does not protect a compromised device, a user who ignores certificate warnings, or an account taken over through another route. Interviewers usually want you to explain both the protection and its limits.
What cryptography and identity questions should you prepare for?
1. How are hashing, encryption, and encoding different?
Encryption is reversible with the right key and is used to protect confidentiality. A cryptographic hash produces a fixed-size digest and is designed to be one-way. Encoding changes data into another representation for compatibility; it is not a security control.
2. What is the difference between symmetric and asymmetric cryptography?
Symmetric cryptography uses the same secret key to encrypt and decrypt data, so the key must be shared safely. Asymmetric cryptography uses a public and private key pair and supports uses such as key exchange and digital signatures. Real systems often combine both approaches.
3. Why should password hashes use a salt?
A salt is a unique random value stored with each password hash. It prevents identical passwords from producing identical stored hashes and makes precomputed hash attacks less useful. Passwords should be processed with a password-hashing function designed to be slow, not a fast general-purpose hash.
4. What does a digital signature prove?
A valid digital signature can show that a message matches a signature produced with the corresponding private key and that the signed data has not changed. It supports authenticity and integrity checks. It does not, by itself, prove who controlled the key or settle every legal question about non-repudiation.
5. What is multi-factor authentication, and what makes one method stronger?
Multi-factor authentication requires evidence from different factor categories, such as something you know and something you have. A password plus a second password is not two factors. Passkeys and hardware security keys can resist phishing better than codes that a user types into a fake sign-in page.
What Linux, Windows, and endpoint security basics are useful?
1. What do Linux file permissions control?
Linux permissions define what the file owner, group, and other users can read, change, or execute. Correct ownership and limited permissions reduce accidental exposure and misuse. Services should not run with more access than they need.
2. Why should administrators avoid using the root account for everyday work?
Root can make system-wide changes, so mistakes or a compromised session can have a larger impact. Administrators can use a separate account and approved elevation, such as sudo, for specific tasks. This also makes actions easier to attribute.
3. What is Active Directory used for?
Active Directory is a directory service commonly used to manage identities, computers, and access in Windows domains. Security teams pay attention to account privileges, group membership, authentication, and changes to directory objects. A strong answer should connect identity management to least privilege and monitoring.
4. How is endpoint detection and response different from traditional antivirus?
Traditional antivirus mainly detects known or suspicious files and activity on a device. Endpoint detection and response (EDR) collects endpoint activity to help detect, investigate, and respond to threats. EDR adds visibility and response capabilities, but it still needs monitoring and a good incident process.
5. What does endpoint hardening involve?
Endpoint hardening reduces unnecessary exposure through secure configuration, timely updates, access controls, disk protection, and removal of unused software or services. Teams should apply a suitable baseline and check that changes do not break essential business work. Hardening is ongoing, not a one-time checklist.
What web and application security questions are commonly asked?
1. What is SQL injection, and how should a developer prevent it?
SQL injection happens when untrusted input changes the meaning of a database query. The main defence is to use parameterised queries or safe ORM patterns, validate input for business rules, and restrict database permissions. Escaping strings by hand is not a dependable replacement.
2. What is cross-site scripting, and how can it be reduced?
Cross-site scripting (XSS) occurs when a site causes untrusted content to run as script in another user's browser. Context-aware output encoding and safe templating are key protections; sanitisation is needed when the product intentionally accepts HTML. Content Security Policy can add another layer, but it does not replace safe handling.
3. What is cross-site request forgery?
Cross-site request forgery (CSRF) tricks a browser into sending an unwanted request with the user's existing session. Defences include anti-CSRF tokens, appropriate SameSite cookie settings, and checking request origin where suitable. Sensitive actions should also require clear user intent.
4. How are authentication and authorisation different?
Authentication checks who or what is making a request. Authorisation decides what that identity is allowed to do. A user can be correctly signed in and still be incorrectly authorised to view another user's data.
5. What is the OWASP Top 10?
The OWASP Top 10 is an awareness resource that highlights important web application security risk areas. It helps teams discuss common classes of risk, but it is not a complete testing standard or a substitute for threat modelling and secure development practices. Check the current OWASP Top 10 before an interview because the project updates its material.
What should you know about penetration testing and vulnerability management?
1. What should be agreed before a penetration test starts?
The written scope should identify the systems, testing window, permitted methods, exclusions, data-handling expectations, escalation contacts, and stop conditions. Get explicit authorisation from the responsible owner. If a target is outside the scope, do not test it.
2. Why is a CVSS score not enough to prioritise a vulnerability?
CVSS gives a structured view of vulnerability severity, but it does not know how exposed or important a particular asset is in your organisation. Prioritisation should also consider exploitability, internet exposure, business impact, existing controls, and credible threat activity. Record the reasoning so owners can make an informed decision.
3. How do you handle a vulnerability that has no available patch?
First confirm the finding and understand the affected systems and potential impact. Work with the owner on practical temporary controls, such as reducing exposure or disabling an affected feature where safe, then track the vendor fix and reassess the risk. Do not promise that a workaround removes the risk completely.
4. What should a useful penetration test report include?
A report should explain the scope and approach, summarise the most important risks, and document each finding with evidence, impact, affected assets, and clear remediation advice. Separate confirmed facts from assumptions and avoid including data that the recipient does not need. The report should be understandable to both engineers and decision-makers.
5. What does retesting a finding involve?
Retesting checks whether the agreed remediation addresses the original finding and whether the issue still appears under the same authorised conditions. Record the result and any remaining risk. Do not expand the scope just because you are already testing the system.
What SOC, SIEM, and threat detection questions can you expect?
1. What does a SIEM do?
A security information and event management (SIEM) platform collects and correlates logs and other security data to help teams investigate activity and create detections. It can reduce the time needed to find related events, but it does not automatically understand every alert or replace an analyst's judgement.
2. How would you triage a security alert?
Check what triggered the alert, the affected asset and account, the time range, and the available supporting events. Compare the activity with normal behaviour and the relevant detection logic, then follow the team's playbook for containment or escalation. Document what you checked and what remains uncertain.
3. What is a false positive, and what is a false negative?
A false positive is benign activity incorrectly flagged as suspicious. A false negative is harmful activity that the detection misses. Both matter: false positives waste analyst time, while false negatives can leave real threats undetected.
4. How are an indicator of compromise and a TTP different?
An indicator of compromise (IOC) is an observable item, such as a suspicious domain or file hash, that may be linked to malicious activity. TTPs are the tactics, techniques, and procedures used by an adversary. IOCs can change quickly, while behaviour patterns may help teams build detections that are less tied to one value. The MITRE ATT&CK knowledge base is a common reference for adversary techniques.
5. What would you check after an unusual login alert?
Review the account, device, time, location signals, authentication method, and activity before and after the login. Compare them with the user's normal pattern and check for other alerts or changes to the account. Treat location data as a clue rather than proof, and follow the organisation's process before taking action.
What incident response and digital forensics concepts matter?
1. What are the main stages of incident response?
A response commonly includes preparation, detection and analysis, containment, eradication, recovery, and learning from the incident. The exact process varies by organisation and incident type. NIST's current incident response guidance connects response activities with broader cybersecurity risk management.
2. What would you do first if a computer appeared to be affected by ransomware?
Follow the incident plan, alert the response lead, and limit the device's network access using an approved method that preserves evidence where possible. Help determine the scope and protect other systems, but do not delete files, power off critical equipment, or restore backups without coordinating with the response team. Decisions about communication and recovery belong to the authorised incident process.
3. What is chain of custody in digital forensics?
Chain of custody is the record of who collected, accessed, transferred, and stored evidence, and when they did so. It helps show that evidence was handled consistently and was not changed without explanation. Follow the organisation's legal and forensic procedures.
4. How should digital evidence be preserved?
Record the source, time, timezone, collector, and collection method, and preserve originals where the process requires it. Use approved tools and procedures, keep a record of any transfer or analysis, and avoid changing the source unnecessarily. Coordinate with forensic specialists when the evidence may support legal or regulatory action.
5. What should a post-incident review cover?
It should establish a clear timeline, impact, root or contributing causes, response decisions, recovery status, and lessons for prevention and detection. Focus on corrective actions with owners and due dates rather than blame. Share details only with people who need them.
What cloud and infrastructure security questions are likely?
1. What is the shared responsibility model in cloud security?
The cloud provider and customer have different security responsibilities, and the split depends on the service model. Providers secure parts of the underlying cloud service; customers remain responsible for areas such as their identities, data, configurations, and workloads. Confirm the responsibility matrix for the specific service rather than assuming the provider handles everything.
2. How would you reduce the risk of a public cloud storage bucket?
Start by confirming whether public access is required and who owns the data. Where it is not required, block public access, restrict permissions, review access paths, and enable suitable logging and alerts. Check the result using the cloud provider's approved configuration tools.
3. What does least privilege mean for cloud IAM?
Identity and access management (IAM) should grant each user, service, or workload only the permissions needed for its task. Prefer short-lived credentials and role-based access where supported, review unused privileges, and protect administrative access with strong authentication. Test changes carefully to avoid disrupting production work.
4. How should an application manage secrets?
Store secrets in an approved secrets manager or equivalent protected service, restrict access, rotate them when needed, and keep them out of source control and logs. If a secret is exposed, revoke or rotate it and investigate where it was used. Moving a secret to a different file does not make it safe if access is still broad.
5. Which cloud logs help with security investigations?
Useful sources can include identity and access events, control-plane changes, network flow records, workload logs, and access to sensitive data. Enable the logs that match the threat model, centralise them with appropriate access controls, and retain them according to current policy. Logs need reliable timestamps and regular checks to be useful during an incident.
What governance, risk, compliance, and privacy questions may come up?
1. What is a risk register?
A risk register records identified risks, their owners, potential impact and likelihood, planned treatment, and current status. It helps teams make and revisit decisions rather than treating a risk score as a permanent answer. Keep entries specific enough that an owner can take action.
2. What is the difference between a policy, a standard, and a procedure?
A policy states an organisation's high-level direction or requirement. A standard defines mandatory, measurable requirements, while a procedure describes the steps people follow to complete a task. Organisations may use these terms differently, so explain the distinction and then follow the local definitions.
3. Is compliance the same as security?
No. Compliance means meeting specific legal, contractual, or framework requirements. Security is the broader work of managing risks to systems, people, and information. Compliance can support security, but passing an audit does not prove that every relevant risk is controlled.
4. What should a security professional know about data protection in India?
Understand that privacy obligations depend on the organisation, the data, the activity, and the rules currently in force. A candidate can mention India's Digital Personal Data Protection framework and explain that they would confirm the latest applicable requirements with legal and privacy teams. Avoid giving fixed legal advice in an interview.
5. What is CERT-In, and why is it relevant to security teams in India?
CERT-In is India's national agency for responding to computer security incidents. Security teams should know how to find its official advisories and understand which current directions and reporting requirements apply to their organisation. Confirm current scope and timelines with the responsible compliance or legal team rather than relying on an old summary.
What security architecture and resilience concepts should you explain?
1. What is defence in depth?
Defence in depth uses multiple safeguards across people, processes, and technology so that one failed control does not expose everything. For example, identity checks, network boundaries, endpoint monitoring, and tested recovery processes address different parts of risk. The controls should work together rather than add complexity without a purpose.
2. What is zero trust?
Zero trust is an approach that avoids granting access only because a user or device is inside a network boundary. Access decisions should consider identity, device, context, and least privilege, and be reassessed where appropriate. It is a security model and set of practices, not a single product.
3. Why is network segmentation useful?
Segmentation separates systems or workloads so that access can be limited between them. It can reduce the impact of a compromised account or device and make sensitive services easier to protect. Rules should be documented and reviewed so that necessary business traffic still works.
4. What does secure by design mean?
Secure by design means considering security during requirements, architecture, development, deployment, and maintenance instead of leaving it to a final test. Teams can use threat modelling, secure defaults, code review, dependency management, and appropriate testing. Security requirements should match the system's actual risks.
5. How are business continuity and disaster recovery different?
Business continuity focuses on keeping essential business functions operating during disruption. Disaster recovery focuses on restoring technology and data after an outage or incident. Recovery time objective (RTO) describes the target time to restore a service, while recovery point objective (RPO) describes the acceptable amount of data loss measured in time.
What behavioural and India-focused career questions should you practise?
1. How would you answer, "Tell me about yourself"?
Give a short introduction to your current studies or role, the security areas you have practised, and one relevant project or achievement. Connect those details to the role you are applying for. Be accurate about your experience and leave unrelated personal details out.
2. What would you do if an interviewer asked about a tool you have never used?
Be honest that you have not used it hands-on. Explain what you understand about its purpose, relate it to a tool or concept you do know, and describe how you would learn it safely. A clear answer is stronger than pretending to have experience.
3. How would you raise a security issue that delays a product release?
Explain the finding, evidence, and potential impact in language the team can act on. Discuss practical options with the owner, such as a fix, a temporary control, or a documented risk decision by the authorised people. Keep the conversation focused on reducing risk, not assigning blame.
4. How do you prioritise several security findings at once?
Consider impact, likelihood, exposure, affected assets, exploitability, existing controls, and business context. Confirm urgent issues with the relevant owners and follow the organisation's escalation process. Communicate why one issue needs attention first and when the remaining items will be reviewed.
5. Why do you want to work in cyber security?
Give a genuine reason tied to your interests, such as investigating how systems behave, improving software, or helping organisations manage risk. Support it with an example of what you have learned or built. Avoid claiming that cyber security is only about hacking, since many roles focus on prevention, response, assurance, or communication.
How should you prepare for a cyber security interview?
- Review networking, operating system, identity, and web security fundamentals before memorising tool names.
- Read the job description and prepare examples that match the role, such as investigating an alert for a SOC role or reviewing access control for an application security role.
- Practise explaining a concept in plain language, then add technical detail when asked.
- Use the STAR format for experience-based questions: situation, task, action, and result. Use only examples that actually happened.
- When you do not know an answer, explain what you know, state your assumptions, and describe how you would verify the rest.
- Prepare questions about the team's responsibilities, escalation process, learning support, and how it measures security improvements.
For a practical example of access control testing, read my application security case study. For broader fundamentals, review the NIST Cybersecurity Framework, NIST incident response guidance, and CERT-In's official resources.