ladderlore
ガイドをリクエスト
  • S3 や IAM などのサービス名を入力してください。

概念

Compute for AI applications

Where your own code and models run: Amazon EC2, AWS Lambda, containers, or a managed endpoint.

このレッスンはまだ翻訳されていないため、英語で表示しています。

  • Amazon EC2

    You
    Choose and run the servers
    Pick it when
    You host an open model or need full control
  • AWS Lambda

    You
    Write functions, no servers
    Pick it when
    Short, event-driven glue code
  • Amazon ECS and Amazon EKS

    You
    Package the app in containers
    Pick it when
    A model server or app must scale in containers
  • Bedrock or SageMaker AI endpoint

    You
    Call a model that AWS hosts
    Pick it when
    You want the least to manage
More control means more to manage. Pick the least you need.

1 / 2

  • Amazon EC2

    You
    Choose and run the servers
    Pick it when
    You host an open model or need full control
  • AWS Lambda

    You
    Write functions, no servers
    Pick it when
    Short, event-driven glue code

2 / 2

  • Amazon ECS and Amazon EKS

    You
    Package the app in containers
    Pick it when
    A model server or app must scale in containers
  • Bedrock or SageMaker AI endpoint

    You
    Call a model that AWS hosts
    Pick it when
    You want the least to manage
More control means more to manage. Pick the least you need.

概要

A GenAI application needs somewhere to run its code. With Amazon EC2 you choose a server, install software and run it yourself. This is how you host an open model on your own GPU, AWS Trainium or AWS Inferentia instance. You manage the server.

AWS Lambda runs small pieces of code only when something triggers them, and you pay for requests and run time. It suits glue code, such as a function that calls Amazon Bedrock, or the function behind an action of an agent in Amazon Bedrock Agents. Each run has a time limit, so it is not for long jobs.

概要

Amazon Elastic Container Service (Amazon ECS) and Amazon Elastic Kubernetes Service (Amazon EKS) run containers at scale, for a model server or a whole GenAI app. The managed option is an endpoint in Amazon Bedrock or Amazon SageMaker AI: AWS runs the model for you.

覚えること

  • Amazon EC2: you pick and run servers. Use it to self-host open models.
  • AWS Lambda: serverless, event-driven, pay per request and run time.
  • Lambda fits glue code and agent actions, not long jobs.
  • Amazon ECS and Amazon EKS: containers at scale.
  • Managed endpoints (Bedrock, SageMaker AI): the least to manage.

試験では

  • “Run code only when an event happens, with no servers to manage” points to AWS Lambda.
  • “Host an open model on servers you control” points to Amazon EC2.
  • “Use a foundation model without running any compute yourself” points to Amazon Bedrock.