Privacy

Which of the Following Is an Example of Two-Factor Authentication?

Two-factor authentication means proving who you are in two different ways. Here are the examples that count, the ones that look like 2FA but are not, and which method is strongest.

Cysoro Security TeamPublished · 8 min read
PRIVACY Two-factor authentication Which examples count — and which do not. Password + code 4 8 2 9 1 3 two different kinds of proof Security keythe strongest second factor
Quick answer

An example of two-factor authentication is entering your password and then a six-digit code from an authenticator app, a code sent by text message, a tap on a push notification, or touching a security key. All pair something you know (your password) with something you have (your phone or key). Entering two passwords, answering a security question, or typing your password twice is not two-factor authentication, because both steps use the same kind of proof.

Key takeaways

  • Two-factor authentication pairs two different kinds of proof: something you know, something you have, or something you are.
  • A password plus an authenticator-app code, SMS code, push approval or security key are all real examples of 2FA.
  • Security keys are the strongest second factor because they cannot be phished; SMS codes are the weakest because of SIM swapping.

This question shows up in school exams, security training quizzes and job interviews — and it trips people up because several answers look right. The trick is not memorizing a list of methods, but understanding what makes two factors different from one factor used twice.

Which of the following is an example of two-factor authentication?

The correct answer is a password plus a code from an authenticator app, a text-message code, a push approval, or a hardware security key. Each of these pairs something you know with something you have.

Here is how the usual quiz options sort out:

OptionIs it 2FA?Why
Password + authenticator-app codeYesSomething you know + something you have
Password + SMS codeYesSomething you know + something you have
Password + security keyYesSomething you know + something you have
Password + push approvalYesSomething you know + something you have
Password + fingerprintYesSomething you know + something you are
Password + security questionNoBoth are something you know
Two passwordsNoBoth are something you know
Password typed twiceNoSame factor, repeated
Username + passwordNoA username identifies you; it does not prove it is you

If you remember one rule, remember this: two factors must be two different kinds of proof. Two passwords are still one factor, however strong they are.

What is two-factor authentication?

Two-factor authentication (2FA) is a login check that asks you to prove your identity in two different ways before letting you into an account. The first is usually your password; the second is a code, a tap, a fingerprint or a physical key.

The idea is simple: even if someone steals your password, they still cannot log in unless they also have your phone or your key. As the Electronic Frontier Foundation puts it, 2FA is one of the biggest-bang-for-your-buck ways to improve account security.

It adds that second layer on top of the password. The EFF's guide to common types of two-factor authentication explains the four main types used by consumer websites.

You will see the same idea under other names: multi-factor authentication (MFA), two-step verification (2SV) and login approvals. They all describe the same principle, even if the exact steps differ. CISA's guidance uses the term MFA and urges everyone to turn it on, especially for email.

What are the three factors of authentication?

The three factors are something you know, something you have, and something you are. Two-factor authentication combines any two of them; using all three is even stronger.

The three factors — 2FA uses any two ?Something you knowpassword, PIN,security question ▣Something you havephone, authenticatorapp, security key ◉Something you arefingerprint, face,iris scan Two passwords are one factor. A password plus a code is two.
The three authentication factors. Two-factor authentication combines any two of them. Illustration by Cysoro.

Something you know is information only you should have: a password, a PIN, or the answer to a security question. This is the factor most people start with, and it is also the weakest on its own, because passwords leak in breaches and can be guessed or phished.

Something you have is a physical object in your possession: your phone, an authenticator app on it, a hardware security key, or a smart card. A code sent to that object proves you hold it right now.

Something you are is a physical trait unique to you: a fingerprint, a face scan, or an iris scan. Biometrics are convenient, but they cannot be changed if they are ever copied, so they work best as one factor among two, not as the only check.

What are real examples of two-factor authentication?

The most common examples are an SMS code, an authenticator-app code, a push approval, a hardware security key, and an email code. Each works differently, and they are not equally strong.

SMS text-message code

After you enter your password, the site texts a short code, usually five or six digits, to your phone. You type it in to finish logging in. It is the easiest method to set up, because it needs nothing more than a phone number.

It is also the weakest. The code travels through the telephone network, and an attacker can move your number to their own SIM card — a SIM swap — and receive your codes. Use SMS only when no better method is offered.

Authenticator app (TOTP) code

Apps such as Google Authenticator and Microsoft Authenticator generate a new six-digit code every 30 seconds, based on a secret key scanned from a QR code when you set the account up. The code is generated on your phone, so it works with no mobile signal.

This method, called a time-based one-time password (TOTP) under RFC 6238, is stronger than SMS because nothing is transmitted and the secret stays on your phone. It is still phishable: a fake login page can ask for your code and use it within its 30-second window.

Push notification approval

Some services send a prompt to their app on your phone, and you tap to approve the login. This is easier than typing a code, and it is not vulnerable to SIM swapping in the way SMS is.

The weakness is push fatigue: attackers can send approval after approval, hoping you tap yes just to stop the notifications. Never approve a login you did not just start yourself.

Hardware security key

A small USB or NFC device, such as a YubiKey, cryptographically proves you are the account owner when you plug it in and touch it. The key is bound to the real website, so a fake login page cannot reuse it.

This is the strongest second factor. In Google's testing, security keys blocked targeted attacks that defeated SMS codes and device prompts. The trade-off is cost and the need to carry the key — buy two, and keep one somewhere safe as a backup.

Email code

Some sites send a one-time code to your email address instead of your phone. It counts as 2FA, but only if your email account itself is well protected. If an attacker already controls your email, an email code adds nothing.

What is not two-factor authentication?

Anything that repeats the same factor does not count, however secure it feels. Two passwords, a password plus a security question, and a password typed twice are all single-factor authentication with extra steps.

