exam questions

Exam AWS Certified Solutions Architect - Professional All Questions

View all questions & answers for the AWS Certified Solutions Architect - Professional exam

Exam AWS Certified Solutions Architect - Professional topic 1 question 1011 discussion

A company has an application that is deployed on Amazon EC2 instances behind an Application Load Balancer (ALB). The instances are part of an Auto Scaling group. The application has unpredictable workloads and frequently scales out and in. The company's development team wants to analyze application logs to find ways to improve the application's performance. However, the logs are no longer available after instances scale in.

Which solution will give the development team the ability to view the application logs after a scale-in event?

  • A. Enable access logs for the ALB. Store the logs in an Amazon S3 bucket.
  • B. Configure the EC2 instances to publish logs to Amazon CloudWatch Logs by using the unified CloudWatch agent.
  • C. Modify the Auto Scaling group to use a step scaling policy.
  • D. Instrument the application with AWS X-Ray tracing.
Show Suggested Answer Hide Answer
Suggested Answer: B 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
Heer
Highly Voted 2 years, 7 months ago
The right option is B 1)EC2 instance do store their logs in CloudWatch using CloudWatch agent 2)These logs are stored for indefinite time so the logs will be available even when the EC2 instance is terminated (Scaled in).
upvoted 6 times
...
pixepe
Highly Voted 2 years, 7 months ago
B is answer Key from question is 'development team wants to analyze application logs ' so we need EC2 logs, per B Why not A? ALB logs doesn't have logs of application itself. It has request, response etc. So ALB logs will not help here. Ref - Elastic Load Balancing provides access logs that capture detailed information about requests sent to your load balancer. Each log contains information such as the time the request was received, the client's IP address, latencies, request paths, and server responses. You can use these access logs to analyze traffic patterns and troubleshoot issues. https://docs.aws.amazon.com/elasticloadbalancing/latest/application/load-balancer-access-logs.html
upvoted 6 times
...
Ebi
Most Recent 1 year, 4 months ago
B is correct
upvoted 1 times
...
ggrodskiy
1 year, 12 months ago
Correct B
upvoted 2 times
...
SkyZeroZx
2 years ago
Selected Answer: B
A) Log of ALB not need in this case this question is log of aplication in EC2 B) CloudWatch is good option for obtain logs of Instance EC2 sounds good C ) auto scaling in step policy why ? not seems D ) X Ray is for debuging or trace in complex systems in AWS Cloud not obtain logs direct or without more overhead
upvoted 2 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...