Interview Questions

50 interview questions you'll actually be asked — and how to answer them.

Categorized by type, with sample answers and insider tips. Use these to prepare for any interview, from entry-level to executive.

BehavioralMedium

Tell me about a time you failed at something.

Why they ask this:

Interviewers want to see self-awareness, humility, and your ability to learn from setbacks rather than just dwelling on the mistake.

How to answer:

Use the STAR method. Pick a real failure, take ownership without making excuses, and focus heavily on the 'Result' and what you learned.

BehavioralMedium

Describe a situation where you had to work with a difficult coworker.

Why they ask this:

Conflict is inevitable. They're testing your emotional intelligence, professionalism, and ability to maintain productivity despite interpersonal friction.

How to answer:

Avoid bad-mouthing the person. Frame the difficulty as a difference in work style or communication and show how you took the initiative to bridge the gap.

BehavioralEasy

Give an example of when you went above and beyond.

Why they ask this:

They want to see if you're a 'clock-puncher' or someone who takes ownership and proactively looks for ways to add value.

How to answer:

Focus on a time you identified a problem that wasn't 'your job' and fixed it, or when you delivered extra value to a customer.

BehavioralEasy

Tell me about a time you had to learn something quickly.

Why they ask this:

In a fast-paced environment, the ability to 'learn how to learn' is often more important than what you already know.

How to answer:

Identify the challenge, the resources you used (docs, mentors, courses), and the successful application of that new knowledge.

BehavioralMedium

Describe a conflict you resolved at work.

Why they ask this:

Resolution skills show leadership potential. They want to see how you handle heated situations and reach a consensus.

How to answer:

Focus on the data or the common goal. Show how you listened to both sides and proposed a middle-ground solution.

BehavioralEasy

Tell me about your biggest professional achievement.

Why they ask this:

This reveals what you value and what you consider 'high performance.' It's also a chance to show off your impact.

How to answer:

Choose something with quantifiable results (money saved, revenue earned, time cut). Describe the obstacles you overcame to get there.

BehavioralHard

Give an example of when you had to prioritize competing deadlines.

Why they ask this:

Time management and the ability to say 'no' or 'not now' are critical. They want to see your logic for ranking tasks.

How to answer:

Explain your criteria for importance (ROI, urgency, stakeholder impact). Show how you communicated the shift in priorities to others.

BehavioralMedium

Tell me about a time you made a mistake at work.

Why they ask this:

Similar to failure, but more about immediate accountability and the 'fix' rather than the long-term lesson.

How to answer:

Own it immediately. Explain how you fixed it and what system you put in place to ensure it never happens again.

BehavioralMedium

Describe a time you had to give difficult feedback.

Why they ask this:

Testing your leadership and communication. Can you be direct without being hurtful?

How to answer:

Focus on the behavior, not the person. Use the 'SBI' model (Situation, Behavior, Impact).

BehavioralHard

Tell me about a time you disagreed with a company policy.

Why they ask this:

They want to see if you're a 'yes-man' or someone who thinks critically, and if you can remain professional even when you don't get your way.

How to answer:

Show that you voiced your concern through the proper channels with data, but ultimately supported the final decision for the sake of the team.

BehavioralMedium

Describe a time you showed initiative.

Why they ask this:

Are you proactive? Do you wait for instructions or do you see what needs to be done?

How to answer:

Pick a time you noticed a gap and filled it without being asked.

BehavioralMedium

Tell me about a time you handled a high-pressure situation.

Why they ask this:

Can you stay calm and logical when things go wrong?

How to answer:

Focus on how you broke a big problem into small, manageable steps.

BehavioralEasy

How do you handle criticism?

Why they ask this:

Are you coachable? Do you get defensive or do you listen?

How to answer:

Reframe criticism as 'feedback for growth.' Give an example of feedback you used to improve.

BehavioralMedium

Tell me about a time you had to work with a team to solve a problem.

Why they ask this:

Collaborative skills. Do you share credit? Do you contribute?

How to answer:

Focus on the 'we' rather than the 'I,' but be clear about your specific role.

BehavioralMedium

Give an example of a goal you reached and how you achieved it.

Why they ask this:

Results-orientation and planning skills.

How to answer:

Use a professional goal. Show the plan, the execution, and the final metric.

TechnicalHard

Walk me through how you'd design a URL shortening service.

Why they ask this:

This tests system design, scalability, and your ability to handle trade-offs (e.g., read vs. write performance).

How to answer:

