Skip to content
$ lynuxpro

INTERVIEW PREP

Interview questions

570 questions from real DevOps, SRE, platform engineering and MLOps interviews, with the answer an interviewer wants to hear. Try answering out loud first, then open the model answer.

Showing 106–120 of 129 questions

106.What is the difference between a threat, a vulnerability and a risk?BeginnerDevSecOps

A threat is something that can cause harm, like an attacker. A vulnerability is a weakness it can use. Risk is how likely harm is, multiplied by how bad it would be.

107.Name three items on the OWASP Top 10 and a fix for one.BeginnerDevSecOps

Broken access control, injection and security misconfiguration are examples. For injection, use parameterized queries so input is always treated as data.

108.A developer committed an API key and deleted it in the next commit. Is it safe now?BeginnerDevSecOps

No. The key is still in Git history and must be treated as stolen. Revoke it, create a new one, check logs for misuse, and add scanning to prevent a repeat.

109.What is the difference between SAST and DAST?BeginnerDevSecOps

SAST reads source code without running it and finds code patterns early. DAST attacks a running application from outside and finds runtime issues such as missing headers. They find different things, so use both.

110.What is SRE?BeginnerSRE Practices

Site reliability engineering applies software engineering to operations. SREs set reliability targets, automate manual work, and use data to balance new features with stability.

111.How is SRE different from DevOps?BeginnerSRE Practices

DevOps is a set of ideas about cooperation, automation and learning. SRE is a concrete way to do it, with SLOs, error budgets, a cap on toil and defined practices for incidents and postmortems.

112.What is toil?BeginnerSRE Practices

Manual, repetitive work that could be automated, is reactive, gives no lasting improvement, and grows with the service. SREs aim to keep it under about half of their time.

113.What are the four golden signals?BeginnerSRE Practices

Latency, traffic, errors and saturation. Together they show how a user-facing service is behaving.

114.What are SLI, SLO and SLA?BeginnerSRE Practices

An SLI is a measurement, an SLO is the internal target for it, and an SLA is a contract with customers that has consequences. The SLO should be stricter than the SLA.

115.Why not aim for 100% availability?BeginnerSRE Practices

It is extremely costly, nearly impossible, and slows all change. Users cannot tell the difference beyond the reliability of their own devices and networks, so choose a realistic target.

116.Why are GPUs used for AI instead of CPUs?BeginnerAI Infrastructure & GPUs

AI work is huge amounts of similar maths. A GPU has thousands of small workers that do it in parallel, so it is far faster than a CPU for this job.

117.What is the difference between training and inference?BeginnerAI Infrastructure & GPUs

Training teaches a model using lots of data and GPU time. Inference uses the trained model to answer requests. Most teams spend most of their effort on inference because every user request uses it.

118.How do you estimate whether a model fits on a GPU?BeginnerAI Infrastructure & GPUs

Multiply the number of parameters by the bytes per parameter (2 for FP16). A 7B model in FP16 needs about 14 GB. Add 20 to 50 percent for the KV cache and working space.

119.Where does the NVIDIA driver live when you run GPU containers?BeginnerAI Infrastructure & GPUs

On the host. The NVIDIA Container Toolkit passes the GPU into containers, and each container brings its own CUDA libraries. The host driver must be new enough for the container's CUDA.

120.What is MLOps?BeginnerMLOps

Applying DevOps practices to machine learning: version control for code, data and models, automated training and testing pipelines, reliable deployment of models, and monitoring them in production so they keep working as data changes.