CLF-C02 Compute Services 2 — Questions and Answers
Question 1: A company wants to run containerized applications without managing the underlying servers. Which AWS service is the best fit?
- Amazon EC2
- AWS Fargate (Correct answer)
- AWS Outposts
- Amazon Lightsail
Correct answer: AWS Fargate
AWS Fargate is a serverless compute engine for containers that removes the need to provision or manage servers.
Question 2: Which EC2 pricing model provides the largest discount in exchange for a firm 1- or 3-year commitment with full upfront payment?
- On-Demand
- Spot Instances
- Reserved Instances (Correct answer)
- Savings Plans
Correct answer: Reserved Instances
Reserved Instances with an all-upfront, 3-year term offer the steepest discount (up to ~72%) compared to On-Demand pricing.
Question 3: What happens to an EC2 Spot Instance when AWS needs the capacity back?
- It is paused and resumed later
- It receives a 2-minute warning and is then terminated (Correct answer)
- It is converted to On-Demand automatically
- It is migrated to another Availability Zone
Correct answer: It receives a 2-minute warning and is then terminated
AWS provides a 2-minute interruption notice before reclaiming a Spot Instance, after which it is stopped or terminated.
Question 4: Which AWS service lets you run code in response to events such as an S3 object upload without provisioning any servers?
- Amazon EC2 Auto Scaling
- AWS Elastic Beanstalk
- AWS Lambda (Correct answer)
- Amazon ECS
Correct answer: AWS Lambda
AWS Lambda executes code triggered by events and automatically manages all the underlying compute infrastructure.
Question 5: A startup needs a simple way to deploy a web application without worrying about infrastructure configuration. Which service handles capacity provisioning, load balancing, and monitoring automatically?
- AWS CloudFormation
- AWS Elastic Beanstalk (Correct answer)
- Amazon EC2
- AWS Batch
Correct answer: AWS Elastic Beanstalk
Elastic Beanstalk is a PaaS that automatically handles deployment, scaling, load balancing, and health monitoring for web applications.
Question 6: Which EC2 instance type is optimized for workloads that require high memory-to-CPU ratios, such as in-memory databases?
- Compute Optimized (C family)
- Storage Optimized (I family)
- Memory Optimized (R family) (Correct answer)
- Accelerated Computing (P family)
Correct answer: Memory Optimized (R family)
Memory Optimized instances (R, X, and z1d families) are designed for workloads that process large datasets in memory, like Redis or SAP HANA.
Question 7: Amazon EC2 Auto Scaling helps with which two pillars of the AWS Well-Architected Framework?
- Security and Cost Optimization
- Reliability and Cost Optimization (Correct answer)
- Performance Efficiency and Security
- Operational Excellence and Sustainability
Correct answer: Reliability and Cost Optimization
Auto Scaling improves Reliability by replacing unhealthy instances and Cost Optimization by scaling in during low demand.
A company wants to run containerized applications without managing the underlying servers.
Which AWS service is the best fit?