AWS CodeBuild Internals for the DOP-C02 Exam: Every buildspec Section, the Phase Transition Rules (Why post_build Runs After a Failed build), on-failure RETRY & finally Blocks, Environment Variable Precedence & Secret Masking, Batch Builds (build-graph, build-list, build-matrix, build-fanout), S3 Cache Keys vs the Three Local Cache Modes, On-Demand vs Reserved Capacity Fleets vs Lambda Compute, Webhook Filter Groups & Pull Request Build Policies, Timeouts, Concurrency, Auto-Retry and Debugging with codebuild-breakpoint
A practitioner's deep dive into AWS CodeBuild for the AWS DevOps Engineer Professional (DOP-C02) exam — the full buildspec reference (run-as, env/parameter-store/secrets-manager/exported-variables, phases with on-failure ABORT/CONTINUE/RETRY and finally blocks, reports, artifacts, cache), the phase transition diagram and why POST_BUILD and UPLOAD_ARTIFACTS still run after a failed BUILD, environment variable precedence (start-build > project > buildspec), batch builds with build-graph/build-list/build-matrix/build-fanout and the separate batch service role, S3 caching with codebuild-hash-files keys and fallback keys vs LOCAL_SOURCE_CACHE / LOCAL_DOCKER_LAYER_CACHE / LOCAL_CUSTOM_CACHE, on-demand fleets vs reserved capacity fleets (overflow behavior, attribute-based compute, custom AMIs) vs Lambda compute and its limitations, webhook filter groups (EVENT, HEAD_REF, BASE_REF, FILE_PATH, ACTOR_ACCOUNT_ID, COMMIT_MESSAGE) and pull request comment approval, build and queued timeouts, concurrent build limits, auto-retry, VPC builds, and debugging with codebuild-breakpoint and the sandbox.