All 53 questions
What's the purpose of Pydantic models in FastAPI?
Asked in 2 of 281 interviews · last asked Oct 22 · Concept · Mid-level
Other ways it was asked
- “What is the purpose of Pydantic models in FastAPI, and how do they differ from SQLAlchemy or SQLModel database models?”
How would you package Python code for AWS Lambda?
Asked once · last asked Sep 10 · Tooling · Mid-level
Other ways it was asked
- “What tool would you use to package Python code into a ZIP file for AWS Lambda?”
When would you use Python alongside Terraform for AWS automation rather than using Terraform alone?
Asked once · last asked Sep 30 · Concept · Mid-level
How would you add file-upload functionality to a Streamlit app so users can upload an Excel file?
Asked once · last asked Oct 12 · Tooling · Junior
Other ways it was asked
- “What Streamlit syntax would you use to let users upload an Excel file?”
How can you protect Python source code from being copied or reused when delivering it to a customer in a Docker container?
Asked once · last asked Feb 5 · Scenario · Mid-level
What is Pydantic, and what is it used for?
Asked once · last asked Feb 23 · Concept · Junior
How can a Java server interact with Python machine-learning libraries?
Asked once · last asked Mar 16 · Concept · Mid-level
How do embedded adapters and REST APIs differ when integrating Python libraries with a Java server?
Asked once · last asked Mar 16 · Concept · Mid-level
How would you deploy a Python-based application to the cloud, and what steps would you follow?
Asked once · last asked Mar 19 · Tooling · Mid-level
Other ways it was asked
- “How have you deployed a Python-based application to the cloud, and what steps did you follow?”
How would you implement role-based authorization in Python, and what tools or libraries might you use?
Asked once · last asked Apr 9 · Scenario · Mid-level
Other ways it was asked
- “How would you implement role-based authentication in Python, and what tools or libraries might you use?”
When retrieving data from an API with Python, how do you handle pagination, authentication tokens, and rate limits?
Asked once · last asked Apr 24 · Tooling · Mid-level
When automating a task with PowerShell, Python, and REST APIs, how would you decide whether Python and REST APIs alone are sufficient?
Asked once · last asked May 27 · Scenario · Mid-level
How would you approach designing a large-scale build toolchain that supports both C++ and Python, especially in a distributed engineering organization?
Asked once · last asked Jun 1 · Design · Senior
If you have a Python script hosted on Azure and want to create a custom connector for it, how would you do that?
Asked once · last asked Jun 9 · Tooling · Mid-level
Write a Python function that takes a PDF filename, extracts its contents, and summarizes them using an OpenAI model.
Asked once · last asked Jun 12 · Write code · Mid-level
What is middleware in Express, and what are decorators in Python web frameworks such as FastAPI, Flask, and Django?
Asked once · last asked Jul 16 · Concept · Junior
How would you fetch the first five titles from data retrieved from a URL in Python?
Asked once · last asked Jul 16 · Write code · Mid-level
How do you manage Python and Conda environments in an OpenShift cluster, and how do you create a Conda environment there?
Asked once · last asked Jul 16 · Tooling · Senior
How would you make an HTTP request in Python, pass parameters, and retrieve the response?
Asked once · last asked Jul 26 · Write code · Junior
How would you use PowerShell, Python, and APIs to automate privileged-account onboarding and reduce a three-day process to four hours?
Asked once · last asked Jul 31 · Scenario · Senior
How would you connect a React frontend to a Python backend?
Asked once · last asked Aug 13 · Design · Mid-level
What are type hints in Python, and how does FastAPI use them?
Asked once · last asked Aug 14 · Concept · Junior
How do you declare or validate an input field using Pydantic? Explain the procedure in code.
Asked once · last asked Aug 21 · Tooling · Junior
How would you use Pydantic to validate that a password contains letters, numbers, and at least one special character?
Asked once · last asked Aug 21 · Tooling · Mid-level
Other ways it was asked
- “For a password field that must include numbers, alphabets, and a special character, how would you validate it with Pydantic?”
How does FastAPI handle synchronous route functions, given Python's threading limitations?
Asked once · last asked Aug 21 · Concept · Mid-level
How would you integrate GenAI or LLM APIs into a Python application?
Asked once · last asked Aug 22 · Scenario · Mid-level
In Python, how would you structure an idempotent external side-effecting step—for example, charging a card and writing to a database—to guarantee exactly-once behavior under retries and worker crashes?
Asked once · last asked Aug 24 · Design · Senior
When designing a Python services API client layer that calls multiple third-party APIs, how do you structure timeouts, retries, circuit breakers, and observability so failures do not cascade?
Asked once · last asked Aug 24 · Design · Senior
How would you design a Dockerfile to package a Python application?
Asked once · last asked Aug 31 · Tooling · Mid-level
How does Streamlit execute application code, and what does synchronous versus asynchronous execution mean?
Asked once · last asked Sep 9 · Concept · Mid-level
Other ways it was asked
- “Does Streamlit execute UI code synchronously or asynchronously?”
- “What do you understand by synchronous versus asynchronous execution in Streamlit?”
For a simple Python program to extract content from a URL, would you use requests, Selenium, or Playwright?
Asked once · last asked Sep 17 · Concept · Mid-level
Other ways it was asked
- “For a simple Python program to extract content from a URL such as google.com, would you use requests, Selenium, or Playwright?”
- “Write a simple Python program to extract data from google.com using Playwright or Selenium.”
How would you refactor a Python pipeline that preprocesses raw prompts, calls an LLM API, and produces structured JSON to scale from hundreds to hundreds of thousands of items per hour while remaining readable, modular, performant, and memory-aware?
Asked once · last asked Sep 24 · Design · Senior
Other ways it was asked
- “How would you refactor a Python text transformation pipeline that ingests raw prompts, preprocesses them, calls an LLM API, and produces structured JSON, so it can scale from hundreds to hundreds of thousands of items per hour while remaining readable, modular, performant, and memory-aware?”
How would you compose an agentic AI orchestrator where a Python service sends a prompt to an LLM, interprets response codes, and conditionally calls two external tools, while handling tool failures and maintaining transactional consistency as requirements evolve?
Asked once · last asked Sep 24 · Design · Senior
Which Python technology or library would you choose first to build an internal API that integrates existing systems and supports bidirectional communication?
Asked once · last asked Oct 13 · Scenario · Mid-level
A Python web service pings a user-supplied IP address by executing a shell command. Why is this vulnerable, and what kinds of inputs could exploit it to run unintended commands on Linux?
Asked once · last asked Jan 23 · Scenario · Mid-level
Which Boto3 EC2 method can list EBS volumes filtered by status?
Asked once · last asked Oct 23 · Concept · Junior
Other ways it was asked
- “How would you use Boto3 to retrieve EBS volumes with the status filter set to available?”
How would you write a Python program to list all available EBS volumes?
Asked once · last asked Oct 23 · Write code · Junior
Other ways it was asked
- “How would you write Python code to list all available EBS volumes and delete each one?”
How would you write a Python program to handle failures when using Amazon SNS or Amazon SQS?
Asked once · last asked Oct 23 · Write code · Mid-level
How would you write a Python program to back up an EBS volume and copy its snapshot to another AWS Region?
Asked once · last asked Oct 23 · Write code · Mid-level
How would you iterate through a Boto3 response containing EBS volumes and delete each volume?
Asked once · last asked Oct 23 · Write code · Mid-level
How would you build an end-to-end Azure DevOps pipeline using YAML or Python?
Asked once · last asked Oct 23 · Tooling · Mid-level
Other ways it was asked
- “Can you walk me through your experience writing Azure DevOps pipelines in YAML or using Python with your pipelines, with a concrete end-to-end example?”
How do you manage Python dependencies?
Asked once · last asked Jun 4 · Tooling · Mid-level
How can a Python script be used within an automation workflow, and at what stage would you use it?
Asked once · last asked Jun 8 · Tooling · Mid-level
What is the most widely used library for building APIs in Python? How do you make API calls, which HTTP methods do you know, and what do you pay attention to?
Asked once · last asked Jun 18 · Concept · Mid-level
How do you call an API from Python?
Asked once · last asked Jul 16 · Tooling · Junior
How would you build an LLM-powered chatbot using a Python backend?
Asked once · last asked Jul 16 · Design · Mid-level
Other ways it was asked
- “How did you build an LLM-powered chatbot using a Python backend?”
How do you call an endpoint in a FastAPI application?
Asked once · last asked Aug 14 · Tooling · Junior
What is FastAPI’s @app.get(...) line called?
Asked once · last asked Aug 14 · Concept · Junior
What Pydantic validation mechanism would you use to enforce password requirements?
Asked once · last asked Aug 21 · Tooling · Mid-level
How does the Python requests library work?
Asked once · last asked Sep 17 · Concept · Junior
How would you use Python in AWS automation?
Asked once · last asked Sep 30 · Tooling · Mid-level
Why use Docker for a Python application?
Asked once · last asked Oct 7 · Concept · Mid-level
How would you use Boto3 to create an Amazon ECS resource?
Asked once · last asked Oct 23 · Write code · Mid-level
More Python interview questions
- All Python interview questions
- Python Basics Interview Questions
- Python Data Structures and Coding Interview Questions
- Python Functions, Decorators and Generators Interview Questions
- Python Files, Exceptions and Modules Interview Questions
- Python Data Engineering and Machine Learning 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 Python 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.
281 interviews, 199 candidates, Nov 2025 to Oct 2026. Updated every month with new interviews.
Or add the Chrome extension