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 376–390 of 475 questions

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

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

378.Is VNet peering transitive?MidMicrosoft Azure

No. If A peers with B and B peers with C, A cannot reach C. Peer A and C directly, or route through a hub with a firewall or gateway.

379.Service endpoint or private endpoint?MidMicrosoft Azure

A service endpoint keeps your subnet's traffic to a service on the Azure backbone, but the service keeps a public address. A private endpoint gives the service a private IP in your VNet, which is the stronger option and needs private DNS.

380.How do you choose between Load Balancer, Application Gateway and Front Door?MidMicrosoft Azure

Load Balancer works at layer 4 for any TCP or UDP in one region. Application Gateway is layer 7 for HTTP in one region, with URL routing and WAF. Front Door is the global layer 7 entry with caching and regional failover.

381.What are deployment slots?MidMicrosoft Azure

Extra copies of an App Service app, such as staging. You deploy and test there, then swap with production for near-zero downtime. Swapping back is the rollback.

382.When would you pick Cosmos DB over Azure SQL?MidMicrosoft Azure

When you need global distribution, very low latency and flexible JSON data at large scale. Pick Azure SQL for relational data with joins and transactions. In Cosmos DB the partition key is the critical design choice.

383.What is the difference between Service Bus, Event Grid and Event Hubs?MidMicrosoft Azure

Service Bus carries reliable messages that must be processed, with dead-lettering. Event Grid pushes notices that something happened to subscribers. Event Hubs ingests huge event streams for analytics.

384.Bicep or Terraform?MidMicrosoft Azure

Bicep is Azure-only, has no state file and supports new Azure features first. Terraform works across clouds and keeps state. Choose Bicep for an Azure-only team and Terraform for multi-cloud or existing Terraform skills. Always preview with what-if or plan.

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

386.How do you keep secrets out of code on Azure?SeniorMicrosoft Azure

Prefer no secret by using managed identity to reach Azure services. Store third-party secrets in Key Vault with RBAC, soft delete and purge protection, and read them through Key Vault references or the CSI driver. Never keep them in Git, images or plain settings.

387.What is Azure Policy and how does it differ from RBAC?SeniorMicrosoft Azure

RBAC controls who can act. Policy controls what may exist, with effects such as Audit, Deny, Modify and DeployIfNotExists. A person with access can still be blocked by policy. Roll out new rules in Audit first.

388.How do you control cloud cost?SeniorMicrosoft Azure

Tag everything, review cost analysis, set budgets and anomaly alerts, and act on Advisor findings. Turn off idle resources, right-size, use reservations or savings plans for steady load, spot for flexible work, and cooler storage tiers.

389.What is a landing zone?SeniorMicrosoft Azure

A prepared, governed foundation for workloads: management group tree, hub and spoke network, identity, policy, logging and budgets. Teams get subscriptions that already meet company standards, often through automated subscription vending.

390.How would you design a production AKS cluster?SeniorMicrosoft Azure

Spread node pools across three zones, separate system and user pools, use Entra ID access with a private or restricted API server, network policies, workload identity with Key Vault, requests and limits on pods, HPA or KEDA plus the cluster autoscaler, and planned upgrades tested in a lower environment.