Complete the code to specify the AWS service that helps improve performance by caching content closer to users.
Use Amazon [1] to cache content at edge locations for faster delivery.
Amazon CloudFront is a content delivery network (CDN) service that caches content at edge locations to improve performance.
Complete the code to select the AWS service that automatically adjusts compute capacity to maintain steady performance.
Use AWS [1] to automatically add or remove EC2 instances based on demand.
AWS Auto Scaling adjusts the number of EC2 instances automatically to meet demand and maintain performance.
Fix the error in the code to correctly define a performance-efficient database instance type.
db_instance = boto3.client('rds').create_db_instance(DBInstanceClass='[1]', Engine='mysql')
The correct DB instance class for RDS must start with 'db.' followed by the instance type, such as 'db.m5.large'.
Fill both blanks to create a dictionary comprehension that maps AWS regions to their latency in milliseconds, filtering only regions with latency less than 100.
latency_map = {region: latency for region, latency in latencies.items() if latency [1] [2]The comprehension filters regions where latency is less than 100 milliseconds.
Fill all three blanks to create a dictionary comprehension that maps instance IDs to their CPU utilization, filtering only instances with CPU utilization greater than 70%.
high_cpu_instances = { [1] : metrics[[2]] for [3] in metrics if metrics[[2]] [4] 70 }The comprehension maps each instance_id to its CPU utilization, filtering those with utilization greater than 70%.