Home [AWS Solution Architect] CloudFront
Post
Cancel

[AWS Solution Architect] CloudFront

CloudFront

  • Introduction
  • Core Components
  • Distributions
  • Lambda@Edge
  • Protection
  • CloudFront Cheat Sheet

Screen Shot 2022-01-31 at 1 22 57 PM Screen Shot 2022-01-31 at 1 23 03 PM Screen Shot 2022-01-31 at 1 24 05 PM Screen Shot 2022-01-31 at 1 25 10 PM Screen Shot 2022-01-31 at 1 29 10 PM

  • presigned URL : for S3
  • signed URL : for CloudFront

Screen Shot 2022-01-31 at 1 40 11 PM


  • Create a Distribution Screen Shot 2022-01-31 at 1 33 10 PM Screen Shot 2022-01-31 at 1 34 44 PM

  • Invalidation after updating files Screen Shot 2022-01-31 at 1 39 50 PM


Screen Shot 2022-01-24 at 3 10 11 PM by AWS (01/24/2022)

  • CloudFront edge-location : has cached copies

Screen Shot 2022-01-31 at 2 05 48 PM

  • Caching
    • ์˜ค๋žœ์‹œ๊ฐ„ ๊ฑธ๋ฆฌ๋Š” ์ž‘์—…์˜ ๊ฒฐ๊ณผ๋ฅผ ์ €์žฅํ•˜๋Š” ๊ฒƒ for high performance
    • origin storage์— accessํ•˜๋Š” ๊ฒƒ๋ณด๋‹ค ๋” ๋น ๋ฅด๊ฒŒ ์š”์ฒญ ๊ฐ€๋Šฅ
    • ์ผ๋ฐ˜์ ์œผ๋กœ RAM(Random Access Memory)๊ณผ ๊ฐ™์ด ๋น ๋ฅด๊ฒŒ ์•ก์„ธ์Šคํ•  ์ˆ˜ ์žˆ๋Š” ํ•˜๋“œ์›จ์–ด์— ์ €์žฅ
  • ์บ์‹œ ๊ณ„์ธต์„ ๊ตฌํ˜„ํ•  ๋•Œ๋Š” ์บ์‹ฑ๋˜๋Š” ๋ฐ์ดํ„ฐ์˜ ์œ ํšจ์„ฑ์„ ์ดํ•ดํ•˜๋Š” ๊ฒƒ์ด ์ค‘์š”ํ•ฉ๋‹ˆ๋‹ค. ์„ฑ๊ณต์ ์ธ ์บ์‹œ๋Š” ๋†’์€ ์ ์ค‘๋ฅ ๋กœ ์ด์–ด์ง‘๋‹ˆ๋‹ค. ์ฆ‰, ๊ฐ€์ ธ์˜จ ๋ฐ์ดํ„ฐ๊ฐ€ ์บ์‹œ์— ์กด์žฌํ•ฉ๋‹ˆ๋‹ค. ๊ฐ€์ ธ์˜จ ๋ฐ์ดํ„ฐ๊ฐ€ ์บ์‹œ์— ์กด์žฌํ•˜์ง€ ์•Š์„ ๋•Œ ์บ์‹œ ๋น„์ ์ค‘์ด ๋ฐœ์ƒํ•ฉ๋‹ˆ๋‹ค.
    • TTL(Time To Live)๊ณผ ๊ฐ™์€ ์ œ์–ด ํ•ญ๋ชฉ์„ ์ ์šฉํ•˜์—ฌ ์ด์— ๋”ฐ๋ผ ๋ฐ์ดํ„ฐ๋ฅผ ๋งŒ๋ฃŒ๋˜๋„๋ก ํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.
  • ๋‹ค๋ฅธ ๊ณ ๋ ค ์‚ฌํ•ญ์€ ์บ์‹œ ํ™˜๊ฒฝ์ด ๊ณ ๊ฐ€์šฉ์„ฑ์ด์–ด์•ผ ํ•  ํ•„์š”๊ฐ€ ์žˆ๋Š”์ง€ ์—ฌ๋ถ€์ธ๋ฐ,
    • ์ด๋Š” Redis์™€ ๊ฐ™์€ ์ธ ๋ฉ”๋ชจ๋ฆฌ ์—”์ง„์„ ์‚ฌ์šฉํ•˜์—ฌ ์ถฉ์กฑํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.
    • ๊ธฐ๋ณธ ์œ„์น˜์—์„œ ๋ฐ์ดํ„ฐ๋ฅผ ์บ์‹ฑํ•˜๋Š” ๊ฒƒ๊ณผ๋Š” ๋‹ฌ๋ฆฌ, ๊ฒฝ์šฐ์— ๋”ฐ๋ผ ์ธ ๋ฉ”๋ชจ๋ฆฌ ๊ณ„์ธต์„ ๋…๋ฆฝํ˜• ๋ฐ์ดํ„ฐ ์Šคํ† ๋ฆฌ์ง€ ๊ณ„์ธต์œผ๋กœ ์‚ฌ์šฉํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค. ์ด ์‹œ๋‚˜๋ฆฌ์˜ค์—์„œ๋Š” ์ธ ๋ฉ”๋ชจ๋ฆฌ ์—”์ง„์— ์ƒ์ฃผํ•˜๋Š” ๋ฐ์ดํ„ฐ์— ๋Œ€ํ•ด ์ ์ ˆํ•œ RTO(๋ณต๊ตฌ ๋ชฉํ‘œ ์‹œ๊ฐ„ โ€“ ๊ฐ€๋™ ์ค‘๋‹จ์œผ๋กœ๋ถ€ํ„ฐ ๋ณต๊ตฌํ•˜๋Š” ๋ฐ ๊ฑธ๋ฆฌ๋Š” ์‹œ๊ฐ„)์™€ RPO(๋ชฉํ‘œ ๋ณต๊ตฌ ์‹œ์  โ€“ ๋ณต๊ตฌ ์‹œ ์บก์ฒ˜๋œ ์ตœ์ข… ์‹œ์  ๋˜๋Š” ํŠธ๋žœ์žญ์…˜)๋ฅผ ์ •์˜ํ•˜์—ฌ ์ด๊ฒƒ์ด ์ ํ•ฉํ•œ์ง€๋ฅผ ํŒŒ์•…ํ•˜๋Š” ๊ฒƒ์ด ์ค‘์š”ํ•ฉ๋‹ˆ๋‹ค. ๋‹ค๋ฅธ ์ธ ๋ฉ”๋ชจ๋ฆฌ ์—”์ง„์˜ ์„ค๊ณ„ ์ „๋žต ๋ฐ ํŠน์„ฑ๋“ค์„ ์ ์šฉํ•˜๋ฉด ๋Œ€๋ถ€๋ถ„์˜ RTO์™€ RPO ์š”๊ตฌ ์‚ฌํ•ญ์„ ์ถฉ์กฑ์‹œํ‚ฌ ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.

