A software development company is designing a new continuous integration and continuous deployment (CI/CD) pipeline on AWS. The pipeline must run multiple automated tests on isolated, clean environments for every code commit, and then clean up all resources immediately after the tests complete. Which two of the following design decisions demonstrate the application of the 'disposable resources' design principle?
- Using AWS CloudFormation templates to programmatically provision identical testing environments for each commit and deleting the stacks automatically after test execution.Answer
- Configuring the test runner to launch temporary Amazon EC2 Spot Instances that boot up, execute the tests, and are terminated immediately upon completion.Answer
- CMaintaining a single, highly scaled Amazon EC2 instance that remains active 24/7 to host all test environments sequentially.
- DDeploying a stateful database on a dedicated Amazon EC2 instance with permanent block storage that cannot be deleted or re-provisioned.
- EManually configuring network routing and subnet configurations through the AWS Management Console for every test execution to avoid automation overhead.
Answer
The correct decisions are: using AWS CloudFormation templates to programmatically provision and delete testing environments, and using temporary Amazon EC2 Spot Instances that are terminated immediately after test execution.
The correct design decisions involve using AWS CloudFormation to automatically provision and delete testing environments, and utilizing temporary Amazon EC2 Spot Instances that are terminated immediately after use. Both decisions treat infrastructure as temporary and disposable, allowing environments to be created and destroyed programmatically to optimize costs and maintain consistency.
Step-by-Step Solution
Key Concept
Disposable resources instead of fixed servers is a core AWS Cloud design principle. It states that infrastructure components should be treated as temporary assets that can be programmatically launched, configured, and terminated on demand, rather than being treated as permanent, static servers.
Estimated Time:2m 30s