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 181–195 of 314 questions

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

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

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

184.How do you handle a Lambda that fails on some messages?SeniorAWS

Set a dead-letter queue or an on-failure destination, make the code safe to run twice, use partial batch responses with SQS, and set retries and timeouts so failures do not repeat forever.

185.Why use CloudFormation or CDK instead of the console?SeniorAWS

Templates are repeatable, reviewed and versioned. Stacks know what they own, so updates and deletes are clean, and drift detection shows manual changes. CDK lets you write the templates in a normal programming language.

186.How do you keep secrets out of code on AWS?SeniorAWS

Store them in Secrets Manager or Parameter Store, encrypted with KMS, and give the app role permission to read only its own secrets. Rotate them, and never place them in templates or images.

187.What are SCPs?SeniorAWS

Service control policies in AWS Organizations set the maximum permissions for accounts. They never grant access, they only limit it, so even an admin in a member account cannot do what the SCP denies.

188.Name the four disaster recovery strategies.SeniorAWS

Backup and restore (cheapest, slowest), pilot light (core pieces always running), warm standby (a scaled-down copy running), and multi-site active-active (fastest, most costly). Choose by the RPO and RTO the business needs.

189.How do you cut an AWS bill?SeniorAWS

Turn off unused things, right-size, use Savings Plans or Reserved Instances for steady load, Spot for flexible jobs, move cold data to cheaper storage classes, and set budgets and alerts with cost allocation tags.

190.What is the Well-Architected Framework?SeniorAWS

A set of design pillars with questions to review a workload: operational excellence, security, reliability, performance efficiency, cost optimization and sustainability.

191.When do you use Transit Gateway or PrivateLink?SeniorAWS

Transit Gateway connects many VPCs and networks through one hub, so everything can route to everything. PrivateLink exposes one service privately to other VPCs or accounts without opening the whole network.

192.How do you design for an AZ failure?SeniorAWS

Run in at least two zones behind a load balancer, use Multi-AZ databases, keep no state on single servers, avoid single NAT gateways per VPC, and test failover regularly.

193.How would you respond to a leaked access key?SeniorAWS

Disable the key at once, review CloudTrail for what it did, rotate anything it could reach, look for new users or roles, then fix the cause, for example by moving to roles. GuardDuty and Security Hub help find it quickly.

194.How would you design a data lake on AWS?SeniorAWS

Land raw data in S3 with a clear folder layout, store curated data as Parquet partitioned by date, catalog it with Glue, query with Athena, control access with Lake Formation, and use lifecycle rules to keep cost down.

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