Firebase Cloud Functions Basics and Practical Use Cases Quiz

  1. Core Concept of Cloud Functions

    Which statement best describes what a cloud function is in a serverless environment?

    1. A function that runs in response to events, without managing servers
    2. A website hosting tool for dynamic web pages
    3. A type of mobile application framework
    4. A service for storing large database files only
    5. A tool for designing user interfaces
  2. Basic Trigger Example

    Which of the following is a suitable example of an event that could trigger a cloud function?

    1. A document being added to a database collection
    2. A browser window being resized
    3. A user changing the background color of a webpage
    4. A local variable being updated in code
    5. A spreadsheet cell being edited offline
  3. Appropriate Use Case

    When is it appropriate to use a cloud function for backend processing?

    1. When you want to process user-uploaded images after they are stored
    2. When you need to animate a button on a web page
    3. When saving a file locally on the user's device
    4. When calculating CSS styles for a web form
    5. When installing software packages on a desktop
  4. Cloud Function Code Location

    Where is the code for a cloud function typically executed?

    1. On remote cloud infrastructure managed by the provider
    2. Directly within the user's web browser
    3. On the user’s mobile device hardware
    4. Inside a spreadsheet application
    5. Within a desktop word processor
  5. Common Output Scenario

    After a new user registers, which task could a cloud function automatically perform?

    1. Sending a welcome email to the new user
    2. Adjusting the font size on the user's device
    3. Turning off the user's wifi
    4. Changing the user's local keyboard language
    5. Opening a browser notification window
  6. Scheduled Functions

    What is a common reason to use a scheduled (cron) cloud function?

    1. To perform routine database cleanups at regular intervals
    2. To monitor keystrokes for security logging
    3. To change a webpage background color every second
    4. To open alert pop-ups on users' devices in real time
    5. To run mobile device updates when the app is closed
  7. Cloud Function Scaling

    What is an advantage of cloud functions regarding scaling?

    1. They automatically handle multiple requests without manual server management
    2. They require users to manually start each instance for each request
    3. They only run for one user at a time
    4. They are limited to a fixed number of executions per month
    5. They must be installed as browser add-ons
  8. Multiple Trigger Types

    Which of the following is NOT a typical trigger for a cloud function?

    1. A user clicking a local HTML button
    2. An HTTP request to a specific endpoint
    3. A file upload to cloud storage
    4. A timer-based scheduled event
    5. A database document deletion
  9. Function Security

    Why is security important when writing cloud functions that handle user data?

    1. To prevent unauthorized access and protect sensitive information
    2. To make web pages load faster
    3. To improve the sound quality of notifications
    4. To increase the brightness of users’ screens
    5. To convert data into different fonts
  10. Deployment Meaning

    What does it mean to 'deploy' a cloud function?

    1. To upload and activate the function code on the service so it can respond to events
    2. To draw charts in a spreadsheet application
    3. To send push notifications directly from a mobile device
    4. To manually execute function code line by line on a local PC
    5. To add fonts to a graphic design program