exam questions

Exam AWS Certified SysOps Administrator - Associate All Questions

View all questions & answers for the AWS Certified SysOps Administrator - Associate exam

Exam AWS Certified SysOps Administrator - Associate topic 1 question 211 discussion

A company is implementing a monitoring solution that is based on machine learning. The monitoring solution consumes Amazon EventBridge (Amazon CloudWatch Events) events that are generated by Amazon EC2 Auto Scaling. The monitoring solution provides detection of anomalous behavior such as unanticipated scaling events and is configured as an EventBridge (CloudWatch Events) API destination.

During initial testing, the company discovers that the monitoring solution is not receiving events. However, Amazon CloudWatch is showing that the EventBridge (CloudWatch Events) rule is being invoked. A SysOps administrator must implement a solution to retrieve client error details to help resolve this issue.

Which solution will meet these requirements with the LEAST operational effort?

  • A. Create an EventBridge (CloudWatch Events) archive for the event pattern to replay the events. Increase the logging on the monitoring solution. Use replay to invoke the monitoring solution. Examine the error details.
  • B. Add an Amazon Simple Queue Service (Amazon SQS) standard queue as a dead-letter queue for the target. Process the messages in the dead-letter queue to retrieve error details.
  • C. Create a second EventBridge (CloudWatch Events) rule for the same event pattern to target an AWS Lambda function. Configure the Lambda function to invoke the monitoring solution and to record the results to Amazon CloudWatch Logs. Examine the errors in the logs.
  • D. Configure the EventBridge (CloudWatch Events) rule to send error messages to an Amazon Simple Notification Service (Amazon SNS) topic.
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
Domdom120
Highly Voted 2 years, 1 month ago
Selected Answer: B
B. The questions states: "A SysOps administrator must implement a solution to retrieve client error details to help resolve this issue." Supporting answer: "Amazon SQS supports dead-letter queues (DLQ), which other queues (source queues) can target for messages that can't be processed (consumed) successfully. Dead-letter queues are useful for debugging your application or messaging system because they let you isolate unconsumed messages to determine why their processing doesn't succeed." https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-dead-letter-queues.html I'm really disappointed in the comments sections for this exam in particular. If you're going to take the time to comment, please include reference documentation that supports your choice.
upvoted 17 times
robotgeek
1 year, 6 months ago
Agree with providing sources but disagree that the dead-letter would allow to "retrieve client error details", the SQS deadletter would hold the message, not any information about the error. This is exactly what option A does, allow you to automatically replay messages and see the error logging in the external (to AWS) application
upvoted 2 times
...
...
Gomer
Highly Voted 2 years ago
Selected Answer: A
Answer is absolutely "A" based on the links already provided. You need to replay the events, and try and identify why the monitoring app isn't able to contact EventBridge API. If you replace the monitoring app with SQS que, your just going to log Auto Scaling events. That isn't going to help you figure out why monitoring app isn't getting these same events through the EventBridge API. The SQS "B" answer may be easier than "A", but it isn't going to do any good on debugging EventBridge API access issue (probably a permissions/role/policy issue)
upvoted 8 times
jipark
1 year, 8 months ago
I agree, DLQ shows just Queue connection error.
upvoted 1 times
...
...
numark
Most Recent 5 months ago
Selected Answer: B
B>>This option is most suitable because Amazon EventBridge allows you to configure a dead-letter queue (DLQ) to handle events that fail to be delivered to the target. By directing these failed events to an Amazon SQS queue, you can store the events and analyze them to determine why the delivery failed, which may include client error details. This solution requires minimal operational effort as it leverages AWS's built-in mechanisms for error handling without the need to create additional resources or logging mechanisms.Creating an archive and replaying events is a more complex solution that might be necessary if you need to resend the events after fixing the issue. However, it doesn't directly address the requirement to retrieve error details and involves more operational steps compared to setting up a dead-letter queue.
upvoted 2 times
...
rex3
6 months, 4 weeks ago
Selected Answer: B
Dead-letter queues (DLQ) are a feature in EventBridge that allows failed events (such as client errors when invoking an API destination) to be sent to a dead-letter queue (in this case, an Amazon SQS queue).
upvoted 1 times
...
VerRi
9 months ago
Selected Answer: A
EventBridge Archive can retain event copies and replay them for debugging.
upvoted 2 times
...
AWSdeveloper08
1 year, 8 months ago
Selected Answer: A
https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-archive.html
upvoted 6 times
...
Christina666
1 year, 9 months ago
Selected Answer: A
EventBridge can now archive and replay events: You can now create an encrypted archive of the events published to an event bus. You can archive all events, or filter them using the same pattern matching syntax used by EventBridge rules. You can store events indefinitely, or set up a retention period after which older events are automatically removed from the archive. You can also replay the events stored in an archive. Events are replayed to all rules defined for the event bus (but not to managed rules created by other AWS services) or to the rules you specify. Replayed events contain an extra replay-name field in case you need to recognize them. When starting a replay, you define a time frame, and only events within that time frame are replayed. Currently, you can only replay events to the same event bus from which they were archived.
upvoted 4 times
...
RayHK
1 year, 9 months ago
why not C? https://docs.aws.amazon.com/lambda/latest/dg/services-cloudwatchevents.html
upvoted 1 times
...
Vivec
2 years ago
Selected Answer: B
Based on the requirements to retrieve client error details with the least operational effort, option B would be the best solution. Adding an SQS standard queue as a dead-letter queue for the target will capture and store any failed messages, including error details. The messages can then be processed later to retrieve the error details, without requiring any additional configurations or modifications to the monitoring solution. Option A requires creating an EventBridge (CloudWatch Events) archive and replaying events, increasing logging, and then examining the error details. This solution requires additional effort and may not necessarily capture the exact error details that occurred.
upvoted 2 times
...
thatTeller30
2 years, 1 month ago
Selected Answer: A
Im in my opinion its A - https://aws.amazon.com/blogs/aws/new-archive-and-replay-events-with-amazon-eventbridge/ mainly because in the question it states they use the EventBridge API, meaning nothing goes into SQS and its unrelated to the question. By Default there's not invocation between EventBridge and SQS. U can however, create an Invoke Rule from EventBridge into SQS.
upvoted 2 times
...
braveheart22
2 years, 1 month ago
A is the correct answer from my point of view. After carefully reading the question, I agree with "yeacuz" argument from the link below. https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-archive.html In EventBridge, you can create an archive of events so that you can easily replay them at a later time. For example, you might want to replay events to recover from errors or to validate new functionality in your application.
upvoted 1 times
...
awsguru1998
2 years, 2 months ago
Option D, which is to configure the EventBridge (CloudWatch Events) rule to send error messages to an Amazon Simple Notification Service (Amazon SNS) topic, would be more efficient in terms of operational effort compared to Option C. This is because Option D requires only a simple configuration of the EventBridge (CloudWatch Events) rule and does not require the creation of a second EventBridge rule or a Lambda function. The error messages can be easily retrieved from the Amazon SNS topic and examined. I apologize for the error in my previous answer.
upvoted 1 times
defmania00
2 years, 2 months ago
Why would you sent error messages to SNS? Doesn't make any sense to me. An Amazon SNS topic is a logical access point that acts as a communication channel. A topic lets you group multiple endpoints (such as AWS Lambda, Amazon SQS, HTTP/S, or an email address).
upvoted 1 times
...
...
yeacuz
2 years, 3 months ago
Selected Answer: A
Answer is A: "In EventBridge, you can create an archive of events so that you can easily replay them at a later time. For example, you might want to replay events to recover from errors or to validate new functionality in your application." https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-archive.html
upvoted 4 times
...
zolthar_z
2 years, 3 months ago
Selected Answer: B
Answer is B
upvoted 3 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago