A multi-service permit path is failing intermittently across API Gateway, Lambda, and DynamoDB. How should architects gain workload visibility to find the broken dependency?
Select an answer to reveal the explanation.
Short Explanation
When the permit path is a chain of services, X-Ray is the string of Christmas lights that shows which bulb went dark.
Full Explanation
AWS X-Ray distributed tracing maps a multi-service municipal permit path across API Gateway, Lambda, and DynamoDB so architects can see which dependency is failing intermittently. X-Ray works because it correlates segments and subsegments along a request, surfacing latency, errors, and throttling at each hop rather than forcing operators to stitch disconnected logs by hand. For intermittent failures, the service map and trace timelines reveal whether API Gateway integration, Lambda runtime, IAM, or DynamoDB is the broken link under real citizen traffic patterns. Workload visibility at the application dependency layer is the Associate-level answer when the path spans managed services.
Disabling all logging and tracing to improve latency during incidents fails by concept because turning off observability during the exact moment you need evidence lengthens mean time to recovery. Using only VPC Flow Logs to debug application-level service dependency errors fails because flow logs show network accept/reject and bytes, not DynamoDB conditional check failures or Lambda exceptions inside the permit workflow. Attempting to SSH into every Lambda environment and print stack traces manually fails because Lambda is not an SSH host model; that approach does not scale and is the wrong operational interface for managed functions.
Exam caveat: X-Ray sampling and instrumentation gaps can hide rare failures—critical paths should be traced deliberately, not left entirely to default sampling assumptions. Operational check: enable tracing on API Gateway stages and Lambda, confirm DynamoDB calls appear as subsegments, reproduce an intermittent fault in test, and verify the service map highlights the failing node before changing production code.