Larsen & Toubro Limited
10+ Samsung Interview Questions and Answers
Q1. If pipeline breaks in production environment, how do you handle it?
I would follow the incident management process to identify the root cause and resolve the issue as quickly as possible.
Notify the relevant stakeholders and initiate the incident management process
Identify the root cause of the issue and take corrective actions
Rollback to the previous stable version if necessary
Communicate the status and progress of the incident to stakeholders
Conduct a post-incident review to identify areas of improvement
Q2. Did you write a Docker file from scratch? What is the syntax for Docker file?
Yes, I have written Docker files from scratch. The syntax for Docker file includes instructions and arguments.
Docker file is a script that contains instructions to build a Docker image
The syntax includes instructions like FROM, RUN, COPY, CMD, etc.
Arguments are used to specify details like the base image, working directory, etc.
Example: FROM ubuntu:latest RUN apt-get update && apt-get install -y python3
Example: COPY . /app WORKDIR /app CMD python3 app.py
Q3. How do you give permission to a particular secret to a user or application?
To give permission to a secret, grant access to the user or application in the secret management tool.
Access control can be managed through the secret management tool.
Users or applications can be granted read or write access to a specific secret.
Access can be granted based on roles or individual permissions.
Examples of secret management tools include HashiCorp Vault and AWS Secrets Manager.
Q4. What are the Docker commands used inside a Docker file?
Docker commands used inside a Dockerfile
FROM - specifies the base image
RUN - executes a command in the container
COPY - copies files from host to container
WORKDIR - sets the working directory for subsequent commands
CMD - specifies the command to run when the container starts
Q5. What is the procedure for .net pipeline build process?
The .NET pipeline build process involves several steps including source code management, building, testing, and deployment.
Source code is managed using a version control system like Git.
The build process involves compiling the code and creating an executable or library.
Unit tests are run to ensure the code is functioning correctly.
The application is deployed to a testing or staging environment for further testing.
Once testing is complete, the application is deployed to produc...read more
Q6. In pipelines, what is the approval request procedure?
Approval request procedure in pipelines involves manual or automated approval process before deployment.
Approval request is triggered when a pipeline reaches a certain stage or before deployment.
The request can be manual or automated depending on the pipeline configuration.
Manual approval requires a designated person to review and approve the request.
Automated approval can be based on predefined rules or conditions.
Approval request procedure ensures that only authorized chang...read more
Q7. How do you install nuget? What is the use of nuget restore?
NuGet is a package manager for .NET that simplifies the process of finding, installing, and using third-party libraries.
NuGet can be installed using Visual Studio or the NuGet command-line interface (CLI).
NuGet restore is used to restore the packages listed in a project's packages.config file.
NuGet packages can be used to add functionality to a project, such as libraries, tools, and frameworks.
NuGet also allows for the creation and publishing of packages to be shared with oth...read more
Q8. What is your strategy for Kubernetes cluster?
My strategy for Kubernetes cluster is to ensure high availability, scalability, and efficient resource utilization.
Implementing auto-scaling to handle sudden spikes in traffic
Using Kubernetes' built-in features like horizontal pod autoscaling and cluster autoscaling
Ensuring proper resource allocation and utilization through resource quotas and limits
Implementing rolling updates to minimize downtime
Using Kubernetes' built-in monitoring and logging tools to identify and trouble...read more
Q9. How do you autoscale in kubernetes?
Autoscaling in Kubernetes can be achieved through Horizontal Pod Autoscaler (HPA) and Cluster Autoscaler.
Horizontal Pod Autoscaler (HPA) scales the number of pods based on CPU utilization or custom metrics.
Cluster Autoscaler scales the number of nodes in the cluster based on resource utilization.
HPA can be configured using kubectl autoscale command or through YAML file.
Cluster Autoscaler can be installed as a Kubernetes deployment or as a cluster add-on.
Both HPA and Cluster A...read more
Q10. How do you run a Docker file?
To run a Docker file, use the 'docker build' command followed by the path to the Dockerfile.
Navigate to the directory containing the Dockerfile
Run the command 'docker build -t
.' The '.' at the end of the command specifies the build context
Once the build is complete, run the container using 'docker run
'
Q11. What is the use of Azure Keyvaults?
Azure Keyvaults are used to securely store and manage cryptographic keys, secrets, and certificates.
Keyvaults provide a centralized location for managing secrets and keys used in applications.
They allow for secure storage and retrieval of sensitive information such as passwords, API keys, and certificates.
Keyvaults can be accessed programmatically through APIs or through the Azure portal.
They can also be integrated with Azure services such as Azure Functions and Azure Virtual...read more
Interview Process at Samsung
Top Devops Engineer Interview Questions from Similar Companies
Reviews
Interviews
Salaries
Users/Month