ladderlore
请求新指南
  • 输入服务名称,例如 S3 或 IAM。

概念 · 基于 CLF-C02

Picking compute by workload

Match the workload to EC2, containers, Lambda, Batch or EMR. Limits rule options out.

本课尚未翻译,暂以英文显示。

你在云从业者中已学过

  • EC2 gives the most control. Containers run on ECS or EKS. Lambda and Fargate are serverless.
  • The more AWS manages, the less work you do and the less control you keep.
  • Batch runs queues of jobs. Outposts brings compute on premises.
阅读云从业者课程
Short, event-driven code?
Lambda
Queue of finite jobs?
Batch
Spark or Hadoop?
EMR
Packaged as containers?
FargateEC2yesnoyesnoyesnoyesno
Ask the questions in order. The first yes is the answer.

Ask the questions in order. The first yes is the answer.

  • Lambda

    You manage
    Code only
    Limit
    Time limit, 10 GB memory
  • Fargate

    You manage
    Image and task size
    Limit
    No GPUs. Up to 32 vCPU and 244 GB a task
  • ECS or EKS on EC2

    You manage
    Nodes and containers
    Limit
    You scale the nodes
  • EC2

    You manage
    Everything above the hardware
    Limit
    You scale and patch
What you manage and what limits each option.

1 / 2

  • Lambda

    You manage
    Code only
    Limit
    Time limit, 10 GB memory
  • Fargate

    You manage
    Image and task size
    Limit
    No GPUs. Up to 32 vCPU and 244 GB a task
  • ECS or EKS on EC2

    You manage
    Nodes and containers
    Limit
    You scale the nodes

2 / 2

  • EC2

    You manage
    Everything above the hardware
    Limit
    You scale and patch
What you manage and what limits each option.

是什么

SAA gives a workload and a constraint. First rule options out by their limits. Lambda has a time limit per run (15 minutes in most exam material, up to 30 in the current documentation) and 10 GB of memory. Fargate has no GPUs. A special operating system or software licence points to EC2.

Then choose by operations effort. Lambda: code only, event-driven. Fargate: containers with no servers. ECS or EKS on EC2: containers with control over nodes, GPUs and Spot. EC2: full control, any software. Batch: queues of jobs that finish. Amazon EMR: Spark, Hadoop and other big data frameworks.

要记住

  • Event-driven and shorter than the time limit: Lambda.
  • Containers with no servers: Fargate, with ECS or EKS.
  • Containers that need GPUs or special instances: ECS or EKS on EC2.
  • Many finite jobs in a queue: AWS Batch.
  • Spark or Hadoop clusters: Amazon EMR.

要记住

  • Full control, licences, lift and shift: EC2.

考试中

  • “Least operational overhead for a short event-driven task” points to Lambda.
  • “Containers with no servers to manage” points to Fargate.
  • “Thousands of nightly jobs, save with Spot” points to AWS Batch.
  • “Run Apache Spark on a managed cluster” points to Amazon EMR.