Skip to content
tezvyn:

🤖AI & ML

Artificial intelligence, machine learning, and data science

308 bites

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

Advanced everything in AI & ML, page 4

advanced2 min read

Feature choice for real-time mobile SLAM

Pick ORB for fast FAST keypoints and cheap binary descriptors matched by Hamming distance; accept reduced robustness versus SIFT for real-time, low-power operation.

advanced2 min read

CNN features for image retrieval

Pass the image through a pretrained CNN and read activations from a late layer as a descriptor; deeper layers encode semantics, earlier layers encode texture.

advanced2 min read

Image rotation: forward versus inverse mapping

Forward mapping sends source pixels to non-integer destinations, leaving holes and overlaps; inverse mapping iterates over output pixels, finds the source location, and interpolates.

advanced2 min read

FlashAttention and IO-Aware Attention

FlashAttention is IO-aware, tiling and fusing attention in fast SRAM to avoid materializing the n-by-n matrix in slow HBM.

advanced2 min read

Layer Norm and Residuals in Transformer Blocks

Residuals preserve gradient flow, layer norm stabilizes activations per token, and it beats batch norm because it is independent of batch and sequence length.

Most LLM Apps Need Workflows Not Agent Frameworks
intermediate1 min read

Most LLM Apps Need Workflows Not Agent Frameworks

Most LLM apps ship faster and more reliably as deterministic workflows than autonomous agents. Plain Python with structured outputs and local functions beats CrewAI and LangGraph for debugging. Map control flow in code before importing any agent framework.

ORPilot JSON IR Ends Solver Lock-In
intermediate1 min read

ORPilot JSON IR Ends Solver Lock-In

ORPilot's open-source IR captures optimization models as solver-agnostic JSON, letting teams swap solvers or update data without calling the LLM again. It separates model structure from solver syntax, making LLM-generated OR models reproducible in production.

Default Churn Thresholds Waste $86 per Customer
intermediate1 min read

Default Churn Thresholds Waste $86 per Customer

90% of 36 IBM Telco churn analyses use F1 and a 0.5 threshold, assuming equal costs for false positives and negatives. That is wrong by 13x, burning $86 per customer, or $8.6M at 100k subscribers. Swap accuracy for profit curves tied to LTV and CAC.

Describe an ML workflow with massive egress fees and re-architecture to mitigate
advanced2 min read

Describe an ML workflow with massive egress fees and re-architecture to mitigate

Tests whether you recognize egress spikes when storage and compute cross cloud or region boundaries. Great answers sketch a multi-cloud training pipeline, cite per-GB rates, and propose caching or compute placement. Red flag: suggesting compression alone.

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.

advanced2 min read

Design a defense-in-depth strategy against adversarial evasion on a deployed image classifier

Proactive: adversarial training, preprocessing, ensembles.

Design a cryptographically verifiable ML audit trail from dataset to deployment
advanced2 min read

Design a cryptographically verifiable ML audit trail from dataset to deployment

Tests cryptographic provenance and tamper-evident ML pipelines. Strong answers cover content-addressed datasets, signed training logs linking code and hyperparameters to model hashes, and deployment signature checks.

Propose an architectural solution for contended GPU training resources
advanced2 min read

Propose an architectural solution for contended GPU training resources

Tests multi-tenant GPU scheduling design at scale. Great answers tier jobs by checkpointability, apply quota-based preemption, mix spot and on-demand instances, and use MIG or time-slicing to bin-pack. Red flag: buying GPUs without scheduling logic.

Design a multi-tenant ML platform with isolation, security, and cost attribution
advanced2 min read

Design a multi-tenant ML platform with isolation, security, and cost attribution

Tests mapping tenancy to compute, network, and identity primitives. Strong answers compare hard vs soft isolation, use namespaces or node pools with network policies and IAM, and enforce chargeback via resource quotas and labels.

advanced2 min read

How would you architect dynamic training resource provisioning?

Routes jobs to right-sized instances, provisions managed jobs using spot, and auto-tears down on completion.

Design concept drift detection with automated retraining safeguards
advanced2 min read

Design concept drift detection with automated retraining safeguards

Baseline monitors raise CloudWatch alarms; EventBridge triggers retraining with cooldowns; model registry gates promotion.

How do you monitor thousands of per-customer models as a fleet?
advanced2 min read

How do you monitor thousands of per-customer models as a fleet?

Tests fleet-level statistical aggregation versus per-instance alerting. Strong answers propose tiered telemetry, cohort baselining for drift, and hierarchical alerting to prevent fatigue.

advanced2 min read

Design an automated system to diagnose model performance drop root causes

Tests causal attribution between pipeline bugs and drift. Strong answers sequence schema/null audits, feature drift via PSI/KS, then concept drift via holdout decay. Red flag: skipping pipeline checks to retrain immediately.

advanced2 min read

Design a multi-model serving architecture for infrequently used models

Tests sparse-traffic cost efficiency via shared compute and dynamic loading. Strong answers: LRU cache on fast storage, scale-to-zero with async preload, pinned hot models, per-model quotas.

Design cost-effective inference for spiky traffic without idle GPUs
advanced2 min read

Design cost-effective inference for spiky traffic without idle GPUs

Tests designing inference that cuts idle GPU cost during troughs yet handles spiky peaks with low latency via SageMaker blue/green fleets, production variants, and CloudWatch baking periods. Red flag: always-on GPU pools with naive auto-scaling.

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