Instrument the service boundary
Choose logs, metrics, traces and readiness signals for a specific operational question.
Instrument the service boundary
Use structured logs for detailed events and sanitized correlation fields. Publish numerical metrics with stable, low-cardinality dimensions such as stage and operation. A unique request ID belongs in a log or trace because using it as a metric dimension can create a separate time series per request. Track a rate with its denominator, especially in small traffic slices.
A trace joins spans across a request and sampled traces need not cover every call. Readiness answers whether an instance should receive traffic now. Liveness answers whether a process should be restarted. Use an alarm plus a notification target for actionable thresholds and test delivery without generating an incident.
Worked case
An error percentage appears to double during a release. One window had two requests and the other had ten thousand. What should the on-call engineer examine?
Check your reasoning
Read failures and total requests per window, then use an evidence threshold appropriate for low traffic. A percentage alone can magnify a single failure.
Second worked case
There are 30 failures in 600 canary requests and 40 in 20,000 stable requests. Which version needs attention?
Check your reasoning
The canary error rate is 5% and stable is 0.2%. Compare like operations and inspect sample sizes, then evaluate the alarm threshold for the canary.
Using CloudWatch alarms · Official DVA-C03 objectives for this domain
Related lesson in GitHub Actions. Retrieve the correct logs and build artifacts.
Connecting an alert to a trace
Publish a low-cardinality custom metric for failed checkouts and alarm on a meaningful rate. Put request identifiers in structured logs and trace context. Test liveness separately from readiness by making a dependency unavailable while the process remains alive.
Practice with the recording
An API returns a request ID, but the asynchronous worker’s logs have no matching entry. How would you make the event traceable?
Check your reasoning
Preserve a correlation identifier in the message and log structured event names with that identifier at publish and consume time. Use traces where supported, and compare queue delay with handler duration. Exclude credentials and raw customer input from diagnostic fields.
Practice the individual exam skills
- 4.2.1–4.2.5 Emit a structured operation event and a bounded-cardinality metric. Connect its alarm to a test notification. Trace a failed request and demonstrate that readiness can fail while the process still answers its liveness probe.
Instrument the service boundary quiz
Answer 3 questions. Check each answer for an explanation.