National Career Service
Applicantz 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. Java 8 What is Lamda Expression What is DI in spring
Lambda expression is a concise way to represent an anonymous function in Java 8. DI (Dependency Injection) is a design pattern used in Spring to manage object dependencies.
Lambda expressions are used to implement functional interfaces with a single abstract method.
DI in Spring allows for loose coupling between objects by injecting dependencies at runtime.
Example of Lambda expression: (x, y) -> x + y
Example of DI in Spring: @Autowired annotation to inject dependencies
Q7. 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
Q8. What is Functional Interface
Functional Interface is an interface with only one abstract method.
Functional Interface is used in Lambda expressions.
It can have any number of default or static methods.
Examples include Runnable, Comparator, and Callable interfaces.
Functional Interface can be annotated with @FunctionalInterface annotation.
Q9. What is oops concept
OOPs is a programming paradigm based on the concept of objects, which can contain data and code.
OOPs stands for Object-Oriented Programming
It focuses on creating objects that interact with each other to solve a problem
It includes concepts like inheritance, polymorphism, encapsulation, and abstraction
Examples of OOPs languages are Java, C++, Python, and Ruby
More about working at National Career Service
Interview Process at Applicantz
Top Interview Questions from Similar Companies
Reviews
Interviews
Salaries
Users/Month