PROFESSIONAL-CLOUD-DEVELOPER · Question #250
Your team is developing a Cloud Function triggered by Cloud Storage events. You want to accelerate testing and development of your Cloud Function while following Google-recommended best practices. Wha
The correct answer is C. Install the Functions Frameworks library, and configure the Cloud Function on localhost. Make a. The Functions Framework is Google's open-source library that allows you to run Cloud Functions locally on your development machine. It emulates the Cloud Functions runtime environment so you can write, test, and iterate on your function code without deploying to the cloud on ever
Question
Your team is developing a Cloud Function triggered by Cloud Storage events. You want to accelerate testing and development of your Cloud Function while following Google-recommended best practices. What should you do?
Options
- ACreate a new Cloud Function that is triggered when Cloud Audit Logs detects the
- BMake a copy of the Cloud Function, and rewrite the code to be HTTP-triggered. Edit and test the
- CInstall the Functions Frameworks library, and configure the Cloud Function on localhost. Make a
- DMake a copy of the Cloud Function in the Google Cloud console. Use the Cloud console's in-line
How the community answered
(61 responses)- A3% (2)
- B5% (3)
- C79% (48)
- D13% (8)
Explanation
The Functions Framework is Google's open-source library that allows you to run Cloud Functions locally on your development machine. It emulates the Cloud Functions runtime environment so you can write, test, and iterate on your function code without deploying to the cloud on every change - significantly accelerating the development cycle. This is the Google-recommended best practice for Cloud Function development. Option A (Cloud Audit Logs trigger) is unrelated to local development acceleration. Option B (HTTP copy) duplicates code and diverges from the original function's trigger type. Option D (inline editor in Cloud console) requires deployment for every test iteration and is not a local development workflow.
Topics
Community Discussion
No community discussion yet for this question.