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 61–75 of 108 questions
61.What is the difference between sync status and health status?BeginnerGitOps with Argo CD
Sync status says whether the cluster matches Git. Health status says whether the app is working. An app can be Synced and still Degraded.
62.What do prune and self-heal do?BeginnerGitOps with Argo CD
Prune deletes cluster objects that were removed from Git. Self-heal undoes manual changes in the cluster so it matches Git again.
63.What is infrastructure as code, and why use it?BeginnerTerraform
It means describing servers, networks and other cloud things in files instead of clicking in a console. The files live in Git, so changes are reviewed, repeatable and have history. You can build the same setup again for dev, prod or disaster recovery.
64.What do terraform init, plan and apply each do?BeginnerTerraform
init downloads providers and sets up the backend. plan compares your code with the state and shows what would change, without changing anything. apply makes those changes. Saving the plan with -out and applying that file makes sure you apply exactly what was reviewed.
65.What is a provider?BeginnerTerraform
A plugin that knows how to talk to one platform's API, such as AWS, Azure, GitLab or Kubernetes. You choose it and its version in required_providers, and init downloads it.
66.What is the difference between a variable, a local and an output?BeginnerTerraform
A variable is an input from outside. A local is a named value worked out inside the code. An output is a result shown to you or read by other code.
67.What is the state file, and why does it matter?BeginnerTerraform
State records which real resource each block in your code manages, plus its settings. Terraform compares it with your code and the real cloud to decide what to change. Losing it means Terraform no longer knows what it owns.
68.What is the difference between a Region and an Availability Zone?BeginnerAWS
A Region is a geographic area, such as eu-west-1. It has several Availability Zones, which are separate data centers a short distance apart with their own power and network. Spreading across zones keeps your app up if one zone fails.
69.What is the shared responsibility model?BeginnerAWS
AWS secures the cloud itself: buildings, hardware and the base services. You secure what you put in it: your data, access rules, operating system settings and network rules.
70.Why should you not use the root user for daily work?BeginnerAWS
It can do everything and cannot be limited. Protect it with MFA, lock away its keys, and use an IAM Identity Center or IAM user with limited rights every day.
71.What is an IAM role and when do you use it?BeginnerAWS
A role is a set of permissions that something can take on for a short time, without a password or long-term key. Use roles for EC2, Lambda and containers, and for people through SSO.
72.How do S3 storage classes differ?BeginnerAWS
Standard is for frequent access. Infrequent Access is cheaper to store but charges to read. Glacier classes are very cheap for archives but take minutes to hours to get data back. Intelligent-Tiering moves objects for you.
73.What is the difference between IaaS, PaaS and SaaS?BeginnerMicrosoft Azure
IaaS rents basic infrastructure such as virtual machines, and you manage the operating system and apps. PaaS runs your code on a managed platform, so you manage only the app and data. SaaS is a finished product, and you manage only users and data. Choose the highest layer that still does the job.
74.What is the difference between a region and an Availability Zone?BeginnerMicrosoft Azure
A region is a group of data centers in one area. An Availability Zone is a separate building inside a region with its own power, cooling and network. Spreading across zones protects you from one building failing.
75.Explain the Azure hierarchy.BeginnerMicrosoft Azure
A tenant holds management groups. Management groups hold subscriptions. Subscriptions hold resource groups, and resource groups hold resources. Access and policy set at a higher level are inherited below.