nerdexam
Google

PROFESSIONAL-CLOUD-ARCHITECT · Question #302

You are deploying a critical application with a stateless, containerized frontend on Cloud Run and a Cloud SQL for PostgreSQL backend. The application experiences unpredictable traffic spikes, and the

The correct answer is C. Separate CI/CD pipelines for database schema migrations from application deployments. When. Following SRE and DevOps best practices, database schema migrations should be managed separately from application deployments to ensure safe rollbacks and reduce coupling. Using gradual traffic splitting for Cloud Run allows canary-style rollouts - gradually shifting traffic to t

Submitted by neha2k· Mar 30, 2026Ensuring solution and operations reliability

Question

You are deploying a critical application with a stateless, containerized frontend on Cloud Run and a Cloud SQL for PostgreSQL backend. The application experiences unpredictable traffic spikes, and the business requires the ability to immediately roll back a failed deployment to the last known good state. You need to apply a deployment strategy that aligns with Site Reliability Engineering (SRE) principles for both the application code and the database schema updates, while meeting the business's requirements. What should you do?

Options

  • APackage the database schema migration script within the container to be executed on every
  • BConfigure the CI/CD pipeline to use the :latest container tag for deployments, with database
  • CSeparate CI/CD pipelines for database schema migrations from application deployments. When
  • DUse a single CI/CD pipeline that first applies database schema changes and then deploys the

How the community answered

(62 responses)
  • A
    6% (4)
  • B
    26% (16)
  • C
    55% (34)
  • D
    13% (8)

Explanation

Following SRE and DevOps best practices, database schema migrations should be managed separately from application deployments to ensure safe rollbacks and reduce coupling. Using gradual traffic splitting for Cloud Run allows canary-style rollouts - gradually shifting traffic to the new revision and instantly reverting to the previous one if issues arise. This approach minimizes risk during spikes, enables rapid rollback, and keeps schema changes controlled and auditable in their own pipeline.

Topics

#deployment strategy#SRE#CI/CD#database schema migration

Community Discussion

No community discussion yet for this question.

Full PROFESSIONAL-CLOUD-ARCHITECT Practice