Your enterprise cloud architecture team is establishing an automated, secure progressive delivery pipeline using Cloud Build, Artifact Registry, Binary Authorization, and Google Cloud Deploy. In what chronological sequence should the pipeline execution steps occur to safely roll out a new microservice release from code build to full production traffic?
- 1Compile the service, build the container image via Cloud Build, sign the digest using a Cloud KMS attestation key for Binary Authorization, and push the artifact to Artifact Registry.
- 2Create a new release in Google Cloud Deploy referencing the signed container image digest and target delivery pipeline definition.
- 3Deploy the Cloud Deploy release to the canary deployment target phase and route a small fraction (e.g., 10%) of live production traffic to the new revision.
- 4Evaluate automated telemetry by analyzing Cloud Monitoring metrics and error budgets for the canary workload against established SLO thresholds.
- 5Promote the Google Cloud Deploy release to the primary production target phase to route 100% of live user traffic to the verified revision.
Answer
The correct release sequence is: (1) Build container image and generate Binary Authorization attestation in Cloud Build -> (2) Register Cloud Deploy release with signed image digest -> (3) Deploy to canary stage and route partial live traffic -> (4) Perform automated SLO canary analysis via Cloud Monitoring -> (5) Promote release in Cloud Deploy to shift 100% traffic to production.
The proper release sequence follows shift-left security and progressive delivery best practices. First, Cloud Build creates the container artifact and signs it with a Cloud KMS key to satisfy Binary Authorization policies. Next, a Cloud Deploy release is declared using the signed image digest. The release is then deployed to a canary phase where a small portion of live traffic is routed. Operational health metrics (latency, error rates) are monitored and verified against SLOs. Once verified, Cloud Deploy promotes the release to receive 100% of production traffic.
Step-by-Step Solution
Key Concept
Automating progressive delivery release pipelines using Cloud Build, Binary Authorization, Google Cloud Deploy, and Cloud Monitoring canary verification.