Course menuCLF-C02

Exams / CLF-C02 / Study guide / Compute and containers

Compute and containers: CLF-C02 study notes and practice questions

What to know about Compute and containers for the CLF-C02 exam, from the Cloud Technology and Services domain (34% of the exam guide), then 2 free questions to test it. Part of the CLF-C02 study guide.

Last verified against current AWS documentation ·How we write our questions

What to know for the exam

Compute questions describe what a company wants to run and how much it wants to manage, then ask for the right service.

The services

Service What it is Choose it when
Amazon EC2 Virtual servers (instances) you choose and manage You need control of the operating system or special software
AWS Lambda Run code in response to events, without servers; billed per request and run time Short tasks triggered by events, with idle time in between
Amazon ECS AWS’s container orchestration service Running Docker containers the AWS way
Amazon EKS Managed Kubernetes Teams already using Kubernetes
AWS Fargate Serverless compute for ECS and EKS Running containers without managing servers
AWS Elastic Beanstalk Upload code; AWS handles servers, load balancing and scaling Deploying a web app quickly without infrastructure work
Amazon Lightsail Simple virtual servers with predictable monthly pricing Small websites and simple applications
AWS Batch Runs batch jobs at any scale Large numbers of compute jobs
AWS Outposts AWS compute in your own data center Workloads that must stay on premises

EC2 instance families

  • General purpose: a balance of compute, memory and networking (web servers).
  • Compute optimized: high-performance processors (batch processing, gaming servers).
  • Memory optimized: large data sets in memory (in-memory databases).
  • Storage optimized: high, fast local storage access (data warehousing).
  • Accelerated computing: GPUs and other accelerators (machine learning, graphics).

Serverless

“Serverless” means you don’t provision or manage servers, you don’t pay when nothing runs, and scaling is automatic. Lambda and Fargate are the main compute examples.

Common traps

  • Lambda for long jobs. A Lambda function runs for at most 15 minutes.
  • ECS vs EKS. EKS is for Kubernetes; ECS is AWS’s own orchestrator.
  • Fargate as an alternative to ECS. Fargate is a way to run ECS or EKS tasks without servers.

Try the 2 practice questions

A company runs its containerized applications on self-managed Kubernetes in its own data center.

It wants to move them to AWS, keep the Kubernetes API and tools it already uses, and avoid running the Kubernetes control plane itself.

Which service should it use?

Choose one answer.

  1. A. Amazon Elastic Container Registry (Amazon ECR), which stores container images in private repositories
  2. B. Amazon Elastic Container Service (Amazon ECS), which runs containers on AWS using task definitions
  3. C. AWS Lambda, which runs short functions in response to events, with no servers to manage or patch
  4. D. Amazon Elastic Kubernetes Service (Amazon EKS), which runs a managed Kubernetes control plane
Show the answer and explanation

Answer: D

  • A. Wrong: ECR stores and manages container images. It does not run the applications or provide a Kubernetes control plane.
  • B. Wrong: ECS runs containers with its own AWS task and service model. It does not use the Kubernetes API, so the company would need to change its tools.
  • C. Wrong: Lambda runs short functions in response to events. It is not designed to host the company's Kubernetes-based containerized applications.
  • D. Right: Correct. EKS runs a managed Kubernetes control plane, and it is certified Kubernetes-conformant. The company can use standard Kubernetes tools without operating the control plane itself. Learn more: What is Amazon EKS? (opens in a new tab)

Explanation

Amazon EKS runs a managed Kubernetes control plane that is certified Kubernetes-conformant, so standard Kubernetes tools and applications work with little change. ECS, ECR and Lambda each do a different job and do not provide the Kubernetes API.

Study

Question 2

Medium · choose 3 ·Link to this question (question 2)

A small team has a Python web application and wants to deploy it by uploading its code, with AWS handling the underlying resources.

Which THREE tasks does AWS Elastic Beanstalk handle for the team? (Choose three.)

Choose three answers.

  1. A. Provisioning the Amazon EC2 instances that run the application
  2. B. Writing the application's business logic
  3. C. Configuring load balancing for the environment
  4. D. Designing the database tables the application uses
  5. E. Scaling the environment up and down as traffic changes
  6. F. Deciding which users may sign in to the application
Show the answer and explanation

Answers: A, C, E

  • A. Right: Correct. Elastic Beanstalk provisions the EC2 instances that run the application, so the team does not set them up by hand. Learn more: What is AWS Elastic Beanstalk? (opens in a new tab)
  • B. Wrong: Incorrect. The team builds its own application code. Elastic Beanstalk runs the code that is uploaded, but it does not write it.
  • C. Right: Correct. When the team uploads its code, Elastic Beanstalk configures load balancing for the environment as part of creating it, so the team does not set up a load balancer by hand.
  • D. Wrong: Incorrect. The team designs its own database. Elastic Beanstalk does not design tables or schemas.
  • E. Right: Correct. Elastic Beanstalk dynamically scales the environment as load changes, adding or removing instances, so the team does not manage capacity by hand.
  • F. Wrong: Incorrect. The team decides how users sign in as part of its application design. Elastic Beanstalk does not choose who may sign in.

Explanation

Elastic Beanstalk takes the application's source bundle and provisions the EC2 instances, configures load balancing, sets up health monitoring and scales the environment. The team still writes its code, designs its database and decides how its users sign in.

Study

Want more on Compute and containers? The 5 full-length practice sets have 14 more Compute and containers questions, 325 in all, none of them in the free exam. One payment of $14.99, no subscription. See the practice sets

Study Compute and containers

More Cloud Technology and Services topics