Answer - C.
The best way is to use the X-Ray service which can be used to automatically see the call trace and time spend in each layer.
The below snapshot from the AWS Documentation showcases this.
AWS X-Ray is a service that collects data about requests that your application serves.
X-Ray provides tools you can use to view, filter, and gain insights into that data to identify issues and opportunities for optimization.
For any traced request to your application, you can see detailed information in the AWS X-Ray console.
This includes information not only about the request and response, but also about calls that your application makes to downstream AWS resources, microservices, databases, and HTTP web APIs.
Option A is incorrect since this will not help you diagnose ways to improve your application's performance.
Option B is partially correct.
You can do this, but the easiest way is to use the X-Ray service.
Option D is incorrect since the logs will not give detailed time tracing of the calls of your application.