Skip to content

Interview question · Systems, OS & Memory Safety

How would you harden a new Linux server that will run a web application, and how do you keep it hardened?

A checklist recital scores 'weak'. The strong answer orders controls by the attacker they stop, treats the baseline as code, and explains how you would notice when someone drifts from it.

mediumNewPreparation tags: Amazon, Google, MicrosoftUpdated Nov 2026

A checklist recital scores 'weak'. The strong answer orders controls by the attacker they stop, treats the baseline as code, and explains how you would notice when someone drifts from it.

Make your first attempt

What would you say before reading the answer?

  1. 01 State the assumptions your answer depends on.
  2. 02 Explain the mechanism and choose a control.
  3. 03 Name a condition that would change your decision.

The worked answer includes an approach, scoring criteria and follow-up questions. Compare the reasoning with your own.

signing in unlocks more free answers per topic

What if · the follow-ups in this answer

The answer works through 6 follow-ups like an interviewer would

You must harden a new internet-facing Linux server running a web application.

  1. How do you reduce exposure?
  2. How do you limit what a compromised app can do?
  3. What about secrets and outbound traffic?
  4. How do you keep it patched?
  5. How would you know if it is attacked?
  6. What hardening plan would you apply?

Each rung has a nudge, a model answer, the principle that carries over and the weak answer to avoid. Sign in free to open it.

UP NEXT ON YOUR JOURNEY
DISCUSSION · 0

No comments yet. Share a correction or a different way to answer it.