SAA-C03 ยท Durability, automation and observability
Monitoring with CloudWatch and X-Ray
CloudWatch metrics, alarms and logs for availability targets, and AWS X-Ray tracing to find failing or slow components in distributed apps.
Key points
- CloudWatch: metrics (ALB 5XX, response time), alarms that notify SNS or trigger Auto Scaling, logs in log groups with per-group retention.
- X-Ray: traces single requests across services.
- Segments per service; subsegments for downstream calls (even DynamoDB); shared trace ID forms a trace.
- Service graph: each component's latency and errors.
- Default sampling: first request each second plus 5%.
- Annotations are indexed; metadata is not.
Source: https://docs.aws.amazon.com/xray/latest/devguide/xray-concepts.html
Practice questions
Which AWS service follows a single request through several microservices and shows where the latency or errors occur?
- AWS CloudTrail
- AWS Config
- AWS X-Ray
- AWS Trusted Advisor
Show answer
Answer: C. AWS X-Ray
AWS X-Ray groups segments that share a trace ID into a trace and draws a service graph of the request path. CloudTrail records API calls for auditing, Config tracks resource configuration, and Trusted Advisor gives best-practice checks.
Which statements about AWS X-Ray are correct?
- Annotations are indexed and can be used in filter expressions
- Downstream services that do not send segments can still appear as nodes
- Metadata is indexed so you can search traces by it
- By default the SDK records every incoming request
- Trace data is kept for one year by default
Show answer
Answer: A. Annotations are indexed and can be used in filter expressions, B. Downstream services that do not send segments can still appear as nodes
Annotations are indexed key-value pairs used in filter expressions, and X-Ray builds inferred nodes from subsegments for services such as DynamoDB that do not send segments. Metadata is not indexed, the default sampling rule is the first request each second plus 5% (not every request), and trace data is kept for 30 days.
By default, the AWS X-Ray SDK traces every single request your application receives.
Show answer
Answer: False
False. The default sampling rule records the first request each second and 5% of any additional requests, to keep cost low. You can change the rules, for example to trace all state-changing calls.
Practice 8 questions on this topic in Bitzu
Short lessons, instant explanations and spaced review of what you get wrong. Free on iOS and Android.
