Question 1
Q1You are architecting a CI/CD workflow for a monorepo containing a frontend application (in /client) and a backend API (in /api). You need to configure the workflow to trigger ONLY when changes are pushed to the main branch affecting the backend API code. Changes to documentation (Markdown files) inside the api directory should NOT trigger the workflow.
Which trigger configuration should you use?
Show answer & explanation
Correct answer: A
This configuration correctly targets the 'main' branch and uses 'paths' to include the api directory while simultaneously using 'paths-ignore' to exclude markdown files within that structure. Both filters are evaluated to determine if the workflow runs.