Einfochips
10+ Berrybeans Technologies Interview Questions and Answers
Q1. How we can create EC2 instance by using terraform ? (write)
To create an EC2 instance using Terraform, define the necessary resources in a Terraform configuration file and run 'terraform apply'.
Write a Terraform configuration file with the necessary resources, such as 'aws_instance' for EC2 instance.
Specify the required parameters like 'ami', 'instance_type', 'subnet_id', etc.
Run 'terraform init' to initialize the working directory.
Run 'terraform plan' to see the execution plan.
Run 'terraform apply' to create the EC2 instance.
Verify t...read more
Q2. How to copy a commit one branch to another branch?
To copy a commit from one branch to another, use the git cherry-pick command.
Checkout the branch where you want to copy the commit
Find the commit hash of the commit you want to copy
Run 'git cherry-pick
' to apply the commit to the current branch
Q3. What is git remote and git remote? difference & command
git remote is used to manage remote repositories. git fetch is used to download changes from a remote repository.
git remote is used to manage remote repositories
git fetch is used to download changes from a remote repository
git remote add
is used to add a new remote repository git remote -v shows the list of remote repositories
git fetch
downloads changes from a remote repository git pull
fetches and merges changes from a remote repository git push
pushes changes to a remot...read more
Q4. How you will handle the injections and attacks?
Injections and attacks can be handled by implementing security measures and regularly updating software.
Implement security measures such as firewalls, intrusion detection systems, and access controls
Regularly update software and apply security patches
Conduct regular security audits and penetration testing
Train employees on security best practices and conduct background checks
Use encryption to protect sensitive data
Monitor network traffic for suspicious activity
Q5. How you will create pipeline through script?
Creating a pipeline through script involves defining stages, tasks, and triggers in a script file.
Define stages for each step in the pipeline
Define tasks for each stage, such as building, testing, and deploying
Define triggers for each stage, such as manual or automatic triggers
Use a scripting language such as YAML or JSON to define the pipeline
Examples: Jenkinsfile for Jenkins, azure-pipelines.yml for Azure DevOps
Q6. What are the layers of Docker image?
Docker image has 3 layers: Base, Dependencies and Application.
Base layer contains the OS and other system-level libraries.
Dependencies layer contains the libraries and packages required by the application.
Application layer contains the code and files specific to the application.
Each layer is read-only and builds on top of the previous layer.
Changes made to one layer do not affect the other layers.
This layering approach makes Docker images lightweight and easy to share.
Q7. What is fault domain?
A fault domain is a logical group of hardware components that share a common power source and network switch.
Fault domains are used to ensure high availability and fault tolerance in distributed systems.
By distributing resources across fault domains, system failures can be isolated and minimized.
Examples of fault domains include racks in a data center or availability zones in a cloud provider.
In the event of a power outage or network failure in one fault domain, the system ca...read more
Q8. What is webhooks in Jenkins ?
Webhooks in Jenkins are a way to trigger a build or perform an action in response to an external event.
Webhooks allow Jenkins to receive notifications from external systems.
They are typically used to trigger a build when a code repository is updated.
Webhooks can be configured to send JSON or XML payloads to Jenkins.
Jenkins can parse the payload and take actions based on the received data.
Webhooks can be set up for various events like code commits, pull requests, etc.
Q9. How to login docker registery?
To login docker registry, use the docker login command with the registry URL, username, and password.
Use the docker login command followed by the registry URL
Enter the username and password when prompted
Example: docker login myregistry.com -u username -p password
Q10. What is Git Gradle?
Git Gradle is not a specific tool or concept. Git is a version control system and Gradle is a build automation tool.
Git is a distributed version control system used for tracking changes in source code during software development.
Gradle is a build automation tool that is used to automate the building, testing, and deployment of software projects.
Git and Gradle are often used together in software development workflows to manage source code and build processes.
Q11. What is cherry pick?
Cherry pick is a Git command used to select and apply specific commits from one branch to another.
It allows developers to apply only the necessary changes to a branch without merging the entire branch.
It can be useful in situations where a bug fix or feature needs to be applied to a specific branch without affecting other branches.
Cherry picking can result in conflicts if the selected commit depends on other changes that are not present in the target branch.
Example: git cherr...read more
More about working at Einfochips
Top Devops Engineer Interview Questions from Similar Companies
Reviews
Interviews
Salaries
Users/Month