Featured Post

Python Logic to Find All Unique Pairs in an Array

Image
 Here's the Python logic for finding all unique pairs in an array that sum up to a target value. Python Unique Pair Problem Write a Python function that finds all unique pairs in an array whose sum equals a target value. Avoid duplicates in the result. For example: Input: arr = [2, 4, 3, 5, 7, 8, 9] , target = 9 Output: [(2, 7), (4, 5)] Hints Use a set for tracking seen numbers. Check for complements efficiently. Example def find_unique_pairs(arr, target):     """     Finds all unique pairs in the array that sum up to the target value.     Parameters:     arr (list): The input array of integers.     target (int): The target sum value.     Returns:     list: A list of unique pairs that sum to the target value.     """     seen = set()     pairs = set()     for num in arr:         complement = target - num         if complement in seen:...

10 Top NoSQL Database Recently Asked Interview Questions

10 Top NoSQL Database Recently Asked Interview Questions


1) Who is involved in developing NoSQL?


Amazon and Google Papers


2) What is NoSQL?


You can use NoSQL on non-relational databases. Like columnar databases, by using NoSQL, you can query data from non-relational databases.


3) What are the unique features of NoSQL databases?


  • no relationship between records
  • need Un-structural data
  • store data that individual records do not have a relationship with each other


4) How NoSQL-databases are faster than traditional RDBMS?


  • Stores database on multiple servers, rather than storing the whole database in a single server
  • Adding replicas on other servers, we can retrieve data faster even one of the servers crashes


5) What are the UNIQUE features of NoSQL?


  • Opensource
  • ACID complaint


6) What are the characteristics of a good NoSQL product?


  • High availability: Fault tolerance when a single server goes down
  • Disaster recovery: For when a data center goes down, or more likely, someone digs up a network cable just outside the data center
  • Support: Someone to stand behind a product when it goes wrong 
  • Services: Product experts who can advise on best practices and help determine how to use a product to address new or unusual business needs
  • Ecosystem: Availability of partners, experienced developers, and product information — to avoid being locked into a single vendor's expensive support and services contract


7) Reasons to go for NoSQL databases?


An RDBMS can not fit all of the enterprise requirements.

  • Big data
  • Schema Redesign overhead
  • Unstructured data explosion
  • It avoids Sparse data problems (RDBMS will use space for NULL values. But, NoSQL will ignore NULL values)
  • Dynamically changing relationships between attributes


8) Benefits of NoSQL?

  • Faster solutions for new generation problems
  • Lower cost
  • Modern computer systems don't exist in a vacuum; they always communicate with someone or something. NoSQL databases use in search engines to semantic web technologies and Hadoop. Leveraging these technologies can make the deployment of NoSQL productive & useful.


9) How many core types of NoSQL databases?


Columnar


Extension to traditional table structures. Supports variable sets of columns (column families) and is optimized for column-wide operations (such as count, sum, and mean average).


Key-value


Simple structure. Sets of named keys and their value(s), typically an uninterpreted chunk of data. Sometimes that simple value may be a JSON or binary document.


Triple


 A single fact is represented by three elements:

  • The subject you're describing
  • The name of its property or relationship to another subject
  • The value is either an intrinsic (such as an integer) or a unique ID. For example, Adam likes Cheese. Adam is the subject, and Cheese is the object.


Document


XML, JSON, text, or binary blob. Any treelike structure. It can represent as an XML or JSON document. An order, for instance, includes a delivery address, billing details, and a list of products and quantities.


10) What are the most modern databases?


In-memory and flash databases


  • Great advances happened in real-time online transaction processing (OLTP) and analytics using in-memory databases. 
  • In-memory databases are specialized and targeted to particular problem domains. 
  • NoSQL databases take advantage of flash or memory caching to aid real-time analytics.


Complex-proprietary-stacks


NoSQL software such as Oracle NoSQL, MarkLogic, Microsoft's Document DB, and IBM Cloudant, though.


NewSQL


This is a new database-access paradigm. It applies the software design lessons of NoSQL to RDBMS, creating a new breed of products, which is a great idea. But these products still use traditional relational math and structures. So they aren't being used. 

Comments

Popular posts from this blog

How to Fix datetime Import Error in Python Quickly

SQL Query: 3 Methods for Calculating Cumulative SUM

Big Data: Top Cloud Computing Interview Questions (1 of 4)