DOL DevOps Principles 2 — Questions and Answers
Question 1: Which DevOps principle directly addresses the problem of 'it works on my machine' syndrome?
- Continuous monitoring
- Environment parity (Correct answer)
- Feature branching
- Manual change approvals
Correct answer: Environment parity
Environment parity ensures development, staging, and production environments are as identical as possible, eliminating environment-specific failures.
Question 2: A DevOps team notices that deployments are consistently failing on Fridays. According to DevOps principles, what is the BEST corrective action?
- Ban Friday deployments
- Increase deployment frequency and fix the pipeline (Correct answer)
- Require manager approval for Friday changes
- Roll back all Friday releases automatically
Correct answer: Increase deployment frequency and fix the pipeline
DevOps promotes increasing deployment frequency and improving the pipeline rather than imposing restrictions that slow delivery.
Question 3: What does the DevOps concept of 'shifting left' primarily mean?
- Moving deployments to earlier in the day
- Performing testing and security checks earlier in the development lifecycle (Correct answer)
- Reducing the number of production environments
- Prioritizing left-side backlog items first
Correct answer: Performing testing and security checks earlier in the development lifecycle
Shifting left means integrating testing, security, and quality checks as early as possible in development to catch issues sooner.
Question 4: In DevOps, what is the primary purpose of a 'post-mortem' after an incident?
- Assigning blame to responsible team members
- Documenting systemic improvements to prevent recurrence (Correct answer)
- Generating a report for executive leadership
- Determining SLA penalty payments
Correct answer: Documenting systemic improvements to prevent recurrence
Blameless post-mortems focus on systemic improvements and learning rather than individual blame, fostering psychological safety.
Question 5: Which metric from the DORA research most directly measures how quickly a team can recover from a production failure?
- Deployment frequency
- Lead time for changes
- Mean time to restore (MTTR) (Correct answer)
- Change failure rate
Correct answer: Mean time to restore (MTTR)
MTTR (Mean Time to Restore) measures the average time to recover service after a production failure, reflecting team resilience.
Question 6: A company practices 'you build it, you run it.' Which DevOps principle does this BEST exemplify?
- Continuous integration
- Shared responsibility and ownership (Correct answer)
- Infrastructure as code
- Value stream mapping
Correct answer: Shared responsibility and ownership
Shared responsibility means the team that builds a service also operates and maintains it, aligning incentives for quality and reliability.
Question 7: What is the key difference between 'continuous delivery' and 'continuous deployment'?
- Continuous delivery requires automated testing; continuous deployment does not
- Continuous deployment always includes manual approval; delivery does not
- Continuous delivery keeps software release-ready but requires a manual trigger; continuous deployment releases automatically (Correct answer)
- Continuous delivery deploys to production; deployment only deploys to staging
Correct answer: Continuous delivery keeps software release-ready but requires a manual trigger; continuous deployment releases automatically
Continuous delivery ensures software is always in a deployable state with a manual release step, while continuous deployment automates the full release to production.
Which DevOps principle directly addresses the problem of 'it works on my machine' syndrome?