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 20

intermediate1 min read

Fixing a prompt that ignores key constraints

Move the critical constraint to a prominent position, state it positively and specifically, separate instructions from data with delimiters, and add a concrete example.

easy1 min read

Visualizing long-term trend versus seasonality

A line chart over the full three years, often with a moving average, shows the long-term trend; a seasonal plot overlaying each year by month, or a month-of-year box plot, reveals…

advanced1 min read

How does a plenoptic camera enable post-capture refocus?

Light field records ray direction plus position via a microlens array, refocusing shears and integrates the 4D data to choose a virtual focal plane.

Describe a basic lifecycle policy to manage cloud storage costs
easy2 min read

Describe a basic lifecycle policy to manage cloud storage costs

This tests cost optimization via tiered storage and automated expiration. Strong answers list transitions from Standard to IA to Glacier, then deletion after set days, plus retrieval costs. A red flag is using manual scripts instead of native lifecycle rules.

intermediate2 min read

Diagnosing sycophancy from RLHF

Annotators reward agreeable, inoffensive answers so the reward model learns to favor them, fix by diversifying labelers, rewarding factual correctness over agreeableness, and…

intermediate1 min read

Reconcile rising sign-ups with falling revenue per user

Reconcile the metrics via total revenue and segment mix, frame the tradeoff, recommend an action.

advanced1 min read

Why merge a burst instead of one long low-light exposure?

Short frames avoid motion blur and clipping while averaging cuts noise; align frames and merge robustly, rejecting misaligned regions to avoid ghosting.

intermediate2 min read

How do you adapt ML training for spot instance interruptions?

Tests resilience under preemption. Strong answers cover frequent checkpoints to durable storage, SIGTERM handling, idempotent retries with budgets, and compute-state separation. Red flag: saving checkpoints only on local ephemeral disks or solely at epoch end.

intermediate1 min read

Three ways to cut LLM inference cost

Quantization to shrink the model, continuous batching with paged attention to raise GPU utilization, and distillation or smaller routed models for easy queries.

intermediate1 min read

When to choose RAG over fine-tuning

RAG for fresh, factual, citable knowledge that changes often, fine-tuning for behavior, style, or format the model must internalize.

intermediate1 min read

Two ways accurate data can still mislead in a chart

Name distortions like truncated axes or cherry-picked ranges, give the fix for each, explain why each misleads.

advanced1 min read

How does focus stacking build an all-in-focus image?

Align frames, measure local sharpness as a focus metric, select or blend the sharpest source per region, then composite.

intermediate2 min read

Chunking and embedding a RAG corpus

Choose chunk size and overlap balancing context vs precision, prefer semantic boundaries, then pick an embedding model matching domain and dimension, and store with metadata.

intermediate1 min read

Explain k-means user segments to a marketing team

Name each segment, profile its defining traits, show size and value, recommend an action.

easy1 min read

What data augmentations help small image datasets?

Apply label-preserving transforms like flips, crops, rotation, color jitter, and mixing to enlarge effective data and reduce overfitting.

intermediate2 min read

Design a near real-time cost visibility system for ML teams

Tests cost attribution across shared ML infrastructure and streaming pipeline design. Strong answers combine billing exports with resource labels, sub-hour aggregation, and anomaly detection for training spikes.

intermediate2 min read

Evaluating a multi-tool LLM agent

Measure end-to-end task success, plus trajectory quality like correct tool choice and arguments, efficiency via steps and cost, and robustness to errors and edge cases.

easy1 min read

Deploy a saved model as a REST prediction service

Load the artifact, wrap it in a predict API, containerize, host with autoscaling, add monitoring.

easy1 min read

Precision vs recall in object detection.

Precision is fraction of detections that are correct, recall is fraction of true objects found; prioritize recall for safety-critical detection, precision when false alarms are costly.

Design a showback or chargeback system for ML infrastructure costs
advanced2 min read

Design a showback or chargeback system for ML infrastructure costs

Tag workloads to cost centers; define shared-resource formulas; automate reconciliation; use showback.

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