VHow do you roll back a bad production deploy?
Mülakat sorusuDevOps
DevOps tek bir araçtan çok bir çalışma biçimidir; bu yüzden iyi cevaplar araçları hedeflere bağlar: daha hızlı ve güvenli sürümler, tekrarlanabilir ortamlar ve hızlı toparlanma. Mülakatçılar bir aracı adlandırabilen ve ekibin onu neden seçtiğini de söyleyebilen adayları sever.
Sözlü cevaplarda gerçek bir akışı baştan sona anlatın: kod gönderilir, pipeline çalışır, servis dağıtılır (deploy) ve izleme çalışıp çalışmadığını söyler. Bir şey bozulduğunda ne olduğunu da ekleyin, çünkü mülakat genellikle oraya gider.
- ✓Kelimeler → ifadeler → cümleler → konuşma
- ✓Yanıtın anlamı
- ✓Dil
Sık sorulan mülakat soruları ve örnek cevaplar
How would you design a CI/CD pipeline for a backend service?
Bir backend servisi için CI/CD pipeline'ını nasıl tasarlarsınız?
Mülakatçı ne duymak ister. Sıralı aşamalar, hızlı geri bildirim, ortamlar arasında taşınan tek bir build çıktısı (artifact) ve geri alma (rollback) imkânı olan güvenli bir sürüm.
Yüksek sesle çalışmak için İngilizce örnek cevapContinuous integration means that every change is built and tested automatically. Continuous delivery means that the result is always ready to release. My pipeline starts on every pull request: build, unit tests, static analysis and a scan of the dependencies. After the merge, it builds a container image once and pushes it to a registry. The same image goes to staging, where integration tests run, and then to production. For production, I prefer a gradual release, such as a canary or a rolling update, with an automatic check of the error rate. If something is wrong, we roll back to the previous image. I keep the pipeline fast, so developers do not avoid it.
How is a container different from a virtual machine?
Bir container, sanal makineden (VM) nasıl farklıdır?
Mülakatçı ne duymak ister. Paylaşılan çekirdek (kernel) ile ayrı bir guest işletim sistemi, image ile container, yalıtım düzeyi ve tipik kullanım alanları.
Yüksek sesle çalışmak için İngilizce örnek cevapA virtual machine runs a full guest operating system on top of a hypervisor, so it is heavier and slower to start. A container is an isolated process on the host. It shares the host kernel, and Linux features such as namespaces and cgroups provide the isolation and the resource limits. That is why containers start quickly and use less memory. An image is a read-only package with the application and its dependencies, and a container is a running instance of an image. The result is that the application behaves the same on my laptop, in the pipeline and in production. The trade-off is weaker isolation than a virtual machine.
What is infrastructure as code, and why is it useful?
Kod olarak altyapı (infrastructure as code) nedir ve neden kullanışlıdır?
Mülakatçı ne duymak ister. Sürüm kontrolünde bildirimsel (declarative) tanımlar, uygulamadan önce plan, state yönetimi ve drift; gerçek deneyimden bir araç adı.
Yüksek sesle çalışmak için İngilizce örnek cevapInfrastructure as code means that I describe servers, networks and databases in files instead of clicking in a console. I use a tool like Terraform. The files are stored in Git, so every change is reviewed, has a history and can be repeated in another environment. Terraform shows a plan before it applies changes, so the team sees what will be created or destroyed. It keeps a state file, which I store remotely with locking, so two people cannot change it at once. The main risks are configuration drift, when someone changes things by hand, and secrets in code. I keep secrets in a secret manager, not in the repository.
What do you monitor in a production service, and how do you decide what to alert on?
Canlıdaki bir serviste neleri izlersiniz ve neye alarm kuracağınıza nasıl karar verirsiniz?
Mülakatçı ne duymak ister. Metrikler, loglar ve trace'ler; dört altın sinyal; olası her nedene değil, kullanıcıların hissettiği belirtilere alarm.
Yüksek sesle çalışmak için İngilizce örnek cevapI use three kinds of data: metrics, logs and traces. For every service, I start with four basic signals: latency, traffic, errors and saturation, for example CPU, memory or queue length. I show them on a dashboard in a tool like Prometheus and Grafana. For alerts, I focus on symptoms that users feel, such as a high error rate or slow responses, and not on every internal detail. Each alert must be actionable and have a runbook. Too many alerts create alert fatigue, and then people ignore the important ones. I also define service level objectives, so the team knows what good means.
How do you handle a production incident?
Canlıdaki bir olayı (incident) nasıl yönetirsiniz?
Mülakatçı ne duymak ister. Önce hasarı azalt, net iletişim kur, nedeni sonra bul ve suçlamasız (blameless) bir postmortem'den öğren.
Yüksek sesle çalışmak için İngilizce örnek cevapFirst I confirm the impact and tell people that we are working on it. Then I try to reduce the damage quickly. Often the fastest action is to roll back the last change or to turn off a feature flag, and only after that do I look for the root cause. I keep clear roles: one person leads, others investigate, and one person updates the stakeholders regularly. During the incident, I write down the timeline. After it is solved, we hold a blameless postmortem. We look at what in the system or the process allowed the failure, and we agree on concrete actions, such as a new alert or a test.
Anahtar terimler nasıl telaffuz edilir
- Kubernetes
- ku-bır-NET-iz
- Docker
- DOK-ır
- Terraform
- TER-ı-form
- YAML
- YAM-ıl
- canary
- kı-NER-i
- Prometheus
- prı-Mİ-thi-ıs (th: dil dişlerin arasında)
- nginx
- EN-cin-eks
Cevap vermek için kullanışlı kalıplar
- Every change goes through the pipeline.Her değişiklik pipeline'dan geçer.
- We roll back first and investigate later.Önce geri alırız, sonra araştırırız.
- It is all defined as code in Git.Her şey Git'te kod olarak tanımlı.
- The alert is based on what users feel.Alarm, kullanıcıların hissettiği şeye dayanır.
- The same image runs in every environment.Aynı image her ortamda çalışır.
- We keep the blast radius small.Hasarın kapsamını (blast radius) küçük tutarız.
- I would automate that step.Bu adımı otomatikleştirirdim.
- The postmortem is blameless.Postmortem suçlamasızdır.
Sık yapılan hatalar
- Hikâyesiz araç sıralamak. "I know Jenkins, Docker, Kubernetes and Terraform" pek bir şey söylemez. Her aracın ekibiniz için hangi sorunu çözdüğünü ve bir keresinde neyin ters gittiğini anlatın.
- DevOps'u, dağıtımı yapan kişinin unvanı gibi görmek. Bunun geliştirme ile operasyon arasında paylaşılan sorumlulukla ilgili olduğunu söyleyin.
- Geri alma ve izleme olmadan bir sürümü anlatmak. Geri dönüş yolu ve hataları görme imkânı olmayan bir pipeline, cevabın yalnızca yarısıdır.
- "deploy" ile "release"i karıştırmak. Deploy bir sürümü sunuculara koyar; release onu kullanıcılara açar. Farklı zamanlarda olabilirler; örneğin bir feature flag'in arkasında.
- "infrastructures" ya da "softwares" demek. Bu anlamda iki sözcük de sayılamaz; "infrastructure" ve "software" ya da "pieces of software" kullanın. Türkçede “altyapılar” ve “yazılımlar” doğal durduğu için bu hata sık görülür.
Sıkça sorulan sorular
DevOps mülakatı için hangi araçları bilmem gerekir?
Her alanda bir aracı iyi bilin: GitHub Actions ya da Jenkins gibi bir CI sistemi, Docker, bir bulut sağlayıcı, bir kod olarak altyapı aracı ve bir izleme yığını. Mülakatçılar listenin uzunluğundan çok onları nasıl kullandığınıza bakar.
DevOps mülakatında kod yazmam gerekir mi?
Çoğu zaman biraz: bir shell betiği, küçük bir Python görevi ya da bir pipeline dosyası. Yazarken ne yaptığınızı söyleyin; hata yönetiminden ve loglamadan da söz edin, çünkü sessizce başarısız olan otomasyon tehlikelidir.
Kendimin yol açtığı bir olayı nasıl anlatırım?
Dürüstçe ve kısaca anlatın: ne oldu, etkiyi nasıl azalttınız ve sonrasında ne değişti. Ders içeren suçlamasız bir hikâye olgunluğu gösterir; hatayı saklamak göstermez.
Bir cevabı okumak ile onu söylemek aynı şey değildir. Her soruyu yüksek sesle çalışın, ardından kendi cevabınızın anlamını ve dilini karşılaştırın.
SpeakRole’i dene ↗Bu alandaki diğer konular