Genpact
Fena Interview Questions and Answers
Q1. How will you setup a microservice architecture application simple testing environment and deployment pipeline using kubernetes, containers, jenkins and available Cloud services.
Setup microservice testing and deployment using Kubernetes, containers, Jenkins, and Cloud services.
Create a Kubernetes cluster on a Cloud provider
Build Docker containers for each microservice
Create a Jenkins pipeline for testing and deployment
Use Kubernetes to deploy and manage the containers
Use Cloud services for load balancing, monitoring, and scaling
Q2. How to run cmd commands using python on windows environment ?
To run cmd commands using python on windows, use the subprocess module.
Import the subprocess module
Use the subprocess.run() method to execute the command
Pass the command as a list of strings to the run() method
Use the shell=True argument to run the command in a shell environment
Capture the output of the command using the stdout attribute of the returned CompletedProcess object
Q3. What is difference between deep and shallow copy in python paradigm?
Deep copy creates a new object with a new memory address while shallow copy creates a new object with the same memory address as the original object.
Deep copy creates a completely new object with a new memory address.
Shallow copy creates a new object with the same memory address as the original object.
In deep copy, changes made to the copied object do not affect the original object.
In shallow copy, changes made to the copied object affect the original object.
Deep copy is used...read more
Q4. How can you send email with attachment using powershell ?
Send email with attachment using PowerShell
Use Send-MailMessage cmdlet
Specify recipient, subject, body and attachment parameters
Example: Send-MailMessage -To 'example@email.com' -Subject 'Test Email' -Body 'This is a test email' -Attachments 'C:\test.txt'
Q5. What is namespace in Docker ?
Namespace in Docker is a way to isolate resources and avoid naming conflicts.
Namespaces provide a layer of isolation for containers
Each namespace has its own set of resources
Namespaces can be used for network, process, and mount isolation
Example: docker run --name mycontainer --net=container:othercontainer myimage
Q6. How to install IIS using powershell ?
To install IIS using PowerShell, use the Install-WindowsFeature cmdlet.
Open PowerShell as an administrator
Run the command: Install-WindowsFeature -name Web-Server -IncludeManagementTools
Press 'Y' to confirm installation
Wait for the installation to complete
More about working at Genpact
Reviews
Interviews
Salaries
Users/Month