exam questions

Exam AWS Certified Solutions Architect - Professional SAP-C02 All Questions

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

Exam AWS Certified Solutions Architect - Professional SAP-C02 topic 1 question 259 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
bhanus
Highly Voted 10 months, 1 week ago
Selected Answer: B
B is correct Option A - ALB access logs only has details about requests sent to the load balancer, not application Option C - change autosclaing behavior would NOT address the problem Option D AWS X-Ray is more suitable for tracing requests as they travel through your application, It doesn't store output logs from your application.
upvoted 7 times
...
career360guru
Most Recent 5 months ago
Selected Answer: B
Option B
upvoted 2 times
...
totten
6 months, 2 weeks ago
Selected Answer: B
https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Install-CloudWatch-Agent.html
upvoted 1 times
...
ggrodskiy
9 months, 1 week ago
Correct B.
upvoted 1 times
...
NikkyDicky
9 months, 3 weeks ago
Selected Answer: B
easy B
upvoted 1 times
...
SmileyCloud
10 months ago
Selected Answer: B
B - custom logs
upvoted 1 times
...
gd1
10 months, 1 week ago
Selected Answer: B
The question states that the development team wants to analyze application logs, and these logs disappear after EC2 instances scale in. To solve this, you can configure the EC2 instances to send their logs to Amazon CloudWatch Logs using the unified CloudWatch agent. This allows you to keep the logs for a longer time period and enables the development team to analyze them at any time, even after the instances have been terminated.
upvoted 3 times
...
shree2023
10 months, 1 week ago
B is correct indeed
upvoted 1 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 ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago