LFCA · Question #47
What is an appropriate cost consideration when implementing serverless functions in the cloud?
The correct answer is B. Virtual machine configuration and memory allocation. When using serverless functions, a significant cost consideration is the memory allocated to the function, as this directly impacts pricing based on consumption.
Question
What is an appropriate cost consideration when implementing serverless functions in the cloud?
Options
- AvCPU resources and disk cache
- BVirtual machine configuration and memory allocation
- CRuntime environment and container configuration
How the community answered
(58 responses)- A3% (2)
- B90% (52)
- C7% (4)
Why each option
When using serverless functions, a significant cost consideration is the memory allocated to the function, as this directly impacts pricing based on consumption.
vCPU resources are generally not directly configured or billed for serverless functions, as they are managed proportionally to allocated memory, and disk cache is not a standard direct cost factor for function execution.
While serverless abstracts away the underlying virtual machine, the amount of memory allocated to a serverless function is a primary billing dimension, directly influencing the compute resources provisioned and thus the cost of execution.
The runtime environment (e.g., Python, Node.js) is chosen but not a direct cost component, and container configuration is abstracted away or managed by the platform, not a user-level cost consideration for serverless functions.
Concept tested: Serverless function cost factors
Source: https://aws.amazon.com/lambda/pricing/
Topics
Community Discussion
No community discussion yet for this question.