Bristlecone Angular + Java Interview Questions for 8+ years
Shared question set for 8+ years of experience, Technical round. Topics and wording follow the supplied notes; these are questions, not official company guidance.
- How do you monitor your application in production?
- Grafana shows continuously increasing memory, but CPU is normal. How would you investigate?
- CPU and memory are normal, but users report the application is hanging. What could be the issue?
- Database queries are slow. How would you optimize them apart from indexing?
- Given {1,1,1,1,2,2,3,4,4,4}, return the two most frequent elements.
- Implement the solution using Java Streams.
- What is the time complexity? How would you optimize it?
- Design a notification service supporting SMS, WhatsApp and Push. Is if-else appropriate, or can it be improved?
- In the Strategy pattern, how are implementations selected, and in what sequence are methods called?
- Where is sendNotification() defined? How would the client invoke it?
- A dropdown triggers an API call on every selection. How would you prevent unnecessary requests?
- The UI works correctly, but the same API is called twice. How would you investigate?
- How would you handle duplicate API requests on the backend?
- The database update succeeds, but the application crashes before publishing an event to Kafka. How would you prevent inconsistency?
- Explain the Transactional Outbox pattern in detail.
- How would you deploy a Spring Boot application without downtime?
- Explain Blue-Green and Canary deployments.
- A container starts successfully but exits after a few seconds. How would you troubleshoot?
- What is the difference between liveness and readiness probes?
- If the readiness probe fails, does Kubernetes restart the container?
- What is the significance of ChangeDetectionStrategy.OnPush?
- If an object passed through @Input() is mutated without changing its reference, why might the UI not update?