Add office photos
Engaged Employer

Oracle

3.7
based on 5.1k Reviews
Filter interviews by

Viral Industries Interview Questions and Answers

Updated 1 Nov 2024
Popular Designations

Q1. Micro service architecture: Handling service down-time

Ans.

Handling service downtime in microservice architecture is crucial for maintaining system reliability.

  • Implement circuit breakers to prevent cascading failures

  • Use service discovery to automatically route traffic to healthy instances

  • Implement retry mechanisms with exponential backoff to handle transient failures

  • Monitor service health and performance metrics to proactively detect issues

  • Implement graceful degradation to provide basic functionality when a service is down

Add your answer

Q2. Micro service architecture: Handling too many requests

Ans.

Implement rate limiting, load balancing, and circuit breaking to handle too many requests in micro service architecture.

  • Implement rate limiting to control the number of requests a service can handle within a specific time frame.

  • Use load balancing to distribute incoming requests evenly across multiple instances of a service.

  • Implement circuit breaking to prevent cascading failures and overload in case of high traffic.

  • Consider using caching mechanisms to store frequently accesse...read more

Add your answer

Q3. What is data shuffling in spark

Ans.

Data shuffling in Spark is the process of redistributing data across partitions to optimize parallel processing.

  • Data shuffling occurs when data needs to be moved across partitions, typically during operations like groupBy, join, or sortBy.

  • It involves transferring data between executors, which can be a costly operation in terms of performance.

  • Data shuffling can impact the performance of a Spark job, so it's important to minimize unnecessary shuffling.

  • One way to reduce data shu...read more

Add your answer

Q4. Distribute candies among students with ratings

Ans.

Distribute candies among students based on their ratings, ensuring higher rated students get more candies.

  • Create an array to store the ratings of each student

  • Initialize another array to store the number of candies each student will receive

  • Start by giving each student 1 candy

  • Iterate over the ratings array from left to right, comparing each student's rating with the previous one and adjusting the candies accordingly

Add your answer
Discover Viral Industries interview dos and don'ts from real experiences

Q5. How do we serialize data

Ans.

Data serialization is the process of converting data structures or objects into a format that can be stored or transmitted.

  • Serialization involves converting data into a byte stream for storage or transmission.

  • Common serialization formats include JSON, XML, and Protocol Buffers.

  • Serialization allows data to be easily saved to a file or sent over a network.

  • Deserialization is the reverse process of converting serialized data back into its original form.

Add your answer

Q6. explain the functioning of map-reduce

Ans.

Map-reduce is a programming model used for processing and generating large data sets in parallel.

  • Map function processes input data and generates key-value pairs

  • Reduce function takes the output of the map function and combines the values with the same key

  • Example: Word count in a document - map function counts occurrences of each word, reduce function sums up the counts

Add your answer

Q7. Reverse a linked list

Ans.

Reverse a linked list by changing the next pointers of each node to point to the previous node.

  • Start with three pointers: current, previous, and next.

  • Iterate through the linked list, updating the next pointer of each node to point to the previous node.

  • Update the previous, current, and next pointers for each iteration.

Add your answer

More about working at Oracle

#22 Best Mega Company - 2022
#3 Best Internet/Product Company - 2022
Contribute & help others!
Write a review
Share interview
Contribute salary
Add office photos
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
Get AmbitionBox app

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