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 211–225 of 314 questions

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

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

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

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

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

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

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

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

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

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

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

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

223.What is the difference between a region and a zone?BeginnerGoogle Cloud (GCP)

A region is a place in the world made of several zones. A zone is one data center area inside it. Zones can fail on their own, so important apps run in two or more zones.

224.What is the difference between a project name and a project ID?BeginnerGoogle Cloud (GCP)

The name is a label you can change. The ID is unique worldwide and cannot be changed. Commands and APIs use the ID.

225.What are the three parts of an IAM binding?BeginnerGoogle Cloud (GCP)

A principal (who), a role (what they can do) and a resource (where). A set of bindings on a resource is its IAM policy.