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 391–405 of 475 questions

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

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

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

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

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

396.Why avoid the Owner and Editor roles for daily work?BeginnerGoogle Cloud (GCP)

They are very wide and can change almost everything. Use predefined roles for one service, and custom roles when none fit.

397.Which GCP service would you use to run a container with no servers to manage?BeginnerGoogle Cloud (GCP)

Cloud Run. It gives a URL, scales with traffic and can scale to zero.

398.How is a VPC in GCP different from other clouds?MidGoogle Cloud (GCP)

A VPC is global. One network spans all regions, and only subnets are regional.

399.Two firewall rules conflict. Which wins?MidGoogle Cloud (GCP)

The one with the lower priority number. By default incoming traffic is denied and outgoing is allowed, and rules are stateful.

400.How can an admin SSH to a VM that has no public IP?MidGoogle Cloud (GCP)

With Identity-Aware Proxy TCP forwarding (gcloud compute ssh --tunnel-through-iap), with a firewall rule for the IAP range and the right IAM role.

401.How does a private VM reach the internet or download updates?MidGoogle Cloud (GCP)

Through Cloud NAT. Private Google Access covers calls to Google APIs.

402.When do you pick Spanner, Bigtable or Firestore instead of Cloud SQL?MidGoogle Cloud (GCP)

Spanner for global SQL with strong consistency, Bigtable for huge key-based or time-series data, Firestore for flexible documents in web and mobile apps. Otherwise start with Cloud SQL.

403.What makes Cloud SQL highly available, and what does a read replica do?MidGoogle Cloud (GCP)

The REGIONAL availability type keeps a standby in another zone for failover. A read replica only serves reads and is for performance.

404.How do you decide on a load balancer type?MidGoogle Cloud (GCP)

By layer and scope. A public website uses the global external Application Load Balancer. TCP or UDP traffic that must keep the client IP uses a passthrough Network Load Balancer. Internal HTTP uses the internal Application Load Balancer.

405.What is the safest way to store and use secrets?MidGoogle Cloud (GCP)

Keep them in Secret Manager, give each service account access to only its own secrets, and inject them at run time. Never store them in code, Git or images.