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 121–135 of 229 questions

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

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

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

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

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

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

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

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

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

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

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

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

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

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

135.What is the difference between a region and a zone?BeginnerGoogle Cloud (GCP)

A region is a place in the world made of several zones. A zone is one data center area inside it. Zones can fail on their own, so important apps run in two or more zones.