QuestionBank 1
QuestionBank 1
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
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.
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
6. Singleton Pattern and how do you break this one instance principle
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
ent sourcing.