Software Engineering DevOps and CI/CD Pipelines 1 — Questions and Answers
Question 1: What does CI stand for in the context of DevOps?
- Continuous Improvement
- Continuous Integration (Correct answer)
- Continuous Infrastructure
- Code Inspection
Correct answer: Continuous Integration
CI stands for Continuous Integration, the practice of frequently merging developer code changes into a shared repository with automated builds and tests.
Question 2: Which tool is widely used for container orchestration in DevOps environments?
- Jenkins
- Docker Compose
- Kubernetes (Correct answer)
- Ansible
Correct answer: Kubernetes
Kubernetes is the leading container orchestration platform, automating deployment, scaling, and management of containerized applications.
Question 3: What is 'Infrastructure as Code' (IaC)?
- Writing code that runs on infrastructure
- Managing and provisioning infrastructure through code and configuration files (Correct answer)
- Using code to monitor infrastructure
- Automating infrastructure billing
Correct answer: Managing and provisioning infrastructure through code and configuration files
IaC is the practice of managing and provisioning infrastructure resources through machine-readable configuration files rather than manual processes.
Question 4: In a CI/CD pipeline, what does 'CD' typically stand for?
- Code Deployment
- Continuous Delivery or Continuous Deployment (Correct answer)
- Continuous Documentation
- Configuration Drift
Correct answer: Continuous Delivery or Continuous Deployment
CD stands for Continuous Delivery (automated release preparation) or Continuous Deployment (automated release to production).
Question 5: Which Git branching strategy uses short-lived feature branches merged frequently into the main branch?
- Git Flow
- Trunk-Based Development (Correct answer)
- GitHub Flow
- Release Branching
Correct answer: Trunk-Based Development
Trunk-Based Development involves developers integrating small, frequent commits directly into the main (trunk) branch to support CI practices.
Question 6: What is the primary benefit of containerization using Docker?
- Faster CPU processing
- Consistent runtime environments across development and production (Correct answer)
- Larger storage capacity
- Reduced network latency
Correct answer: Consistent runtime environments across development and production
Docker containers package applications with their dependencies, ensuring consistent behavior across different environments from development to production.
What does CI stand for in the context of DevOps?