AWS AWS Compute Services 5 — Questions and Answers
Question 1: What is the purpose of an EC2 Placement Group using the 'Partition' strategy?
- Place all instances on the same physical host for low latency
- Spread instances across logical partitions so groups never share underlying hardware (Correct answer)
- Strictly place each instance on a distinct physical rack
- Group instances in the same Availability Zone only
Correct answer: Spread instances across logical partitions so groups never share underlying hardware
Partition placement groups divide instances into logical partitions, each on separate hardware, reducing the risk of correlated hardware failures for distributed systems like HDFS or Kafka.
Question 2: Which Lambda feature enables you to run two versions of a function simultaneously and gradually shift traffic between them to test a new deployment?
- Lambda Layers
- Lambda Aliases with weighted routing (Correct answer)
- Lambda Destinations
- Lambda Provisioned Concurrency
Correct answer: Lambda Aliases with weighted routing
Lambda Aliases support weighted routing, allowing you to split traffic between two function versions for canary or blue/green deployments.
Question 3: A company needs dedicated physical EC2 servers for compliance reasons but wants AWS to manage the server capacity. Which option should they choose?
- Spot Instances
- Dedicated Instances
- Dedicated Hosts (Correct answer)
- Reserved Instances
Correct answer: Dedicated Hosts
Dedicated Hosts provide physical servers dedicated to your use, giving visibility into sockets and cores for license compliance, with AWS managing the infrastructure.
Question 4: What does 'Provisioned Concurrency' do for AWS Lambda?
- Limits the maximum number of concurrent executions
- Pre-initializes execution environments to eliminate cold starts (Correct answer)
- Automatically scales Lambda based on SQS queue depth
- Reserves memory for a specific Lambda function version
Correct answer: Pre-initializes execution environments to eliminate cold starts
Provisioned Concurrency keeps a specified number of Lambda execution environments initialized and ready to respond instantly, eliminating cold start latency.
Question 5: Which EC2 feature allows you to pause and resume an instance, preserving the in-memory state (RAM contents) to disk?
- Stop
- Terminate
- Hibernate (Correct answer)
- Reboot
Correct answer: Hibernate
EC2 Hibernate saves the instance's RAM contents to the EBS root volume so the instance can resume exactly where it left off, including running processes.
Question 6: An organization wants to run a Kubernetes cluster on AWS without managing the control plane. Which service should they use?
- Amazon ECS
- AWS Fargate
- Amazon EKS (Correct answer)
- AWS App Runner
Correct answer: Amazon EKS
Amazon EKS (Elastic Kubernetes Service) is a managed Kubernetes service where AWS operates and scales the Kubernetes control plane across multiple Availability Zones.
Question 7: Which EC2 Auto Scaling policy type continuously adjusts capacity to maintain a specific metric at a target value, such as keeping average CPU utilization at 50%?
- Simple Scaling
- Step Scaling
- Target Tracking Scaling (Correct answer)
- Scheduled Scaling
Correct answer: Target Tracking Scaling
Target Tracking Scaling automatically adjusts the number of instances to keep a chosen metric, like CPU utilization, at a specified target value.
What is the purpose of an EC2 Placement Group using the 'Partition' strategy?