All 48 questions
Where would you choose a generator over a list, and what are the memory implications?
Asked in 2 of 335 interviews · last asked Nov 11 · Scenario · Mid-level
Other ways it was asked
- “When would you choose generators over lists, and what are the memory implications?”
How does a Kubernetes pod behave when it has a 2 GB memory limit?
Asked once · last asked Apr 14 · Scenario · Mid-level
If multiple Kubernetes pods approach 1 GB of memory usage, what happens under memory pressure, and can one pod's limit or usage cause other pods to be killed?
Asked once · last asked Apr 14 · Scenario · Senior
In Node.js, how would you design a high-throughput HTTP endpoint to apply back pressure when downstream work is slower? What Node.js primitives would you use to avoid unbounded memory growth?
Asked once · last asked Apr 17 · Design · Senior
What problems would you anticipate when processing a 4- to 5-GB nested JSON file?
Asked once · last asked Apr 17 · Scenario · Mid-level
What determines how much data Redis can store?
Asked once · last asked May 25 · Concept · Mid-level
You have a very large file that cannot fit in memory, with one URL per line and possible duplicates. How would you process it to produce a file containing each unique URL and its number of appearances?
Asked once · last asked May 25 · Write code · Senior
In distributed data processing, does repartitioning change data stored on disk or data held in memory?
Asked once · last asked Jun 1 · Concept · Senior
How does repartitioning redistribute data, how can you distinguish data skew from simply having a large volume of data, and why might a shuffle stage spill to disk?
Asked once · last asked Jun 1 · Concept · Senior
How would you read a large CSV with pandas while minimizing memory usage and validating column types during loading?
Asked once · last asked Jun 3 · Tooling · Mid-level
In pandas, how would you design a memory-efficient pipeline to read and aggregate a 50 GB CSV, grouping by customer_id and computing sums without loading the whole file at once?
Asked once · last asked Jun 25 · Scenario · Senior
How would you calculate the mean of a column in a dataset that is too large to fit in memory?
Asked once · last asked Jul 21 · Scenario · Mid-level
You need to serve one very large file or process a huge CSV upload. How do you do this in Node without killing the process?
Asked once · last asked Jul 23 · Scenario · Mid-level
If a container works locally but fails in production with out-of-memory errors, how would you debug it?
Asked once · last asked Aug 4 · Scenario · Senior
Why would you use a generator instead of a list comprehension to process 10 million items?
Asked once · last asked Aug 13 · Concept · Mid-level
In what cases does an out-of-memory error happen on the driver node versus an executor node?
Asked once · last asked Aug 14 · Concept · Senior
Can excessive shuffling lead to executor out-of-memory errors?
Asked once · last asked Aug 14 · Concept · Mid-level
An engineering team is fine-tuning a model using quantized LoRA (QLoRA) on limited GPU infrastructure and repeatedly encounters out-of-memory errors. How would you mitigate these errors?
Asked once · last asked Aug 20 · Scenario · Senior
Other ways it was asked
- “The engineering team is doing a quantized LoRA for a model on limited GPU infrastructure and keeps getting out-of-memory errors. How could we help them mitigate these errors?”
How would you read a 5–10 GB log file without loading the entire file into memory?
Asked once · last asked Aug 22 · Scenario · Mid-level
When you're reading a large CSV in pandas for an ETL step, what options do you use to control memory and data types and why?
Asked once · last asked Aug 23 · Tooling · Mid-level
How do you implement chunked processing to aggregate results without holding the full dataset in memory?
Asked once · last asked Aug 23 · Scenario · Mid-level
If your application runs in AWS with only 1 GB of memory but must read more than 100 GB from DynamoDB and write it to a file, what is your approach?
Asked once · last asked Sep 2 · Scenario · Senior
Which PL/SQL collection types are suitable for bulk processing, how do you manage memory, and how do you choose batch size?
Asked once · last asked Sep 4 · Concept · Senior
When pulling a database containing 50,000,000 rows from SQL Server into Python, how do you prevent memory error exceptions? Compare memory-safe techniques.
Asked once · last asked Sep 5 · Scenario · Senior
For a rolling-window rate limiter that stores exact request timestamps, how does a worst-case burst affect memory use and per-request cost, and does the operation remain O(1)?
Asked once · last asked Sep 6 · Scenario · Senior
When cleaning a 50 GB CSV with pandas where some numeric columns contain mixed types and bad tokens, how would you design a memory-safe pipeline to coerce types, track rejected rows, and write clean Parquet?
Asked once · last asked Sep 7 · Tooling · Senior
How would you process a very large binary tree that cannot fit entirely in memory?
Asked once · last asked Sep 10 · Scenario · Senior
How would you handle memory usage as you scale concurrent requests?
Asked once · last asked Sep 24 · Scenario · Mid-level
How do you determine whether a model can run on a 24 GB GPU or requires a 48 GB GPU?
Asked once · last asked Oct 7 · Concept · Senior
How would you investigate an out-of-memory error?
Asked once · last asked Oct 16 · Scenario · Senior
How would you handle memory issues when processing large PDFs, and split a PDF into two files?
Asked once · last asked Nov 18 · Scenario · Mid-level
In Python, explain what a generator is and how it differs from a list comprehension in terms of evaluation and memory usage.
Asked once · last asked Oct 29 · Concept · Mid-level
How do you estimate the amount of memory required for your application?
Asked once · last asked Oct 30 · Scenario · Mid-level
In Python, you need to parse a large log file line by line and extract fields with a regex, writing results to CSV. How would you structure it to avoid high memory use and ensure the output is flushed safely?
Asked once · last asked Nov 6 · Tooling · Senior
Why bother using a stream abstraction instead of a slice or array in memory?
Asked once · last asked Nov 6 · Concept · Mid-level
How would you handle a stream with a billion elements on an embedded machine with only one kilobyte of RAM?
Asked once · last asked Nov 6 · Scenario · Senior
How do recent advancements in memory management techniques, such as asynchronous prefetching, affect the trade-offs between latency and model size in LLM deployment?
Asked once · last asked Nov 9 · Concept · Senior
What happens to the KV cache of the previous user when a new user starts?
Asked once · last asked Nov 9 · Concept · Mid-level
Do you know any techniques that address KV cache management?
Asked once · last asked Nov 9 · Concept · Senior
What is paged attention, and how does it help manage the KV cache?
Asked once · last asked Nov 9 · Concept · Mid-level
What are the most common causes of Java OutOfMemoryError exceptions?
Asked once · last asked Nov 10 · Concept · Mid-level
What metrics would you examine first when Spark executors are frequently dying with out-of-memory errors?
Asked once · last asked Nov 18 · Scenario · Senior
What happens when an application's cache runs out of memory?
Asked once · last asked Apr 15 · Scenario · Mid-level
Why is memory important when selecting the right model?
Asked once · last asked Aug 20 · Concept · Mid-level
How can you handle larger datasets without crashing your system?
Asked once · last asked Oct 29 · Scenario · Mid-level
If the list is very large and memory is limited, would you still store all of its values in a dictionary?
Asked once · last asked Nov 4 · Scenario · Junior
How would you track stream progress without storing every element in a slice?
Asked once · last asked Nov 6 · Scenario · Mid-level
Does running an AI agent locally use RAM, and what could cause a laptop to hang?
Asked once · last asked Nov 12 · Scenario · Mid-level
More Operating Systems interview questions
- All Operating Systems interview questions
- Memory Management, Stack and Heap Interview Questions
- Garbage Collection and Resource Management Interview Questions
- Memory Leaks and Performance Troubleshooting Interview Questions
How this list is made
Every question here was asked by a real interviewer in a real job interview that a candidate ran MeetAssist in. After the call, the interviewer's questions are pulled from the transcript. Practice sessions, tests, exams and anything that was not a job interview are dropped.
Questions are rewritten so they make sense on their own: names of people, employers and clients are removed, and speech-to-text mistakes are fixed. Small talk, logistics and questions about one candidate's own résumé are left out. Rephrasings of the same question are merged, and the count is the number of different interviews it came up in.
The interviews come from candidates who use MeetAssist, so they lean towards software, data and AI roles: the shares describe these interviews, not every Operating Systems interview. Answers to the most asked questions are written and checked by an editor; a "common mistake" is shown only when reviews of real answers in these interviews show it, with the count.
335 interviews, 268 candidates, Dec 2025 to Nov 2026. Updated every month with new interviews.
Or add the Chrome extension