Concept and mechanism
A pipeline should answer three questions: what was built, what was tested, and what will run. The commit hash identifies code but not every build input. Variable dependencies, tools, and configuration can produce a different binary on rebuild.
Promote identified, tested artifacts while separating environment configuration and secrets. Keep reports linked to the actual version. A test command masking failure with a successful exit status breaks the gate even when its report documents errors.
Report collection should preserve the failure determining whether promotion can continue.
Guided application
In CodeBuild, retrieving a secret through an appropriate integration avoids placing it in visible configuration, but does not make every log safe. A transformed value may escape exact-value masking. Do not print secrets or variants.
Across accounts, distinguish role assumption from artifact access: the source needs sts:AssumeRole authorization and the destination needs suitable trust; S3, KMS, and other boundaries still apply. A pipeline in account A does not simply support passing an artifact produced in B to C when both actions are outside A.
Confirm the supported flow before increasing permissions. Finally, an expired manual approval is failure, not implicit acceptance. The current API allows timeout configuration; record the effective value.
Separate event selection and authorization
In a fictional instruction-processing service, the team wants to build changes in one repository area and promote only approved revisions. Start by writing two criteria: what starts work and what permits production effects. A trigger answers the first.
Within a filter, branch and path criteria are cumulative; alternative filters can allow startup through another route. An exclusion in one filter is not a global veto. Each changed file is evaluated independently, so an eligible file can start the pipeline even when another is excluded.
Build an example table before implementation: documentation-only change, eligible code, generated file, and a tag on an experimental branch. Record expected outcome and reason.
Diagnose missing or repeated starts
On branch creation, path selection may lack the change list needed to start the pipeline. If later pushes work, check that limitation before changing permissions without evidence. Conversely, a merge can satisfy both push and PR triggers, producing two executions.
Identify event, commit, and execution to reconstruct the sequence. In GitHub, Closed also includes manual closure; do not use it alone as evidence of merging. A manual start without an override uses the source action’s BranchName, even if automatic filters watch other branches.
At handover, include how to confirm the actual revision and the procedure for an incorrectly triggered release.
Give conditions an explicit effect
First define what should happen when a condition does not pass. All rules within a condition must succeed. Skip means the stage did not execute: it is not a passing test outcome and does not permit manual retry of that stage or override of that condition.
If the intent is recovery after failure, also check supported combinations; automatic stage retry cannot coexist with onFailure conditions. A CloudWatchAlarm rule references an existing alarm with suitable health semantics. The project should deliver configuration, evidence of pass and block cases, and authorized exceptions.
An operator needs to distinguish technical blocking, skipped work, and human authorization to choose the next action.
Carry identity without carrying secrets
A ticket, commit, and execution identifier help connect a release to evidence. Use unique action namespaces that differ from artifact names. The consumer must occur in a later stage or at a higher runOrder than its producer; display order does not establish dependency.
A variable without a default requires a value at startup, but the presence of a ticket does not prove approval. Validate scope and validity according to the defined process. Passwords do not belong in variables rendered in plaintext: use controlled retrieval from a secrets service.
At shift handover, convey identifiers and evidence locations while avoiding copying credentials into the change report.
Control origins and build authority
For an internal package, define whether new versions can be published directly and whether they can arrive upstream. An applicable group block is not overridden by package ALLOW. Inventory historical packages: recent defaults do not demonstrate that old rules were corrected.
In parallel, review the identity executing builds. A webhook uses the project role; an external contribution is not limited to its author’s personal permissions. Separate reduced-authority testing from authorized deployment.
Protecting the buildspec outside the PR removes one modification route, but tests still execute contributed code. This last point is a design inference that supports retaining isolation and least privilege.
Exercise: traceable promotion decision
The local model below receives already established facts: filter match, revision eligibility, approval, and rule outcomes. It implements neither glob matching, webhooks, nor AWS conditions. Run the examples and explain why permitted startup and authorized promotion are different decisions.
Add a case with unknown revision and another with incomplete tests. Then write a five-line RUN note: revision, execution, decision, missing evidence, and owner. In a real system, these values must come from authenticated sources and refer to the same revision, environment, and time window.
A set of client-supplied booleans is not an authorization control. Connect this exercise to the concurrency lesson and pipeline recovery.
Plan a mock session
The three mocks offer 75-question sessions with 180-minute limits. They reuse original items from this path without overlap among the three forms; studying lessons or repeating an attempt can increase familiarity. Choose a form, reserve the time, and answer without consulting explanations.
Use flags to return to uncertain decisions. Average available time is 2.4 minutes per question, but longer cases may require redistribution. One practice plan is to reserve about twenty minutes for review, adjusting it to observed pace.
This plan is a study suggestion, not an exam rule. Submission closes the session and makes explanations available. Do not confuse recognizing an answer with being able to justify the decision in a new scenario.
Turn results into deliberate practice
Afterward, classify each error: unknown concept, missed requirement, service boundary, evidence interpretation, or time management. Review every alternative’s explanation and consult the cited source when a rule remains unclear. Choose two topics to deepen before the next form; write a different example and explain which context change would alter the decision.
BigSavant accuracy awards one point per fully correct answer set. There is no partial credit for multiple responses, official passing score, or conversion to the AWS scale. All 75 questions count locally; we do not simulate the exam’s ten unscored items.
Weights are approximated using whole-item counts and all official tasks are represented, but this proves neither exhaustive coverage, equivalent difficulty, nor professional readiness. Record uncertainty and prepare a small technical exercise or case discussion to resolve it.
# Original local decision exercise; not an AWS trigger or authorization engine.
def promotion_decision(filter_matches, eligible_revision, approved, checks):
if not any(filter_matches):
return "no automatic start"
if eligible_revision is not True:
return "hold: revision not established"
if approved is not True:
return "hold: approval missing"
if not checks or not all(value is True for value in checks.values()):
return "hold: checks incomplete or failed"
return "eligible for controlled promotion"
assert promotion_decision([False, True], False, True, {"test": True}).startswith("hold: revision")
assert promotion_decision([True], True, False, {"test": True}) == "hold: approval missing"
assert promotion_decision([True], True, True, {"test": None}).startswith("hold: checks")
assert promotion_decision([True], True, True, {}).startswith("hold: checks")
assert promotion_decision([False], True, True, {"test": True}) == "no automatic start"
assert promotion_decision([True], True, True, {"test": True}) == "eligible for controlled promotion"
# Real authorization must bind trusted evidence to revision, target, identity and validity.
The checksum changed after QA. The change owner needs evidence about the new binary or promotion of the already validated artifact.
Common pitfalls
Commit as binary; encoded secret as safe; notification as approval; excessive permissions to bypass a service limitation.
Related topics: Progressive delivery and rollback · IaC, drift, and reconciliation
Connect identity, evidence, and authorization to the object actually promoted.
References
- DOP-C02 domain 1 · DOP-C02
- Pipeline trigger filtering · AWS documentation consulted 2026-10-05
- Stage conditions · AWS documentation consulted 2026-10-05
- CloudWatchAlarm rule reference · AWS documentation consulted 2026-10-05
- Pipeline variables · AWS documentation consulted 2026-10-05
- Package origin controls · AWS documentation consulted 2026-10-05
- CodeBuild webhooks · AWS documentation consulted 2026-10-05