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 316–330 of 490 questions
316.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.
317.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.
318.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.
319.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.
320.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.
321.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.
322.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.
323.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.
324.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.
325.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.
326.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.
327.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.
328.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.
329.How do you respond to a security alert in Defender for Cloud?SeniorMicrosoft Azure
Check whether it is normal, contain it first (disable the identity or isolate the resource), then investigate with logs in Log Analytics or Sentinel. Fix the cause, such as closing a port or rotating a credential, and improve the control so it cannot repeat.
330.How do you design for the loss of an entire region?SeniorMicrosoft Azure
Use zone redundancy inside regions and deploy to a paired or second region. Replicate data with geo-redundant storage, SQL failover groups or Cosmos DB multi-region. Put Front Door or Traffic Manager in front for failover, keep infrastructure as code so you can rebuild, and rehearse the failover.