AWS AWS Compute Services 4 — Questions and Answers
Question 1: Which EC2 purchasing option provides up to 90% discount compared to On-Demand pricing but can be interrupted by AWS with a 2-minute warning?
- Reserved Instances
- Spot Instances (Correct answer)
- Dedicated Hosts
- Savings Plans
Correct answer: Spot Instances
Spot Instances use spare EC2 capacity at steep discounts but AWS can reclaim them with a 2-minute interruption notice.
Question 2: What is the maximum execution timeout for an AWS Lambda function?
- 5 minutes
- 10 minutes
- 15 minutes (Correct answer)
- 30 minutes
Correct answer: 15 minutes
AWS Lambda functions have a maximum execution timeout of 15 minutes (900 seconds).
Question 3: Which AWS service allows you to run containers without managing the underlying EC2 instances?
- Amazon ECS on EC2
- AWS Fargate (Correct answer)
- AWS Batch
- Amazon EKS on EC2
Correct answer: AWS Fargate
AWS Fargate is a serverless compute engine for containers that removes the need to provision or manage EC2 instances.
Question 4: An application needs to scale EC2 instances based on a schedule, adding capacity every Monday morning and reducing it Friday evening. Which Auto Scaling policy should be used?
- Target Tracking Scaling
- Step Scaling
- Scheduled Scaling (Correct answer)
- Simple Scaling
Correct answer: Scheduled Scaling
Scheduled Scaling adjusts capacity at specific, predetermined times, making it ideal for predictable load patterns.
Question 5: Which EC2 instance family is optimized for workloads requiring high memory-to-vCPU ratios, such as in-memory databases like SAP HANA?
- C-family (Compute Optimized)
- R-family (Memory Optimized) (Correct answer)
- P-family (Accelerated Computing)
- D-family (Storage Optimized)
Correct answer: R-family (Memory Optimized)
R-family instances are Memory Optimized and provide high RAM-to-vCPU ratios for in-memory databases and real-time big data analytics.
Question 6: What feature of EC2 Auto Scaling replaces unhealthy instances automatically based on health checks from EC2 or an Elastic Load Balancer?
- Predictive Scaling
- Instance Refresh
- Health Check Replacement (Correct answer)
- Dynamic Scaling
Correct answer: Health Check Replacement
Auto Scaling's Health Check Replacement terminates instances that fail EC2 or ELB health checks and launches new ones automatically.
Question 7: Which AWS compute service is specifically designed for running batch computing workloads by dynamically provisioning the optimal quantity and type of compute resources?
- AWS Lambda
- AWS Fargate
- AWS Batch (Correct answer)
- Amazon Lightsail
Correct answer: AWS Batch
AWS Batch dynamically provisions compute resources and manages job queues to run batch workloads efficiently at any scale.
Which EC2 purchasing option provides up to 90% discount compared to On-Demand pricing but can be interrupted by AWS with a 2-minute warning?