Start with requirements (shortening, redirecting). Discuss the hashing algorithm (Base62), storage (NoSQL vs SQL), and caching (Redis) for high-traffic redirects.

TechnicalMedium

How would you optimize a slow database query?

Why they ask this:

They want to see your debugging process and knowledge of indexing and query execution plans.

How to answer:

Mention using EXPLAIN to see the execution plan. Discuss adding indexes, avoiding SELECT *, and potentially denormalizing data if needed.

TechnicalMedium

Explain the difference between REST and GraphQL.

Why they ask this:

Basic architectural knowledge and understanding of when to use which tool.

How to answer:

REST is endpoint-based (fixed data), GraphQL is query-based (client chooses data). Mention over-fetching and under-fetching.

TechnicalHard

How do you ensure your code is secure?

Why they ask this:

Security mindset. They want to hear about OWASP, sanitization, and auth.

How to answer:

Mention input validation, parameterized queries (to prevent SQLi), JWT/OAuth for auth, and staying updated on dependencies.

TechnicalMedium

What is your approach to testing?

Why they ask this:

Do you care about quality? Do you understand the testing pyramid?

How to answer:

Mention Unit, Integration, and E2E tests. Explain that testing saves time in the long run.

TechnicalHard

How would you handle a memory leak in a production application?

Why they ask this:

Debugging skills under pressure and deep technical knowledge.

How to answer:

Discuss profiling tools (Chrome DevTools, heap snapshots). Mention common causes like global variables or uncleared intervals.

TechnicalMedium

What is CI/CD and why is it important?

Why they ask this:

Understanding of modern DevOps workflows.

How to answer:

Continuous Integration (automated testing) and Continuous Deployment (automated shipping). It reduces risk and increases velocity.

TechnicalMedium

How do you manage state in a large-scale frontend app?

Why they ask this:

Architecture and scalability knowledge.

How to answer:

Discuss the trade-offs between local state, Context API, and libraries like Redux or Zustand.

TechnicalEasy

What is the difference between a flexbox and a grid in CSS?

Why they ask this:

Fundamental UI/UX coding skills.

How to answer:

Flexbox is one-dimensional (row OR column), Grid is two-dimensional (row AND column).

TechnicalMedium

How do you handle responsive design?

Why they ask this:

User experience focus.

How to answer:

Mobile-first approach, media queries, and flexible units (rem, %, vh/vw).

SituationalHard

What would you do if you disagreed with your manager's decision?

Why they ask this:

They're looking for 'disagree and commit.' Can you voice concerns professionally and still work toward the team's goal?

How to answer:

Show that you'd present data-backed alternatives in private, but once a final decision is made, you'd give it 100% support.

SituationalMedium

How would you handle a project that's falling behind schedule?

Why they ask this:

Problem-solving and communication. Do you hide it or solve it?

How to answer:

Communicate early, identify the bottleneck, and propose solutions (cutting scope, adding resources, or shifting deadlines).

SituationalMedium

A client asks for a feature that will harm the product's performance. What do you do?

Why they ask this:

Balancing business needs with technical excellence.

How to answer:

Don't just say 'no.' Explain the 'why' (data) and offer an alternative that satisfies the client's goal without the performance hit.

SituationalEasy

What would you do if you were assigned a task you didn't know how to do?

Why they ask this:

Resourcefulness and honesty.

How to answer:

Acknowledge the gap, set a timeline for research, and know when to ask for help.

SituationalHard

You find a major bug in a feature another developer just finished. How do you handle it?

Why they ask this:

Interpersonal tact and quality focus.

How to answer:

Go to the developer first, not the manager. Present it as a 'find' for the team's benefit.

SituationalMedium

How would you handle a situation where requirements change mid-sprint?

Why they ask this:

Adaptability and process management.

How to answer:

Assess the impact on the current sprint goal. Discuss with the Product Owner about what gets moved out if the new requirement moves in.

SituationalMedium

You have two urgent tasks but only time for one. How do you choose?

Why they ask this:

Prioritization logic.

How to answer:

Evaluate based on business impact, number of affected users, and stakeholder importance.

SituationalHard

What would you do if you noticed a team member's quality of work was slipping?

Why they ask this:

Peer leadership and empathy.

How to answer:

Check in as a friend first. They might be going through something. Offer help, but also mention the impact on the project.

SituationalEasy

How do you handle a day with constant interruptions?

Why they ask this:

Focus and productivity strategies.

How to answer:

Mention time-blocking, 'deep work' modes, and setting expectations on Slack.

