Get All the Questions Covering Entire Syllabus from here (2018-2019) : This material is owned by HadoopExam.com . Please dont copy its bad Karma
Question 10: You are working with a startup in India which provides online mortgages to customer in India only. Hence, traffic is expected from Indian customer. Your web application is hosted on EC2 instance and all the ........................, which of the following will help for this requirement?
- You will install CloudWatch Agent on EC2 instance and save traffic detail to the S3 bucket for further analysis.
- You will be enabling CloudTrail logging for the ELB.
- You will be creating a custom metric for the traffic received on EC2 instances.
- You will be enabling access logs on the load balancer.
Correct Answer : D
Detailed Explaination : You wanted to know that all the traffic received to your instances, which are behind the ELB should be monitored to check whether traffic is coming outside India or not.
Best solution for this requirement is to enable the ELB access logs. Read below more detail about ELB access logs
- ELB will log all the requests made to it in a specified S3 bucket.
- Logs will contain requester ip, latencies, request path, server response etc.
- This log is very helpful to analyze the traffic patterns and troubleshoot back-end applications.
- Remember it is disabled by default.
- You have to specify time interval either 5 or 60(default) minutes when you enable the access logs.
- If your site traffic is high then ELB can send more than one log file at the same time
- Even in case of multiple ELB also you will get multiple logs for the same time period.
- Bucket and load balancer should be in the same region.
- Remember: If you delete the S3 bucket and does not disable the access logs and somebody else create the bucket with the same name (which has all the permissions). Then ELB access logs will be written in that new bucket.
All AWS Certification Products, Training, Books and PDF you must use are below