Troubleshooting Cloud Application Errors | AWS Certified Cloud Practitioner

Troubleshooting Cloud Application Errors

Question

An organization utilizes a software suite that consists of a multitude of underlying microservices hosted on the cloud.

The application is frequently giving runtime errors.

Which service will help in the troubleshooting process?

Answers

Explanations

Click on the arrows to vote for the correct answer

A. B. C. D.

Correct Answer - C.

AWS X-Ray is a service that collects data about requests that your application serves and provides tools that you can use to view, filter, and gain insights into that data to identify issues and opportunities for optimization.

AWS X-Ray helps developers analyze and debug production, distributed applications, such as those built using a microservices architecture.

https://aws.amazon.com/xray/

Option A is INCORRECT because AWS CloudTrail primarily records user or API activity, ‘who has done what.' It logs, continuously monitors, and retains account activity related to actions across AWS infrastructure.

CloudTrail provides event history in the AWS account activity but NOT that of the interaction of software microservices within a suite.

https://aws.amazon.com/cloudtrail/

Option B is INCORRECT because AWS CloudWatch does the primary function of monitoring and NOT debugging.

It collates data and actionable insights to monitor applications.

It also responds to system-wide performance changes, optimizes resource utilization, and gets a unified view of operational health.

However, the service does neither debug nor logs errors that occur amongst software microservices within a suite.

https://aws.amazon.com/cloudwatch/

Option D is INCORRECT because Amazon OpenSearch Service is a managed service that makes it easy to deploy, operate, and scale OpenSearch clusters in the AWS Cloud.

It automatically detects and replaces failed OpenSearch Service nodes, reducing the overhead associated with self-managed infrastructures.

https://docs.aws.amazon.com/opensearch-service/latest/developerguide/what-is.html

Out of the given options, AWS X-Ray is the most suitable service for troubleshooting a microservices-based application that frequently gives runtime errors.

AWS X-Ray is a service that helps developers analyze and debug distributed applications, such as those that are built using microservices architecture. It allows developers to trace requests made to microservices and helps identify the cause of errors or performance issues.

AWS CloudTrail is a service that provides governance, compliance, and operational auditing of AWS account activity. It logs API calls and other AWS account activity for auditing and compliance purposes. While it may be useful in identifying changes made to the system that could have caused the runtime errors, it is not a direct troubleshooting tool.

AWS CloudWatch is a monitoring service that provides operational insights for resources and applications running on AWS. It can collect and track metrics, collect and monitor log files, and set alarms. While it can help identify issues with the resources used by the microservices, it is not a direct tool for troubleshooting the application.

Amazon OpenSearch Service is a managed search and analytics service that provides a distributed search engine based on the open-source Elasticsearch software. While it can be used for monitoring and analyzing logs, it is not specifically designed for troubleshooting microservices-based applications.

Therefore, the correct answer to the given question is option C - AWS X-Ray.