DOP-C02 · Question #252
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…
The correct answer is D. Configure the EventBridge rule to use an Amazon Simple Queue Service (Amazon SQS) FIFO E. Create a log group in Amazon CloudWatch Logs Specify the log group as an additional target of F. Update the application code base to use the AWS X-Ray SDK tracing feature to instrument the. To troubleshoot undelivered EventBridge events, prevent loss, and enable viewing without major application redeployment, one should configure a DLQ, log events, and trace their flow.
Question
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.)
Options
- ALaunch AWS Device Farm with a standard test environment and project to run a specific build of
- BCreate an Amazon S3 bucket. Enable AWS CloudTrail. Create a CloudTrail trail that specifies the
- CConfigure the EventBridge rule to use an Amazon Simple Queue Service (Amazon SQS)
- DConfigure the EventBridge rule to use an Amazon Simple Queue Service (Amazon SQS) FIFO
- ECreate a log group in Amazon CloudWatch Logs Specify the log group as an additional target of
- FUpdate the application code base to use the AWS X-Ray SDK tracing feature to instrument the
How the community answered
(62 responses)- A6% (4)
- B32% (20)
- C15% (9)
- D47% (29)
Why each option
To troubleshoot undelivered EventBridge events, prevent loss, and enable viewing without major application redeployment, one should configure a DLQ, log events, and trace their flow.
AWS Device Farm is used for testing mobile and web applications, which is unrelated to troubleshooting EventBridge event delivery issues.
AWS CloudTrail logs API calls to AWS services, but it does not provide detailed information about the content or delivery status of application events processed by EventBridge.
While an SQS standard queue can be used as a DLQ, an SQS FIFO queue (Option D) is preferable for troubleshooting EventBridge event loss because it preserves the order of events, which is critical for analysis.
Configuring the EventBridge rule with an Amazon SQS FIFO queue as a Dead-Letter Queue (DLQ) ensures that events failing delivery to their primary target are retained in order for later inspection, thus preventing loss and aiding troubleshooting.
Adding an Amazon CloudWatch Logs log group as an additional target for the EventBridge rule allows all matching events to be captured and viewed in a centralized log stream, providing visibility into event content and flow for debugging purposes.
Updating the application code to incorporate the AWS X-Ray SDK tracing feature enables end-to-end visibility of event processing across services, which is critical for identifying bottlenecks and failures in the event delivery path.
Concept tested: EventBridge monitoring, troubleshooting, and resilience
Source: https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-dlq.html
Topics
Community Discussion
No community discussion yet for this question.