Capgemini
Good Search Knowledge Network Interview Questions and Answers
Q1. how do you delete last 30 days logs in tomcat by using shell script
Deleting last 30 days logs in Tomcat using shell script
Use find command to locate files older than 30 days
Use xargs command to pass the file names to rm command
Use crontab to schedule the script to run periodically
Q2. what are the stages you regularly write in pipeline job in Jenkins
Stages in pipeline job in Jenkins
Checkout code from version control system
Build the code
Run unit tests
Deploy to staging environment
Run integration tests
Deploy to production environment
Send notification email
Q3. how you can identify which process cause your server got slow
To identify the process causing server slowness, use monitoring tools and analyze system logs.
Use monitoring tools like Nagios, Zabbix, or Prometheus to track system performance metrics.
Analyze system logs to identify any errors or warnings related to specific processes.
Check CPU and memory usage of running processes using tools like top or htop.
Use profiling tools like strace or perf to identify resource-intensive processes.
Consider network traffic and disk I/O as potential ...read more
Q4. how do you configure ssl certification with tomcat
SSL certification can be configured with Tomcat by generating a keystore file and configuring the server.xml file.
Generate a keystore file using keytool command
Configure the server.xml file to include the keystore file and password
Update the connector element in server.xml to include the SSL protocol and port number
Restart Tomcat to apply the changes
Q5. how to integrate Maven with jenkins
Integrating Maven with Jenkins
Install Maven plugin in Jenkins
Configure Maven installation in Jenkins global tool configuration
Create a new Jenkins job and select Maven project
Specify the path to the pom.xml file in the project configuration
Configure build triggers and other settings as required
Q6. what are the git commands
Git commands are used to manage version control of code repositories.
git init - initialize a new repository
git add - add changes to the staging area
git commit - commit changes to the repository
git push - push changes to a remote repository
git pull - pull changes from a remote repository
git clone - clone a remote repository
git branch - create, list, or delete branches
git merge - merge changes from one branch to another
git checkout - switch between branches or restore files
git ...read more
Q7. explain dynamic inventory in ansible
Dynamic inventory is a feature in Ansible that allows for automatic inventory updates based on external data sources.
Dynamic inventory can be configured to pull inventory information from sources such as cloud providers, configuration management databases, or custom scripts.
This allows for more flexible and scalable inventory management, as hosts can be added or removed automatically based on changes in the external data source.
Dynamic inventory can be configured using plugin...read more
Q8. explain Jenkis pipeline job
Jenkins pipeline job is a way to define a series of steps to be executed in a specific order.
Pipeline job is defined using a Jenkinsfile or a script in the Jenkins UI.
It consists of stages, which are a collection of steps.
Each step can be a shell command, a script, or a plugin.
Pipeline job can be triggered manually or automatically based on events.
It provides visibility into the entire build process and enables continuous delivery.
Example: Build -> Test -> Deploy -> Notify
More about working at Capgemini
Reviews
Interviews
Salaries
Users/Month