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 76–90 of 126 questions

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

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

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

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

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

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

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

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

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

85.How do you choose between Load Balancer, Application Gateway and Front Door?MidMicrosoft Azure

Load Balancer works at layer 4 for any TCP or UDP in one region. Application Gateway is layer 7 for HTTP in one region, with URL routing and WAF. Front Door is the global layer 7 entry with caching and regional failover.

86.What are deployment slots?MidMicrosoft Azure

Extra copies of an App Service app, such as staging. You deploy and test there, then swap with production for near-zero downtime. Swapping back is the rollback.

87.When would you pick Cosmos DB over Azure SQL?MidMicrosoft Azure

When you need global distribution, very low latency and flexible JSON data at large scale. Pick Azure SQL for relational data with joins and transactions. In Cosmos DB the partition key is the critical design choice.

88.What is the difference between Service Bus, Event Grid and Event Hubs?MidMicrosoft Azure

Service Bus carries reliable messages that must be processed, with dead-lettering. Event Grid pushes notices that something happened to subscribers. Event Hubs ingests huge event streams for analytics.

89.Bicep or Terraform?MidMicrosoft Azure

Bicep is Azure-only, has no state file and supports new Azure features first. Terraform works across clouds and keeps state. Choose Bicep for an Azure-only team and Terraform for multi-cloud or existing Terraform skills. Always preview with what-if or plan.

90.How is a VPC in GCP different from other clouds?MidGoogle Cloud (GCP)

A VPC is global. One network spans all regions, and only subnets are regional.