Question · Vibe coding with Claude Code course · Module 15: Advanced Claude Code

Quiz: The classifier and the .env file

You work in auto mode, and the project has no deny rule for .env. What happens when Claude wants to read .env?

Answer options

  • The read goes through, because reading .env is allowed by default; only a deny rule is a barrier
  • The classifier will block it, because .env holds secrets
  • Claude Code will ask you for consent, because every dotfile needs confirmation
  • The read goes through in a session with you, but in a claude -p run it will be blocked

You can check the correct answer by solving this task in the CodeWorlds game.