0
0
AWScloud~10 mins

Performance efficiency pillar in AWS - Interactive Code Practice

Choose your learning style9 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the code to specify the AWS service that helps improve performance by caching content closer to users.

AWS
Use Amazon [1] to cache content at edge locations for faster delivery.
Drag options to blanks, or click blank then click option'
ARDS
BS3
CEC2
DCloudFront
Attempts:
3 left
💡 Hint
Common Mistakes
Choosing S3 which is for storage, not caching.
Selecting EC2 which is for compute, not content delivery.
2fill in blank
medium

Complete the code to select the AWS service that automatically adjusts compute capacity to maintain steady performance.

AWS
Use AWS [1] to automatically add or remove EC2 instances based on demand.
Drag options to blanks, or click blank then click option'
ALambda
BCloudWatch
CAuto Scaling
DElastic Beanstalk
Attempts:
3 left
💡 Hint
Common Mistakes
Choosing Lambda which is serverless compute, not scaling EC2 instances.
Selecting CloudWatch which monitors but does not scale.
3fill in blank
hard

Fix the error in the code to correctly define a performance-efficient database instance type.

AWS
db_instance = boto3.client('rds').create_db_instance(DBInstanceClass='[1]', Engine='mysql')
Drag options to blanks, or click blank then click option'
Adb.m5.large
Bt2.micro
Cdb.t2.micro
Dm5.large
Attempts:
3 left
💡 Hint
Common Mistakes
Using EC2 instance types without 'db.' prefix.
Choosing very small instance types that may not meet performance needs.
4fill in blank
hard

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.

AWS
latency_map = {region: latency for region, latency in latencies.items() if latency [1] [2]
Drag options to blanks, or click blank then click option'
A<
B100
C>
D50
Attempts:
3 left
💡 Hint
Common Mistakes
Using '>' instead of '<' which would filter wrong regions.
Using 50 instead of 100 which changes the filter criteria.
5fill in blank
hard

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%.

AWS
high_cpu_instances = { [1] : metrics[[2]] for [3] in metrics if metrics[[2]] [4] 70 }
Drag options to blanks, or click blank then click option'
Ainstance_id
B'CPUUtilization'
Cinstance
D>
Attempts:
3 left
💡 Hint
Common Mistakes
Using the wrong variable names for keys or loop variable.
Not using quotes around 'CPUUtilization'.