Skip to content
BytePatterns

CLF-C02 · Domain 3: Cloud Technology and Services · 34% of the exam

Task 3.3: Identify AWS compute services.

EC2 instance families and what each is for, containers, serverless compute, and how load balancers and auto scaling fit around them.

Study it

Sample questions

Try each one before opening the answer. Every option is explained, with the AWS documentation page that proves it.

Question 1 · choose 1

A media company transcodes uploaded videos in large batches, and the jobs are limited by processor speed. Which Amazon EC2 instance category is designed for this kind of workload?

  1. AMemory optimized
  2. BCompute optimized
  3. CStorage optimized
  4. DBurstable performance (T) instances
Show the answer and why
  • AMemory optimized

    Incorrect

    Memory optimized instances are for workloads that process large data sets in memory. These jobs are limited by the processor.

  • BCompute optimized

    Correct

    Compute optimized instances are designed for compute-intensive applications that benefit from high-performance processors; batch processing and media transcoding are among their use cases.

  • CStorage optimized

    Incorrect

    Storage optimized instances are for high, sequential read and write access to very large data sets on local storage.

  • DBurstable performance (T) instances

    Incorrect

    Burstable instances give a baseline CPU level with short bursts above it. Consistently high CPU work such as video encoding calls for fixed performance instances.

Match the instance category to the resource the workload runs out of first: processor, memory, or local storage I/O.

Question 2 · choose 1

A photo-sharing app must create a thumbnail every time a user uploads an image to Amazon S3. Each job takes a few seconds, uploads arrive at irregular times, and the team does not want to manage servers or pay for idle capacity. Which compute service fits best?

  1. AAmazon EC2 instances in an Auto Scaling group
  2. BAn Amazon EC2 Reserved Instance running a script that checks the bucket
  3. CAmazon ECS tasks on a cluster of EC2 instances
  4. DAWS Lambda
Show the answer and why
  • AAmazon EC2 instances in an Auto Scaling group

    Incorrect

    Auto Scaling adjusts the number of instances, but the team still manages the instances and pays for every one that is running, busy or not.

  • BAn Amazon EC2 Reserved Instance running a script that checks the bucket

    Incorrect

    A Reserved Instance is a commitment billed for the whole term, and the script runs on a server the team must manage.

  • CAmazon ECS tasks on a cluster of EC2 instances

    Incorrect

    Containers on EC2 still need the team to provision and manage the cluster's instances.

  • DAWS Lambda

    Correct

    Lambda runs code in response to events, such as an object arriving in S3, without servers to manage, and you pay only for the compute time you use.

Short, event-driven jobs at unpredictable times are the case serverless functions are built for: nothing runs, and nothing is billed, between uploads.

Question 3 · choose 2

A company puts an Elastic Load Balancing load balancer in front of its web servers. What does the load balancer do for the application? (Choose TWO.)

  1. ALaunches new instances when CPU utilization rises
  2. BCaches static files in edge locations near users
  3. CTranslates the domain name into the servers' IP addresses
  4. DDistributes incoming traffic across targets in one or more Availability Zones
  5. ESends requests only to targets that pass health checks
Show the answer and why
  • ALaunches new instances when CPU utilization rises

    Incorrect

    Adding and removing instances as demand changes is the job of Amazon EC2 Auto Scaling, which registers new instances with the load balancer.

  • BCaches static files in edge locations near users

    Incorrect

    Caching content at edge locations is what Amazon CloudFront does.

  • CTranslates the domain name into the servers' IP addresses

    Incorrect

    Translating domain names into IP addresses is DNS, which is Amazon Route 53's job.

  • DDistributes incoming traffic across targets in one or more Availability Zones

    Correct

    Elastic Load Balancing automatically distributes incoming traffic across multiple targets, such as EC2 instances and containers, in one or more Availability Zones.

  • ESends requests only to targets that pass health checks

    Correct

    The load balancer monitors the health of its registered targets and routes traffic only to the healthy ones.

A load balancer spreads requests and steers around unhealthy targets; Auto Scaling changes how many targets there are. Together they give elasticity and availability.

Question 4 · choose 1

A company already runs its containers on Kubernetes in its data center and wants to keep using Kubernetes tools on AWS. It wants AWS to run and scale the Kubernetes control plane for it. Which service should it use?

  1. AAmazon Elastic Container Service (Amazon ECS)
  2. BAmazon Elastic Kubernetes Service (Amazon EKS)
  3. CAWS Lambda
  4. DAWS Elastic Beanstalk
Show the answer and why
  • AAmazon Elastic Container Service (Amazon ECS)

    Incorrect

    ECS is AWS's own container orchestration service. It runs containers well, but it is not Kubernetes.

  • BAmazon Elastic Kubernetes Service (Amazon EKS)

    Correct

    EKS is a managed Kubernetes service: AWS runs the Kubernetes control plane, and you keep using standard Kubernetes tooling.

  • CAWS Lambda

    Incorrect

    Lambda runs functions in response to events. It does not run Kubernetes workloads.

  • DAWS Elastic Beanstalk

    Incorrect

    Elastic Beanstalk deploys and manages web applications for you; it is not a managed Kubernetes service.

On AWS, "containers" splits into ECS (AWS's orchestrator) and EKS (managed Kubernetes). An existing Kubernetes estate points to EKS.

Question 5 · choose 1

A team runs its containers on Amazon ECS. It no longer wants to provision, patch or scale the EC2 instances in its cluster, and wants to pay for the vCPU and memory its containers use. What should it run the containers on?

  1. AThe EC2 launch type, on instances the team manages
  2. BAn EC2 Auto Scaling group of container hosts
  3. CAWS Fargate
  4. DMemory optimized EC2 instances
Show the answer and why
  • AThe EC2 launch type, on instances the team manages

    Incorrect

    With the EC2 launch type the team still provisions and manages the cluster's instances — what it wants to stop doing.

  • BAn EC2 Auto Scaling group of container hosts

    Incorrect

    Auto Scaling changes how many instances run, but the team still owns and patches them.

  • CAWS Fargate

    Correct

    Fargate is serverless compute for containers: you don't provision or manage servers, and you pay for the resources your containers request.

  • DMemory optimized EC2 instances

    Incorrect

    A different instance family is still a set of servers the team must run.

ECS decides where containers run; Fargate removes the servers underneath, so there is no cluster capacity left to manage.

Practise domain 3 →Practise all domains →