AWS Certified DevOps Engineer – Professional (DOP-C02) — Question 226
A company has an event-driven JavaScript application. The application uses decoupled AWS managed services that publish, consume, and route events. During application testing, events are not delivered to the target that is specified by an Amazon EventBridge rule.
A DevOps team must provide application testers with additional functionality to view, troubleshoot, and prevent the loss of events without redeployment of the application.
Which combination of steps should the DevOps team take to meet these requirements? (Choose three.)
Answer options
- A. Launch AWS Device Farm with a standard test environment and project to run a specific build of the application.
- B. Create an Amazon S3 bucket. Enable AWS CloudTrail. Create a CloudTrail trail that specifies the S3 bucket as the storage location.
- C. Configure the EventBridge rule to use an Amazon Simple Queue Service (Amazon SQS) standard queue as a dead-letter queue.
- D. Configure the EventBridge rule to use an Amazon Simple Queue Service (Amazon SQS) FIFO queue as a dead-letter queue.
- E. Create a log group in Amazon CloudWatch Logs Specify the log group as an additional target of the EventBridge rule.
- F. Update the application code base to use the AWS X-Ray SDK tracing feature to instrument the code with support for the X-Amzn-Trace-Id header.
Correct answer: B, C, E
Explanation
Option B is correct because creating an S3 bucket with CloudTrail allows for event logging, which helps in troubleshooting. Option C is also correct since configuring the EventBridge rule to use an SQS standard queue as a dead-letter queue ensures that undelivered events can be retained for analysis. Option E is valid as well, as logging events to CloudWatch provides visibility into event processing and potential issues. Options A, D, and F do not directly address the requirements for troubleshooting and preventing event loss.