Skip to content
Sharp

Security · interview question

What does a strong engineer do when reasoning through safe subprocess calls code?

Multiple choiceMediumchapter-17-curatedpremiumsecuritysafe-subprocess-calls
python
import subprocess

subprocess.run(["python", "worker.py", "--mode", "sync"], check=True)
Choose one answer
Answer and explanation

Correct answer

C. Narrate the data shape, the state changes, and the exact rule order step by step.

Why

Interviewers often use simple code to test whether you can reason through execution without bluffing.

Test yourself on Security

A free test with instant, explained results. No account needed.

Start free test
All Security questions →