0% found this document useful (0 votes)
7 views3 pages

devop viva pratical

The document provides an overview of DevOps principles, practices, and the roles of DevOps engineers, emphasizing collaboration and automation to enhance software delivery. It covers version control systems, specifically Git, detailing commands for repository management and operations. Additionally, it discusses Jenkins for automating build processes, integrating Selenium for testing, and introduces Docker for application deployment in containers.

Uploaded by

vinayak
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
7 views3 pages

devop viva pratical

The document provides an overview of DevOps principles, practices, and the roles of DevOps engineers, emphasizing collaboration and automation to enhance software delivery. It covers version control systems, specifically Git, detailing commands for repository management and operations. Additionally, it discusses Jenkins for automating build processes, integrating Selenium for testing, and introduces Docker for application deployment in containers.

Uploaded by

vinayak
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 3

### 1.

**To Understand DevOps: Principles, Practices, DevOps Engineer Roles and


Responsibilities**

- **Q1:** What is DevOps?


- **A1:** DevOps is a set of practices that combines software development (Dev) and IT operations (Ops) to shorten
the development lifecycle.

- **Q2:** What are the key principles of DevOps?


- **A2:** Collaboration, automation, continuous integration, continuous delivery, and monitoring.

- **Q3:** What roles do DevOps engineers typically perform?


- **A3:** DevOps engineers focus on automation, managing infrastructure, continuous integration, and delivery
pipelines.

- **Q4:** How does DevOps improve software delivery?


- **A4:** It reduces the time between coding and deployment by automating manual processes.

- **Q5:** What is the difference between Agile and DevOps?


- **A5:** Agile focuses on software development, while DevOps bridges the gap between development and
operations.

### 2. **To Understand Version Control System (VCS)/Source Code Management


(SCM), Install Git, and Perform GIT Operations**

- **Q1:** What is a version control system (VCS)?


- **A1:** A VCS tracks changes in source code, helping multiple developers collaborate.

- **Q2:** What is Git, and how is it different from other VCS?


- **A2:** Git is a distributed VCS, allowing every developer to have a complete copy of the repository.

- **Q3:** How do you initialize a Git repository?


- **A3:** By running `git init` in the project directory.

- **Q4:** What command is used to clone a repository?


- **A4:** `git clone <repository_url>`.

- **Q5:** What are the three main stages of Git?


- **A5:** Working directory, staging area, and the Git repository.

### 3. **To Perform Various GIT Operations on Local and Remote Repositories Using
GIT Cheat-Sheet**

- **Q1:** How do you add changes to the staging area in Git?


- **A1:** Using the `git add` command.

- **Q2:** What command is used to commit changes in Git?


- **A2:** `git commit -m "<message>"`.
- **Q3:** How do you push changes to a remote repository?
- **A3:** By running `git push <remote> <branch>`.

- **Q4:** What does the `git pull` command do?


- **A4:** It fetches and merges changes from the remote repository to the local one.

- **Q5:** What is the purpose of `git branch`?


- **A5:** It lists, creates, or deletes branches in Git.

### 4. **To Build Pipeline of Jobs Using Maven/Gradle/Ant in Jenkins**

- **Q1:** What is Jenkins?


- **A1:** Jenkins is an open-source automation server used to automate software development processes.

- **Q2:** What is a Jenkins pipeline?


- **A2:** A pipeline is a suite of plugins that support implementing continuous delivery pipelines in Jenkins.

- **Q3:** How does Maven help in Jenkins?


- **A3:** Maven automates the build process in Jenkins by handling dependencies and compilation.

- **Q4:** What is the Jenkins Master-Slave architecture?


- **A4:** Jenkins uses a master-slave architecture to distribute the load of building and testing across multiple
machines.

- **Q5:** What is the role of slave nodes in Jenkins?


- **A5:** Slave nodes are used to run build jobs, helping to scale the Jenkins infrastructure.

### 5. **To Setup and Run Selenium Tests in Jenkins Using Maven**

- **Q1:** What is Selenium?


- **A1:** Selenium is a tool for automating web browser testing.

- **Q2:** How do you integrate Selenium with Jenkins?


- **A2:** By creating a Jenkins job that runs Selenium tests as part of the build pipeline.

- **Q3:** What is the purpose of Maven in Selenium?


- **A3:** Maven helps manage dependencies and execute tests using Selenium.

- **Q4:** How do you run Selenium tests in Jenkins?


- **A4:** Configure Jenkins to trigger the Selenium tests through a Maven job.

- **Q5:** How can you view Selenium test results in Jenkins?


- **A5:** Jenkins provides a test result page where test results and logs can be viewed.

### 6. **To Understand Docker Architecture and Container Life Cycle**


- **Q1:** What is Docker?
- **A1:** Docker is a platform that automates the deployment of applications in lightweight containers.

- **Q2:** What are Docker containers?


- **A2:** Docker containers are lightweight, portable units that package applications and their dependencies.

- **Q3:** What are Docker images?


- **A3:** Docker images are templates used to create containers.

- **Q4:** What command is used to list running Docker containers?


- **A4:** `docker ps`.

- **Q5:** What are the main stages of the Docker container life cycle?
- **A5:** Create, start, stop, and remove.

### 7. **To Learn Docker File Instructions**

- **Q1:** What is a Dockerfile?


- **A1:** A Dockerfile is a script containing instructions to build a Docker image.

- **Q2:** What is the purpose of the `FROM` instruction in a Dockerfile?


- **A2:** It specifies the base image for the Docker image.

- **Q3:** How do you build a Docker image from a Dockerfile?


- **A3:** By using the `docker build` command.

- **Q4:** What does the `COPY` instruction do in a Dockerfile?


- **A4:** It copies files from the host into the Docker image.

- **Q5:** What is the difference between `RUN` and `CMD` in Dockerfile?


- **A5:** `RUN` executes a command during the image build process, while `CMD` specifies the command to run when
the container starts.

Let me know if you'd like more questions for any other experiments!

You might also like