Datadog-APM-and-Distributed-Tracing-Fundamentals practice question 4 of 25

Your food ordering portal had an incident last week. You would like to offer a discount to 100 restaurants who encountered

Full set: 180 questions
Answer options
A: the most errors. How do you accomplish this in Datadog APM assuming you have a custom tag forrestaurant ID and name?
B: On the trace explorer page, make a query scoping down to the service, ordering resource, anderrors. Use the restaurant name for grouping. Visualize using a top list and limit the view to 100. Correct answer
C: On the trace explorer page, make a query scoping down to the service, ordering resource, andrestaurant name. Use the HTTP Status Code for grouping. Visualize using a top list and limit the view to 100.
D: On the trace explorer page, make a query scoping down to the restaurant name and errors. Use theservice name and ordering resource name for grouping. Visualize using a top list and limit the view to 100.
Correct Answer:
B. On the trace explorer page, make a query scoping down to the service, ordering resource, anderrors. Use the restaurant name for grouping. Visualize using a top list and limit the view to 100.
Explanation

To identify the 100 restaurants with the most errors, you must first filter the traces to the relevant context: the specific service, the ordering resource, and only traces marked as errors. Then, to count errors per restaurant, you group the results by the restaurant name tag. Finally, visualizing this data as a "Top List" and limiting it to 100 entries directly answers the request by showing the restaurants with the highest error counts in descending order.

Why Incorrect

C. Grouping by HTTP Status Code would show the most frequent error codes, not the restaurants that experienced them most often.
D. Grouping by service and resource name would aggregate errors by code function, not by the affected restaurant entity.

References

1. Datadog Documentation, "Trace Explorer". In the "Analytics" section, it describes the process of creating queries, grouping by facets (tags), and using visualizations. The "Top List" visualization is explicitly for ranking items by a measure. (See section: "Visualize trace analytics").

2. Datadog Documentation, "Search and Analyze". This page details how to build a query by filtering on services and resources, then using the "Group by" field with a tag like restaurant name to aggregate results.

Scroll to Top