SituationalMedium

You realize you made a promise to a client you can't keep. What now?

Why they ask this:

Integrity and damage control.

How to answer:

Admit it as soon as possible. Don't over-promise again to 'fix' it. Offer a realistic alternative.

LeadershipHard

How do you motivate underperforming team members?

Why they ask this:

Management style and empathy. Can you turn someone around?

How to answer:

Identify the root cause (skill vs. will). Set clear, short-term goals and provide frequent feedback/support.

LeadershipHard

Tell me about a time you had to make a difficult decision with incomplete information.

Why they ask this:

Decisiveness and risk management.

How to answer:

Explain your logic for the 'best guess' and how you built in a plan to pivot if you were wrong.

LeadershipMedium

How do you delegate tasks?

Why they ask this:

Do you micro-manage or do you empower?

How to answer:

Match tasks to people's strengths or growth goals. Define the 'what' and 'why,' but let them handle the 'how.'

LeadershipHard

How do you handle a high-performer with a bad attitude?

Why they ask this:

Culture protection. Will you sacrifice the team for one 'rockstar'?

How to answer:

Explain that technical skill doesn't excuse poor behavior. Have a direct conversation about the impact on team morale.

LeadershipMedium

Describe your leadership style.

Why they ask this:

Self-awareness and fit.

How to answer:

Use terms like 'Servant Leadership' or 'Coaching.' Focus on removing blockers and empowering others.

LeadershipHard

How do you manage a remote or hybrid team?

Why they ask this:

Modern workplace management skills.

How to answer:

Focus on outcomes, not hours. Over-communicate via documentation and have intentional 'social' time.

LeadershipMedium

How do you handle a team member who is resistant to change?

Why they ask this:

Change management and persuasion.

How to answer:

Listen to their fears first. Involve them in the planning process so they feel a sense of ownership over the change.

LeadershipHard

How do you deliver a performance review?

Why they ask this:

Communication and development focus.

How to answer:

No surprises. Feedback should be ongoing. Focus on the future and specific growth actions.

CultureEasy

Why do you want to work here?

Why they ask this:

They want to see if you've done your homework and if you're actually excited about their specific mission.

How to answer:

Connect your personal values or career goals to the company's mission, product, or culture. Be specific—don't give a generic answer.

CultureEasy

Where do you see yourself in 5 years?

Why they ask this:

Ambition, stability, and whether your goals align with the growth path they can offer.

How to answer:

Show that you want to grow *within* the company. Focus on the skills you want to master and the level of impact you want to have.

CultureMedium

What's your ideal work environment?

Why they ask this:

Fit. If you love quiet cubicles and they have a loud open office, it won't work.

How to answer:

Be honest, but emphasize collaborative and high-output traits. Mention 'ownership' and 'transparency.'

CultureMedium

What are your greatest strengths and weaknesses?

Why they ask this:

Self-awareness and how you manage your flaws.

How to answer:

Strength: something relevant to the job. Weakness: a real thing you've worked on and have a system for.

CultureEasy

What do you like to do outside of work?

Why they ask this:

Are you a human being? Will you fit into the social fabric of the team?

How to answer:

Be authentic. Share a hobby that shows passion, discipline, or creativity.

CultureMedium

How do you stay updated with industry trends?

Why they ask this:

Growth mindset. Are you still learning?

How to answer:

Mention specific blogs, newsletters, podcasts, or side projects.

CultureMedium

What's a book or podcast that changed how you work?

Why they ask this:

Intellectual curiosity and the ability to apply external ideas to your job.

How to answer:

Pick something professional but not cliché. Explain the specific takeaway you implemented.

How to Prepare for Any Interview

Mastering the content is only half the battle. Here's your game plan.

Research the Culture

Go beyond the website. Look at Glassdoor reviews and LinkedIn posts from current employees to understand what they really value.

Get Culture Insights

Practice Your Delivery

Your tone and body language matter as much as your words. Record yourself answering questions and watch for filler words.

Practice with AI

Optimize Your Resume

The interviewer will likely base their questions on your resume. Make sure you can tell a story for every bullet point.

Optimize Resume

Track Your Applications

Don't get caught off guard. Keep track of which version of your resume you sent to which company.

Track Apps

Ready to get hired?

Stop guessing what they'll ask. Practice with real AI feedback.

Career Capybara's AI Interview Prep listens to your answers and gives you instant feedback on your tone, content, and confidence.

Get Started Free

No credit card required · takes 30 seconds