Premium Employer

Volkswagen Group Technology Solution

3.9
based on 399 Reviews
Filter interviews by

Megha Engineering & Infrastructures Interview Questions and Answers

Updated 21 Oct 2024
Popular Designations

Q1. How micro services communicate each others

Ans.

Microservices communicate through lightweight protocols like HTTP, messaging queues, and RPC.

  • Microservices can communicate over HTTP using RESTful APIs.

  • Message queues like RabbitMQ or Kafka can be used for asynchronous communication between microservices.

  • Remote Procedure Calls (RPC) can be used for synchronous communication between microservices.

  • Service discovery mechanisms like Eureka or Consul help microservices locate each other.

  • API gateways can be used to manage and secur...read more

Add your answer

Q2. Design a systems for large millions of users

Ans.

Design a scalable system for millions of users

  • Use microservices architecture to break down the system into smaller, independent services

  • Implement load balancing to distribute traffic evenly across servers

  • Utilize caching mechanisms to reduce database load and improve performance

  • Use horizontal scaling by adding more servers to handle increased traffic

  • Implement monitoring and alerting systems to track system performance and detect issues proactively

Add your answer

Q3. Factory vs abstract factory design patterns

Ans.

Factory pattern creates objects without exposing the instantiation logic, while Abstract Factory pattern provides an interface for creating families of related objects.

  • Factory pattern is a creational design pattern that provides a way to create objects without specifying the exact class of object that will be created.

  • Abstract Factory pattern is a creational design pattern that provides an interface for creating families of related or dependent objects without specifying their...read more

Add your answer

Q4. How Kafka delete messages

Ans.

Kafka deletes messages based on retention policies and compaction

  • Kafka deletes messages based on retention policies set at topic level

  • Messages can also be deleted through log compaction process

  • Retention policies can be based on time or size of messages

Add your answer
Discover Megha Engineering & Infrastructures interview dos and don'ts from real experiences

Q5. Kafka implemenation in spring boot

Ans.

Kafka implementation in Spring Boot allows for easy integration of Kafka messaging system in Java applications.

  • Use Spring Kafka to configure Kafka properties in Spring Boot application

  • Create Kafka producer and consumer beans to send and receive messages

  • Use @KafkaListener annotation to listen for messages on specific topics

Add your answer

Q6. Structured vs unstructured logs

Ans.

Structured logs have a predefined format for easy parsing, while unstructured logs do not.

  • Structured logs are easier to search, filter, and analyze compared to unstructured logs.

  • Unstructured logs can be harder to parse and may require more manual effort to extract useful information.

  • Examples of structured logs include JSON or CSV format, while unstructured logs may be plain text or free-form messages.

Add your answer

Q7. Kafka configuration

Ans.

Kafka configuration involves setting up properties like broker, topic, partitions, replication factor, etc.

  • Configure Kafka broker properties in server.properties file

  • Create topics using kafka-topics.sh script

  • Set up partitions and replication factor for fault tolerance

  • Adjust consumer and producer configurations as needed

Add your answer
Contribute & help others!
Write a review
Share interview
Contribute salary
Add office photos

Interview Process at Megha Engineering & Infrastructures

based on 2 interviews
Interview experience
4.5
Good
View more
Interview Tips & Stories
Ace your next interview with expert advice and inspiring stories
Share an Interview
Stay ahead in your career. Get AmbitionBox app
qr-code
Helping over 1 Crore job seekers every month in choosing their right fit company
70 Lakh+

Reviews

5 Lakh+

Interviews

4 Crore+

Salaries

1 Cr+

Users/Month

Contribute to help millions

Made with ❤️ in India. Trademarks belong to their respective owners. All rights reserved © 2024 Info Edge (India) Ltd.

Follow us
  • Youtube
  • Instagram
  • LinkedIn
  • Facebook
  • Twitter