Find Interview Questions for Top Companies
West agile labs Interview Questions and Answers
Ques:- What is the difference between Public and Private Subnet?
Right Answer:

A Public Subnet is a subnet that has a route to the internet through an Internet Gateway, allowing resources within it to be accessed from the internet. A Private Subnet, on the other hand, does not have a direct route to the internet, meaning resources in it cannot be accessed directly from the internet.

Ques:- What is the difference between git add, git commit, and git push?
Right Answer:

– **git add**: Stages changes in your working directory for the next commit.
– **git commit**: Records the staged changes in the repository's history with a message.
– **git push**: Uploads your local commits to a remote repository.

Ques:- What is a commit? What does a commit contain?
Right Answer:

A commit in Git is a snapshot of changes made to the files in a repository. It contains the modified files, a unique identifier (hash), the author's information, a timestamp, and a commit message describing the changes.

Ques:- What’s the difference between git pull and git fetch?
Right Answer:

`git fetch` downloads changes from the remote repository to your local repository but does not merge them into your working directory. `git pull` does both: it fetches the changes and then merges them into your current branch.

Ques:- What is .gitignore and why is it used?
Right Answer:

.gitignore is a file used in Git to specify which files or directories should be ignored by version control. It prevents certain files, like temporary files or sensitive information, from being tracked and included in commits.

Ques:- What is a Service in Kubernetes? What types are available? (ClusterIP, NodePort, LoadBalancer, etc.)
Right Answer:

A Service in Kubernetes is an abstraction that defines a logical set of Pods and a policy to access them. It enables communication between different components in a Kubernetes cluster.

The types of Services available in Kubernetes are:

1. **ClusterIP**: Exposes the Service on a cluster-internal IP. It is only accessible from within the cluster.
2. **NodePort**: Exposes the Service on each Node’s IP at a static port. It allows external access to the Service.
3. **LoadBalancer**: Creates an external load balancer in supported cloud providers, routing traffic to the NodePort.
4. **ExternalName**: Maps the Service to the contents of the externalName field (e.g., a DNS name), allowing access to external services.

Ques:- How does Kubernetes handle networking and communication between pods?
Right Answer:

Kubernetes handles networking and communication between pods using a flat network model where each pod gets its own IP address. Pods can communicate with each other directly using these IPs. Kubernetes also provides services, which are stable endpoints that can load balance traffic to pods, enabling communication between different services. Additionally, Kubernetes uses network plugins (CNI) to manage networking and enforce policies.

Ques:- What are ConfigMaps and Secrets? How are they used?
Right Answer:

ConfigMaps and Secrets are Kubernetes objects used to manage configuration data.

– **ConfigMaps** store non-sensitive configuration data in key-value pairs, allowing applications to access configuration settings without hardcoding them in the application code. They can be used to inject environment variables, command-line arguments, or configuration files into pods.

– **Secrets** are similar to ConfigMaps but are specifically designed to store sensitive information, such as passwords, OAuth tokens, or SSH keys. Secrets are encoded and can be mounted as files or exposed as environment variables in pods, ensuring that sensitive data is handled securely.

Both are used to decouple configuration from application code, making applications more portable and easier to manage.

Ques:- How does Kubernetes handle persistent storage? (PVC, PV, StorageClass)
Right Answer:

Kubernetes handles persistent storage using Persistent Volumes (PV), Persistent Volume Claims (PVC), and StorageClasses.

– **Persistent Volumes (PV)** are storage resources in the cluster that have been provisioned by an administrator or dynamically provisioned using StorageClasses.
– **Persistent Volume Claims (PVC)** are requests for storage by users, specifying size and access modes. When a PVC is created, Kubernetes finds a matching PV to bind to it.
– **StorageClasses** define different types of storage (like SSD or HDD) and allow dynamic provisioning of PVs based on the specified class.

This system allows for flexible and manageable storage solutions in Kubernetes.

Ques:- What is HATEOAS and how does it relate to REST
Right Answer:
HATEOAS stands for Hypermedia as the Engine of Application State. It is a constraint of REST that allows clients to interact with a server by following hyperlinks provided in the responses. This means that a client can discover available actions and resources dynamically through the links, rather than hardcoding them, making the API more flexible and self-descriptive.
Ques:- What is the difference between RESTful APIs and SOAP
Right Answer:
RESTful APIs use standard HTTP methods and are based on resources, while SOAP is a protocol that relies on XML messaging and has strict standards. REST is generally more lightweight and easier to use, while SOAP provides more security and transactional reliability.
Ques:- What are HTTP methods and how are they used in RESTful APIs
Right Answer:
HTTP methods are standardized request types used in RESTful APIs to perform operations on resources. The main methods are:

1. **GET**: Retrieve data from the server.
2. **POST**: Create a new resource on the server.
3. **PUT**: Update an existing resource or create it if it doesn't exist.
4. **PATCH**: Partially update an existing resource.
5. **DELETE**: Remove a resource from the server.

These methods correspond to CRUD (Create, Read, Update, Delete) operations.
Ques:- How do you design a RESTful API
Right Answer:
To design a RESTful API, follow these steps:

1. **Identify Resources**: Determine the main entities your API will manage (e.g., users, products).
2. **Use HTTP Methods**: Map CRUD operations to HTTP methods:
- GET for retrieving resources
- POST for creating resources
- PUT/PATCH for updating resources
- DELETE for removing resources
3. **Define Endpoints**: Create clear and intuitive URL structures for each resource (e.g., `/api/users`, `/api/products/{id}`).
4. **Use Status Codes**: Implement appropriate HTTP status codes for responses (e.g., 200 OK, 201 Created, 404 Not Found).
5. **Support Filtering and Pagination**: Allow clients to filter and paginate results for large datasets.
6. **Versioning**: Include versioning in the API path (e.g., `/api/v1/`) to manage changes over time.
7. **Documentation**: Provide
Ques:- How do you handle errors and exceptions in a RESTful API
Right Answer:
To handle errors and exceptions in a RESTful API, use standard HTTP status codes to indicate the type of error (e.g., 400 for bad requests, 404 for not found, 500 for server errors). Include a consistent error response format in the body, providing details such as an error code, message, and any relevant information to help the client understand the issue. Log errors for internal tracking and debugging.
West Agile Labs is a global digital product agency headquartered in San Francisco, California. Founded in 2012 by Parasnis Shashank and Akash Agarwal, West Agile Labs provides end-to-end digital product development services to startups, Fortune 500 companies, and enterprises worldwide. The company specializes in helping businesses innovate and transform their ideas into successful digital products through a combination of strategy, design, engineering, and product management expertise. They offer a wide range of services, including product strategy, UX/UI design, web and mobile app development, quality assurance, DevOps, and more. West Agile Labs takes a customer-centric approach to product development, working closely with clients to understand their goals, challenges, and target audience. They emphasize agile methodologies, rapid prototyping, and iterative development to deliver high-quality products that meet user needs and market demands. With a team of over 250 talented professionals spread across offices in the United States, India, and Singapore, West Agile Labs has successfully completed projects for clients in various industries, including healthcare, finance, e-commerce, education, and technology. The company's commitment to innovation, quality, and client satisfaction has earned them recognition as one of the top digital product agencies globally. They have received several awards and accolades for their work, including being listed on the Inc. 5000 list of fastest-growing companies in America.
AmbitionBox Logo

What makes Takluu valuable for interview preparation?

1 Lakh+
Companies
6 Lakh+
Interview Questions
50K+
Job Profiles
20K+
Users