0
0
AWScloud~10 mins

Edge locations and CloudFront overview 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 delivers content using edge locations.

AWS
service = "[1]"
Drag options to blanks, or click blank then click option'
AS3
BLambda
CEC2
DCloudFront
Attempts:
3 left
💡 Hint
Common Mistakes
Choosing S3 because it stores data but does not deliver via edge locations.
Selecting EC2 or Lambda which are compute services, not content delivery.
2fill in blank
medium

Complete the code to define the type of AWS locations that cache content for CloudFront.

AWS
location_type = "[1]"
Drag options to blanks, or click blank then click option'
AData Centers
BEdge Locations
CRegions
DAvailability Zones
Attempts:
3 left
💡 Hint
Common Mistakes
Confusing edge locations with availability zones or regions.
Thinking data centers is the specific term used by AWS for caching points.
3fill in blank
hard

Fix the error in the code to correctly create a CloudFront distribution with origin domain name.

AWS
distribution = cloudfront.create_distribution(OriginDomainName='[1]')
Drag options to blanks, or click blank then click option'
Amybucket.s3.amazonaws.com
Bmybucket.s3.amazonaws
Cmybucket.amazonaws.com
Dmybucket.s3
Attempts:
3 left
💡 Hint
Common Mistakes
Leaving out '.com' or '.amazonaws.com' in the domain name.
Using incomplete or incorrect domain formats.
4fill in blank
hard

Fill both blanks to create a CloudFront distribution with a cache behavior that allows GET and HEAD methods.

AWS
cache_behavior = {
  'AllowedMethods': ['[1]', '[2]'],
  'CachedMethods': ['[1]', '[2]']
}
Drag options to blanks, or click blank then click option'
AGET
BHEAD
CPOST
DPUT
Attempts:
3 left
💡 Hint
Common Mistakes
Including POST or PUT which are not cached by default.
Mixing allowed and cached methods incorrectly.
5fill in blank
hard

Fill all three blanks to define a CloudFront distribution with a default root object and enabled logging.

AWS
distribution_config = {
  'DefaultRootObject': '[1]',
  'Logging': {
    'Bucket': '[2]',
    'Enabled': [3]
  }
}
Drag options to blanks, or click blank then click option'
Aindex.html
Bmylogs.s3.amazonaws.com
CTrue
DFalse
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'False' for logging enabled disables logs.
Leaving the bucket name incomplete or incorrect.
Choosing a wrong default root object.