Skip to content
Sharp

Authentication · interview question

Which statement best describes the use of CSRF tokens in web applications?

Multiple choiceHardchapter-17-curatedpremiumauthenticationsalting-and-bcrypt
Choose one answer
Answer and explanation

Correct answer

D. They are unique tokens used to prevent unauthorized actions on behalf of a user.

Why

CSRF tokens are unique tokens included in requests to prevent unauthorized actions from being performed on behalf of a user. They ensure that the request is made deliberately by the authenticated user, not a third-party attacker.

Test yourself on Authentication

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

Start free test
All Authentication questions →