Which method should the developer use to make this determination?
Instrument each microservice request using the AWS X-Ray SDK. Examine the annotations associated with the requests.
Instrument each microservice request using the AWS X-Ray SDK. Examine the subsegments associated with the requests.
Instrument each microservice request using the AWS X-Ray SDK. Examine the Amazon CloudWatch EC2 instance metrics associated with the requests.
Instrument each microservice request using the Amazon CloudWatch SDK. Examine the CloudWatch EC2 instance metrics associated with the requests.
Explanations:
AWS X-Ray SDK allows tracing, but annotations do not provide detailed information on latency between microservices, which is needed in this scenario.
AWS X-Ray SDK instruments requests and generates subsegments, which include precise latency data between microservices, making it ideal for identifying latency bottlenecks.
While EC2 instance metrics in CloudWatch provide general instance performance data, they do not provide detailed tracing of request latency across microservices.
CloudWatch SDK focuses on gathering metrics but does not offer detailed, request-level tracing needed for analyzing latency between microservices.