Expeditors International
Interview Questions and Answers
Q1. what is ansible and what is the difference between ansible and terraform?
Ansible is a configuration management and automation tool, while Terraform is an infrastructure provisioning tool.
Ansible is used for configuration management, application deployment, and task automation.
Terraform is used for infrastructure provisioning and managing cloud resources.
Ansible uses YAML-based playbooks to define tasks and configurations, while Terraform uses HCL (HashiCorp Configuration Language) to define infrastructure as code.
Ansible is agentless, meaning it d...read more
Q2. What is Docker, and what is Kubernetes and its advantages over docker?
Docker is a containerization platform for packaging, distributing, and running applications. Kubernetes is a container orchestration tool for managing containerized applications.
Docker allows you to package an application and its dependencies into a container for easy deployment.
Kubernetes automates the deployment, scaling, and management of containerized applications.
Kubernetes provides features like auto-scaling, self-healing, and load balancing, which Docker alone does not...read more
Q3. what are packages we use in ansible?
Some common packages used in Ansible are ansible, ansible-lint, ansible-playbook, ansible-vault, and ansible-doc.
ansible
ansible-lint
ansible-playbook
ansible-vault
ansible-doc
Q4. How you create a jenkins pipeline
To create a Jenkins pipeline, you can use the Jenkinsfile to define the stages and steps of the pipeline.
Create a Jenkinsfile in your project repository
Define stages and steps in the Jenkinsfile using declarative or scripted syntax
Commit and push the Jenkinsfile to trigger the pipeline in Jenkins
Monitor the pipeline execution in Jenkins dashboard
Q5. What is Inode in linux
Inode is a data structure in Linux file systems that stores metadata about files, such as permissions, ownership, and location.
Inodes contain information like file size, timestamps, and pointers to data blocks.
Each file in a Linux system is associated with an inode.
Inodes are identified by a unique inode number.
When a file is created, an inode is also created to store its metadata.
Q6. final class, write code to sort array of strings
Sort array of strings using final class
Create a final class with a static method to sort the array of strings
Use Arrays.sort() method to sort the array of strings
Q7. What is meant by storage classes
Storage classes in Java define the scope and lifetime of variables.
There are four storage classes in Java: static, public, protected, and private.
Static variables are shared among all instances of a class.
Public variables can be accessed from any other class.
Protected variables can only be accessed within the same package or by subclasses.
Private variables can only be accessed within the same class.
Q8. Write a program to reverse a word
Program to reverse a word in Java
Create a char array from the input word
Use two pointers to swap characters from start and end of the array
Convert the char array back to a string and return
Interview Process at null
Top Interview Questions from Similar Companies
Reviews
Interviews
Salaries
Users/Month