‹ All SAP-C02 questions

SAP-C02 Practice Question 97: Fault Injection Experiment Stop Condition

AWS Certified Solutions Architect – Professional (SAP-C02) · Test 10 · question 7 of 10

Continuous Improvementmedium

Before a major launch, a company wants evidence that its Auto Scaling based web application keeps serving traffic when a share of its EC2 instances is suddenly terminated. The test must run in the production-like environment, must stop automatically if the application's error rate alarm goes into alarm, and must be repeatable before every release without engineers terminating instances by hand.

Which solution meets these requirements?

Select one answer
Show answer and explanation

Answer:

  • A. Create an AWS FIS experiment template that terminates a share of tagged instances, with a CloudWatch alarm on the error rate as its stop condition

AWS Fault Injection Service is *"a managed service that enables you to perform fault injection experiments on your AWS workloads"*, based on *"the principles of chaos engineering"*. An experiment template holds *"the actions, targets, and stop conditions"*: an action such as terminating instances, targets selected *"based on specific criteria, such as tags"*, and a *stop condition* that is *"a mechanism to stop an experiment if it reaches a threshold that you define as an Amazon CloudWatch alarm."* The template is reusable, so the test is repeatable before every release (option A). AWS recommends first running experiments in a pre-production environment.

- B is wrong because manual termination is not repeatable or safe, and there is no automatic stop when the error rate rises. - C is wrong because a load test creates traffic but does not inject the failure of instances, so it does not show how the application behaves when they are lost. - D is wrong because Trusted Advisor checks configuration against best practices. It does not test how the running application behaves under failure.

Reference: What is AWS Fault Injection Service?

Practice Test 10 ›

Study guides for SAP-C02