Skip to content
tezvyn:

🤖AI & ML

Artificial intelligence, machine learning, and data science

546 bites

Test yourself: Top 30 AI & ML interview questionsMultiple choice, with the correct answer and why it is correct on every question. Free, no sign-in.

Interview questions in AI & ML, page 24

intermediate2 min read

Fault-tolerant checkpointing for thousand-GPU pre-training

Checkpoint weights, optimizer state, RNG, and data position together; use asynchronous sharded writes and automated detect-restart-resume.

intermediate2 min read

pandas .apply() versus vectorized operations

Apply runs a Python function per row or column, flexible but slow due to per-element looping; prefer vectorized ops; use apply only for custom logic with no vectorized equivalent.

intermediate2 min read

Point cloud vs voxel grid vs NeRF

Point clouds are sparse and fast but unstructured, voxels are regular for collision checks but memory-heavy, NeRFs render photorealistically but are slow.

intermediate2 min read

Why systematically track ML experiments and what should you log?

This tests reproducibility mindset over bookkeeping. A strong answer names three motivations—reproducibility, selection, debugging—and three logs: hyperparameters, metrics, and code versions.

intermediate2 min read

Prompt engineering to curb extraction hallucinations

Ground strictly in source, allow null for missing fields, enforce a schema, and use few-shot examples; acknowledge prompting cannot fully eliminate it.

intermediate1 min read

When should you keep outliers, not drop them?

Keep them in fraud or anomaly detection, use robust models and metrics.

intermediate2 min read

Zero-shot classification with CLIP

Encode image and label prompts into a shared space, compare via cosine similarity, pick the highest.

intermediate2 min read

Describe a Model Registry and how it differs from versioned storage

It tests governance and lifecycle metadata beyond file storage. A strong answer covers lineage, stage transitions, approval gates, and artifact metadata, contrasting with buckets that only store file versions.

intermediate2 min read

Self-consistency over chain-of-thought

Sample multiple CoT paths at nonzero temperature and majority-vote the final answer; cost scales with the number of samples.

intermediate1 min read

Explain KNN or MICE imputation principles

KNN borrows from similar rows, MICE models each variable from the others iteratively and creates multiple datasets.

intermediate2 min read

Contrastive learning vs masked image modeling

Contrastive aligns augmented views via instance discrimination; MAE reconstructs masked patches; they differ in augmentation and fine-tuning.

intermediate2 min read

Reproduce a six-month-old model using experiment tracking

Trace code commit, dataset version, feature pipeline, hyperparameters, dependency manifest, and random seeds through a model registry.

intermediate2 min read

Why chain-of-thought helps large models but not small ones

Small models lack reliable multi-step reasoning, so CoT just adds error-prone steps; adapt by using few-shot/fine-tuning or distillation for small tiers.

intermediate1 min read

Design a SQL upsert from a staging table

Define a stable key, use MERGE or INSERT ON CONFLICT, dedupe the staging set first, run in a transaction.

intermediate2 min read

When a homography is a valid model

Homography holds for pure rotation or a planar scene; it fails with translation plus 3D parallax, where epipolar geometry applies.

intermediate2 min read

Debug sudden model degradation using experiment tracking and model registry

Tests unified use of experiment tracking and registry lineage. Great answers verify the exact production artifact, inspect linked training data and hyperparameters, compare input distributions, and check dependency metadata.

intermediate2 min read

Handling a 401 error in an LLM agent's tool call

Catch the tool error, return a structured observation to the LLM, and distinguish recoverable retries from terminal failures needing re-plan or escalation.

intermediate1 min read

Handle source schema changes without downtime

Add columns as nullable additive changes, version the schema, use formats like Iceberg or Parquet that support evolution, backfill new types safely.

intermediate1 min read

Challenges deploying a model on edge hardware

Limited memory and compute cause latency, thermal and power limits, accuracy loss from compression, operator support gaps.

intermediate2 min read

Design a centralized model registry for a large enterprise

Tests ML artifact governance at scale. Strong answers cover immutable versioned artifacts with dependency manifests, a framework-agnostic API, and pluggable deployment targets. Red flag: treating models as opaque files without environment reproducibility.

We are hiring for this. Every open role lists the topics its interview covers, so you can prepare for the real thing rather than guessing.

See open roles