Siemens
10+ Indian Political Action Committee Interview Questions and Answers
Q1. How to run a docker command remotely. i.e. Docker is installed on both your laptop and a remote linux server. You need to run docker command on the linux server but without taking a separate ssh session to the...
read moreYou can use the Docker API to remotely run Docker commands on a Linux server without taking a separate SSH session.
Use the Docker API to interact with the Docker daemon on the remote Linux server.
Make sure Docker is installed and running on both your laptop and the remote server.
Authenticate with the remote server using appropriate credentials.
Establish a connection to the Docker daemon on the remote server using the Docker API.
Send the desired Docker command to the remote se...read more
The command used to delete a branch in Git is 'git branch -d <branch_name>'.
Use 'git branch -d <branch_name>' to delete a branch in Git.
Make sure to switch to a different branch before deleting the branch.
If the branch has not been merged, use 'git branch -D <branch_name>' to force delete.
CMD specifies the default command to run in the container, while ENTRYPOINT specifies the executable to run when the container starts.
CMD is often used to provide default arguments for the ENTRYPOINT command
ENTRYPOINT is used to specify the executable that will run when the container starts
CMD can be overridden at runtime by passing arguments to docker run command
ENTRYPOINT cannot be overridden at runtime, but can be combined with CMD to provide default arguments
The lifecycle of a Docker container involves creation, running, pausing, restarting, and stopping.
1. Creation: A Docker container is created from a Docker image using the 'docker run' command.
2. Running: The container is started and runs the specified application or service.
3. Pausing: The container can be paused using the 'docker pause' command, which temporarily stops its processes.
4. Restarting: The container can be restarted using the 'docker restart' command.
5. Stopping:...read more
git revert undoes a specific commit by creating a new commit, while git reset moves the HEAD to a previous commit without creating a new commit.
git revert creates a new commit that undoes a specific commit, keeping the commit history intact
git reset moves the HEAD to a previous commit, potentially discarding changes made after that commit
git revert is safer for shared branches as it does not rewrite history, while git reset can be used for local branches to reset to a previou...read more
Monitoring a Kubernetes cluster involves using tools like Prometheus, Grafana, and Kubernetes Dashboard.
Use Prometheus for collecting metrics from Kubernetes components and applications running on the cluster.
Set up Grafana for visualizing the collected metrics and creating dashboards for monitoring.
Utilize Kubernetes Dashboard for a graphical interface to view and manage the cluster resources.
Implement alerts and notifications using tools like Prometheus Alertmanager to proa...read more
Jenkins is an open-source automation server that helps to automate the non-human part of the software development process.
Jenkins is a Java-based application that runs in a servlet container like Apache Tomcat.
It can be installed on a single server or distributed across multiple servers for scalability.
Jenkins uses plugins to extend its functionality, allowing integration with various tools and technologies.
It follows a master-slave architecture where the master node manages ...read more
AWS provides a wide range of services and tools that support the principles and practices of DevOps.
AWS offers infrastructure as code tools like CloudFormation and Terraform for automating the provisioning of resources.
AWS provides a variety of monitoring and logging services such as CloudWatch and CloudTrail to help with continuous monitoring and feedback loops.
AWS supports continuous integration and continuous deployment (CI/CD) pipelines through services like AWS CodePipel...read more
A Docker image registry is a repository for storing and managing Docker images.
It allows users to push and pull Docker images to and from the registry.
Popular Docker image registries include Docker Hub, Amazon ECR, and Google Container Registry.
Registries can be public or private, with private registries requiring authentication for access.
Docker has 3 main components: Docker Engine, Docker Images, and Docker Containers.
Docker Engine is the core component responsible for running and managing Docker containers.
Docker Images are read-only templates used to create Docker containers.
Docker Containers are lightweight, standalone, and executable packages that include everything needed to run a piece of software.
LVM stands for Logical Volume Manager, used to manage disk space efficiently by allowing for dynamic resizing of volumes.
LVM allows for easy resizing of volumes without the need to unmount the filesystem
It provides features like snapshots, striping, mirroring, and thin provisioning
LVM can span multiple physical disks to create a single logical volume
Continuous Testing (CT) is the process of executing automated tests as part of the software delivery pipeline to obtain immediate feedback on the business risks associated with a software release candidate.
CT helps in identifying defects early in the development cycle.
It ensures that the software is always in a releasable state.
CT integrates testing into the CI/CD pipeline for faster feedback loops.
Examples include running unit tests, integration tests, and end-to-end tests a...read more
Git reflog is a reference log that records changes to the HEAD of the repository.
Records all changes to the HEAD reference
Useful for recovering lost commits or branches
Can be accessed using 'git reflog' command
Load average in Linux is a measure of system activity, indicating the average number of processes waiting for CPU time over a period of time.
Load average is displayed as three numbers representing the average load over the last 1, 5, and 15 minutes.
A load average of 1.0 means the system is at full capacity, while a load average of 0.5 means the system is half as busy.
High load averages may indicate that the system is overloaded and may require optimization or additional resou...read more
Kubernetes Load Balancing is a method to distribute incoming network traffic across multiple pods in a Kubernetes cluster.
Kubernetes Load Balancer service type automatically creates a cloud provider load balancer.
It helps in scaling applications by distributing traffic evenly across multiple pods.
Load balancing ensures high availability and reliability of applications running in a Kubernetes cluster.
Q16. What is the VPN port used for UDP
The VPN port used for UDP is typically 500.
The VPN port used for UDP is usually port 500.
UDP is a protocol that allows for faster transmission of data but does not guarantee delivery or order of packets.
Port 500 is commonly used for IPsec VPNs, which provide secure communication over the internet.
Other VPN protocols may use different ports for UDP, so it's important to check the specific configuration.
Q17. Syntax for grep command and regex
Syntax for grep command and regex
grep [options] pattern [file]
Regular expression (regex) is used to define the pattern
Examples: grep 'hello' file.txt
grep -i 'hello' file.txt
grep -r 'hello' /path/to/directory
Interview Process at Indian Political Action Committee
Top Devops Engineer Interview Questions from Similar Companies
Reviews
Interviews
Salaries
Users/Month