National Career Service
Guru Nanak Dev Super Specialty Hospital Interview Questions and Answers
Q1. What are the steps to deploy an application to kubernetes?
Steps to deploy an application to Kubernetes
Create a Kubernetes deployment file with specifications for the application
Apply the deployment file using kubectl apply command
Monitor the deployment using kubectl get pods command
Expose the application using a Kubernetes service
Scale the application by adjusting the replica count in the deployment file
Q2. What is NullResource in terraform.
NullResource in Terraform is a resource that performs no actions when applied, but can be used to trigger provisioners or other side effects.
NullResource is a resource type in Terraform that allows you to run provisioners without creating any infrastructure.
It can be used to trigger actions like running scripts or commands on the local machine or remote servers.
NullResource is often used for tasks like running initialization scripts, setting up configurations, or executing cu...read more
Q3. What are modules in terraform?
Modules in Terraform are reusable configurations that can be used to create multiple instances of resources.
Modules help in organizing and reusing Terraform configurations.
They allow for creating reusable components that can be shared across different projects.
Modules can be used to encapsulate related resources and configurations.
They promote code reusability and maintainability in Terraform scripts.
Q4. What is CrashLoopBackOff
CrashLoopBackOff is an error state in Kubernetes when a container repeatedly crashes and fails to start.
CrashLoopBackOff occurs when a container in a Kubernetes pod crashes and Kubernetes tries to restart it, but it keeps failing.
This error is often caused by misconfigurations, resource constraints, or application bugs.
To troubleshoot CrashLoopBackOff, check the container logs, resource limits, and pod configuration.
Examples: Insufficient memory allocation, incorrect image pa...read more
Q5. Define stage in docker.
A stage in Docker is a logical division in a Dockerfile where a specific set of instructions are executed and the resulting image is saved.
Stages help in breaking down complex build processes into smaller, manageable parts.
Each stage can have its own base image and set of instructions.
Stages can be used to optimize the build process by reusing intermediate images.
Stages are defined using the 'FROM' keyword in a Dockerfile.
Q6. modules in terrafrom
Modules in Terraform are reusable configurations that can be used to create resources in a consistent and efficient manner.
Modules help in organizing and reusing Terraform configurations
They can be used to create resources, manage infrastructure, and define policies
Modules can be shared and reused across different projects
Example: Creating a module for provisioning an AWS EC2 instance
More about working at National Career Service
Top Devops Engineer Interview Questions from Similar Companies
Reviews
Interviews
Salaries
Users/Month