Top 28 Aws Cloudwatch Interview Questions
Q1. Can I Access The Metrics Data For A Terminated Ec2 Instance Or A Deleted Elb?
Yes, CloudWatch shops metrics for terminated EC2 times or deleted ELBs for 15 months.
Q2. What Platforms Does The Cloudwatch Logs Agent Support?
The CloudWatch Log Agent is supported on Amazon Linux, Ubuntu, CentOS, Red Hat Enterprise Linux, and Windows. This agent will assist the capacity to monitor person log files on the host.
Q3. What Metrics Are Available At High Resolution?
Currently, most effective patron metrics which you post to CloudWatch are available at high resolution.
Q4. What Is Amazon Cloudwatch?
CloudWatch is a tracking service for AWS cloud sources and the programs you run on AWS. You can use CloudWatch to collect and music metrics, collect and screen log files, and set alarms. CloudWatch can display sources consisting of EC2 instances, DynamoDB tables, and RDS DB instances.
Q5. Which Operating Systems Does Cloudwatch Support?
CloudWatch gets and affords metrics for all EC2 instances and should work with any running gadget currently supported via the EC2 provider.
Q6. Does The Amazon Cloudwatch Monitoring Charge Change Depending On Which Ec2 Instance I Monitor?
No, CloudWatch tracking charge does no longer vary by way of EC2 instance type.
Q7. What Statistics Can I View And Graph In Cloudwatch?
You can retrieve, graph, and set alarms on the following statistical metrics: average, sum, min, max, and pattern be counted.
Q8. What Thresholds Can I Set To Trigger A Cloudwatch Alarm?
When you create an alarm, you first pick the CloudWatch metric you need it to reveal. Next, you select the evaluation length and a statistical fee to degree. To set a threshold, set a target value and pick out whether or not the alarm will cause while the price is extra, equal, or less than that value.
Q9. What Types Of Data Can I Send To Cloudwatch Logs From My Ec2 Instances Running Sql Server And Windows Server?
You can configure the EC2Config carrier to send a variety of facts and log documents to CloudWatch including: custom text logs, Even logs, Event Tracing logs, and Performance Counter facts.
Q10. What Is Amazon Cloudwatch Logs?
Amazon CloudWatch Logs helps you to display and troubleshoot your structures and packages the use of your present gadget, software and custom log documents. With CloudWatch Logs, you can screen your logs, in close to actual time, for specific terms, values or patterns. For instance, you may set an alarm at the range of mistakes that occur to your gadget logs or view graphs of latency of net requests from your application logs. You can then view the unique log facts to look the source of the hassle. Log data can be stored and accessed indefinitely in quite long lasting, low-fee storage so you do not have to fear about filling up hard drives.
Q11. What If I Configure The Cloudwatch Logs Agent To Send Non-text Log Data?
The CloudWatch Logs Agent will file an mistakes inside the occasion it has been configured to document non-textual content log statistics.
Q12. When Would I Use A Custom Metric Over Having My Program Emit A Log To Cloudwatch Logs?
You can reveal your own statistics the use of custom metrics, CloudWatch logs, or both. You may need to use custom metrics in case your statistics is not already produced in log layout, as an instance OS technique or overall performance measurements. Or, you can need to jot down your own utility or script, or one furnished through an AWS associate. If you want to save and save character measurements along with extra element, you can need to apply CloudWatch Logs.
Q13. What Is The Retention Period Of All Metrics?
CloudWatch keeps metric records as follows:
Data factors with a length of much less than 60 seconds are to be had for three hours. These records points are high-resolution custom metrics,
Data factors with a length of 60 seconds (1 minute) are to be had for 15 days,
Data factors with a period of 300 seconds (five minute) are available for 63 days, 4) Data points with a metric of 3600 seconds (1 hr) are available for 455 days (15 months). Data factors which are to begin with posted with a shorter length are aggregated collectively for long-time period garage.
Q14. Does The Cloudwatch Logs Agent Support Iam Roles?
Yes. The CloudWatch Logs Agent is integrated with IAM and consists of help for each get admission to keys and IAM roles.
Q15. What Is The Syntax Of Metric Filter Patterns?
A Metric Filter sample can incorporate search terms or a specification of your common log or JSON occasion format. CloudWatch Logs can also be used to extract values from a log even in commonplace log or JSON layout.
Q16. What Can I Measure With Amazon Cloudwatch Metrics?
CloudWatch allows you to screen AWS cloud assets and the packages you run on AWS. Metrics are supplied routinely for a number of AWS services and products, together with EC2 instances, EBS volumes, ELBs, Autoscaling businesses, EMR task flows, RDS DB instances, DynamoDB tables, ElastiCache clusters, RedShift clusters, OpsWorks stacks, Route 53 fitness assessments, SNS subjects, SQS queues, SWF workflows, and Storage Gateways. You also can screen custom metrics generated by way of your very own applications and services.
Q17. What Actions Can I Take From A Cloudwatch Alarm?
When you create an alarm, you may configure it to carry out one or greater automatic actions whilst the metric you chose to reveal exceeds a threshold you define.
Ex: ship an electronic mail, post to SQS, prevent/terminate an EC2 example, or execute an automobile-scaling coverage.
Q18. Will I Lose The Metrics Data If I Disable Monitoring For An Ec2 Instance?
No. You can continually retrieve metrics statistics for any EC2 instance based at the retention schedules. However, the CloudWatch console limits the quest of metrics to 2 weeks after a metric is ultimate ingested to ensure that the maximum updated times are shown to your namespace.
Q19. What Types Of Cloudwatch Alarms Can Be Created?
You can create an alarm to monitor any CloudWatch metric to your account. You can also create an alarm on custom metrics which might be precise for your custom application or infrastructure.
Q20. What Kinds Of Things Can I Do With Cloudwatch Logs?
CloudWatch Logs is able to tracking and storing your logs to help you higher apprehend and function your systems and packages.
You can use CloudWatch logs in some of approaches:
Real Time software and device tracking,
Long term log retention.
Q21. How Long Does Cloudwatch Logs Store My Data?
You can save your log statistics for as long as you need. By default, CloudWatch Logs will keep your log information indefinitely. You can alternate the retention for every LogGroup at any time.
Q22. Are High-resolution Custom Metrics Priced Differently Than Regular Custom Metrics?
No, high-resolution custom metrics are priced in the identical way as preferred 1-min custom metrics.
Q23. How Do I Retrieve My Log Data?
You can retrieve any of your log statistics using the CloudWatch Logs console or thru the CloudWatch Logs CLI. Log events are retrieved primarily based at the Log Group, Log Stream and time with which they are associated.
Q24. What Kinds Of Things Can I Do With My Logs In Cloudwatch?
CloudWatch Logs is able to tracking and storing your logs that will help you higher understand and perform your systems and packages. When you operate CloudWatch Logs with your logs, your current log records is used for monitoring, so no code modifications are required.
Q25. What Log Monitoring Does Cloudwatch Provide?
CloudWatch Logs helps you to monitor and troubleshoot your systems and packages using your present system, utility and custom log files. With CloudWatch Logs, you could monitor your logs, in near actual time, for unique phrases, values or patterns.
Q26. Can I Use Regular Expressions With My Log Data?
CloudWatch Metric Filters does not guide everyday expressions. To procedure your log facts with everyday expressions, recall the usage of Amazon Kinesis and join the movement with a everyday expression processing engine.
Q27. How Frequently Does The Cloudwatch Logs Agent Send Data?
The CloudWatch Logs Agent will send log records documents every 5 seconds by means of default and is configurable through the person.
Q28. What Access Management Policies Can I Implement For Cloudwatch?
CloudWatch integrates with AWS IAM so that you can specify which CloudWatch movements a consumer in your AWS Account can carry out. You can't use IAM to manipulate get admission to to CloudWatch statistics for specific resources. For instance, you can't provide a person access to CloudWatch statistics for simplest a selected set of instances or a specific LoadBalancer. Permissions granted the usage of IAM cover all the cloud assets you use with CloudWatch. In addition, you cannot use IAM roles with the Amazon CloudWatch command line gear.

