All challenges
Multiple ChoiceHard 30s

tempfile Race Condition

Choose the best answer for: tempfile security
Options
  1. 1NamedTemporaryFile is always unsafe on every platform
  2. 2All tempfile functions are unsafe and create race conditions
  3. 3tempfile.mkstemp() is safe; mkstemp avoids race conditions
  4. 4Temp files are always secure because they use random names

Think you can answer under pressure?

Get matched and answer live questions in 3-minute 1v1 battles. Elo ranking, badge tiers and bragging rights on the line.

Play this in a 3-minute battle