Rapyder Cloud Solutions
10+ CM Hospital Kabul Interview Questions and Answers
Q1. how do you troubleshoot a docker container that is going to die?
To troubleshoot a dying docker container, we can use logs, inspect the container, and check resource usage.
Check container logs using 'docker logs
' command Inspect the container using 'docker inspect
' command to check its status and configuration Check resource usage using 'docker stats
' command to see if it's running out of memory or CPU Restart the container using 'docker restart
' command if necessary
Q2. how do you take a backup of Linux logs to was S3 bucket?
Use AWS CLI to sync Linux logs to S3 bucket
Install AWS CLI on the Linux machine
Create an S3 bucket and configure IAM role with S3 permissions
Use AWS CLI command 'aws s3 sync' to sync logs to S3 bucket
Schedule a cron job to run the backup regularly
Q3. how do you give executable permissions of a file only to the user?
To give executable permissions of a file only to the user, use the chmod command with the u+x option.
Open the terminal and navigate to the directory where the file is located.
Use the command 'chmod u+x filename' to give executable permissions to the user only.
Verify the permissions using the 'ls -l' command.
Q4. what is the difference between a NAT gateway and an internet gateway
NAT gateway is used to provide internet access to private subnets while internet gateway is used to provide internet access to public subnets.
NAT gateway is used for outbound traffic while internet gateway is used for inbound and outbound traffic.
NAT gateway is associated with a private subnet while internet gateway is associated with a public subnet.
NAT gateway performs network address translation while internet gateway does not.
Example: NAT gateway is used to allow EC2 inst...read more
Q5. on what basis you have implemented autoscaling in your project?
Autoscaling was implemented based on CPU utilization and network traffic.
Autoscaling was implemented to ensure that the application can handle sudden spikes in traffic.
CPU utilization and network traffic were used as metrics to trigger autoscaling.
The minimum and maximum number of instances were set based on the expected traffic.
Load testing was done to determine the optimal scaling thresholds.
Autoscaling policies were set to gradually add or remove instances to avoid sudden ...read more
Q6. how do you build and push a docker image to ECR?
To build and push a docker image to ECR, we need to create a Dockerfile, build the image, tag it, login to ECR, push the image to ECR.
Create a Dockerfile with necessary configurations
Build the image using docker build command
Tag the image using docker tag command
Login to ECR using AWS CLI command aws ecr get-login-password
Push the image to ECR using docker push command
Q7. how did you integrate Jenkins and Docker?
Jenkins and Docker can be integrated using Jenkins Docker plugin.
Install Docker plugin in Jenkins
Configure Docker Cloud in Jenkins
Create a Jenkins pipeline job and specify Docker image to be used
Use Docker commands in Jenkinsfile to build and push Docker images
Q8. how does autoscaling work in AWS?
Autoscaling in AWS automatically adjusts the number of EC2 instances in a group based on demand.
Autoscaling groups are created and configured with minimum and maximum number of instances.
Scaling policies can be defined to adjust the number of instances based on metrics like CPU utilization or network traffic.
Autoscaling can be triggered manually or automatically based on CloudWatch alarms or scheduled events.
Autoscaling can also integrate with Elastic Load Balancing to distri...read more
Q9. what is AWS config and define it
AWS Config is a service that provides a detailed inventory of AWS resources and their configuration history.
AWS Config continuously monitors and records changes to resources and their configurations.
It provides a detailed view of resource inventory, configuration history, and configuration change notifications.
It helps in compliance auditing, security analysis, and resource change tracking.
AWS Config rules can be used to evaluate resource configurations against best practices...read more
Q10. what is a launch template?
A launch template is a pre-configured set of Amazon Machine Images (AMIs), instance types, and other settings used to launch EC2 instances.
Launch templates simplify the process of launching EC2 instances by providing a pre-configured set of settings.
They can be used to launch instances in an Auto Scaling group or individually.
Launch templates can be versioned and updated to reflect changes in the desired configuration.
They can also be shared across AWS accounts and regions.
La...read more
Q11. Linux command to find disc utilization?
Command to find disk utilization in Linux?
Use 'df' command to display disk space utilization
Use '-h' option to display sizes in human-readable format
Use '-T' option to display file system type
Use '-x' option to exclude certain file system types
Example: 'df -hT -x tmpfs -x devtmpfs'
Q12. What is a NAT gateway?
A NAT gateway is a managed network address translation service provided by AWS.
It allows instances in a private subnet to connect to the internet or other AWS services.
It provides better availability and bandwidth than a NAT instance.
It automatically scales to meet traffic demands.
It can be used to reduce the attack surface of instances in a private subnet.
It can be used to access resources in a VPC from a remote network.
Q13. explain CI/CD in your project.
CI/CD is the process of continuous integration and continuous delivery/deployment.
In our project, we use Jenkins as our CI/CD tool.
Every time a developer pushes code to the repository, Jenkins automatically builds and tests the code.
If the build and tests pass, Jenkins deploys the code to a staging environment for further testing.
Once the code is approved in staging, Jenkins deploys it to production.
This process ensures that code changes are thoroughly tested and deployed qui...read more
Interview Process at CM Hospital Kabul
Reviews
Interviews
Salaries
Users/Month