Practice Test

True or False: Serverless services typically have higher upfront costs than provisioned services.

  • True
  • False

Answer: False

Explanation: Serverless services are typically pay-as-you-go, meaning lower upfront costs compared to provisioned services.

A key tradeoff between provisioned and serverless services is:

  • A) Security
  • B) Cost
  • C) Speed
  • D) Scalability

Answer: B) Cost

Explanation: While security, speed and scalability can be concerns, the main tradeoff often comes down to different cost structures. Provisioned services often have higher upfront costs but can be cheaper in the long run for predictable, consistent workloads. Serverless, on the other hand, can be more cost-effective for unpredictable or inconsistent workloads.

Which type of service may require more management of servers or clusters: provisioned or serverless?

  • Provisioned
  • Serverless

Answer: Provisioned

Explanation: Provisioned services typically require active management of servers or clusters, while serverless aims to remove this operational burden.

True or False: Serverless services automatically scale according to workload.

  • True
  • False

Answer: True

Explanation: One of the key advantages of serverless services is that they automatically scale to match the workload, eliminating the need for manual provisioning.

True or False: Provisioned services generally offer more flexibility than serverless.

  • True
  • False

Answer: True

Explanation: Provisioned services often offer more control and flexibility since you are managing the servers and clusters directly.

If a company has a highly predictable workload with consistent demand, which type of service could be more cost-effective: provisioned or serverless?

  • Provisioned
  • Serverless

Answer: Provisioned

Explanation: Provisioned services can be more cost-effective in scenarios with predictable, consistent workloads as they have fixed costs regardless of usage.

In which scenario could serverless services lead to increased costs?

  • A) Unpredictable workloads
  • B) High-traffic periods
  • C) Consistent, long-term workloads
  • D) Light, short-term workloads

Answer: C) Consistent, long-term workloads

Explanation: While serverless services commonly save money for unpredictable workloads or light, short-term tasks, they can be costlier for consistent, long-term workloads due to their pay-as-you-go model.

True or False: Provisioned services scale automatically based on demand.

  • True
  • False

Answer: False

Explanation: Unlike serverless services, provisioned ones require manual scaling based on demand.

True or False: Serverless services can be slower to start up than provisioned services.

  • True
  • False

Answer: True

Explanation: Serverless services can involve a “cold start” delay, which doesn’t occur with provisioned ones that are always running.

Which type of service could be more prone to vendor lock-in: provisioned or serverless?

  • Provisioned
  • Serverless

Answer: Serverless

Explanation: Serverless services can potentially result in more vendor lock-in, as it is harder to move serverless functions between cloud providers than to move provisioned VMs.

True or False: Provisioned services typically offer lower latency than serverless services.

  • True
  • False

Answer: True

Explanation: Provisioned services are usually faster and offer lower latency than serverless ones due to the overhead associated with serverless abstraction layers.

Multiple choice: Which of the following tasks requires a provisioned service?

  • A) Static web hosting
  • B) Real-time file processing
  • C) Data backup
  • D) High throughput database workloads

Answer: D) High throughput database workloads

Explanation: High throughput database workloads typically require the level of control and resources associated with provisioned services.

True or False: Serverless services require no administration or server maintenance.

  • True
  • False

Answer: True

Explanation: One of the main benefits of serverless services is that they abstract away server administration and maintenance so that developers can focus on application logic.

True or False: Only serverless services benefit from pay-as-you-go pricing.

  • True
  • False

Answer: False

Explanation: Both provisioned and serverless services can leverage pay-as-you-go pricing, although the manner in which costs accrue can differ.

Multiple choice: Serverless is more suitable for which of the following scenarios?

  • A) Large scale, predictable workloads
  • B) Rapidly changing, unpredictable workloads
  • C) Long-term, consistent workloads
  • D) High throughput database workloads

Answer: B) Rapidly changing, unpredictable workloads

Explanation: Serverless services are ideal for rapidly changing, variable workloads because they don’t require upfront provisioning and scale automatically based on demand.

Interview Questions

What does the term “provisioned services” refer to in AWS?

Provisioned services in AWS refers to the traditional method of AWS resource allocation where you manually allocate resources based on your project’s needs.

What is meant by “serverless services” in AWS?

Serverless services in AWS refer to the compute execution model where AWS dynamically allocates machine resources. Billing is based on the actual amount of resources consumed by an application, not on pre-purchased units of capacity.

What is a trade-off when choosing serverless services over provisioned services?

One main trade-off is control over the environment. With serverless services, you lose control over the server environment since AWS takes care of it. On the other hand, provisioned services give you more control over the server environment.

How do cost considerations differ between provisioned services and serverless services in AWS?

With provisioned services, you pay for pre-purchased units of capacity, potentially leading to over-provisioning costs. On the contrary, with serverless services, you only pay for what you use, which can lead to cost savings if your application has variable or unpredictable traffic.

How does scalability differ between serverless and provisioned services?

Serverless services can automatically scale to match application demand, abstracting the need to monitor and scale resources. Meanwhile, with provisioned services, you need to manually monitor performance metrics and adjust resources accordingly.

Which AWS service is a good example of a serverless service?

AWS Lambda is a prime example of a serverless service.

What is a chief tradeoff between serverless and provisioned services in terms of performance?

Performance can be a concern with serverless services due to the “cold start” issue where the initial execution of a function may experience latency. Provisioned services do not typically experience this latency.

How does maintenance differ when using a provisioned service compared to a serverless service in AWS?

For serverless services, AWS handles all of the maintenance, including any underlying server infrastructure, leaving developers to only manage their application. Provisioned services require manual maintenance to keep them running efficiently.

Can you name an example of a provisioned service in AWS?

Amazon EC2 (Elastic Compute Cloud) is an example of a provisioned service in AWS.

How does architectural complexity differ between provisioned services and serverless services in AWS?

Serverless architecture can be more complex because components are broken down into separate functions that can run independently. Provisioned services, however, typically have a simpler architecture with fewer components.

How do serverless and provisioned services differ in terms of deployment speed?

Serverless services generally allow for quicker deployment and faster time-to-market compared to provisioned services due to not requiring server setup or management.

What is a potential pitfall of using serverless services over provisioned services in AWS?

A potential pitfall of serverless services is vendor lock-in. Applications designed for AWS serverless architecture may not translate seamlessly to other cloud providers’ services.

How do the two types of services differ in terms of reliability?

Serverless services are designed to be fault-tolerant and provide built-in availability and fault tolerance. With provisioned services, these attributes need to be manually set up and managed.

What are the differences in terms of security between the two types of services?

With provisioned services, you have control over the security of the entire stack. With serverless services, the provider is responsible for security of the underlying layers, and you are responsible only for application-level security.

How do serverless and provisioned services differ in terms of their pricing models?

For serverless services, you are billed based on actual usage. For provisioned services, you need to purchase fixed capacities in advance and you are billed whether you use them fully or not.

Leave a Reply

Your email address will not be published. Required fields are marked *