Comprehensive and Detailed Explanation
OCI DevOps supports automated build pipeline execution through repository triggers. These triggers can respond to supported repository events, including code pushes and pull request activities.
For repositories containing multiple application components, unrestricted triggers can cause unnecessary pipeline executions whenever unrelated files change.
OCI DevOps supports file-based trigger filtering that uses file path patterns to control whether a repository event should initiate a build.
Administrators can configure inclusion and exclusion criteria for relevant paths. File filters determine whether the changed files match the trigger conditions before the build pipeline starts.
For this monorepo, the architect should configure an inclusion pattern targeting the application directory, such as app/** , and exclude the configuration directory when appropriate.
Oracle documents that excluded files are removed from the matching set after inclusion filters are evaluated. Changes affecting only excluded files do not invoke the build.
Option B therefore implements the desired behavior through native trigger configuration.
Option A incorrectly assumes a project IAM policy provides file-level build trigger filtering.
Option C introduces custom Git hooks and pipeline termination logic that are unnecessary for this requirement.
Option D delays evaluation until the build has already started, wasting compute resources and failing to prevent unnecessary pipeline initiation.
Official Oracle References: OCI DevOps — Trigger Configuration, File Filters; Oracle Terraform Provider — oci_devops_trigger, file_filter and file_paths
Submit