Complete the code to specify the AWS service that delivers content using edge locations.
service = "[1]"
CloudFront is the AWS service that uses edge locations to deliver content quickly to users.
Complete the code to define the type of AWS locations that cache content for CloudFront.
location_type = "[1]"
Edge Locations are the AWS sites that cache CloudFront content near users for faster delivery.
Fix the error in the code to correctly create a CloudFront distribution with origin domain name.
distribution = cloudfront.create_distribution(OriginDomainName='[1]')
The origin domain name must be the full S3 bucket endpoint, including '.s3.amazonaws.com'.
Fill both blanks to create a CloudFront distribution with a cache behavior that allows GET and HEAD methods.
cache_behavior = {
'AllowedMethods': ['[1]', '[2]'],
'CachedMethods': ['[1]', '[2]']
}GET and HEAD are the methods allowed and cached by default in CloudFront cache behaviors.
Fill all three blanks to define a CloudFront distribution with a default root object and enabled logging.
distribution_config = {
'DefaultRootObject': '[1]',
'Logging': {
'Bucket': '[2]',
'Enabled': [3]
}
}The default root object is usually 'index.html'. Logging requires specifying the S3 bucket and enabling it with True.