
Real Interview Questions for the Machine Learning Engineer at Yandex
NewPractice MCQs
Answers count toward the Machine Learning Engineer and overall leaderboards; your latest answer to each question is the one that counts.
MCQ-1A friend recommendation service serves 50 million users, but newly registered accounts have no mutual friends or interaction history. Its candidate generator relies solely on mutual friends, and its ranker was validated only by offline AUC on established users. New-user friend acceptance is near zero, so which change should the team make first?
Answer to see the discussion.
MCQ-2A two-pointer Valid Palindrome II check runs on `s = "aab"`, deleting only the left character at the first mismatch and returning false. What verdict does trying the other deletion at that mismatch give?
Answer to see the discussion.
MCQ-3A Yandex image classifier trained on 4,000 expert-labelled photos reaches 99% training accuracy but 76% validation accuracy, with validation loss rising after epoch 12. Weight decay and dropout were already selected by a validation sweep, training already stops at the best validation checkpoint, and the compact two-layer network must separate fine-grained classes. The team cannot collect more labelled photos, so which change most directly reduces the generalization gap?
Answer to see the discussion.
MCQ-4A Yandex team must classify product photos into five known taxonomy classes, with 800 representative labelled photos and one million unlabelled sketches from a different distribution. Which approach should it use, and how should it be evaluated?
Answer to see the discussion.
MCQ-5A Yandex image classifier using stacked convolutions flips its prediction when the same object shifts by four pixels in a 32x32 image. The team wants local translation invariance while keeping the spatial hierarchy from early edges to later parts. Which architectural change best achieves that?
Answer to see the discussion.
MCQ-6A fraud classifier trained on 120,000 transactions with 0.4% positives has validation AUC 0.97, but at threshold `0.5` recall is 20% at 95% precision. Missing fraud costs far more than a false alert, and the team can accept precision near 60% to reach 80% recall without new labels. Which intervention should the team try first?
Answer to see the discussion.
MCQ-7A Yandex classifier scores 1,000 labelled examples, 200 positive and 800 negative. At one threshold it predicts 150 positives correctly and 80 negatives incorrectly. Where does this threshold sit on the ROC curve?
Answer to see the discussion.
MCQ-8A Yandex team fine-tunes a pretrained language model on 4,000 labelled support tickets for intent classification, while production also requires general question answering. The training file includes 600 tickets from the held-out eval set, and the team plans to update every layer on that file alone. Which fine-tuning setup should they use?
Answer to see the discussion.
MCQ-9A transcription-generation agent is described as especially strong on a held-out noisy benchmark, with WER 8% versus 11% for the prior system. Removing its diarization step raises WER to 12%, while removing its generation summarizer or swapping in a larger base model leaves WER near 8%, and failure analysis clusters remaining errors in overlapping speech. Which component is the standout part substantiated by this evidence?
Answer to see the discussion.
MCQ-10A Yandex support bot must run on one 16GB GPU per replica with p99 latency under 300ms and score at least 92% on the internal eval. The candidates are `v1.4`, `v2.0` and `v3.1`, scoring 81%, 94% and 95% respectively, and the team will not add GPUs. Which checkpoint should the team deploy?
Answer to see the discussion.
MCQ-11A churn model is trained on 90,000 daily snapshots from 12,000 users, with several snapshots per user, and must score users never seen in training. A random snapshot split puts the same user in both training and validation, inflating validation AUC. Which split should the team use?
Answer to see the discussion.
MCQ-12A Yandex scoring pipeline writes to a Kafka topic partitioned by `user_id` with `acks=all` and producer retries enabled. After a broker failover, events for individual users arrive out of order despite landing on the same partition. Which producer change restores per-user ordering without disabling retries?
Answer to see the discussion.
MCQ-13A Yandex ML inference pipeline was refactored to split feature extraction from GPU scoring, with one unbounded queue between them. After the change, GPU utilization stays at 35%, queue depth grows during peaks, and p99 latency rises from 120 ms to 900 ms while scoring throughput per GPU is unchanged. Which diagnosis best explains the bottleneck?
Answer to see the discussion.
MCQ-14A Yandex classifier's input features show PSI 0.03 for three weeks, below its alert threshold, while delayed labels arriving after 14 days show precision fell from 0.82 to 0.61 after user behaviour changed. What best explains the degradation?
Answer to see the discussion.
MCQ-15A screening classifier is trained on 20,000 scans with 300 positives. A plain random split puts only 41 positives in validation, so precision estimates swing widely between runs. Which split should the team use for validation?
Answer to see the discussion.
MCQ-16A chat service has a 300 ms p99 end-to-end budget. Its LLM call spends 260 ms prefilling an 8,000-token shared context and 40 ms decoding 20 tokens, while the GPU sits mostly idle at low traffic. Which change brings the call inside budget?
Answer to see the discussion.
MCQ-17A Yandex ML team must stream 1.5M click events per second to three consumers, replay the last 30 days for retraining, and keep per-user ordering, but has no Kafka operations experience and a managed streaming service meets those needs. Which adoption decision fits this situation?
Answer to see the discussion.
MCQ-18A transcription service runs on 4 GB pods and OOM-kills on 10-minute audio files, while 30-second clips succeed. Memory use grows linearly with file duration, and each request is decoded fully in memory before inference. Adding more replicas does not stop the kills. What is the most likely cause?
Answer to see the discussion.
MCQ-19A Yandex ML team retrains nightly using a hosted text-embedding API. Training jobs in March called `embeddings-v2`, but the vendor default endpoint now returns v3 responses with different dimensions, and the retrained model silently drops in AUC. The API accepts an explicit `model` version parameter on every request. What should the pipeline do to restore reproducibility?
Answer to see the discussion.
MCQ-20A Yandex ML scoring service shows p99 latency rising from 120 ms to 900 ms during peaks, but dashboards only show total request count and GPU utilization. Engineers cannot tell whether feature fetching, preprocessing, or model scoring causes the delay, and predictions lack model version tags. Which instrumentation change should the team make first?
Answer to see the discussion.
MCQ-21A Yandex ML inference fleet runs 200 services inside a VPC and emits high-cardinality metrics tagged with `user_id` and model version. Raw features cannot leave the VPC, retention must cover 90 days, and the platform team has no capacity to run a 24/7 on-call for a new stack. Which observability deployment fits these constraints?
Answer to see the discussion.
MCQ-22A Yandex ML engineer has a prototype image classifier that external reviewers must try in a browser without installing Python or a GPU stack, using only public test images. Reviewers already have SSO accounts, the demo link must be reusable across sessions, no per-reviewer credentials can be issued before the demo, and the weights must not leave the VPC. Which deployment should the engineer choose for the demo?
Answer to see the discussion.
MCQ-23A Yandex ML team needs three more weeks to validate a ranking model, but the product stakeholder must launch in two weeks for a partner deal and wants a new signal added now. The partner contract requires one uniform model for every user, the deal expires on the launch date, and the signal is unvalidated and adds latency beyond the service budget. What should the engineer do first?
Answer to see the discussion.
MCQ-24A Yandex ML team must retrain a PyTorch image model nightly on its GPU cluster, reusing existing PyTorch checkpoints, data loaders, and evaluation code, with no Node.js training code in the repository. Which language and framework should the training pipeline use?
Answer to see the discussion.
Curated: · Written: · Reviewed: