0% found this document useful (0 votes)
8 views

QuestionBank 1

The document outlines a comprehensive set of questions and topics related to software development, focusing on technologies such as Java, Microservices, Spring, SQL, and DevOps practices. It includes inquiries about project experiences, system design, authentication, deployment strategies, and various programming concepts. Additionally, it presents a problem statement involving a restriction rule engine for processing online orders, along with examples of coding challenges and architectural considerations.

Uploaded by

Suresh
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as XLSX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
8 views

QuestionBank 1

The document outlines a comprehensive set of questions and topics related to software development, focusing on technologies such as Java, Microservices, Spring, SQL, and DevOps practices. It includes inquiries about project experiences, system design, authentication, deployment strategies, and various programming concepts. Additionally, it presents a problem statement involving a restriction rule engine for processing online orders, along with examples of coding challenges and architectural considerations.

Uploaded by

Suresh
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as XLSX, PDF, TXT or read online on Scribd
You are on page 1/ 11

Topic

Project

Corejava

MicroServices

Coding

Spring

SQL
Testing

DevOps

Others
Question
Briefly explain about your profile
About recent projects worked
What are technologies used in current projects
How to scale your application
Architecture diagram for current application
System Design of the previous working project (approach used, suggested changes, blockers).
What and how is authentication and authorization in your project architecture?
Project deployement
Deployment strategy used
Quality gates implemented in your application
OOPS concepts
Java 8
SOLID principles
Design pattern
Transaction Management.
Monolithic vs microservices.
Project architechture
How do manage security between microservices
Principles used in microservice
What is CQRS?
What is event sourcing
Exposure to Microservices / Distributed systems etc.
How to mange fault tolerance
Circuit breaker
DB design For Microservices
Where exactly are you using microservices in your current project
Why you choose microservices for your project?
How you store your microservice communication events?
How you communicate with microservices with your UI? Rest or event?
How to logging in microservices?
What is event in distributed communication?
The Advantages and Disadvantages of Monolithic and Microservices
Centralized Logging in Microservices
design a cache, value should not return after 10 min.
Simple Cache Implementation with TTL for each key
Spring actuators
Spring security
Springboot annotations
What is aspect
Spring framework
Spring security
Why JWT? Benefits
Exception handling incase if any service not able to respond
Cache - can we use multithreading?
Implementation of a user-defined cache with TTL using Java Collections (without using Springboot)
Fetch second largest transation amoiunt from diff. tables
Why should be use TDD?
Why Kafka?
How would you modularize the tasks/aspects in terraform?
How do we manage secrets in terraform?
How do we manage secrets in ansible, aws, k8s?
What is high level strategy of implementing the secrets data while migrating the infra from AWS to Azure?
Do you know what is git secrets? it could be github actions secrets?
How does the secrets information managed in the environment impacted by developers/development environment?
Have you ever managed the credential rotation?
what disruptions it will create when managing the credentials and credential rotation?
what is the SLA percentage of the application?
how do you manage disruptions when doing any change activity?
what is workload availability across regions? for ex: there is a load in a region, so how can we push the load to other region?
How can you manage zero downtime of the application?
How comfortable are you with EKS and self-managed kubernetes cluster and other k8s components?
Have you dealt with RBAC of k8s?
Have you managed API server dashboards?
Have you worked on Helm charts?
How do you upgrade Jenkins from one version to another version which could lead to least disruption?
Any other continuous integration you are familiar with? Like Github Actions?
Have you worked on data center or servers in data center?
Why you choose dynamo dB over other no SQL dB?
Difference between log and metrics?
How you maintain logs in any database?
Why you choose aws? why not other cloud?
What's about your devops and release process?
How you maintain index in your log?
Control advice and ExcptionHandler for global exception handling
Asked to explain how certain APIs were used or third party APIs would help and usage, like trace logging, event sourcing.

1. # Problem Statement

Tesco gets millions of orders every day with an average basket size of 100 items.
Tesco Business has got some regulations around selling products online and in stores.
These regulations are mandatory from legal and business perspective to enforce for all order transactio

You are given an order with a list of products in the shopping cart/basket with productid, product Cate
And also, Restriction Rules on Qty and Qty/Category.

