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 136–150 of 224 questions

136.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.

137.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.

138.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.

139.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.

140.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.

141.How do you reach a server without opening SSH?MidAWS

Use Systems Manager Session Manager. The instance has a role and the SSM agent, and you get a shell through AWS with IAM control and logging, with no inbound port open.

142.ECS or EKS?MidAWS

ECS is simpler and AWS-only, so it is a good start. EKS runs Kubernetes, which is more work but more portable and has a bigger ecosystem. With Fargate, neither needs you to manage servers.

143.When should you use SQS and when SNS?MidAWS

SQS is a queue: one consumer takes each message, and the queue holds it until it is handled. SNS is publish and subscribe: one message goes to many subscribers. They are often combined, with SNS sending to several SQS queues.

144.What is the difference between a task role and a task execution role in ECS?MidAWS

The execution role lets ECS pull the image and write logs. The task role is what your own code uses to call AWS services, such as reading an S3 bucket.

145.How can you get a shell on an EC2 instance without opening port 22?MidAWS

Use Systems Manager Session Manager. The instance needs the SSM Agent and an IAM role with SSM permissions. The session goes over outbound HTTPS and is logged.

146.What is the difference between a control plane and a data plane permission?MidMicrosoft Azure

Control plane permissions manage the resource, such as creating a storage account. Data plane permissions use the data inside, such as reading a blob. Contributor can manage a storage account but needs a role like Storage Blob Data Reader to read blobs with Entra ID.

147.What is a managed identity and why use it?MidMicrosoft Azure

An identity Azure creates and rotates for a resource, so the app authenticates with no password or secret to store or leak. System-assigned ones live and die with the resource. User-assigned ones are separate and can be shared.

148.NSG versus Azure Firewall?MidMicrosoft Azure

An NSG is a basic allow and deny filter on subnets or network cards by IP, port and protocol. Azure Firewall is a central managed firewall with deeper features such as FQDN rules and threat intelligence, often placed in a hub network.

149.Is VNet peering transitive?MidMicrosoft Azure

No. If A peers with B and B peers with C, A cannot reach C. Peer A and C directly, or route through a hub with a firewall or gateway.

150.Service endpoint or private endpoint?MidMicrosoft Azure

A service endpoint keeps your subnet's traffic to a service on the Azure backbone, but the service keeps a public address. A private endpoint gives the service a private IP in your VNet, which is the stronger option and needs private DNS.