CompTIA Cloud+ (CV0-004)Cloud ArchitectureMedium

A cloud architect is designing a new application that requires high elasticity and the ability to scale compute resources rapidly up and down based on demand. The application components are stateless and can be easily replicated. Which compute model would best meet these requirements?

  1. ADedicated Hosts
  2. BBare Metal Servers
  3. CVirtual Machines
  4. DServerless Functions
Show answer & explanation

Correct answer: D. Serverless Functions

Serverless functions (FaaS) are designed for event-driven, stateless workloads, offering automatic scaling, high elasticity, and a pay-per-execution billing model, making them ideal for fluctuating demand without managing underlying infrastructure.

Why the other options are wrong

  • A. Dedicated Hosts provide isolated physical servers but offer limited elasticity and require manual scaling, which is not ideal for rapid, automatic adjustments.
  • B. Bare Metal Servers provide direct hardware access but lack elasticity, require significant management, and are not suitable for rapid scaling needs.
  • C. Virtual Machines offer flexibility but require managing the OS and scaling often involves provisioning new instances, which is less rapid than serverless.

Serverless Functions (FaaS)

A compute execution model where the cloud provider dynamically manages the allocation and provisioning of servers. Developers write and deploy code (functions) that are executed in response to events, without managing the underlying infrastructure.

  • Event-driven execution
  • Automatic scaling and elasticity
  • Pay-per-execution billing model
  • Stateless by design

Memory trick: Serverless scales with a snap, VMs need a map.

More Cloud Architecture questions