Skip to Content

DVA-C02: How to Monitor On-Premises Applications with Amazon CloudWatchDVA-C02:

Learn how to use the CloudWatch agent to send logs from your on-premises applications to Amazon CloudWatch. This tutorial will show you how to install and configure the agent, and how to use IAM user credentials with permissions for CloudWatch.

Table of Contents

Question

A developer has a legacy application that is hosted on-premises. Other applications hosted on AWS depend on the on-premises application for proper functioning. In case of any application errors, the developer wants to be able to use Amazon CloudWatch to monitor and troubleshoot all applications from one place.

How can the developer accomplish this?

A. Install an AWS SDK on the on-premises server to automatically send logs to CloudWatch.

B. Download the CloudWatch agent to the on-premises server. Configure the agent to use IAM user credentials with permissions for CloudWatch.

C. Upload log files from the on-premises server to Amazon S3 and have CloudWatch read the files.

D. Upload log files from the on-premises server to an Amazon EC2 instance and have the instance forward the logs to CloudWatch.

Answer

B. Download the CloudWatch agent to the on-premises server. Configure the agent to use IAM user credentials with permissions for CloudWatch.

Explanation

The correct answer is B. Download the CloudWatch agent to the on-premises server. Configure the agent to use IAM user credentials with permissions for CloudWatch.

Here is an explanation of why this solution will accomplish the goal:

  • The problem is that the developer has a legacy application that is hosted on-premises, and wants to use CloudWatch to monitor and troubleshoot it along with other applications hosted on AWS. CloudWatch is a service that collects and analyzes metrics, logs, and events from AWS resources and applications. It can help the developer to detect and resolve issues, optimize performance, and set alarms and notifications.
  • To solve this problem, the developer needs to send logs from the on-premises application to CloudWatch. Logs are records of events that occur in an application or system. They can provide useful information for debugging and troubleshooting purposes. However, CloudWatch cannot directly access logs from on-premises servers, as they are not AWS resources.
  • The solution that will accomplish the goal is to download the CloudWatch agent to the on-premises server, and configure it to use IAM user credentials with permissions for CloudWatch. The CloudWatch agent is a software that can be installed on Linux or Windows servers, either on-premises or on AWS. It can collect system metrics and application logs, and send them to CloudWatch. The developer can download the agent from the AWS Systems Manager console or from an S3 bucket. The developer can then configure the agent to use IAM user credentials, which are a set of access keys that identify an AWS user and grant permissions for AWS services. The developer can create an IAM user with a policy that allows sending logs to CloudWatch. The developer can then specify the credentials in the agent configuration file or in the AWS CLI profile.
  • This solution will accomplish the goal because it will enable the developer to send logs from the on-premises application to CloudWatch, where they can be monitored and analyzed along with other applications hosted on AWS. The developer can use CloudWatch features such as dashboards, metrics, alarms, insights, and anomaly detection to gain visibility and insight into the application performance and health.

Therefore, option B is the correct solution that will accomplish the goal. Option A is incorrect because there is no AWS SDK that can automatically send logs to CloudWatch from an on-premises server. Option C is incorrect because CloudWatch cannot read log files from S3 directly. Option D is incorrect because it will require launching and managing an EC2 instance, which will add more resources and costs to the application.

The latest AWS Certified Developer – Associate DVA-C02 certification actual real practice exam question and answer (Q&A) dumps are available free, which are helpful for you to pass the AWS Certified Developer – Associate DVA-C02 exam and earn AWS Certified Developer – Associate DVA-C02 certification.

AWS Certified Developer - Associate DVA-C02 Exam Questions and Answers