What is the behavior when you try to access a Firebase Storage download URL that has expired or been revoked?
Think about what happens when a secure link is no longer valid.
Firebase Storage download URLs are time-limited or can be revoked. When expired or revoked, accessing the URL results in a 403 Forbidden error, meaning the user is not allowed to access the file.
Which Firebase Storage SDK method correctly generates a download URL for a stored file?
Look for the method that explicitly mentions 'DownloadURL'.
The correct method to get a download URL from a Firebase Storage reference is getDownloadURL(). Other methods do not exist or do not provide the URL.
You want to share files stored in Firebase Storage with users but restrict access to only authenticated users. Which approach is best?
Think about controlling access with Firebase's built-in security features.
Using Firebase Storage security rules to restrict read access to authenticated users ensures files are protected. Generating download URLs on demand respects these rules and avoids exposing files publicly.
Which statement correctly describes how Firebase Storage download URLs behave regarding expiration and revocation?
Consider how Firebase allows control over access after URL creation.
Firebase Storage download URLs do not expire automatically. However, they can be revoked by changing the file's metadata or updating security rules, which invalidates existing URLs.
If a Firebase Storage security rule denies read access to a file, what happens when a user tries to access a previously generated valid download URL for that file?
Think about how security rules affect access even with URLs.
Firebase Storage security rules always apply. If read access is denied by rules, even valid download URLs will not grant access and will return a 403 Forbidden error.