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 61–75 of 121 questions

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

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

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

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

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

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

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

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

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

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

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

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

73.Why can an app still get AccessDenied on a secret even with GetSecretValue allowed?SeniorAWS

If the secret uses a customer managed KMS key, the caller also needs kms:Decrypt, and the key policy must allow it.

74.Why is Parquet better than CSV for Athena?SeniorAWS

It is columnar and compressed, so Athena reads only the columns a query needs. That scans less data, which is faster and costs less.

75.How do pipelines deploy to Azure without storing secrets?SeniorMicrosoft Azure

Use a service connection with workload identity federation. The pipeline gets short-lived tokens from Entra ID, so no secret exists to leak. Give its identity the least role at the smallest scope.