Try each one out loud first, then open the model answer and compare: did you cover the same points, in a clear order?
A website on a Linux server returns 502 Bad Gateway. How would you troubleshoot it?
A 502 means the web server or load balancer is up but the application behind it isn't answering properly. I'd work from the front to the back:
- Read the reverse proxy's error log (for nginx: tail /var/log/nginx/error.log) to see which upstream address and port it can't reach.
- Check the application service: systemctl status <service> and journalctl -u <service> -n 50 to see why it stopped.
- Confirm whether anything is listening on that port with ss -tlnp, and test it locally with curl.
- Check what changed recently — a deployment, config edit or permission change is the usual cause.
Once I fix the cause (for example a config file the service account can't read), I restart the service, verify with curl from the server and from outside, and record the timeline in the ticket.
Explain the shared responsibility model in the cloud.
The cloud provider is responsible for security of the cloud; the customer is responsible for security in the cloud.
- AWS or Azure secures the physical data centres, hardware, networking and the virtualisation layer, and for managed services also the underlying operating system and patching.
- The customer secures what they put there and how they configure it: identities and permissions, network rules, encryption settings, operating system patching on virtual machines, application code and data classification.
The split moves with the service type: with a virtual machine (IaaS) you patch the OS; with a managed database (PaaS) the provider patches the engine but you still control access, backups settings and encryption; with SaaS you mainly manage users and data. Most cloud breaches come from the customer side — public storage buckets, leaked access keys or open ports — which is why configuration reviews matter.
What is CI/CD and what does a good pipeline look like?
Continuous Integration means every change is automatically built and tested when it's pushed or proposed, so problems are caught in minutes. Continuous Delivery means every change that passes is packaged and ready to release; continuous deployment releases it automatically.
A good pipeline for a web service:
- On every pull request: lint, unit and integration tests, security scans, and these are required checks before merging.
- On merge to main: build one immutable artifact (for example a Docker image tagged with the commit SHA).
- Deploy that artifact to staging, run smoke tests, then promote the same artifact to production — with an approval or automated gate.
- Secrets come from the platform's secret store or OIDC, never from code or logs.
- It's fast, reliable (no flaky tests ignored) and every deployment can be rolled back quickly.
What is the difference between a container and a virtual machine?
A virtual machine emulates a whole computer: it runs its own full operating system on a hypervisor, so it's strongly isolated but heavier — gigabytes in size and minutes to start.
A container packages an application with its libraries and runtime, but shares the host's operating system kernel. It's isolated using kernel features (namespaces and cgroups), so it's much lighter — megabytes, starting in seconds — and the same image runs the same way on a laptop, in CI and in production.
In practice they work together: Kubernetes nodes are usually VMs, and containers run on them. Containers are ideal for microservices and consistent deployments; VMs suit workloads that need a full OS, a different kernel or stronger isolation boundaries. Because containers share the kernel, good security practice matters — run as non-root, use small images and scan them.
What are SLIs, SLOs and SLAs? Give an example.
They are three levels of describing reliability:
- An SLI (service level indicator) is a measurement of what users experience, usually a ratio of good events to total events — for example the percentage of login requests that succeed in under one second.
- An SLO (service level objective) is the internal target for that SLI over a time window — for example 99.9% of logins good over 30 days.
- An SLA (service level agreement) is a contractual promise to customers, usually looser than the SLO and with penalties, such as service credits if monthly availability falls below 99.5%.
The gap between 100% and the SLO is the error budget: 99.9% over 30 days allows about 43 minutes of failure. Teams use it to balance reliability work against shipping features, and alert on how fast the budget is burning.
How can AI assistants help a Cloud or DevOps engineer, and what are the risks?
AI assistants such as GitHub Copilot, Amazon Q Developer or a general chat assistant can speed up everyday work:
- Explaining unfamiliar error messages, logs and commands.
- Drafting Terraform, Dockerfiles, Kubernetes manifests, scripts and pipeline YAML.
- Summarising incident timelines and drafting postmortems or runbooks.
- Suggesting queries for logs and metrics.
The risks are real, so I treat output as a draft from a junior colleague:
- It can be confidently wrong — invented flags, outdated APIs, insecure defaults like 0.0.0.0/0 or :latest images.
- Pasting secrets, customer data or internal configs into a public tool can leak them; I follow the company's AI usage policy and use approved tools.
- Generated infrastructure still needs review, plan output, scanners and tests before it reaches production.
Used this way, AI makes me faster without lowering the bar.
How would you check whether a service is running on a Linux server and read its recent logs?
On a systemd-based server:
- systemctl status nginx shows whether it is active, its main PID and the last log lines.
- journalctl -u nginx --since '30 min ago' (or -f to follow) shows the service's logs.
- Application logs may also be in /var/log/<app>/, for example /var/log/nginx/error.log; tail -f follows them.
- ss -tulpn | grep :443 confirms the process is listening on the expected port.
If it failed, I read the error, check recent config changes (nginx -t to test config), fix and restart with systemctl restart, then verify with curl.
How to structure your answer: use STAR, Situation, Task, Action and Result. Keep the situation short, spend most of the time on what you did (say “I”, not “we”), and finish with the result. Keep it focused: one example, told clearly.
For Cloud roles: Situation: the outage, failed deployment or alert. Task: what you were responsible for. Action: how you investigated, communicated and fixed it. Result: how service was restored and what you changed so it wouldn't happen again.
Walk me through a production incident or outage you helped resolve.
Situation: One evening our customer website started returning errors for about 30% of requests, and alerts fired for high error rates on the load balancer.
Task: I was on call and joined as the first responder.
Action: I declared an incident in our channel and checked what had changed recently. A deployment two hours earlier had changed the database connection settings, and the logs showed connection-pool errors. I recommended a rollback to the incident lead, ran it through the pipeline, and watched the error rate and latency dashboards until they were normal. I posted updates every 15 minutes.
Result: The site recovered 35 minutes after the first alert. In the postmortem we added a canary deployment step and an alert on connection-pool usage.
What the interviewer is looking for: A clear, calm process: detect, communicate, find what changed, mitigate first, then learn.
Tell me about a time you had a conflict with a teammate. How did you resolve it?
Situation: On a project team, a colleague and I disagreed about how to split the work. He kept changing parts of my tasks without telling me, which caused duplicate work.
Task: I needed to fix the working relationship so we could meet our deadline.
Action: I asked him for a short one-to-one coffee instead of arguing in the team chat. I explained the impact calmly, using facts ('we both rewrote the same report section last week') rather than blame, and asked how he saw it. He said he was worried about the deadline. We agreed a simple task board so we could both see who owned what, and we checked in for five minutes each morning.
Result: We finished on time, and the task board was adopted by the whole team. He and I worked together again on the next project.
What the interviewer is looking for: That you address conflict early and privately, focus on the problem, not the person, and find a practical solution.
Describe a time you had to deliver something under a very tight deadline.
Situation: On a Thursday afternoon my manager asked me to prepare a summary report for a senior leadership meeting on Friday morning, a task that normally takes three days.
Task: I had to deliver something accurate and useful in less than a day.
Action: I asked my manager which three questions leadership most needed answered, so I could focus. I reused existing data and templates instead of starting from scratch, blocked my calendar, and asked a colleague to check my figures for 20 minutes before I sent it. I listed clearly what was not covered and when it would follow.
Result: The report was ready by 8 a.m. Friday, leadership made their decision in the meeting, and the full version followed on Tuesday.
What the interviewer is looking for: That you clarify priorities, focus on what matters most, protect quality and communicate what is left out.