AWS Certified Solutions Architect Professional SAP-C02 Practice Question
A solutions architect is responsible for a critical three-tier web application deployed across multiple Availability Zones using Auto Scaling groups for the web and application tiers. The company wants to proactively validate its automated recovery procedures to ensure operational excellence. The architect needs to design a strategy to simulate the failure of a specific percentage of Amazon EC2 instances within the application tier, verifying that the Auto Scaling group correctly launches replacement instances and the Application Load Balancer successfully redirects traffic. A key requirement is to immediately halt the experiment if critical performance metrics, monitored via Amazon CloudWatch, degrade beyond a predefined threshold.
Integrate a chaos testing stage into the CI/CD pipeline. The stage will use an AWS CloudFormation template to update the Auto Scaling group's launch template to an invalid AMI ID, triggering replacement failures. Monitor the recovery process using CloudWatch dashboards.
Develop an AWS Systems Manager Automation runbook that uses the aws:runCommand action to execute a script that stops the application process on a random subset of instances. Trigger the runbook on a schedule and create a separate AWS Lambda function, triggered by a CloudWatch alarm, to stop the Automation execution if KPIs are breached.
Use AWS Fault Injection Simulator (FIS) to create an experiment template. Configure the experiment to target the application tier's instances by tag and use the aws:ec2:terminate-instances action. Configure a CloudWatch alarm based on application key performance indicators (KPIs) and set it as a stop condition within the FIS experiment.
Configure an AWS Resilience Hub assessment for the application. During a maintenance window, manually terminate a percentage of the EC2 instances using the AWS Management Console. Use the Resilience Hub dashboard to validate that the application's Recovery Time Objective (RTO) was met.
The correct answer is to use AWS Fault Injection Simulator (FIS). FIS is a fully managed service specifically designed for running controlled fault injection experiments to test an application's resilience. It allows for targeting a specific percentage of resources, such as EC2 instances, and provides pre-configured actions like 'aws:ec2:terminate-instances'. Crucially, FIS integrates directly with Amazon CloudWatch alarms, which can be configured as stop conditions. If a CloudWatch alarm is triggered, FIS automatically stops the experiment, providing an essential safety mechanism that directly fulfills the key requirement to halt the test if performance degrades.
The other options are less suitable. Using an AWS Systems Manager Automation runbook is possible but more complex; you would need to manually build the stop-condition logic using a separate Lambda function and EventBridge, whereas FIS provides this natively. AWS Resilience Hub is used to assess, track, and provide recommendations on application resilience, often integrating with FIS for testing, but it does not execute the fault injection experiments itself. Modifying the CI/CD pipeline to update the Auto Scaling group's launch template to an invalid AMI is a heavy-handed approach that doesn't simulate the specific failure of a percentage of running instances and lacks the granular control and safety features of FIS.
Ask Bash
Bash is our AI bot, trained to help you pass your exam. AI Generated Content may display inaccurate information, always double-check anything important.
What is the AWS Fault Injection Simulator (FIS), and how does it work?
Open an interactive chat with Bash
How do CloudWatch alarms act as stop conditions in FIS experiments?
Open an interactive chat with Bash
Why is FIS preferred over AWS Systems Manager Automation for this use case?
Open an interactive chat with Bash
AWS Certified Solutions Architect Professional SAP-C02
Continuous Improvement for Existing Solutions
Your Score:
Report Issue
Bash, the Crucial Exams Chat Bot
AI Bot
Loading...
Loading...
Loading...
IT & Cybersecurity Package Join Premium for Full Access