Python Automation interview questions

21 real Python Automation questions from the MLOps & Integration bank, as asked in Indian campus drives and tech interviews. Every question has a verified answer and an AI-tutor explanation on placd — free to start.

1. What is Virtual environment?

Junior
  1. A.Python's standard configurable logging facility supporting levels, handlers and structured output
  2. B.the AWS SDK for Python used to script S3, IAM and other AWS services
  3. C.the standard-library module for spawning and capturing the output of external commands from Python
  4. D.an isolated Python install (venv) so a project's dependencies don't clash with the system or other projects
Reveal the answer + AI explanation — free account

3. Which statement is correct?

Junior
  1. A.Virtual environment — Python's standard configurable logging facility supporting levels, handlers and structured output
  2. B.Virtual environment — an isolated Python install (venv) so a project's dependencies don't clash with the system or other projects
  3. C.Virtual environment — a pinned list of package versions used to reproduce a Python environment with pip
  4. D.Virtual environment — the standard-library module for parsing command-line arguments in automation scripts
Reveal the answer + AI explanation — free account

4. What is requirements.txt?

Junior
  1. A.the standard-library module for spawning and capturing the output of external commands from Python
  2. B.an isolated Python install (venv) so a project's dependencies don't clash with the system or other projects
  3. C.the AWS SDK for Python used to script S3, IAM and other AWS services
  4. D.a pinned list of package versions used to reproduce a Python environment with pip
Reveal the answer + AI explanation — free account

6. Which statement is correct?

Junior
  1. A.requirements.txt — an isolated Python install (venv) so a project's dependencies don't clash with the system or other projects
  2. B.requirements.txt — the standard-library module for spawning and capturing the output of external commands from Python
  3. C.requirements.txt — modern Python tools that resolve, lock and manage dependencies and packaging more reproducibly than bare pip
  4. D.requirements.txt — a pinned list of package versions used to reproduce a Python environment with pip
Reveal the answer + AI explanation — free account

7. What is boto3?

Mid
  1. A.the standard-library module for spawning and capturing the output of external commands from Python
  2. B.modern Python tools that resolve, lock and manage dependencies and packaging more reproducibly than bare pip
  3. C.an isolated Python install (venv) so a project's dependencies don't clash with the system or other projects
  4. D.the AWS SDK for Python used to script S3, IAM and other AWS services
Reveal the answer + AI explanation — free account

9. Which statement is correct?

Mid
  1. A.boto3 — the standard-library module for spawning and capturing the output of external commands from Python
  2. B.boto3 — the AWS SDK for Python used to script S3, IAM and other AWS services
  3. C.boto3 — Python's standard configurable logging facility supporting levels, handlers and structured output
  4. D.boto3 — an isolated Python install (venv) so a project's dependencies don't clash with the system or other projects
Reveal the answer + AI explanation — free account

10. What is argparse?

Mid
  1. A.the standard-library module for parsing command-line arguments in automation scripts
  2. B.an isolated Python install (venv) so a project's dependencies don't clash with the system or other projects
  3. C.the AWS SDK for Python used to script S3, IAM and other AWS services
  4. D.a pinned list of package versions used to reproduce a Python environment with pip
Reveal the answer + AI explanation — free account

12. Which statement is correct?

Mid
  1. A.argparse — the standard-library module for parsing command-line arguments in automation scripts
  2. B.argparse — the standard-library module for spawning and capturing the output of external commands from Python
  3. C.argparse — Python's standard configurable logging facility supporting levels, handlers and structured output
  4. D.argparse — modern Python tools that resolve, lock and manage dependencies and packaging more reproducibly than bare pip
Reveal the answer + AI explanation — free account

13. What is logging module?

Mid
  1. A.the standard-library module for spawning and capturing the output of external commands from Python
  2. B.Python's standard configurable logging facility supporting levels, handlers and structured output
  3. C.a pinned list of package versions used to reproduce a Python environment with pip
  4. D.modern Python tools that resolve, lock and manage dependencies and packaging more reproducibly than bare pip
Reveal the answer + AI explanation — free account

15. Which statement is correct?

Mid
  1. A.logging module — the AWS SDK for Python used to script S3, IAM and other AWS services
  2. B.logging module — an isolated Python install (venv) so a project's dependencies don't clash with the system or other projects
  3. C.logging module — the standard-library module for spawning and capturing the output of external commands from Python
  4. D.logging module — Python's standard configurable logging facility supporting levels, handlers and structured output
Reveal the answer + AI explanation — free account

16. What is subprocess?

Mid
  1. A.an isolated Python install (venv) so a project's dependencies don't clash with the system or other projects
  2. B.the standard-library module for parsing command-line arguments in automation scripts
  3. C.the standard-library module for spawning and capturing the output of external commands from Python
  4. D.the AWS SDK for Python used to script S3, IAM and other AWS services
Reveal the answer + AI explanation — free account

18. Which statement is correct?

Mid
  1. A.subprocess — a pinned list of package versions used to reproduce a Python environment with pip
  2. B.subprocess — the standard-library module for spawning and capturing the output of external commands from Python
  3. C.subprocess — the standard-library module for parsing command-line arguments in automation scripts
  4. D.subprocess — the AWS SDK for Python used to script S3, IAM and other AWS services
Reveal the answer + AI explanation — free account

19. What is Poetry / uv?

Senior
  1. A.modern Python tools that resolve, lock and manage dependencies and packaging more reproducibly than bare pip
  2. B.an isolated Python install (venv) so a project's dependencies don't clash with the system or other projects
  3. C.the AWS SDK for Python used to script S3, IAM and other AWS services
  4. D.a pinned list of package versions used to reproduce a Python environment with pip
Reveal the answer + AI explanation — free account

21. Which statement is correct?

Senior
  1. A.Poetry / uv — an isolated Python install (venv) so a project's dependencies don't clash with the system or other projects
  2. B.Poetry / uv — the standard-library module for parsing command-line arguments in automation scripts
  3. C.Poetry / uv — the AWS SDK for Python used to script S3, IAM and other AWS services
  4. D.Poetry / uv — modern Python tools that resolve, lock and manage dependencies and packaging more reproducibly than bare pip
Reveal the answer + AI explanation — free account

Free to start

Answers, AI explanations, and a scored voice mock interview

Sign up free to check your answers with explanations, ask the AI tutor anything on any question, and take one full AI mock interview — scored like a real panel.

Practice Python Automation free