كل التخصصاتالتقنية · مقابلة عمل

DevOps

تسأل مقابلات DevOps كيف يصل البرنامج من حاسوبك المحمول إلى بيئة الإنتاج ويبقى سليمًا هناك. تدرّب على رواية هذه القصة بإنجليزية واضحة وهادئة.

كلمات → عبارات → جمل → تحدث

جرّب SpeakRole ↗
مقابلة عملDevOps
V

How do you roll back a bad production deploy?

0:18
سؤال المقابل

DevOps

DevOps طريقة عمل أكثر منه أداة واحدة، لذلك تربط الإجابات الجيدة الأدوات بالأهداف: إصدارات أسرع وأكثر أمانًا، وبيئات قابلة للتكرار، وتعافٍ سريع. يفضّل المحاورون المرشح الذي يسمّي الأداة ويقول أيضًا لماذا اختارها الفريق.

في الإجابات الشفهية صِف مسارًا حقيقيًا من البداية إلى النهاية: يُدفع الكود، ثم يعمل خط الأنابيب (pipeline)، ثم تُنشر الخدمة، ثم تخبرك المراقبة هل تعمل. وأضف ما يحدث عند الفشل، لأن المقابلة تنتقل عادةً إلى ذلك.

  • ✓كلمات → عبارات → جمل → تحدث
  • ✓معنى الإجابة
  • ✓اللغة

أكثر الأسئلة تكرارًا ونماذج الإجابات

How would you design a CI/CD pipeline for a backend service?

كيف تصمّم خط CI/CD لخدمة backend؟

ما الذي يريد المحاور سماعه. المراحل بالترتيب، وتغذية راجعة سريعة، وحزمة بناء واحدة (artifact) تنتقل بين البيئات، وإطلاق آمن مع إمكانية التراجع.

نموذج إجابة بالإنجليزية للتدرّب عليه بصوت عالٍ

Continuous 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?

بماذا تختلف الحاوية (container) عن الآلة الافتراضية (virtual machine)؟

ما الذي يريد المحاور سماعه. نواة مشتركة مقابل نظام تشغيل ضيف مستقل، والصورة (image) مقابل الحاوية، ومستوى العزل وحالات الاستخدام المعتادة.

نموذج إجابة بالإنجليزية للتدرّب عليه بصوت عالٍ

A 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?

ما البنية التحتية ككود (infrastructure as code)، ولماذا هي مفيدة؟

ما الذي يريد المحاور سماعه. تعريفات تصريحية (declarative) في نظام التحكم بالإصدارات، وخطة قبل التطبيق، وإدارة الحالة والانحراف (drift)، مع أداة تسمّيها من خبرة حقيقية.

نموذج إجابة بالإنجليزية للتدرّب عليه بصوت عالٍ

Infrastructure 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?

ماذا تراقب في خدمة إنتاج، وكيف تقرر على ماذا تضع تنبيهات؟

ما الذي يريد المحاور سماعه. المقاييس والسجلات والتتبع (metrics, logs, traces)، والإشارات الذهبية الأربع، وتنبيهات على الأعراض التي يشعر بها المستخدمون لا على كل سبب محتمل.

نموذج إجابة بالإنجليزية للتدرّب عليه بصوت عالٍ

I 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?

كيف تتعامل مع حادثة في بيئة الإنتاج؟

ما الذي يريد المحاور سماعه. تخفيف الضرر أولًا، وتواصل واضح، وإيجاد السبب لاحقًا، والتعلم من مراجعة ما بعد الحادث (postmortem) التي لا تبحث عن مذنب.

نموذج إجابة بالإنجليزية للتدرّب عليه بصوت عالٍ

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

كيف تنطق المصطلحات الأساسية

Kubernetes
كُوبِرْنِيتِيز
Docker
دُوكَر
Terraform
تِرَفُورم
YAML
يَامِل
canary
كَنَيْرِي
Prometheus
بْرُومِيثِيُس
nginx
إِنْجِن إِكْس

عبارات مفيدة للإجابة

  • Every change goes through the pipeline.كل تغيير يمر عبر خط الأنابيب (pipeline).
  • We roll back first and investigate later.نتراجع (rollback) أولًا ونحقق لاحقًا.
  • It is all defined as code in Git.كل شيء معرَّف ككود في Git.
  • The alert is based on what users feel.التنبيه مبني على ما يشعر به المستخدمون.
  • The same image runs in every environment.تعمل الصورة (image) نفسها في كل بيئة.
  • We keep the blast radius small.نُبقي نطاق الضرر (blast radius) صغيرًا.
  • I would automate that step.كنت سأؤتمت هذه الخطوة.
  • The postmortem is blameless.مراجعة ما بعد الحادث (postmortem) لا تلوم أحدًا.

أخطاء شائعة

  • سرد الأدوات دون قصة. عبارة "I know Jenkins, Docker, Kubernetes and Terraform" لا تقول الكثير. قل ما المشكلة التي حلّتها كل أداة لفريقك وما الذي ساء مرةً.
  • اعتبار DevOps مسمًّى وظيفيًا لمن ينشر التطبيقات. قل إنه يتعلق بالمسؤولية المشتركة بين التطوير والعمليات.
  • وصف إطلاق من دون تراجع (rollback) ومراقبة. خط أنابيب لا طريق للعودة فيه ولا وسيلة لرؤية الأخطاء هو نصف إجابة فقط.
  • الخلط بين "deploy" و"release". الـ deploy يضع نسخة على الخوادم؛ والـ release يتيحها للمستخدمين. وقد يحدثان في وقتين مختلفين، مثلًا خلف feature flag.
  • قول "infrastructures" أو "softwares". بهذا المعنى كلتا الكلمتين غير معدودة، فقل "infrastructure" و"software"، أو "pieces of software". يقع ناطقو العربية في هذا الخطأ لأن «البنى التحتية» و«البرمجيات» تأتي في العربية بصيغة الجمع.

الأسئلة الشائعة

ما الأدوات التي يجب أن أعرفها لمقابلة DevOps؟

اعرف أداة واحدة جيدًا في كل مجال: نظام CI مثل GitHub Actions أو Jenkins، وDocker، ومزوّد سحابة واحد، وأداة للبنية التحتية ككود، وحزمة مراقبة. يهتم المحاورون بكيفية استخدامك لها أكثر من طول القائمة.

هل أحتاج إلى كتابة كود في مقابلة DevOps؟

غالبًا قليلًا: سكربت shell، أو مهمة صغيرة بلغة Python، أو ملف pipeline. قل ما تفعله أثناء الكتابة، واذكر معالجة الأخطاء والتسجيل (logging)، لأن الأتمتة التي تفشل بصمت خطيرة.

كيف أتحدث عن حادثة تسببت بها أنا؟

احكِها بصدق وإيجاز: ماذا حدث، وكيف خففت الأثر، وماذا تغيّر بعد ذلك. القصة التي لا تلوم أحدًا وتنتهي بدرس تدل على النضج، أما إخفاء الخطأ فلا.

قراءة الإجابة ليست مثل قولها. تدرّب على كل سؤال بصوت عالٍ، ثم قارن معنى إجابتك ولغتها بالنموذج.

جرّب SpeakRole ↗

موضوعات أخرى في هذا المجال