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 361–375 of 475 questions

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

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

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

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

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

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

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

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

369.What is the difference between IaaS, PaaS and SaaS?BeginnerMicrosoft Azure

IaaS rents basic infrastructure such as virtual machines, and you manage the operating system and apps. PaaS runs your code on a managed platform, so you manage only the app and data. SaaS is a finished product, and you manage only users and data. Choose the highest layer that still does the job.

370.What is the difference between a region and an Availability Zone?BeginnerMicrosoft Azure

A region is a group of data centers in one area. An Availability Zone is a separate building inside a region with its own power, cooling and network. Spreading across zones protects you from one building failing.

371.Explain the Azure hierarchy.BeginnerMicrosoft Azure

A tenant holds management groups. Management groups hold subscriptions. Subscriptions hold resource groups, and resource groups hold resources. Access and policy set at a higher level are inherited below.

372.What is a resource group?BeginnerMicrosoft Azure

A folder for resources that share a life cycle, such as one app's parts. A resource is in exactly one group, and deleting the group deletes everything inside.

373.What are Entra ID and RBAC?BeginnerMicrosoft Azure

Entra ID proves who you are. RBAC decides what you may do, as a role given to an identity at a scope. Roles at a higher scope also apply to everything below.

374.How do you stop paying for a VM?BeginnerMicrosoft Azure

Deallocate it from Azure. Stopping it from inside the operating system keeps the hardware reserved and billing continues. Disks are still billed when deallocated.

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