æ¦è¦
10æ5æ¥(å)ã«éå¬ãããYAPC::Hakodate 2024 ã§ãAWS COST CUT FIGHTãã¨ããæ ªå¼ä¼ç¤¾DELTAæ§ã®ã¤ãã³ããããã¾ãã*1ã
ãã®ä¸ã§å¼ç¤¾SREã2000$è¶ãã®ã³ã¹ãåæ¸ãéæãã¾ããã
ãããã£ãð
— nakamura (@__namakura) 2024å¹´10æ5æ¥
æé$ 2,150ã®AWSã³ã¹ãåæ¸ã«æåãã¾ããï¼
ããªãã¯ãããåæ¸ã§ããï¼ï¼
ã³ã¹ãåæ¸ã¯ã¤ãºã«ãã£ã¬ã³ã¸ï¼
presented by æ ªå¼ä¼ç¤¾DELTA
https://t.co/CQyjt4khLM #yapcjapan
ã¨æã£ããã¤ãã«2000ãã«ã®å£ãè¶ ããçè ãï¼#yapcjapan https://t.co/urqqE3jekh pic.twitter.com/VZStS3paEj
— Keisuke Nishitani (@Keisuke69) 2024å¹´10æ5æ¥
ã¨ã¦ãè¯ãåé¡ã¨ãããã¨ãå¼ç¤¾ã§è©±é¡ã«ãªãSREãã¼ã å ã§è°è«ããããã«ã³ã¹ãåæ¸ãã§ããã®ã§è§£çéå ±ã¨ãã¦å ¬éãã¾ãã
注ææ¸ã
DELTAæ§ã®AWS COST CUT FIGHTã®åé¡ãå¼ç¨ããã¦ããã ãã¾ãã
解çã¯DELTAæ§ã®æ£å¼ãªãã®ã§ã¯ããã¾ããã ã¾ããæä¾ããæ å ±ã®æ£ç¢ºæ§ãå®å ¨æ§ã«é¢ãã¦ã¯ã責任ãè² ãããã¾ããã注æãã ããã
åé¡
ã¢ã¼ããã¯ãã£å³ãåèã«ã³ã¹ãåæ¸ãéæãã¦ãã ãã
Q1
ec2ã¤ã³ã¹ã¿ã³ã¹ã¯m5.2xlarge(vCPU:8,memory:32GiB)ãå©ç¨ãã¦ãããCPUè² è·ç¶æ³ãå¹³å20%ã§å®å®ãã¦ãã¾ãã ã¤ã³ã¹ã¿ã³ã¹ã®ãµã¤ãºãã¥ã¼ãã³ã°ãå®æ½ããéã«ãå¤æ´å ã¨ãã¦ç¢ºå®ãã¤ä¸çªå¹æãããé¸æè¢ã¯ã©ãã§ãã?
é¸æ
- A: m5.xlarge(vCPU:4,memory:16GiB)
- B: m7g.xlarge(vCPU:4,memory:16GiB)
- C: r5.xlarge(vCPU:4,memory:32GiB)
- D: r7g.xlarge(vCPU:4,memory:32GiB)
çã
D: r7g.xlarge(vCPU:4,memory:32GiB)
ãã¤ã³ã
- ã°ã©ããã³ãå®ããã¨ãç¥ã£ã¦ããã
- è¦ä»¶ã«ç¢ºå®ã¨ãããã¨ã¯ã©ããããã¨ã
解説
ãã¤ã³ãã®éãã°ã©ããã³ã使ã£ãæ¹ãå®ãã
ã¾ãè¦ä»¶ã«ç¢ºå®ã¨ãããã¨ãªã®ã§ã¡ã¢ãªã®å¤æ´ã¯ããªãã
ãã£ã¦Dã
Q2
ã¢ã¼ããã¯ãã£å³ã«ã¯è¨è¼ããã¦ãã¾ããããéçºè ãéå»æ¤è¨¼ã§å©ç¨ãã¦ããEC2ãèµ·åç¶æ ã§æ¾ç½®ããã¦ãã¾ãã å°æ¥çã«å¿ è¦ã«ãªã£ãéã®éç¨è² è·ãè¸ã¾ããä¸ã§ä¸çªã³ã¹ããæèãã対å¿ã®é¸æè¢ã¯ã©ãã§ããï¼
é¸æ
- A: æ¥åæé以å¤ã¯ã¤ã³ã¹ã¿ã³ã¹ãåæ¢ããèµ·ååæ¢è¨å®ãçµãã
- B: ã¤ã³ã¹ã¿ã³ã¹ãåºæ¬åæ¢ãã¦å©ç¨æã«èµ·åããéç¨ã«ããã
- C: AMIãåã£ã¦ã¤ã³ã¹ã¿ã³ã¹ãåé¤ããã
- D: ã¤ã³ã¹ã¿ã³ã¹ãåé¤ãã¦å©ç¨æã«åæ§ç¯ããã
çã
C: AMIãåã£ã¦ã¤ã³ã¹ã¿ã³ã¹ãåé¤ããã
ãã¤ã³ã
- ä¸çªã³ã¹ããå®ãã®ã¯ä½ã
- éç¨ã®è² è·ãä½ãã®ã¯ã©ãã
解説
ã¤ã³ã¹ã¿ã³ã¹ãåæ¢ããã ã¨EBSããªã¥ã¼ã ã®ãéãããã
ã¤ã³ã¹ã¿ã³ã¹ãåé¤ãã¦åæ§ç¯ããã ã¨æ§ç¯ã®æéãããã£ã¦ãã¾ã(Cloudformationã§ããã«å»ºã¦ãã¨ãã ã¨ã¾ãå¥ã ã)
AMIã使ããã¨ã«ãã£ã¦EBSã®ã³ã¹ããæãã¤ã¤ç´ æ©ãã¤ã³ã¹ã¿ã³ã¹ãåä½æã§ããã
ãã£ã¦Cã
Q3
ãµã¼ãã¹ããªãªã¼ã¹ç´å¾ã§ãããSPOF(åä¸é害ç¹)ã許容ã§ããç¶æ³ä¸ã§âregional data transfer - in/out/between EC2 AZs or using elastic IPs or ELBâã®æéãããªãé«ããã¨ãçºè¦ã§ãã¾ããã ãã®éä¿¡æåæ¸ã®ããã«ãä¸çªã³ã¹ãåæ¸å¹æã®é«ãé¸æè¢ã¯ã©ãã§ããï¼
é¸æ
- A: Route 53ããç´æ¥EC2ã«æ¥ç¶ããã
- B: ãªãã¸ã§ã¯ããS3ã§ã¯ãªããEBSã«ä¿åããã
- C: CloudFrontã®ãã£ãã·ã¥è¨å®ãè¦ç´ãã
- D: RDSã®Read replicaãåé¤ããã
çã
D: RDSã®Read replicaãåé¤ããã
ãã¤ã³ã
- SPOFã許容ã§ããç¶æ³ä¸ã§ãããã¨
- éä¿¡æåæ¸ã®ããã«ã¯ã©ãããã°ããã
解説
regional data transfer - in/out/between EC2 AZs or using elastic IPs or ELBã¨ãããã¨ã¯ãªã¼ã¸ã§ã³éã®éä¿¡æéãé«ãã¨ãããã¨ã§ããã
ã¢ã¼ããã¯ãã£ã®å³ãè¦ãã¨EC2ããRDSã®ãªã¼ãã¬ããªã«ã«ã¢ã¯ã»ã¹ãã¦ããã
SPOFã許容ã§ããã®ã§ãªã¼ãã¬ããªã«ãåé¤ãããã¨ã§éä¿¡æãåæ¸ã§ããã
ãã£ã¦Dã
Q4
RDSã¯db.r5.4xlargeã®ã¤ã³ã¹ã¿ã³ã¹ã¿ã¤ããå©ç¨ãã¦ããã3ã¶æåã«1å¹´åã®db.r5.4xlargeã®RIã2å°åè³¼å ¥ãã¦ãã¾ãã ãµã¼ãã¹ãæé·ãã¦ãããããæ¥ä¸ã«ãªã¼ãã¼ã¤ã³ã¹ã¿ã³ã¹ã®ãªã½ã¼ã¹ãæ¯æ¸ããã±ã¼ã¹ãçºçããããã対å¿ãããã¨ãã¦ãã¾ãã ä¸çªã³ã¹ããæèããã¢ã¼ããã¯ãã£æ¹åã®é¸æè¢ã¯ã©ãã§ããï¼
é¸æ
- A: db.r5.4xlarge(USD 2.28/h)ã®ã¤ã³ã¹ã¿ã³ã¹ã¿ã¤ããæå°å°æ°=1ã§auto scalingãè¨å®ããã
- B: db.r5.2xlarge(USD 1.14/h)ã®ã¤ã³ã¹ã¿ã³ã¹ã¿ã¤ããæå°å°æ°=2ã§auto scalingãè¨å®ããã
- C: db.r6g.4xlarge(USD 2.041/h)ã®ã¤ã³ã¹ã¿ã³ã¹ã¿ã¤ããæå°å°æ°=1ã§auto scalingãè¨å®ããã
- D: db.r6g.2xlarge(USD 1.02/h)ã®ã¤ã³ã¹ã¿ã³ã¹ã¿ã¤ããæå°å°æ°=2ã§auto scalingãè¨å®ããã
çã
B(Aã®æ¹ãæ§è½ãå¤ãããªãã®ã§è¯ãæ°ãããã db.r5.2xlarge ã1å°ã¥ã¤å¢ãããæ¹ãå®ãããã®ãããããªã)
ãã¤ã³ã
- RIã®é©ç¨æ¡ä»¶
- æ§è½ã«ã¤ãã¦
解説
db.r5.4xlargeã®RIã2å°åè³¼å
¥ãã¦ããã®ã§ãr5ç³»ã®ãã¡ããªã¼ã使ããã¨ã§RIã使ç¨ã§ããã
æ§è½ãä¸è¶³ãã¦ãã2å°ã«ãã¤ã¤ãæå°å°æ°ã2ã«ãã¦ãããã¨ã§RIã使ãã¤ã¤ã³ã¹ããæãããã¨ãã§ããã
Q5
RDSã®ç£æ»ãã°ãCloudWatch Logsã«åºåãã¦ããããPutLogEventsæéãé«é¡ã«ãªã£ã¦ãã¾ã£ãããä½ã対çãæã¡ããã¨èãã¦ãã¾ãã
å¹´ã«1åã®ç£æ»æã«å©ç¨ã§ããã°è¯ããã®å¾ç ´æ£ã§ããå ´åãä¸çªã³ã¹ãåæ¸å¹æã®é«ãé¸æè¢ã¯ã©ãã§ããï¼
é¸æ
- A: ã©ã¤ããµã¤ã¯ã«ã«ã¼ã«ãè¨å®ãã1å¹´çµéããããã°ãåé¤ããã
- B: ãã°ã¯ã©ã¹ãInfrequent Accessã«å¤æ´ããã
- C: Infrequent Accessã®ãã°ã°ã«ã¼ããæ°ãã«ä½æããããã«åºåããããã«ããã
- D: CloudWatchã®ãã°ãæ¥æ¬¡ã§S3ã«è»¢éãããã®å¾åé¤ããã
çã
C: Infrequent Accessã®ãã°ã°ã«ã¼ããæ°ãã«ä½æããããã«åºåããããã«ããã
ãã¤ã³ã
- å¹´ã«1åã®ç£æ»æã«å©ç¨ã§ããã°è¯ã
- PutLogEventsãæ¸ãããã
解説
A,Dã ã¨Cloudwatchlogsã¸åºåãã¦ããã®ã§PutLogEventã¯å¤ãããªãã
å¹´ã«1åã®ç£æ»æã«å©ç¨ã§ããã°è¯ãã®ã§Infrequent Accessã使ãã°è¯ãããã°ã°ã«ã¼ãã¯éä¸ããå¤æ´ã§ããªãã
ãã£ã¦Cã
Q6
æ¤è¨¼ç°å¢ã§IaCåã®æ¤è¨¼ãè¡ã£ã¦ãããé »ç¹ã«å¤æ´çãçºçãã¦ãã¾ãã ã»ãã¥ãªãã£ãæ¸å¿µãã¦AWS Configãè¨å®ãæçµçã«ã¡ã¼ã«éç¥ãããä»çµã¿ãæ§ç¯ããããæéãé«ããªã£ã¦ããããè¨å®çãè¦ç´ããã¨ãã¦ãã¾ãã è¦ä»¶ã¨ãã¦ãçµæ¥æéã®ã¿ã¤ãã³ã°ã§æå³ããªãè¨å®ã«ãªã£ã¦ããªããã¨ã確èªã§ããã°åé¡ãªãå ´åã«ãä¸çªã³ã¹ãåæ¸å¹æã®é«ãé¸æè¢ã¯ã©ãã§ããï¼
é¸æ
- A: è¨é²é »åº¦ãå¤æ´ãçºçããã¿ã¤ãã³ã°ã§ã®ã¿è¨é²ãè¡ãç¶ç¶çãªè¨é²ã«ããã
- B: è¨é²é »åº¦ã1æ¥ã«1åè¨é²ãè¡ãæ¥æ¬¡è¨é²ã«ããã
- C: è¨é²æ¦ç¥ãå©ç¨ãããªã½ã¼ã¹ã«çµã£ãç¹å®ã®ãªã½ã¼ã¹ã¿ã¤ãã«ããç¹å®ã®è¨é²é »åº¦ãå¤æ´ãçºçããã¿ã¤ãã³ã°ã§ã®ã¿è¨é²ãè¡ãç¶ç¶çãªè¨é²ã«ããã
- D: è¨é²æ¦ç¥ãå©ç¨ãããªã½ã¼ã¹ã«çµã£ãç¹å®ã®ãªã½ã¼ã¹ã¿ã¤ãã«ããè¨é²é »åº¦ã1æ¥ã«1åè¨é²ãè¡ãæ¥æ¬¡è¨é²ã«ããã
çã
B: è¨é²é »åº¦ã1æ¥ã«1åè¨é²ãè¡ãæ¥æ¬¡è¨é²ã«ããã
ãã¤ã³ã
- çµæ¥æéã®ã¿ã¤ãã³ã°ã ãã®éç¥ã§è¯ã
- ã»ãã¥ãªãã£ãæ¸å¿µãã
解説
è¦ä»¶çã«1æ¥ã«ä¸åã®è¨é²ã ãã§è¯ãã®ã§B,Dãæ®ãã
Dã ã¨æå³ããªããªã½ã¼ã¹(ä¾ãã°ããªã大ããªRDSãç«ã¦ãå ´åãªã©)ãä½ã£ãæã®æ¤ç¥ãã§ããªãã
ãã£ã¦Bã¨ãªãã
Q7
ç¾å¨æ¨æºã®S3ã¹ãã¬ã¼ã¸ã¯ã©ã¹ãå©ç¨ãã¦ãã¾ãããã¹ãã¬ã¼ã¸ã¯ã©ã¹ãè¦ç´ããã¨ã§ã¹ãã¬ã¼ã¸ä¿åæã®åæ¸ãå®ç¾ãããã¨ãã¦ãã¾ãã è¦ä»¶ã¨ãã¦ãªãã¸ã§ã¯ãã«å¯¾ãã¦ã¯å¹´ã«æ°åã¢ã¯ã»ã¹ããå¿ è¦ããããããªç§åä½ã®ã¢ã¯ã»ã¹é度ãæ±ãããã¾ãã ã¹ãã¬ã¼ã¸ã¬ã³ãºã以ä¸ã®éãã®å ´åãä¸çªã³ã¹ãåæ¸å¹æã®é«ãé¸æè¢ã¯ã©ãã§ããï¼
é¸æ
- A: S3 æ¨æº - ä½é »åº¦ã¢ã¯ã»ã¹ (USD 0.0138/GB)
- B: S3 Glacier Instant Retrieval (USD 0.005/GB)
- C: S3 Glacier Flexible Retrieval (USD 0.0045/GB)
- D: S3 Intelligent - Tiering (USD USD 0.005/GB~USD 0.025/GB)
çã
A: S3 æ¨æº - ä½é »åº¦ã¢ã¯ã»ã¹ (USD 0.0138/GB)
ãã¤ã³ã
- ããªç§åä½ã®ã¢ã¯ã»ã¹é度ãæ±ãããã
- å¹´ã«æ°åã¢ã¯ã»ã¹ãã
解説
msã§æå¾ãããã®ã§S3 Glacier Flexible Retrievalã¯ä¸é©ã
Bã ã¨msã§åããããªãã¸ã§ã¯ãæ°ã187.7B ãããGracierã«ç½®ãç´ãã¨ãã«Put æéãçºçããã
Cã®Intelligent-Tieringã¯ãªãã¸ã§ã¯ããµã¤ãºã128KBæªæºã¯ s3 æ¨æºã®ã¹ãã¬ã¼ã¸éé¡ã«ãªãã
ä»åã¯å¹³åã107.1KBãªã®ã§s3æ¨æºæéã«ãªãå¯è½æ§ãé«ãã
ãã£ã¦Aã
次ã®ã¢ã¼ããã¯ãã£ã§ãã
Q8
èªç¤¾åºå¹¹ã·ã¹ãã ã¯ç¤¾å¡ãæ¥åæé(09æï½20æ)ã«ã®ã¿å©ç¨ããããå©ç¨ä¸ã¯å¸¸ã«å¦çãè¡ããã¦ãã¾ãã å¼·åãªã¤ã³ã¹ã¿ã³ã¹ã¿ã¤ããå©ç¨ãã¦ãããããã§ããã ãã³ã¹ãåæ¸ããããã¨èãã¦ãã¾ãã ä¸çªã³ã¹ãåæ¸å¹æã®é«ãé¸æè¢ã¯ã©ãã§ããï¼
é¸æ
- A: èµ·ååæ¢éç¨ãå°å ¥ããã
- B: RIãè³¼å ¥ããã
- C: Compute Savings Plansãå¥ç´ããã
- D: ã¹ãããã¤ã³ã¹ã¿ã³ã¹ãå©ç¨ããã
çã
A: èµ·ååæ¢éç¨ãå°å ¥ããã
ãã¤ã³ã
- 常ã«å¦çãããã
- æ¥åæé(09-20)ã®ã¿å©ç¨
解説
常ã«å¦çããã¦ããåºå¹¹ã·ã¹ãã ãªã®ã§ã¹ãããã¤ã³ã¹ã¿ã³ã¹ã¯ä¸é©ã
ã¾ãRIã¨SavingsPlansã ã¨3-4å²ãããããå®ããªããªãã
ä»åè¦ä»¶çã«12æéãã使ããªãã®ã§èµ·ååæ¢éç¨ãå°å
¥ããã°ã³ã¹ããååï¼5å²ä»¥ä¸ï¼æãããã¨ãã§ããã
ãã£ã¦Aã
Q9
ãªã¼ãã¼ã¤ã³ã¹ã¿ã³ã¹ã¯åºæ¬çã«30%ç¨åº¦ã®ãªã½ã¼ã¹è² è·ã§å®å®ãã¦ãããããããå¦çæ©è½ã追å ãããã¨ã«ãã£ã¦å®æçã«è² è·ãé«é¨°ããããã«ãªã ã¹ã±ã¼ã«ã¢ã¦ãã«ããã³ã¹ãå¢ãç¡è¦ã§ããªããªã£ã¦ãã¾ããã æ¢åã¤ã³ã¹ã¿ã³ã¹ã®è² è·è»½æ¸ãè¦éã«å ¥ãã¤ã¤ãä¸çªã³ã¹ãåæ¸å¹æã®é«ãé¸æè¢ã¯ã©ãã§ããï¼
é¸æ
- A: auto scalingã®æä½å°æ°ã1ã¤å¢ããã3å¹´åæãã®RIãè³¼å ¥ããã
- B: ãããèµ·åæéã«ãªã¼ãã¼ã¤ã³ã¹ã¿ã³ã¹ã追å ããã
- C:ãªã¼ãã¼ã¤ã³ã¹ã¿ã³ã¹ãAurora Serverless v2ã«ããã
- D:ãªã¼ãã¼ã¤ã³ã¹ã¿ã³ã¹ãAurora Serverless v2ã«ããæ¢åã®ã¤ã³ã¹ã¿ã³ã¹ç¸å½ã®ACUç¨ã®RIãè³¼å ¥ããã
çã
B: ãããèµ·åæéã«ãªã¼ãã¼ã¤ã³ã¹ã¿ã³ã¹ã追å ããã
ãã¤ã³ã
- ãããã®å¦ç
- AuroraServerlessã®ã³ã¹ãã«ã¤ãã¦
解説
AuroraServerless㯠ACUãé«ãã
ä»åã®ã±ã¼ã¹ã ã¨ãªã¼ãã¼ãç½®ãæãããã¨ã§ã³ã¹ããå¢å ããå¯è½æ§ãããããC,Dã¯ä¸é©ã
A ã®æä½å°æ°ãå¢ããã¨å¸¸æã³ã¹ããçºçããã
è¦ä»¶çã«ã¯ãããã§ã®å©ç¨ãªã®ã§ã¤ã³ã¹ã¿ã³ã¹ãé©å®è¿½å ããæ¹ãã³ã¹ããæãããã¨ãã§ããã
ãã£ã¦Bã
Q10
NATã²ã¼ãã¦ã§ã¤ã®éä¿¡éãæ°ã«ãªã£ã¦ãã¾ãã ãããéãã®ã¯ECSããã®éä¿¡ã ãã§ãããå¤é¨APIé£æºãã©ã¤ãã©ãªã®åå¾çã¯åå¨ãã¾ããã NATã²ã¼ãã¦ã§ã¤å¨è¾ºã«å¯¾ãã¦ãä¸çªã³ã¹ãåæ¸å¹æã®é«ãé¸æè¢ã¯ã©ãã§ããï¼
é¸æ
- A: Gatewayåã®S3,ECRç¨VPCã¨ã³ããã¤ã³ãã¨Interfaceåã®CloudWatchç¨ã®ã¨ã³ããã¤ã³ããä½æãããECRã«ã¯ãã«ã¹ã«ã¼ãã£ãã·ã¥ã®è¨å®ã追å ããã
- B: Gatewayåã®S3,ECRç¨VPCã¨ã³ããã¤ã³ãã¨Interfaceåã®CloudWatchç¨ã®ã¨ã³ããã¤ã³ããä½æãããECRã«ã¯ã©ã¤ããµã¤ã¯ã«ã®è¨å®ã追å ããã
- C: Gatewayåã®S3VPCã¨ã³ããã¤ã³ãã¨Interfaceåã®ECRç¨,CloudWatchç¨ã®ã¨ã³ããã¤ã³ããä½æãããECRã«ã¯ãã«ã¹ã«ã¼ãã£ãã·ã¥ã®è¨å®ã追å ããã
- D: Gatewayåã®S3VPCã¨ã³ããã¤ã³ãã¨Interfaceåã®ECRç¨,CloudWatchç¨ã®ã¨ã³ããã¤ã³ããä½æãããECRã«ã¯ã©ã¤ããµã¤ã¯ã«ã®è¨å®ã追å ããã
çã
C: Gatewayåã®S3VPCã¨ã³ããã¤ã³ãã¨Interfaceåã®ECRç¨,CloudWatchç¨ã®ã¨ã³ããã¤ã³ããä½æãããECRã«ã¯ãã«ã¹ã«ã¼ãã£ãã·ã¥ã®è¨å®ã追å ããã
ãã¤ã³ã
- ã¨ã³ããã¤ã³ãã«ã¤ãã¦
- ECSããã®éä¿¡ã ã
解説
gatewayåã®VPCã¨ã³ããã¤ã³ãã¯S3ã DynamoDB ãããªãããã£ã¦A,Bã¯ä¸é©ã
ã¾ãECSã®éä¿¡ãªã®ã§ã¤ã¡ã¼ã¸ã®pullããã¦ãããECRã«ä¿ç®¡ããã¦ããdocker imageã®ã©ã¤ããµã¤ã¯ã«ã¯ä»åé¢ä¿ãªãã
ãã£ã¦Cã¨ãªãã
Q11
CloudFrontã«å²å¼ããããã¨ãçºè¦ããã®ã§ããã£ãã·ã¥ã«ããé度æ¹åã¨ã³ã¹ãåæ¸å¹æãæå¾ ãã¦å©ç¨ãæ¤è¨ãã¦ãã¾ãã åALBã®ç·éä¿¡éã¯çãããapi.xxx.comã¸ã®HTTPãªã¯ã¨ã¹ããweb.xxx.comã®3,000åããã¨ããä¸çªã³ã¹ãåæ¸å¹æã®é«ãé¸æè¢ã¯ã©ãã§ããï¼
é¸æ
- A: api.xxx.comã®ALBã®åã«CloudFrontãé ç½®ããSavings Plansãé©ç¨ããã
- B: api.xxx.comã®ALBã®åã«CloudFrontãé ç½®ããSecurity Savings Bundleãé©ç¨ããã
- C: web.xxx.comã®ALBã®åã«CloudFrontãé ç½®ããSavings Plansãé©ç¨ããã
- D: web.xxx.comã®ALBã®åã«CloudFrontãé ç½®ããSecurity Savings Bundleãé©ç¨ããã
çã
D: web.xxx.comã®ALBã®åã«CloudFrontãé ç½®ããSecurity Savings Bundleãé©ç¨ããã
ãã¤ã³ã
- Cloudfrontã®ã³ã¹ãåæ¸æ¹æ³ã«ã¤ãã¦
- ï¼ãªã¯ã¨ã¹ããããã®éä¿¡éãå¤ãã®ã¯ã©ã¡ãã
解説
Cloudfrontã®ã³ã¹ãåæ¸ã¯Security Savings Bundleã¨ããååã§ããããã£ã¦A,Cã¯ä¸é©ã
ã¾ãç·éä¿¡éãä¸ç·ãªã®ã§1ãªã¯ã¨ã¹ãçã«ã¯webã®æ¹ãéä¿¡éãå¤ããã¤ã¾ãwebããã£ãã·ã¥ããããã¨ã§ã³ã¹ããåæ¸ã§ãã (ã¾ãapiã¯get requestããã£ãã·ã¥ãããããªãã±ã¼ã¹ãå¤ã)
ãã£ã¦Dã
Q12
æ¬çªç°å¢ã¨æ¤è¨¼ç°å¢ã§åãæ§æã§ãµã¼ãã¹ãæ§ç¯ãã¦ãã¾ãã CloudWatchã®æéãå¢ãã¦ãããããã³ã¹ãåæ¸ã®æ½çãæã¨ãã¨ãã¦ãã¾ãã ä¸çªã³ã¹ããæèããé¸æè¢ã¯ã©ãã§ããï¼
é¸æ
- A: æ¤è¨¼ç°å¢ã®ECSã®Container Insightãç¡å¹åããã
- B: æ¤è¨¼ç°å¢ã®RDSã®Performance Insightsãç¡å¹åããã
- C: æ¬çªç°å¢ã¨æ¤è¨¼ç°å¢ã®CloudWatchã«åºåãã¦ãããã°ãKinesis Data Firehoseã§S3ã«è»¢éããæ¨æºæ©è½ã§gzå½¢å¼ã«å§ç¸®ããã
- D: DataDogçå¤é¨ãµã¼ãã¹ããCloudWatchã®ã¡ããªã¯ã¹ãç£è¦ããããã«ããã
çã
C: æ¬çªç°å¢ã¨æ¤è¨¼ç°å¢ã®CloudWatchã«åºåãã¦ãããã°ãKinesis Data Firehoseã§S3ã«è»¢éããæ¨æºæ©è½ã§gzå½¢å¼ã«å§ç¸®ããã
ãã¤ã³ã
- CloudWatchã®æéãå¢ãã¦ãã=>PutLogEvent ã PutMetrics çã®æéãé«ã
解説
AãB 㯠PutLogEvent ã PutMetrics çãæ¸ãããå¯è½æ§ã¯ãããæ¤è¨¼ç°å¢ã®ã¿ãªã®ã§å¹æãèããã
D 㯠Datadog ããã® GetMetrics ãªã¯ã¨ã¹ããå¢ã CloudWatch ã®æéãå¢ããã
C 㯠kinesis ã¸ã®æéã¯çºçãããPutLogEvent ãçºçããªããªãã®ã§å®ããªãã
ãã£ã¦Cã
Q13
ECSã®ã¿ã¹ã¯å®ç¾©jsonã¯ç»åã®éãã§ã³ã³ããã¯1ã¤ã®ã¿å®ç¾©ããã¦ãã¾ãã ç¡é§ãªãªã½ã¼ã¹ããããã¨ãåãã£ãã®ã§ããã¥ã¼ãã³ã°ãè¡ãå¿ è¦ãããã¾ãã ä¸çªæé©ãªã³ã¹ããæèããé¸æè¢ã¯ã©ãã§ããï¼
é¸æ
- A: cpu:1024 , memory:4096 , containerDefinitionså ã®cpu:1024 , containerDefinitionså ã®memory:4096
- B: cpu:512 , memory:3072 , containerDefinitionså ã®cpu:1024 , containerDefinitionså ã®memory:4096
- C: cpu:512 , memory:3072 , containerDefinitionså ã®cpu:512 , containerDefinitionså ã®memory:3072
- D: cpu:512 , memory:3072 , containerDefinitionså ã®cpu: 0 , containerDefinitionså ã®memory:-
çã
D: cpu:512 , memory:3072 , containerDefinitionså ã®cpu: 0 , containerDefinitionså ã®memory:-
ãã¤ã³ã
- cpuã¨memoryã®è¨å®ã«ã¤ãã¦
- ç¡é§ãªãªã½ã¼ã¹
解説
Aã¯ç¡é§ãªãªã½ã¼ã¹ã®ãã¥ã¼ãã³ã°ãã§ãã¦ããªãã
B㯠CPUãã¡ã¢ãªã¨ãã«ã¿ã¹ã¯å®ç¾©ãã containerDefinitionså
ã®è¨å®ã大ããã®ã§ç»é²ã§ããªãã
Cãã¿ã¹ã¯å®ç¾©ã¨ containerDefinitionså
ã®è¨å®ãåããäºç´ããã容éãããã¯ããªã®ã§ç»é²ã§ããªãã
ãã£ã¦Dã
ãã¨ãã
çããã¯ãããåæ¸ã§ãã¾ãããï¼ ãã®ãããªåé¡ãä½æããã ãæ¹ãã¦ã³ã¹ãåæ¸ã«ã¤ãã¦ã®ç解ãæ·±ããæ©ä¼ãããã ãã¾ããæ ªå¼ä¼ç¤¾DELTAæ§ã«æ¹ãã¦æè¬ç³ãä¸ãã¾ãã
æ ªå¼ä¼ç¤¾DELTAæ§ã®ãç´¹ä»
*1:æ¬åé¡ã®ææ¦ã¯2024å¹´10æ8æ¥ã§ãµã¼ãã¹ãçµäºããã¿ããã§ãã