** Reference : AWS https://aws.amazon.com/ko/caching/


Screen Shot 2022-01-24 at 3 14 16 PM by AWS (01/24/2022)

  • Answer : a, b, c
    • d. ์€ํ–‰ ๊ณ„์ • ์ž”์•ก : consistency๊ฐ€ ๊ฐ€์žฅ ์ค‘์š”ํ•˜๊ธฐ ๋•Œ๋ฌธ์— ์บ์‹œ ์ €์žฅ์€ ์ข‹์ง€ ์•Š์Œ (์บ์‹œ๋Š” ์—…๋ฐ์ดํŠธ๊ฐ€ ๋Šฆ์–ด์ง€๊ธฐ ๋•Œ๋ฌธ์— ์€ํ–‰ ์ž”๊ณ ๋Š” ๋Šฆ๊ฒŒ ๊ฐฑ์‹ ๋˜๋ฉด ์•ˆ๋จ)

Reference

AWS Certified Solutions Architect - Associate 2020 (PASS THE EXAM!), Youtube, uploaded by freeCodeCamp.org, 12/24/2019, https://www.youtube.com/watch?v=Ia-UEYYR44s

This post is licensed under CC BY 4.0 by the author.

[AWS Solution Architect] DynamoDB

[AWS Solution Architect] ElastiCache

Comments powered by Disqus.