A username plus a password is also not 2FA. The username identifies which account you want; it is not secret, and it does not prove you are the owner. Similarly, a CAPTCHA is not a second factor — it proves you are human, not that you are the account owner.

Backup codes are not a method of their own either. They are spare one-time codes some accounts give you for the moment your usual second factor is unavailable. Keep them printed or stored somewhere safe, separate from your password.

This distinction matters in exams and in real security reviews. A system that asks for a password and a security question may look like 2FA, but an attacker who phishes the password can usually phish the answer too. The quiz answer and the security answer are the same.

Which two-factor method should I use?

Use the strongest method each account offers. For email and other critical accounts, that means a security key or a passkey; for most other accounts, an authenticator app is the best balance of security and convenience.

MethodStrengthNeedsMain weakness
Security key / passkeyStrongestA key or a deviceCan be lost; costs money
Authenticator appStrongA phone appCode can be phished
Push approvalStrongThe service's appPush fatigue attacks
Email codeMediumAccess to emailUseless if email is hacked
SMS codeWeakestA phone numberSIM swap and interception

Do not let the perfect be the enemy of the good: SMS 2FA still blocks automated attacks and bulk phishing, which is most of what ordinary accounts face. Turn on whatever your account offers today, then upgrade the important ones to an authenticator app or a key.

Second factors, ranked from weakest to strongest SMS codeweakestSIM swap risk Email codemediumrelies on email Push approvalstrongwatch for fatigue Security keystrongestphishing-proof Authenticator-app codes sit between push and email: strong, free, and widely supported.
How the common second factors compare. Illustration by Cysoro.

How do I set up two-factor authentication?

Open the account's security settings, find two-step verification or two-factor authentication, and choose your method. For an authenticator app, scan the QR code shown, then enter the six-digit code the app displays to confirm it works.

Save the recovery or backup codes the account gives you, and store them somewhere separate from your password — a printed copy in a safe place works well. If you lose your phone without backup codes, recovery can take days and may require proving your identity another way.

Set up 2FA in this order: email first, then your password manager, banking, cloud storage, and social media. Your email can reset most other accounts, so it is the single most valuable account to protect. You can test whether your current passwords have already leaked with our pwned password checker.

Replace any weak or reused password with a fresh one from our password generator. One authenticator app can hold codes for dozens of accounts, and most password managers can store TOTP codes too.

What if I lose my second factor?

Use your backup codes first — that is what they are for. If you have none, use the account's recovery process, which usually asks for identity documents, a recovery email, or answers only you would know.

Some services let you add a second phone or a backup security key in advance. Do that now, while you still have access: a spare key in a drawer is far cheaper than a locked-out account. If your phone was stolen, tell your mobile carrier immediately so the number cannot be moved to another SIM.

For work accounts, contact your IT team rather than trying to bypass the check yourself. They can verify your identity and reset your MFA enrolment, which is exactly the process attackers try to abuse — so expect them to be careful.

The bottom line

Two-factor authentication means two different kinds of proof, not two steps of the same kind. A password plus an authenticator-app code, SMS code, push approval or security key is a real example; a password plus a security question is not.

Turn it on for your email first, then your bank and password manager, and use the strongest method each account offers. For the full picture on account takeover, read our guide to spotting a hacked phone.

Our small business cybersecurity checklist covers MFA alongside the other controls that stop account takeover.

Frequently asked questions

Which of the following is an example of two-factor authentication?

A password plus a code from an authenticator app is the classic example. A password plus a text-message code, a push approval on your phone, or a hardware security key also count. The key point is that the two steps use different kinds of proof.

Is a password and a security question two-factor authentication?

No. A password and a security question are both things you know, so they are only one factor used twice. Real two-factor authentication needs a second, different kind of proof, such as something you have or something you are.

Is fingerprint login two-factor authentication?

On its own, no. A fingerprint is one factor: something you are. But a fingerprint plus a password is two-factor authentication, and a fingerprint used to unlock a passkey also counts as part of a strong two-factor setup.

Is an SMS code two-factor authentication?

Yes. A password plus a code sent by text message is two-factor authentication, because the code is something you have (your phone). It is the weakest common method, because attackers can steal phone numbers through SIM swapping.

What is the difference between 2FA and MFA?

Two-factor authentication is a type of multi-factor authentication that uses exactly two factors. Multi-factor authentication is the general term and can mean two, three or more factors. In everyday use, the two terms are often used for the same thing.

What is the strongest form of two-factor authentication?

A hardware security key or a passkey is the strongest, because the login is cryptographically bound to the real website. A fake login page cannot reuse it, which is why security keys blocked targeted attacks in Google's testing while SMS codes did not.

Do I need two-factor authentication on every account?

Start with email, banking, password manager, cloud storage and social media. Those accounts can be used to reset many others, so protecting them first gives you the most security for the least effort.

Sources

  1. CISA — Turn On MFA
  2. Electronic Frontier Foundation — A Guide to Common Types of Two-Factor Authentication on the Web
  3. One.com — What is two-factor authentication (2FA)?
  4. Guard.io — Two-Factor Authentication: A Beginner's Guide
Written & fact-checked byCysoro Security Team

The engineers and analysts who build Cysoro's domain scanner, email-authentication checks and free security tools. We test what we write about every day — SPF, DKIM, DMARC, certificates, look-alike domains and phishing — and check each guide against the relevant standards, government guidance and vendor documentation.

  • Email authentication
  • Phishing & BEC
  • Domain & DNS security
  • Small-business security

Checked against CISA's MFA guidance and the Electronic Frontier Foundation's guide to common types of two-factor authentication.

How we write and fact-check →

See where your domain stands

Free for up to 3 domains. No card, no installs.

Start free