Professional Cloud DevOps Engineer
Prepare and test your skills
Prepare and test your skills
Worked example. The correct answer is already marked and every option is explained below, so there is nothing to select here. To answer questions yourself, start the free trial.
Your DevOps team manages an enterprise application in Google Cloud and is implementing an automated CI pipeline using Cloud Build connected to an external Git repository. The pipeline must satisfy the following architectural requirements:
v1.2.3, but excluding pre-release tags like v1.2.3-alpha) are pushed.scan_id and severity_score) from the incoming JSON payload into build parameters.How should you configure Cloud Build to meet these requirements?
This solution properly combines Cloud Build Push Tag triggers using RE2 regular expression filtering with Webhook triggers that leverage Secret Manager for authentication and dynamic JSON payload extraction into user-defined substitution variables.
^v[0-9]+\.[0-9]+\.[0-9]+$ matches standard semantic version tags (e.g., v1.0.0, v2.4.12) while strictly excluding pre-release suffixes (such as -alpha, -beta, or -rc1).$(body.path.to.field) to extract values directly from the incoming JSON body into build substitution variables._SCAN_ID and _SEVERITY_SCORE), whereas system-defined variables (such as $BRANCH_NAME or $TAG_NAME) do not use leading underscores.This configuration uses native Cloud Build trigger mechanisms without requiring intermediary compute layers (such as Cloud Functions or Cloud Run), providing a serverless, highly secure, and maintenance-free CI integration.
Keep the momentum going with these hand-picked practice scenarios
Want more questions like this?
Get a free certification question every week.