- A
Enable ALB access logs, specify an S3 bucket destination, and query the logs to filter on elb_status_code=502
Access logs capture every ALB request including 502s. Each log entry contains the target_ip:target_port field identifying which instance handled (or failed to handle) the request, and request_processing_time and target_processing_time values for performance analysis. This data is available without any changes to instance-side software.
- B
Enable AWS X-Ray on the ALB to trace each request end-to-end from client to target
Why wrong: AWS X-Ray traces application-level requests but requires SDK instrumentation in the application code to produce meaningful traces. X-Ray does not trace at the ALB level — it traces within the application running on the target. If the application is not instrumented and X-Ray is not enabled on the ALB (which requires Application Load Balancer with X-Ray sampling, a separate feature), no traces are produced at the load balancer layer.
- C
Configure a VPC Flow Log on the subnets containing the ALB to capture all network traffic
Why wrong: VPC Flow Logs record IP-level packet metadata (source IP, destination IP, port, protocol, bytes, packets, action). They do not record HTTP-level details like status codes, HTTP methods, URLs, or processing times. Diagnosing 502s requires HTTP-level data, which only ALB access logs provide.
- D
Install an agent on the application instances that logs all incoming connection attempts from the ALB
Why wrong: 502 errors from the ALB often occur because the target closed the connection, rejected it, or did not respond before the idle timeout. In many 502 cases, the instance-side agent would not log anything — the connection failure happens before or without the application receiving the request.
Quick Answer
The answer is to enable ALB access logs, specify an S3 bucket destination, and query the logs filtering on elb_status_code=502. This is correct because ALB access logs capture every request processed by the load balancer, including the target IP address, request processing time, and the HTTP status code returned by the ALB itself, even when the backend instance never receives the connection. Since application logs on the instances miss these pre-connection failures, the access logs provide the only reliable source to correlate 502 errors with specific targets and timing. On the AWS Certified SysOps Administrator Associate SOA-C02 exam, this scenario tests your understanding of where to find diagnostic data when the application layer is unreachable—a common trap is to look at instance-level logs, which will be empty for these failures. A useful memory tip: think of ALB access logs as the “black box” for the load balancer—they record everything, even when the plane (the request) never lands on the target.
SOA-C02 Practice Question: ALB access logs for diagnosing 502 errors without…
This SOA-C02 practice question tests your understanding of networking and content delivery. Read the scenario carefully and evaluate each option against the stated constraints before committing to an answer. A key principle to apply: aLB access logs. Once you have made your selection, read the full explanation to reinforce the concept and understand why each distractor is designed to mislead on exam day.
Users are intermittently reporting 502 Bad Gateway errors when accessing the application through an Application Load Balancer. The team needs to identify which target IPs are associated with the failures and the request processing time for those requests. Application logs on instances do not capture failures before the ALB connection. What should be enabled?
Answer choices
Why each option matters
Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.
Correct answer & explanation
Enable ALB access logs, specify an S3 bucket destination, and query the logs to filter on elb_status_code=502
ALB access logs capture detailed information about each request, including the target IP address, request processing time, and the HTTP status code returned by the ALB. By enabling these logs and querying for `elb_status_code=502`, you can identify which target IPs were associated with the failures and the `request_processing_time` for those requests. This directly addresses the need to correlate failures with specific targets and timing, without relying on application instance logs that miss pre-connection failures.
Key principle: ALB access logs
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✓
Enable ALB access logs, specify an S3 bucket destination, and query the logs to filter on elb_status_code=502
Why this is correct
Access logs capture every ALB request including 502s. Each log entry contains the target_ip:target_port field identifying which instance handled (or failed to handle) the request, and request_processing_time and target_processing_time values for performance analysis. This data is available without any changes to instance-side software.
Related concept
ALB access logs
- ✗
Enable AWS X-Ray on the ALB to trace each request end-to-end from client to target
Why it's wrong here
AWS X-Ray traces application-level requests but requires SDK instrumentation in the application code to produce meaningful traces. X-Ray does not trace at the ALB level — it traces within the application running on the target. If the application is not instrumented and X-Ray is not enabled on the ALB (which requires Application Load Balancer with X-Ray sampling, a separate feature), no traces are produced at the load balancer layer.
- ✗
Configure a VPC Flow Log on the subnets containing the ALB to capture all network traffic
Why it's wrong here
VPC Flow Logs record IP-level packet metadata (source IP, destination IP, port, protocol, bytes, packets, action). They do not record HTTP-level details like status codes, HTTP methods, URLs, or processing times. Diagnosing 502s requires HTTP-level data, which only ALB access logs provide.
- ✗
Install an agent on the application instances that logs all incoming connection attempts from the ALB
Why it's wrong here
502 errors from the ALB often occur because the target closed the connection, rejected it, or did not respond before the idle timeout. In many 502 cases, the instance-side agent would not log anything — the connection failure happens before or without the application receiving the request.
Common exam traps
Common exam trap: answer the scenario, not the keyword
The trap here is that candidates often confuse ALB access logs with VPC Flow Logs or X-Ray, assuming any logging mechanism that captures network traffic or traces will include HTTP-level details like status codes and request processing times, but only ALB access logs provide the specific fields needed to correlate 502 errors with target IPs and timing.
Detailed technical explanation
How to think about this question
ALB access logs are stored in S3 and contain fields such as `target_ip`, `request_processing_time`, `target_processing_time`, and `elb_status_code`. The `request_processing_time` measures the time from when the ALB receives the request to when it sends it to the target, which is critical for diagnosing latency-related 502 errors. Under the hood, a 502 error can be triggered by various conditions, including connection timeouts (default 10 seconds for idle timeout), TLS handshake failures, or the target closing the connection prematurely, all of which are captured in the access log with the specific target IP and timing details.
KKey Concepts to Remember
- ALB access logs
- S3 logging bucket
- 502 Bad Gateway diagnosis
- request processing time
TExam Day Tips
- Watch for words such as best, first, most likely and least administrative effort.
- Review why wrong options are wrong, not only why the correct option is correct.
Key takeaway
ALB access logs
Real-world example
How this comes up in practice
A media company stores terabytes of video archives that are accessed once a year for audit purposes. Moving these objects to a cold storage tier (Azure Archive, S3 Glacier, or Google Nearline) costs a fraction of hot storage. Questions like this test whether you understand storage tiers, access frequency tradeoffs, and retrieval latency requirements.
What to study next
Got this wrong? Here's your next step.
Review aLB access logs, then practise related SOA-C02 questions on the same topic to reinforce the concept.
- →
Networking and Content Delivery — study guide chapter
Learn the concepts, then practise the questions
- →
Networking and Content Delivery practice questions
Targeted practice on this topic area only
- →
All SOA-C02 questions
1,546 questions across all exam domains
- →
AWS Certified SysOps Administrator Associate SOA-C02 study guide
Full concept coverage aligned to exam objectives
- →
SOA-C02 practice test guide
How to use practice tests most effectively before exam day
Related practice questions
Related SOA-C02 practice-question pages
Use these pages to review the topic behind this question. This is how one missed question becomes focused revision.
Monitoring, Logging, and Remediation practice questions
Practise SOA-C02 questions linked to Monitoring, Logging, and Remediation.
Reliability and Business Continuity practice questions
Practise SOA-C02 questions linked to Reliability and Business Continuity.
Deployment, Provisioning, and Automation practice questions
Practise SOA-C02 questions linked to Deployment, Provisioning, and Automation.
Security and Compliance practice questions
Practise SOA-C02 questions linked to Security and Compliance.
Networking and Content Delivery practice questions
Practise SOA-C02 questions linked to Networking and Content Delivery.
Cost and Performance Optimization practice questions
Practise SOA-C02 questions linked to Cost and Performance Optimization.
SOA-C02 fundamentals practice questions
Practise SOA-C02 questions linked to SOA-C02 fundamentals.
SOA-C02 scenario practice questions
Practise SOA-C02 questions linked to SOA-C02 scenario.
SOA-C02 troubleshooting practice questions
Practise SOA-C02 questions linked to SOA-C02 troubleshooting.
Practice this exam
Start a free SOA-C02 practice session
Short sessions build daily habit. Longer sessions build exam-day stamina. Try a timed session to simulate real conditions.
FAQ
Questions learners often ask
What does this SOA-C02 question test?
Networking and Content Delivery — This question tests Networking and Content Delivery — ALB access logs.
What is the correct answer to this question?
The correct answer is: Enable ALB access logs, specify an S3 bucket destination, and query the logs to filter on elb_status_code=502 — ALB access logs capture detailed information about each request, including the target IP address, request processing time, and the HTTP status code returned by the ALB. By enabling these logs and querying for `elb_status_code=502`, you can identify which target IPs were associated with the failures and the `request_processing_time` for those requests. This directly addresses the need to correlate failures with specific targets and timing, without relying on application instance logs that miss pre-connection failures.
What should I do if I get this SOA-C02 question wrong?
Review aLB access logs, then practise related SOA-C02 questions on the same topic to reinforce the concept.
What is the key concept behind this question?
ALB access logs
About these practice questions
Courseiva creates original exam-style practice questions with explanations and wrong-answer analysis. It does not publish real exam questions, exam dumps, or protected exam content. Learn why practice questions differ from exam dumps →
Last reviewed: Jun 11, 2026
This SOA-C02 practice question is part of Courseiva's free Amazon Web Services certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the SOA-C02 exam.
Question Discussion
Share a tip, memory trick, or ask about the reasoning behind this question. Do not post real exam questions, leaked content, braindumps, or copyrighted exam material. Comments are moderated and may be removed without notice.
Sign in to join the discussion.