Welcome to ExamTopics
ExamTopics Logo
- Expert Verified, Online, Free.
exam questions

Exam AWS Certified Developer - Associate DVA-C02 All Questions

View all questions & answers for the AWS Certified Developer - Associate DVA-C02 exam

Exam AWS Certified Developer - Associate DVA-C02 topic 1 question 212 discussion

A company uses Amazon DynamoDB as a data store for its order management system. The company frontend application stores orders in a DynamoDB table. The DynamoDB table is configured to send change events to a DynamoDB stream. The company uses an AWS Lambda function to log and process the incoming orders based on data from the DynamoDB stream.

An operational review reveals that the order quantity of incoming orders is sometimes set to 0. A developer needs to create a dashboard that will show how many unique customers this problem affects each day.

What should the developer do to implement the dashboard?

  • A. Grant the Lambda function’s execution role permissions to upload logs to Amazon CloudWatch Logs. Implement a CloudWatch Logs Insights query that selects the number of unique customers for orders with order quantity equal to 0 and groups the results in 1-day periods. Add the CloudWatch Logs Insights query to a CloudWatch dashboard.
  • B. Use Amazon Athena to query AWS CloudTrail API logs for API calls. Implement an Athena query that selects the number of unique customers for orders with order quantity equal to 0 and groups the results in 1-day periods. Add the Athena query to an Amazon CloudWatch dashboard.
  • C. Configure the Lambda function to send events to Amazon EventBridge. Create an EventBridge rule that groups the number of unique customers for orders with order quantity equal to 0 in 1-day periods. Add a CloudWatch dashboard as the target of the rule.
  • D. Turn on custom Amazon CloudWatch metrics for the DynamoDB stream of the DynamoDB table. Create a CloudWatch alarm that groups the number of unique customers for orders with order quantity equal to 0 in 1-day periods. Add the CloudWatch alarm to a CloudWatch dashboard.
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
Claire_KMT
Highly Voted 1 year ago
A. Grant the Lambda function’s execution role permissions to upload logs to Amazon CloudWatch Logs. Implement a CloudWatch Logs Insights query that selects the number of unique customers for orders with order quantity equal to 0 and groups the results in 1-day periods. Add the CloudWatch Logs Insights query to a CloudWatch dashboard. Here's why this option is the best choice: CloudWatch Logs Insights is designed for querying and analyzing log data, making it well-suited for this task. By configuring the Lambda function's execution role to upload logs to CloudWatch Logs, you ensure that the log data is available for analysis. You can use a CloudWatch Logs Insights query to identify unique customers for orders with a quantity of 0 and group the results by day, providing the desired daily count of affected customers. The results of the query can be added to a CloudWatch dashboard, making it easily accessible for monitoring.
upvoted 5 times
...
konieczny69
Highly Voted 9 months, 2 weeks ago
Selected Answer: A
D is invalid. There are no such custom metrics: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/metrics-dimensions.html A is the right choice
upvoted 5 times
...
Saudis
Most Recent 1 week, 6 days ago
Selected Answer: A
I am with A
upvoted 1 times
...
65703c1
5 months, 3 weeks ago
Selected Answer: A
A is the correct answer.
upvoted 1 times
...
SerialiDr
9 months, 3 weeks ago
Selected Answer: A
This approach involves enhancing the existing Lambda function to log relevant information about orders (especially those with order quantity 0) to CloudWatch Logs. The developer can then use CloudWatch Logs Insights to query these logs for unique customer counts and visualize this data on a CloudWatch dashboard. This solution is feasible and effective, as it leverages the existing Lambda function and CloudWatch capabilities.
upvoted 2 times
...
Certified101
11 months ago
Selected Answer: A
https://www.examtopics.com/discussions/amazon/view/96212-exam-aws-certified-developer-associate-topic-1-question-402/
upvoted 2 times
...
TanTran04
11 months ago
Selected Answer: D
Choose D Option A is more suitable for log analysis, but in this case, the issue is related to DynamoDB data, and CloudWatch Logs may not be the most efficient way to track it.
upvoted 1 times
...
chris_777
11 months, 3 weeks ago
Selected Answer: A
I choose A
upvoted 2 times
...
bhanupriya07
12 months ago
https://www.examtopics.com/discussions/amazon/view/96212-exam-aws-certified-developer-associate-topic-1-question-402/
upvoted 3 times
...
PrakashM14
1 year ago
Selected Answer: D
Option A suggests using CloudWatch Logs Insights, which is typically used for analyzing log data. However, in this scenario, the issue is related to metrics (order quantity), and using CloudWatch Metrics and Alarms is a more suitable approach. I'd go with option D. It seems like a more direct and efficient approach. By using custom CloudWatch metrics for the DynamoDB stream, you can specifically track the relevant data without the need for additional CloudWatch Logs Insights queries. The alarm will then allow you to easily visualize and monitor the number of unique customers affected by the issue each day on the CloudWatch dashboard.
upvoted 2 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 ...