To verify code changes from a Git repository before production deployment in a continuous delivery pipeline, which process aligns with best practices?
Choose an answer
Tap an option to check your answer.
Correct answer: Use Jenkins to monitor tags in the repository. Deploy staging tags to a staging environment for testing. After testing, tag the repository for production and deploy that to the production environment..
Why this is the answer
The correct option outlines a robust continuous delivery process. Monitoring tags allows for version control and clear identification of code states. Deploying to a staging environment for thorough testing before production is a critical best practice, ensuring quality and stability. Tagging for production after successful testing provides a clear audit trail and a controlled release mechanism. Incorrect options: Deploying directly to production with red/black (canary) deployments is a good strategy for production releases, but it bypasses a dedicated staging environment for pre-production testing, which is crucial for verifying code changes thoroughly. Running tests directly on production deployments is risky and can expose users to untested code or performance issues. Building both staging and master branches with Jenkins is good, but deploying to 10% of users (canary release) without a prior staging environment for comprehensive testing is less ideal for initial verification of all code changes.
Pass your exam — without the endless answer hunt
Get every verified question and explanation for this exam in one place, and save hours of prep. 1,000+ certifications · 20+ languages · free to start.
Pass your exam faster → No card needed