Skip to content

Basic DevOps Interview Questions: What You Need to Know

SDET Interview Questions

Nowadays whenever we appear for interviews it is expected from a Test automation engineer to know about the basics of DevOps and basic details of the tools being used in the project apart from the QA tools or Test automation tools. In this article, I have tried to cover some basic DevOps Interview Questions for SDET.

1)What are the roles and responsibilities of SDET?

SDET is a person who is well-versed in Testing and development. They remain concerned with white-box as well as black-box testing. The scope is very wide which includes focusing on multiple skills and technologies like Test Automation, Performance Testing, Security, CI/CD, and so on based on the project requirement.

2)What is DevOps?

DevOps is a set of practices and tools designed to shorten the life cycle of a software development process. It is used to automate and integrate the processes between software development and other operations so that the software can be built, tested, and released in a faster and more reliable manner.

3)Have you used any DevOps tools in your project?

In the Continuous testing phase, the built software is continuously tested for bugs using testing tools such as Selenium, TestNG, and Junit. Git was used as a version control tool and used Jenkins and Docker for CI/CD and Containerization.

4)What are the popular tools in DevOps?

  • Git – Versioning Control Tool
  • Jenkins – CI/CD Tool
  • Selenium/TestNg – Continuous Testing tool
  • Ansible/Chef – Configuration  Management and Deployment tools 
  • Nagios – Continuos Monitoring Tool
  • Docker – Containerization tool 

5)Do you know any source code management tools?

Source code management (SCM) is where the teams share and collaborate on their work. Git and BitBucket are two popular tools. These tools are also referred to as Version control systems because these are used to track modifications and maintain the version history.

6)What is the difference between Git and GitHub?

Git is a distributed version control system for tracking changes in computer files. It is a command-line tool and is installed locally in the system. GitHub is a service that provides a web interface to upload files. It is a hosting service for Git Repositories.

7)If you have worked with Git, can you explain the lifecycle of Git?

1)Fetch the working copy from the remote repository using the clone operation on your local.
2)Modify the Working copy as per the required operation.
3)Review Changes.
4)Commit changes after successful review.
5)Push your changes to the remote repository.

8)What is Staging Area in Git?

Before committing a file, it must be formatted and reviewed in an intermediary area known as the ‘Staging area’ or ‘Indexing area’.

9)What is Git Stash?

Git stash is a built-in command with the distributed Version control tool in Git that locally stores all the most recent changes in a workspace and resets the state of the workspace to the prior commit state. A user can retrieve all files put into the stash with the git stash pop and git stash apply commands.

10)What are the advantages of using Git?

1)High Availability.
2) Collaboration friendly.
3)Data redundancy and replication.

11)What is the difference between Maven and Jenkins?

Jenkins is a continuous integration tool while Maven is a build tool.

12)What is Jenkins?

Jenkins is a powerful automation tool written in Java, It allows continuous integration and continuous delivery of projects. It supports Windows, macOS, and Unix-like operating systems. It is portable and has rich plugins and strong community support.

13)What is a Jenkins job?

A job is a runnable task that Jenkins controls to achieve a required objective. There are several types of build jobs in Jenkins:

1)Freestyle
2)Maven
3)External Job
4)Pipeline

14)What is Webhook?

Webhooks provide your application with a way of consuming new event data from an endpoint and instead of sending repeated requests for recent events, you provide the endpoint with a URL, which your application monitors

15)How do you store credentials in Jenkins?

Credentials can be stored securely using the Credentials plugin, which stores different types of credentials like Username and password, SSH, AWS Credentials, etc.

16)How to create a pipeline Job in Jenkins?

From the Jenkins dashboard, click on New Item -> Enter the Job name ->Select Pipeline, and Click Ok.

Jenkins Pipeline

Select the Pipeline section, in Definition select Pipeline script, from try sample Pipeline

pipeline {
    agent any
    stages {
        stage ('Build') {
            steps {
                sh 'echo Hello Build stage'
            }
        }
        stage ('Test') {
            steps {
                sh 'echo hello Test stage'
            }
        }
    }
}

Click on Build Now.

17)What is Docker?

Docker is a platform to develop, ship, and run applications by using containers. Docker aids the user to test and deploy the code into production. In Docker, every application runs on separate containers and has its own set of dependencies and libraries.

18)What is Docker Hub?

Docker Hub is a registry service on the cloud that allows you to download docker images that are built by other communities. You can also upload your docker-built images to Docker Hub.

19)What is Docker File?

A docker file is a text document that contains instructions on how to build your own images.

20)What is Docker Image?

A docker image is the source of a docker container in other words docker images are used to create containers.

21)What Role does docker play in Test Automation?

1)Wrapping the tests with Docker will help you easily move them to a different workspace as required.
2)A lot of unnecessary computing overhead can be avoided while setting up the Selenium grid.
3)Chances of discrepancies between environments are very, very low because all the team members can use the same container, irrespective of the operating system.
4)Docker is scalable. Suppose You want to add more browsers for parallel execution ex:4 instances of chrome, This can be done easily in Docker.

22)Do you know where is your application hosted?

Yes, AWS/Azure server as per your project.

23)What is AWS?

AWS is a platform that provides on-demand resources for hosting web services, storage, networking, database, and other resources over the internet with pay-you-go pricing.

24)What databases have you used in your application? are you using RDS?

Yes, we are using RDS (Amazon relation database service) which supports an array of database engines to store and organize data.

25)Have you worked on AWS Lambdas?

AWS lambdas allow you to write custom logic to AWS resources. It is a serverless computing service that lets you run code for virtually any type of application or backend service without managing or provisioning services. I never wrote lambdas but executed the already written lambdas to test a few services

26)What is SSH or RDP?

SSH (Secure socket shell) is a network protocol that we used to log into the remote machine and command line execution. RDP (Remote desktop protocol) is used to remotely access a computer. SSH works with the Linux operating system. When we create a Linux instance then we access it using ssh, if we create a window instance then it is accessible by using RDP.

27)What are the alternatives to Jenkins?

Several Jenkins alternatives are available for Continuous Integration like TeamCity, GitLab, Bamboo, Circle CI, Urbancode etc.

28)What is the purpose of branching in Git?

In GIT, branching serves the goal of allowing you to make your own branch and jump between them. You will be able to continue working on recent projects while returning to earlier ones.

To create a new branch in git, use the below command

git checkout -b <new-branch>

To switch to an existing branch

git checkout <branchname>

To see all branches including local and remote use the below-mentioned command:

git branch -a