B. Using preloadBundles inside hosting is not supported
C. Bundles must be objects, not strings
D. Missing quotes around 'app2.js' causes JSON syntax error
Solution
Step 1: Check JSON syntax for bundle names
All bundle names must be strings enclosed in double quotes.
Step 2: Identify error in given config
'app2.js' is missing quotes, causing invalid JSON syntax.
Final Answer:
Missing quotes around 'app2.js' causes JSON syntax error -> Option D
Quick Check:
JSON strings need quotes [OK]
Hint: Always quote bundle names as strings in JSON [OK]
Common Mistakes:
Forgetting quotes around bundle names
Placing preloadBundles outside hosting
Using objects instead of string arrays
5. You want to preload bundles only for features users often visit first, but not preload large rarely used bundles. How should you configure firebase.json to optimize loading?
hard
A. List only frequently used bundles in preloadBundles to download early
B. Preload all bundles regardless of usage to avoid delays
C. Do not use preloadBundles; load all bundles on demand
D. Preload only the largest bundles to improve caching
Solution
Step 1: Understand preload strategy
Preloading bundles that users access often improves perceived speed without wasting bandwidth.
Step 2: Apply selective preloading
Only list frequently used bundles in preloadBundles to optimize loading and avoid unnecessary downloads.
Final Answer:
List only frequently used bundles in preloadBundles to download early -> Option A
Quick Check:
Preload important bundles only for best performance [OK]
Hint: Preload only bundles users need early to save bandwidth [OK]
Common Mistakes:
Preloading all bundles causing slow initial load
Ignoring usage patterns when preloading
Preloading large unused bundles wasting resources
Recommended
Ready to prove it?
Pass the test and this pattern moves unknownstrongwhile earning +1 Grip toward your certificate.