AWS Certified DevOps Engineer – Professional (DOP-C02) — Question 364
A company uses a pipeline in AWS CodePipeline to deploy an application. The company created an AWS Fault Injection Service (AWS FIS) experiment template to test the resiliency of the application. A DevOps engineer needs to integrate the experiment into the pipeline.
Which solution will meet this requirement?
Answer options
- A. Configure a new stage in the pipeline that includes an AWS FIS action. Configure the action to reference the AWS FIS experiment template. Grant the pipeline access to start the experiment.
- B. Create an Amazon EventBridge scheduler. Grant the scheduler permission to start the AWS FIS experiment. Configure a new stage in the pipeline that includes an action to invoke the EventBridge scheduler.
- C. Create an AWS Lambda function to start the AWS FIS experiment. Grant the Lambda function permission to start the experiment. Create a new stage in the pipeline that has a Lambda action. Set the action to invoke the Lambda function.
- D. Export the AWS FIS experiment template to an Amazon S3 bucket. Create an AWS CodeBuild unit test project that has a buildspec that starts the AWS FIS experiment. Grant the CodeBuild project access to start the experiment. Configure a new stage in the pipeline that includes an action to run the CodeBuild unit test project.
Correct answer: C
Explanation
AWS CodePipeline does not have a native, direct pipeline action for AWS Fault Injection Service (AWS FIS), meaning a custom integration is required. Using an AWS Lambda function to trigger the AWS FIS experiment through the AWS SDK is the standard, serverless way to integrate this step into a pipeline stage. Other options either rely on non-existent native actions or introduce unnecessary complexity compared to a simple Lambda function.