Microservices - CI/CD for MicroservicesWhich of the following is the correct syntax to trigger a rollback in a Kubernetes deployment using kubectl?Akubectl rollout undo deployment/my-appBkubectl rollback deployment my-appCkubectl revert deployment my-appDkubectl deploy rollback my-appCheck Answer
Step-by-Step SolutionSolution:Step 1: Recall kubectl rollback commandThe correct command to rollback a deployment is 'kubectl rollout undo deployment/'.Step 2: Identify correct syntaxOnly kubectl rollout undo deployment/my-app matches the exact kubectl syntax for rollback.Final Answer:kubectl rollout undo deployment/my-app -> Option AQuick Check:Kubectl rollback syntax = rollout undo [OK]Quick Trick: Use 'kubectl rollout undo' to rollback deployments [OK]Common Mistakes:Using 'rollback' instead of 'rollout undo'Confusing 'revert' with rollback commandIncorrect command order or missing slashes
Master "CI/CD for Microservices" in Microservices9 interactive learning modes - each teaches the same concept differentlyLearnWhyDeepArchTryChallengeDesignRecallScale
More Microservices Quizzes Advanced Patterns - Backend for Frontend (BFF) pattern - Quiz 13medium Advanced Patterns - Backend for Frontend (BFF) pattern - Quiz 2easy Configuration and Secrets Management - Environment-based configuration - Quiz 5medium Migration from Monolith - Incremental migration plan - Quiz 12easy Migration from Monolith - Identifying service boundaries - Quiz 12easy Migration from Monolith - Database decomposition strategy - Quiz 11easy Real-World Architecture Case Studies - Spotify architecture overview - Quiz 7medium Real-World Architecture Case Studies - Architecture decision records (ADR) - Quiz 8hard Testing Microservices - Chaos engineering basics - Quiz 8hard Testing Microservices - Test environments and data - Quiz 10hard