← AWS Security Specialty: evidence-based security
17 / 25 · 80 MIN

Alerts: delivery and analysis coverage

Follow evidence from event creation to operational response and scope what was actually analyzed.

1. Separate detection and delivery

A finding can exist without reaching the support team. Draw the flow: source, rule matching, target invocation, ticket creation, and owner assignment. Each transition needs different evidence.

During an out-of-hours change, a finding screenshot does not demonstrate notification or shift acceptance. Use identifiers and timestamps to follow a test occurrence through to its destination. This lesson concerns delivery to EventBridge rule targets.

Other mechanisms, including Custom Event Bus subscribers, Pipes, and Scheduler, have their own contracts. Do not transfer defaults or restrictions between them merely because they share the EventBridge name. Record the concrete delivery mechanism in the runbook so diagnosis does not rely on the wrong product.

2. Interpret retries and recovery queues

A retry policy bounds delivery time and attempts. When an event is dropped after that policy is exhausted, recovering the target does not automatically recreate the event. A DLQ retains failures for later handling.

Some errors, including missing permissions, can reach the DLQ without retries. Read ERROR_CODE, TARGET_ARN, RULE_ARN, and, where relevant, EXHAUSTED_RETRY_CONDITION. If age expired first, increasing attempts alone leaves the same time window.

For a rule target DLQ, use a standard SQS queue in the same Region. When configuring through the API, provide the required resource policy. Distinguish original target failure from a second failure while sending to the DLQ itself.

Deadline workshop: event created at 10:00, sent to the DLQ for age at 10:05 after four of twenty attempts; target recovered at 10:08, business validity until 10:10. At 10:09 one minute remains. With evidence of nonapplication and ID deduplication, prepare controlled replay and confirm acceptance within the deadline; if infeasible, request an exception decision.

Increasing future attempts neither automatically removes this message from the DLQ nor extends business validity.

3. Recover through observable criteria

Define who monitors backlog, who repairs authorization, and who confirms ticket creation. Also observe InvocationsFailedToBeSentToDLQ: configuring a queue does not prove failed events reached it. After fixing the cause, rehearse a new occurrence and prepare handling of retained events.

Reconciling identifiers and avoiding duplicate tickets is an operational decision in this scenario, not an automatic service guarantee. The local exercise classifies fictional observations into repairing DLQ delivery, repairing target authorization, preparing replay, or confirming downstream processing.

It sends no events and does not reproduce the AWS state machine. Agree with RUN what happens if replay fails and which evidence permits incident closure. Workshop: reconcile 120 distinct IDs in non-overlapping groups: 100 with tickets, 15 retained, and five without a confirmed destination.

After repairing authorization and passing a new test, prepare replay of the 15 with per-ID verification; assign an owner and deadline to the five unknowns. Even after confirming all 15, coverage is 115/120, not 100%. An unknown destination does not prove permanent loss.

Approved manual notification can cover critical alerts during investigation.

4. Give missing metrics a meaning

A custom counter that publishes only errors differs from a heartbeat expected continuously. Silence can be normal for the former and indicate emission failure for the latter. Define that meaning before choosing TreatMissingData. notBreaching treats missing points as good; breaching treats them as breaches; ignore retains state when evaluation depends on those points; missing permits INSUFFICIENT_DATA when all points are absent.

With a sliding evaluation window, the retrieved range can contain additional real points. A wall clock evaluation window uses only points in its defined window without retrieving earlier points. If enough exist for EvaluationPeriods, substitution is not used.

Test interrupted emission and recovery, not just threshold violation. These examples concern ordinary custom-metric alarms, not log alarms or exceptions for particular metric namespaces. 2/3 variant: the extended range contains OK, missing, breaching, missing, breaching, in time order.

Three actual points suffice; two breaches yield ALARM with either notBreaching or breaching. If all five are missing, the setting becomes necessary: notBreaching gives OK and breaching gives ALARM. Count actual observations, not merely retrieved positions, and identify the sliding mode this analysis concerns.

5. Distinguish Macie inventory, selection, and analysis

Macie automated discovery chooses representative objects; it is not proof of full inspection of all data. For a migration decision, first identify the set needing analysis, then observe selection, permissions, and results. An object skipped for missing access is not an object analyzed without sensitive data.

