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 166–180 of 314 questions
166.What does AWX or Ansible Automation Platform add?SeniorAnsible
A web page and API with role-based access, stored credentials, job templates, workflows with approvals, schedules, notifications and an audit trail. Jobs run in execution environments, which are container images with a fixed Ansible and libraries.
167.What are the limits of --check mode?SeniorAnsible
Modules that support it report what they would change, but command, shell and some other tasks are skipped because Ansible cannot predict them. Later tasks that depend on skipped results can also look wrong. Treat a dry run as a good preview, not a guarantee.
168.What do run_once, delegate_to and throttle do?SeniorAnsible
run_once runs a task on only one server of the group, for example a database migration. delegate_to runs a task on a different machine, for example to take a server out of a load balancer. throttle limits how many servers run that one task at the same time.
169.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.
170.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.
171.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.
172.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.
173.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.
174.What is the difference between a security group and a NACL?MidAWS
A security group belongs to an instance, is stateful and only has allow rules. A NACL belongs to a subnet, is stateless, and has numbered allow and deny rules. Most control is done with security groups.
175.How does a private subnet reach the internet?MidAWS
Through a NAT gateway in a public subnet. The private route table sends 0.0.0.0/0 to the NAT gateway, which sends it on through the internet gateway. Nothing from outside can start a connection in.
176.What is the difference between RDS Multi-AZ and read replicas?MidAWS
Multi-AZ keeps a standby copy in another zone for failover and is about availability. Read replicas are extra copies that serve reads and are about performance. They can be used together.
177.How does a DynamoDB table choose its keys?MidAWS
The partition key spreads data and finds items quickly. An optional sort key orders items inside one partition key. Design keys for your queries, because you cannot query well by other attributes without an index.
178.What is the difference between an ALB and an NLB?MidAWS
An Application Load Balancer works at layer 7, understands HTTP, and routes by path or host. A Network Load Balancer works at layer 4, is very fast, and keeps a fixed IP address.
179.How does Auto Scaling decide to add servers?MidAWS
A scaling policy watches a metric, such as average CPU or requests per target. Target tracking adds or removes instances to hold the metric near your target, within the minimum and maximum you set.
180.What does CloudTrail record, and how is it different from CloudWatch?MidAWS
CloudTrail records who called which AWS API and when. CloudWatch collects metrics and logs about how things are running. Use CloudTrail to audit, CloudWatch to watch health.