CLF-C02 Compute Services 3 — Questions and Answers
Question 1: Which AWS service is specifically designed for running batch computing workloads at any scale without managing clusters?
- AWS Lambda
- AWS Batch (Correct answer)
- Amazon EMR
- AWS Glue
Correct answer: AWS Batch
AWS Batch dynamically provisions the optimal quantity and type of compute resources to run batch jobs without you managing clusters.
Question 2: What is the maximum execution duration for a single AWS Lambda function invocation?
- 5 minutes
- 10 minutes
- 15 minutes (Correct answer)
- 60 minutes
Correct answer: 15 minutes
AWS Lambda functions can run for a maximum of 15 minutes (900 seconds) per invocation.
Question 3: A company runs a fleet of EC2 instances and wants to automatically replace any instance that fails a health check. Which feature provides this?
- Elastic Load Balancing
- EC2 Auto Scaling (Correct answer)
- AWS Shield
- Amazon CloudWatch Alarms
Correct answer: EC2 Auto Scaling
EC2 Auto Scaling monitors instance health and automatically terminates and replaces unhealthy instances to maintain the desired capacity.
Question 4: Which statement accurately describes the relationship between Amazon ECS and AWS Fargate?
- Fargate is a replacement for ECS
- ECS is the container orchestrator; Fargate is a serverless launch type for ECS tasks (Correct answer)
- ECS only works with EC2, not Fargate
- Fargate manages Kubernetes clusters, not ECS
Correct answer: ECS is the container orchestrator; Fargate is a serverless launch type for ECS tasks
Amazon ECS orchestrates containers and can use either the EC2 launch type (you manage servers) or the Fargate launch type (serverless).
Question 5: Which compute service would you choose to run a machine learning training job that requires GPU acceleration?
- Memory Optimized EC2 (R family)
- Compute Optimized EC2 (C family)
- Accelerated Computing EC2 (P or G family) (Correct answer)
- Burstable EC2 (T family)
Correct answer: Accelerated Computing EC2 (P or G family)
Accelerated Computing instances (P, G, Trn families) include GPUs or custom ASICs suited for ML training, graphics rendering, and HPC.
Question 6: A developer wants to deploy a Docker container on AWS with the least operational overhead. Which combination achieves this?
- EC2 + Docker installed manually
- ECS with EC2 launch type
- ECS with Fargate launch type (Correct answer)
- AWS Lambda with a container runtime
Correct answer: ECS with Fargate launch type
ECS with the Fargate launch type is fully serverless — you define the task and AWS handles all underlying infrastructure.
Question 7: Amazon Lightsail is best described as which type of offering?
- A managed Kubernetes service
- A simplified VPS service with predictable pricing for smaller workloads (Correct answer)
- A serverless compute platform
- A container registry service
Correct answer: A simplified VPS service with predictable pricing for smaller workloads
Amazon Lightsail provides virtual private servers, storage, databases, and networking at a low, predictable monthly price aimed at simpler use cases.
Which AWS service is specifically designed for running batch computing workloads at any scale without managing clusters?