Core Concept of Cloud Functions
Which statement best describes what a cloud function is in a serverless environment?
- A function that runs in response to events, without managing servers
- A website hosting tool for dynamic web pages
- A type of mobile application framework
- A service for storing large database files only
- A tool for designing user interfaces
Basic Trigger Example
Which of the following is a suitable example of an event that could trigger a cloud function?
- A document being added to a database collection
- A browser window being resized
- A user changing the background color of a webpage
- A local variable being updated in code
- A spreadsheet cell being edited offline
Appropriate Use Case
When is it appropriate to use a cloud function for backend processing?
- When you want to process user-uploaded images after they are stored
- When you need to animate a button on a web page
- When saving a file locally on the user's device
- When calculating CSS styles for a web form
- When installing software packages on a desktop
Cloud Function Code Location
Where is the code for a cloud function typically executed?
- On remote cloud infrastructure managed by the provider
- Directly within the user's web browser
- On the user’s mobile device hardware
- Inside a spreadsheet application
- Within a desktop word processor
Common Output Scenario
After a new user registers, which task could a cloud function automatically perform?
- Sending a welcome email to the new user
- Adjusting the font size on the user's device
- Turning off the user's wifi
- Changing the user's local keyboard language
- Opening a browser notification window
Scheduled Functions
What is a common reason to use a scheduled (cron) cloud function?
- To perform routine database cleanups at regular intervals
- To monitor keystrokes for security logging
- To change a webpage background color every second
- To open alert pop-ups on users' devices in real time
- To run mobile device updates when the app is closed
Cloud Function Scaling
What is an advantage of cloud functions regarding scaling?
- They automatically handle multiple requests without manual server management
- They require users to manually start each instance for each request
- They only run for one user at a time
- They are limited to a fixed number of executions per month
- They must be installed as browser add-ons
Multiple Trigger Types
Which of the following is NOT a typical trigger for a cloud function?
- A user clicking a local HTML button
- An HTTP request to a specific endpoint
- A file upload to cloud storage
- A timer-based scheduled event
- A database document deletion
Function Security
Why is security important when writing cloud functions that handle user data?
- To prevent unauthorized access and protect sensitive information
- To make web pages load faster
- To improve the sound quality of notifications
- To increase the brightness of users’ screens
- To convert data into different fonts
Deployment Meaning
What does it mean to 'deploy' a cloud function?
- To upload and activate the function code on the service so it can respond to events
- To draw charts in a spreadsheet application
- To send push notifications directly from a mobile device
- To manually execute function code line by line on a local PC
- To add fonts to a graphic design program