The error can involve object policy or the encryption key. Within a job, sampling depth concerns object selection, not reading a percentage of bytes from every file. Exclusion conditions take precedence over inclusion.

Keep those choices in the acceptance package so a zero-finding result is not presented beyond the scope that produced it. Recheck coverage after repairing permissions. Population workshop: of 1,000 versions, 120 were selected, 100 analyzed and 20 failed access.

The release-required subset has 200 exports/ versions, only 30 with evidence: 30/200=15%, leaving 170. Without identity inspection you do not know overlap between the twenty failures and that prefix. Prepare targeted analysis and confirm results without equating selection with execution.

In another review, repairing S3 permits analysis of 25 out of 40; fifteen retain KMS denial. Coverage is 62.5% even with a private bucket and zero detections among the 25. Repair the remaining control within approved scope and require fresh analyses.

6. Close coverage gaps and hand over to RUN

In a recurring job, excluding existing objects leaves history outside initial analysis; subsequent runs consider new or changed objects. Increasing frequency does not itself repair that scope choice. The current sensitivity profile is not an immutable archive either: subsequently changed or deleted objects leave the described statistics.

For historical audit, retain evidence needed for the specific question with a date and scope version. In management reporting, separate what was configured, what could execute, what it found, and what remains unanalyzed. RUN handover should include owners, symptoms of degraded coverage, and criteria for repeating tests.

A scoped conclusion remains useful when declared gaps still exist. Workshop: a fixed inventory has 1,000 versions: 600 analyzed without detections, 300 old versions excluded, and 100 skipped for missing access. The groups are disjoint.

Calculate version coverage before reading the answer: 600/1,000 = 60%. This does not calculate byte coverage. Define targeted analysis for the 300 old versions and access repair followed by analysis for the 100 skipped versions.

Higher frequency does not complete either task. Record the versions actually analyzed and the detection identifiers used; absence of findings does not certify absence of all sensitive content. History and freshness: yesterday A/v1 had a detection and B/v1 did not; today A/v2 replaced A/v1, B was deleted and C/v1 arrived.

Preserve both historical analyses with version IDs. Without fresh evidence, current inventory A/v2,C/v1 has zero of two versions analyzed. Current statistics can exclude changed/deleted objects; that neither refutes retained evidence nor transfers old classification to new content.

# Original fictional delivery triage, not an EventBridge implementation.
# No credentials, network calls, or AWS changes.
def triage(row):
    if not isinstance(row, dict):
        raise ValueError("observation must be a mapping")
    for field in ("dlq_send_failed", "retained", "finding_exists"):
        if field in row and type(row[field]) is not bool:
            raise ValueError("observation flags must be booleans")
    if row.get("dlq_send_failed"):
        return "repair-dlq-delivery"
    if row.get("error") == "NO_PERMISSIONS":
        return "repair-target-authorization"
    if row.get("retained"):
        return "plan-controlled-replay"
    return "check-downstream-evidence"
assert triage({"dlq_send_failed": True}) == "repair-dlq-delivery"
assert triage({"error": "NO_PERMISSIONS", "retained": True}) == "repair-target-authorization"
assert triage({"retained": True}) == "plan-controlled-replay"
assert triage({"finding_exists": True}) == "check-downstream-evidence"
assert triage({}) == "check-downstream-evidence"
print("five delivery-evidence cases passed; no event was sent")
IN PRACTICE

A rule creates zero tickets because the target denies access; the team uses DLQ attributes to locate the failure and confirm recovery through support.

Common pitfalls

Findings as notification; retries as permission repair; silence as universal health; sampling as full analysis.

Related topics: Telemetry and investigation · Governance and evidence

Take this idea with you

Accept results within demonstrated scope and identify the concrete stage where evidence stops.

Create account

References

AWS is a trademark of Amazon.com, Inc. or its affiliates. bigsavant.com is an independent preparation platform and is not affiliated with, associated with, sponsored, authorised or endorsed by AWS. Content and questions are original, are not official exam questions, and completing our tests does not award or guarantee any certification. Names are used only to identify the subject. All other trademarks belong to their respective owners.