CloudFront Flashcards

1
Q

What tasks are suited for a CloudFront function?

A

– Cache key normalization – You can transform HTTP request attributes (headers, query strings, cookies, even the URL path) to create an optimal cache key, which can improve your cache hit ratio.

– Header manipulation – You can insert, modify, or delete HTTP headers in the request or response. For example, you can add a True-Client-IP header to every request.

– Status code modification and body generation – You can evaluate headers and respond back to viewers with customized content.

– URL redirects or rewrites – You can redirect viewers to other pages based on information in the request or rewrite all requests from one path to another.

– Request authorization – You can validate hashed authorization tokens, such as JSON WEB TOKENS (JWT), by inspecting authorization headers or other request metadata.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is the purpose of CloudFront - performance, elasticity or fault tolerance?

A

performance

How well did you know this?
1
Not at all
2
3
4
5
Perfectly