Bài tập · 2 phút
Phân loại tình huống theo scaling policy
0/2
Từ khóa của phần nàyChọn một từ để xem nghĩa trước khi đọc
Phân loại từng tình huống vào scaling policy phù hợp nhất. Trên thiết bị di động: chọn thẻ, sau đó chọn ô đích.
Giữ CPU ở 50%
Giữ số message trên mỗi instance ổn định
Ngày cuối tháng 9 giờ sáng cần 10 instance
Mỗi thứ Hai trước giờ mở bán
Tải lặp lại theo ngày và tuần, cần chuẩn bị capacity trước
CPU 70–85% thêm 2 instance, trên 85% thêm 5 instance
Target trackingDuy trì giá trị mục tiêu
ScheduledTheo lịch xác định trước
PredictiveDự báo từ dữ liệu lịch sử
Step scalingMức điều chỉnh theo độ lớn breach
Câu hỏi kiểm tra
Với vai trò người thiết kế hệ thống MFTECH, chọn phương án phù hợp.
1. MFTECH cần duy trì tối thiểu 4 instance kể cả khi một AZ gặp sự cố, với chi phí thấp nhất. Phương án bố trí nào phù hợp?
2. Sau đợt khuyến mãi, ASG của MFTECH có 3 instance tại AZ-A và 4 instance tại AZ-B, sử dụng default termination policy. Instance nào bị terminate trước?
3. Đối tác đẩy hàng nghìn đơn hàng vào SQS cùng lúc, worker EC2 không xử lý kịp. Cần scale theo metric nào?
4. Kỹ sư cần vá hệ điều hành cho một instance trong ASG mà ASG không thay thế instance đó trong quá trình vá. Thao tác nào phù hợp?
5. Bảng lương chạy lúc 9:00 ngày cuối tháng và cần 10 instance; ngày thường 2 instance là đủ. Cấu hình nào phù hợp?
6. Worker xử lý đơn hàng từ SQS không đứng sau load balancer. Script giám sát phát hiện worker treo và gọi SetInstanceHealth với trạng thái Unhealthy. ASG xử lý thế nào?
7. MFTECH mở thêm Region us-east-1 và muốn instance tại Singapore và Virginia cùng thuộc một Auto Scaling group với minimum 4. Đánh giá nào đúng?
8. Đơn hàng tăng đột ngột gấp bốn lần. Policy nào phản ứng chậm nhất?
Exercise · 2 phút
Classify the scenarios by scaling policy
0/2
Từ khóa của phần nàyChọn một từ để xem nghĩa trước khi đọc
Sort each scenario into the scaling policy that fits it best. On a mobile device: tap a card, then tap the target box.
Keep CPU at 50%
Keep the number of messages per instance steady
10 instances needed at 9 a.m. on the last day of the month
Every Monday before sales open
Load repeats daily and weekly; capacity must be prepared in advance
CPU 70–85% adds 2 instances, above 85% adds 5 instances
Target trackingMaintain a target value
ScheduledOn a predefined schedule
PredictiveForecast from historical data
Step scalingAdjustment by breach size
Câu hỏi kiểm tra
Với vai trò người thiết kế hệ thống MFTECH, chọn phương án phù hợp.
1. MFTECH must keep at least 4 instances running even when one AZ fails, at the lowest cost. Which placement fits?
2. After a sale, MFTECH's ASG has 3 instances in AZ-A and 4 instances in AZ-B and uses the default termination policy. Which instance is terminated first?
3. A partner pushes thousands of orders into SQS at once, and the EC2 workers cannot keep up. Which metric should drive scaling?
4. An engineer needs to patch the operating system of one instance in an ASG without the ASG replacing that instance during patching. Which action fits?
5. Payroll runs at 9:00 on the last day of the month and needs 10 instances; 2 are enough on normal days. Which configuration fits?
6. An SQS order worker is not behind a load balancer. A monitoring script detects that the worker hangs and calls SetInstanceHealth with status Unhealthy. What does the ASG do?
7. MFTECH opens us-east-1 and wants instances in Singapore and Virginia in one Auto Scaling group with a minimum of 4. Which assessment is correct?
8. Orders suddenly quadruple. Which policy reacts the slowest?