AWS Certified Developer - Associate Exam: Available Flags for Retrieving Traces | SEO Tutorial Site

GetTraceSummaries API Flags

Prev Question Next Question

Question

For a new HTTP based application deployed on Amazon EC2 & DynamoDB, you are using AWS API to retrieve service graph data.

Team Lead has suggested using GetTraceSummaries API to get trace summaries.

Which of the following flags are available while retrieving traces using GetTraceSummaries API? (Select Two).

Answers

Explanations

Click on the arrows to vote for the correct answer

A. B. C. D. E.

Correct Answer - D, E.

When GetTraceSummaries API is called, the following time range flags are available.

1)TraceID: Search uses TraceId time & returns traces between computed start & end time range.

2)Event Time: Searches based upon the event occur & returns traces between which are active during start & end time range.

Option A, B & C are incorrect as these flags are not used in retrieving traces with GetTraceSummaries API.

For more information on AWS X-Ray API, refer to the following URL-

https://docs.aws.amazon.com/xray/latest/devguide/xray-api-gettingdata.html

The GetTraceSummaries API is used to retrieve a list of trace summaries for a specified time range from AWS X-Ray. Each trace summary includes general information about a trace, including its ID, duration, and start time. The flags available while retrieving traces using the GetTraceSummaries API are as follows:

D. TraceID: The TraceID flag is used to retrieve a specific trace by its ID. This flag is useful if you already know the ID of the trace you want to retrieve.

A. UserId: The UserId flag is used to retrieve traces that contain a specific user ID. This flag is useful if you want to find traces for a particular user or group of users.

B. Annotations: The Annotations flag is not available while retrieving traces using the GetTraceSummaries API. Annotations are key-value pairs that you can add to traces to provide additional information.

C. HTTPMethod: The HTTPMethod flag is not available while retrieving traces using the GetTraceSummaries API. HTTP method is used to specify the type of request being made to the server.

E. Event Time: The Event Time flag is not available while retrieving traces using the GetTraceSummaries API. Event Time is used to specify the time when an event occurred.

Therefore, the correct answer is D. TraceID and A. UserId.