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 301–315 of 490 questions

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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