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 136–150 of 178 questions
136.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.
137.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.
138.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.
139.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.
140.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.
141.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.
142.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.
143.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.
144.Why avoid service account key files, and what do you use instead?SeniorGoogle Cloud (GCP)
Keys are long-lived secrets that leak easily. Use attached service accounts on GCP, impersonation for people, Workload Identity Federation for CI and other clouds, and Workload Identity for GKE pods.
145.Why must a workload identity pool provider have an attribute condition?SeniorGoogle Cloud (GCP)
Without it, any identity from that outside system could try to use the pool. A condition such as the repository name limits who can act as the service account.
146.What is the difference between GKE Autopilot and Standard?SeniorGoogle Cloud (GCP)
In Autopilot Google manages nodes and you pay for pod resources. In Standard you manage node pools and pay for the VMs. Start with Autopilot unless you need node-level control.
147.How do you roll out a risky change on Cloud Run?SeniorGoogle Cloud (GCP)
Deploy a new revision with no traffic and a tag, test it, send a small share of traffic, watch errors, then increase or roll back by changing traffic splits.
148.Which Terraform IAM resource is safe to use, and why?SeniorGoogle Cloud (GCP)
google_project_iam_member, because it adds one member to a role. _binding replaces all members of a role, and _policy replaces the whole policy, which can remove access.
149.What is an organization policy and how is it different from IAM?SeniorGoogle Cloud (GCP)
It limits what is possible below a node, such as no external IPs or no service account keys. IAM limits who may act. Both inherit downwards.
150.What is a landing zone?SeniorGoogle Cloud (GCP)
A ready base for a company: folder structure, groups and IAM, organization policies, shared networking, central logging, Security Command Center, billing and a project factory, built as code.