A software development company is migrating its testing pipeline to the AWS Cloud. The operations team notices that manual configuration updates on staging servers have led to inconsistent test results across different release cycles. The team wants to adopt a design principle that ensures test environments are clean, predictable, and free from configuration drift, while also minimizing costs when tests are not running. Which of the following approaches best demonstrates the AWS Cloud design principle of using disposable resources to meet these requirements?
- AMaintain a single, dedicated Amazon EC2 instance that runs continuously, and manually apply updates and cleanup scripts after each test cycle.
- Define the testing environment as code to programmatically launch fresh Amazon EC2 instances for each test run, and terminate the instances immediately after testing completes.Cevap
- CConfigure an Auto Scaling group with a permanent minimum capacity of five instances, scaling up the instance sizes during peak test times.
- DDeploy the application, database, and test suite together on a single, large Amazon EC2 instance to ensure tight coupling and minimize communication latency.
Cevap
Define the testing environment as code to programmatically launch fresh Amazon EC2 instances for each test run, and terminate the instances immediately after testing completes.
The correct answer is to programmatically launch fresh instances for each test run and terminate them afterwards. This defines the 'disposable resources' principle where infrastructure is treated as temporary, ensuring a consistent test state free of drift and avoiding charges for idle resources.
Adım Adım Çözüm
Anahtar Kavram
Disposable Resources
Tahmini Süre:1m 15s