ANS-C01 practice question 18 of 35
A company has deployed a web application on AWS. The web application uses an Application Load Balancer (ALB) across multiple Availability Zones. The…
Full set: 291 questionsApplication Load Balancer (ALB) access logs are delivered to an Amazon S3 bucket, not directly to Amazon CloudWatch Logs. The most direct and efficient next step for troubleshooting is to query these logs in place. By configuring the S3 bucket as the destination, the engineer can immediately use Amazon Athena to run standard SQL queries against the log files. This allows for powerful, ad-hoc analysis to filter for error status codes (e.g., 5xx), identify problematic Lambda targets, and examine fields like targetprocessingtime or lambdaerrorreason to diagnose the issue without moving data or setting up complex pipelines.
A. ALBs cannot send access logs directly to CloudWatch Logs. This option describes an invalid data path for ALB access logging.
C. CloudWatch Logs does not automatically pull data from S3. This would require a custom solution, making it inefficient for immediate troubleshooting.
D. This is an incorrect application of services. Athena queries the S3 logs directly; the CloudWatch Connector is for querying logs already in CloudWatch Logs.
1. AWS Documentation. (2023). User Guide for Application Load Balancers - Access logs for your Application Load Balancer. AWS. Retrieved from https://docs.aws.amazon.com/elasticloadbalancing/latest/application/load-balancer-access-logs.html (See section "Access log files" which specifies Amazon S3 as the destination).
2. AWS Documentation. (2023). User Guide for Application Load Balancers - Querying Application Load Balancer logs. AWS. Retrieved from https://docs.aws.amazon.com/elasticloadbalancing/latest/application/log-analysis.html (This page provides a step-by-step guide for using Amazon Athena to analyze ALB logs stored in S3).
3. AWS Documentation. (2023). User Guide for Application Load Balancers - Access log entries. AWS. Retrieved from https://docs.aws.amazon.com/elasticloadbalancing/latest/application/load-balancer-access-logs.html#access-log-entry-format (Details the log fields, including targetstatuscode and lambdaerrorreason, which are critical for this troubleshooting scenario).
Keep practicing
Take the free ANS-C01 practice test
Ten exam-style questions with answers and explanations, plus the exam facts and study guides.
More questions
Other ANS-C01 practice questions
- Question 1A company is planning to migrate to AWS and use multiple VPCs in multiple AWS Regions. A …
- Question 2A company wants to improve visibility into its AWS environment. The AWS environment consi…
- Question 3Your company runs an application for the US market in the us-east-1 AWS region. This appl…
- Question 4An IoT company sells hardware sensor modules that periodically send out temperature, humi…
- Question 5A company is deploying a non-web application on an AWS load balancer. All targets are ser…
- Question 6A company has created three VPCs: a production VPC, a nonproduction VPC, and a shared ser…