### Example:
Ordered items in the shopping cart/basket
Item-1 -> productid=1, category=Paracetamol, quantity=3
Item-2 -> productid=2, category=analgesic, quantity=3
Item-3 -> productid=3, category=chocolate, quantity=8
Item-4 -> productid=4, category= Paracetamol, quantity=2

### Business Restriction rules:

Cannot buy more than 10 Quantity of any products - BulkBuyLimit


Cannot buy more than 5 Quantity of paracetamol products – BulkBuyLimitCategory

Write a restriction rule engine to run the restriction check against the shopping cart/basket
and return the status as to MET/BREACHED indicating restriction status for the given restriction rules.
For the above given example, the restriction status returned would be MET.

For this asked me to write whole application or usecases and explain logic.

2. Example for stream API and lambda expression


3. How do we do peer review? Functional mis-outs how do we come over?
4. Difference between spring and springboot

I took around 35 to 40 mins for the first question.

1.Suppose there is a controller and service class already written and new member in team has asked to write another service u
New service is invoked but its throwing exception.

2. why it is throwing null pointer exception and how do you make it work?

3. Regex Expression

4. How can we make new service available for existing controller and new controller , can we use any annotation?

5. Microservices, Rest API call , query param and how to implement it based on some real time scenario

Scenario: service and controller classes can be used to get different type of pizzas

One more scenario but I cannot remember it

6. Singleton Pattern and how do you break this one instance principle

These are all the question I remember .


1.describe about last project.
2.cloud technologies like dockers and Kubernetes
3.spring security models
4. methods annotations
5. explain microservice architecture
6. application fails to fetch the resource exception handling method.
7.What are the Spring boot annotations
8. sql query related to union all and joints
9. sql query to find the 5th highest salary
10.how microservices are communicate with each other
11.java 8 features

1. Requirement analysis / Use case identification skill


2. Object oriented modelling / Structuring skill
3. Independently establishing the flow of solution.
4. Fluent with java syntaxes.
5. declaring list with generics.
6. stream operations.

1.) Self intro brief with tech stack and details.


2.) Project related and scenarios-based questions on java 8 feature that you have implemented in your project with details.
3.) Difference between flatMap and map.
4.) Coding question on java 8
Let’s say we have a list of title then, print the list of characters of titles.
For example:
List<String> titles = List.of(“verma”,”karn”,”singh”);
Result is List [v,e,r,m,a,k,a,r,n, and so on]
5.) Coding question or kind of thought implementation on multithreading java 8
In below given scenario:
Let’s suppose we have 2 threads, and both are running on main method
1st. thread:
Int limit = 100000;
Sum = 0;
While loop {
Sum = 1.3 + sum;
}
2nd. thread:
let’s suppose this also doing the same process without limit and in running mode (note : It’s never wait for any thread)

So, if 1st thread sum reaches to it’s limit then 2 nd thread get some Boolean flag to stop its own execution.
6.) Database related:
Difference between functions and procedure and when do we use at what scenarios.
Write some sample syntax of both.
Q1.For given list of employees,
Calculate sum of those employee salary whose age > 25, using java8 stream

Q2: In Reactive find second highest salary in below array list using Java8 streams .
Q3: count the recorder from DB in spring boot before start the application of all services
Q4. How do we provide security in Microservices
Q5.Which design pattern have you worked and explain the code
Q6. Docker how can we create Dckerfile for project explain each point
Q7. Azure how do you deploy.
Q8. CI/CD pile line command of Jenkins.
Q9.how do you perform the performance of the system and How you can log the performance of the services
Q10.which Microservices Design Patter ou have worked explain
Q11.Spy vs Moke .
Q12.in welflux how did you communicate in another service?
Q13.For the given list of employees,
Calculate the sum of that employee salary whose age > 25, using java8 stream
Q14. even number through Reactive program
Q15. Kubernative cmd for deployment and
Q16. git rebase and stage?
Q17. How you used Jwt token code in security. explain and write the code
Q18. is that for each request you generate token?
Q19. How do you read the data from the Redis database/Hbase
Q20. How in memory DS you have used
Q21.write code to read from elastic search. hat code you have written for elastic search.
Description

What is actuator and explain any 2 actuator.


What is spring security

Explain about spring modules.


What is spring security, What u have used it for? Spring security in ur project.
to other region?

ent sourcing.

all order transactions.

ctid, product Category and quantity.


restriction rules.

e another service using all the existing controllers.


ect with details.

You might also like