Practice Test 3 | Google Cloud Certified Associate Cloud Engineer | Dumps | Mock Test
A development team works with two Cloud Functions using node.js code. Each function corresponds to environments for development and production. The code is same except for the Cloud SQL database values used in each function. Team wants to maintain code in a clean and reusable fashion and decides to pass the database value during function execution. Which feature will allow you to do this?
A. Timeouts
B. Service Accounts
C. Environment Variables
D. Metadata
Explanation:
Answer: C
C is correct: Environment variables for cloud functions enable you to dynamically pass settings to your function code and libraries, without making changes to your code
A is incorrect: Is the duration for which the function will execute.
B is incorrect: Allows you to configure appropriate permissions
D is incorrect: Metadata is an invalid option wrt to Cloud Function
Link:
Comments are closed, but trackbacks and pingbacks are open.