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 1–8 of 8 questions
Learn Microsoft Azure →1.How do pipelines deploy to Azure without storing secrets?Senior
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.
2.How do you keep secrets out of code on Azure?Senior
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.
3.What is Azure Policy and how does it differ from RBAC?Senior
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.
4.How do you control cloud cost?Senior
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.
5.What is a landing zone?Senior
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.
6.How would you design a production AKS cluster?Senior
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.
7.How do you respond to a security alert in Defender for Cloud?Senior
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.
8.How do you design for the loss of an entire region?Senior
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.