0
0
Firebasecloud~20 mins

Password reset flow in Firebase - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Password Reset Mastery
Get all challenges correct to earn this badge!
Test your skills under time pressure!
service_behavior
intermediate
2:00remaining
What happens after calling sendPasswordResetEmail()?

In Firebase Authentication, when you call sendPasswordResetEmail() with a user's email, what is the immediate behavior of the service?

Firebase
firebase.auth().sendPasswordResetEmail(userEmail);
AThe service returns the user's current password in the response.
BThe user's password is reset automatically without user interaction.
CThe user immediately receives a password reset email if the email exists in the system.
DThe user's account is deleted if the email is invalid.
Attempts:
2 left
💡 Hint

Think about what a password reset email is supposed to do.

security
intermediate
2:00remaining
Which security risk is prevented by Firebase password reset flow?

Firebase password reset flow includes sending a reset link to the user's email. Which security risk does this flow primarily prevent?

AUnauthorized password changes without email access.
BBrute force attacks on user passwords.
CMan-in-the-middle attacks during login.
DData leakage from user profile information.
Attempts:
2 left
💡 Hint

Consider what access is required to reset a password.

Configuration
advanced
2:00remaining
Which Firebase config setting controls the password reset email template?

To customize the password reset email sent by Firebase, which configuration setting must you modify in the Firebase Console or via API?

AAuthentication > Templates > Password reset email
BStorage > Email Templates > Reset
CFirestore > Rules > Password reset
DFunctions > Environment Variables > ResetEmail
Attempts:
2 left
💡 Hint

Think about where email templates are managed in Firebase.

Architecture
advanced
2:00remaining
What is the best architecture to handle password reset link clicks securely?

When a user clicks the password reset link sent by Firebase, what is the recommended architecture to securely handle the reset process?

ARedirect the user to a public static page without verification.
BUse Firebase Hosting to serve a secure page that verifies the reset code and allows password entry.
CSend the reset code to a backend server that resets the password without user input.
DAllow password reset directly from the email client without visiting a web page.
Attempts:
2 left
💡 Hint

Consider how to verify the reset code and collect the new password safely.

Best Practice
expert
2:00remaining
Which practice improves security for Firebase password reset flow?

To improve security in Firebase password reset flow, which practice is recommended?

AAllow unlimited password reset attempts without rate limiting.
BSend reset links without verifying the user's email exists.
CDisable multi-factor authentication during password reset.
DSet a short expiration time for password reset links.
Attempts:
2 left
💡 Hint

Think about limiting the window of opportunity for attackers.