×

Top 26 CouchDB interview questions for 2024

1) What is CouchDB?

CouchDB is a document typed database server which can be accessed through RESTful JSON API. It is a schema free and Ad-hoc database with a flat address space.

2) How it is different from other databases?

  • It is not a relational database.
  • It is not a object oriented database rather it is meant to function as a seamless persistence layer for an OO programming language.

3) What language is CouchDB written in?

Early work on CouchDB was started in C++ programming language but soon replaced by Erlang OTP platform. Erlang is a functional programming language with an emphasis on fault tolerance.

4) Enlist the main features of CouchDB.

  • JSON Documents
  • RESTful Interface
  • N-Master Replication
  • Built for Offline
  • Replication filter

5) Describe CouchDB Kit.

It is designed for Python application to access and manage CouchDB. It allows to manage CouchDB server, database, doc management and view access.

6) What is ETL ?

ETL stands for Extracting, Transforming and Loading of data from any system to the destination. It consist of 3 steps for data integration process:
  • Extracting: It is the process in which first we locate the data and then removing source file.
  • Transforming: It is the process of transporting the file to the required target.
  • Loading: Loading the file in the target system in the format applicable.

7) What are the various tools used in ETL?

  • Cognos Decision Stream
  • Oracle Warehouse Builder
  • Business Objects XI
  • SAS business warehouse
  • SAS Enterprise ETL server

8) How can we distribute load across multiple nodes?

We can distribute load by using a Http proxy like nginx. Firstly, all the GET loads spread across the nodes, then it directs all the PUT, POST & DELETE to a master node.

9) What is fact? What are the types of facts?

Fact is described as a central component of a multi-dimensional model which analyse all the measures. Types of facts are:
  • Addictive Facts
  • Semi-addictive Facts
  • Non-addictive Facts

10) What is Cubes and OLAP Cubes?

Cubes are data processing unit which provides multi-dimensional analysis. It consist of fact tables and dimensions from the data warehouse. OLAP stand for Online Analytics Processing, OLAP Cubes is used for reporting purpose that stores large amount of data in multi-dimensional form.

11) What platforms does CouchDB supported?

It supports mostly all the POSIX platform such as GNU/Linux also, OS X (Apple inc.). Windows is not initially supported but now we can install in windows through two methods:
  • Installation from Binaries
  • Installation from Sources

12) Give the limitation of Views.

Views cannot update documents or database as they are always Read Only.

13) Write the syntax to obtain list of the design document?

Syntax:
startkey="_design/"&endkey="_design0"

14) Why CouchDB not use Mnesia?

It does not use due to following reasons:
  • Mnesia has storage limitation of 2 gig per file.
  • It requires validation and fixup cycle after power failure.
  • In Mnesia replication is effective for clustering but not for disconnected, distributed edits.

15) Write the code for Replication?

Syntax:
POST /_replicate with a post body of  
{"source":"$source_database"  
,  
"target":"$target_database"}

16) Enlist the location CouchDB log files.

In linux/unix default location is /usr/local/var/log/couchdb/couch.log Above set is located in default.ini file /etc/couchdb/default.ini

17) Erlang was slow in adapting Unicode.Is Unicode or UTF-8 a problem with CouchDB?

CouchDB uses Erlang binaries internally.All data coming to CouchDB must be UTF-8 encoded.

18) What does IBM’s involvement mean for CouchDB and the community?

The main consequences of IBM’s involvement are:
  • The code is now being apache licensed, instead of GPL.
  • Damien is going to be contributing much more time.

19) What is the use of CouchDB?

CouchDB allows you to write a client side application that connect directly to the Couch without the need for a server side middle layer. It also reduces development time.

20) What does COUCH means in CouchDB?

It's an acronym,Cluster of Unreliable Commodity Hardware. It's acronym defines the goals of massive scalability and high reliability on fault-prone hardware.

21) How is PouchDB different from CouchDB?

PouchDB is a CouchDB client, due to which we can easily switch between a local database or an online CouchDB instance without changing any of the application’s code. Some of the differences are:
  • View Collation:CouchDB uses ICU to order keys in a view query whereas in PouchDB keys are in ASCII ordered.
  • View Offset:CouchDB returns an offset property in the view results. In PouchDB, offset just mirrors the skip parameter rather than returning a true offset.

22) How to use transactions with CouchDB?

CouchDB uses an “Optimistic concurrency” model. This model allows to send a document version along with the update, and CouchDB rejects the change if the current document version doesn’t match with the sent document.

23) Enlist basics of CouchDB?

  • All the Items stored in the database is documents.
  • Each documents has units called, fields , and fields are key and value pair.
  • Each document has an unique id to identify them "_id" being the key and the value of each document must be unique.
  • Database operations are done through REST Style http requests.
  • CouchDb's responses are in JSON format etc.

24) How can we connect to CouchDB without going through the HTTP API?

CouchDB’s data model and internal API map the REST/HTTP model so well that any other API would basically similar to HTTP.

25) How can we connect to remote CouchDB?

On the local machine,set up an ssh tunnel to your server and tell it to forward requests to the local port 5984 to the remote server's port 5984:
$ ssh -L5984:127.0.0.1:5984 ssh.example.com
Now we can connect to the remote CouchDB through localhost:5984/

26) Enlist different HTTP request format.

  • GET
  • POST
  • HEAD
  • PUT
  • DELETE
  • COPY

Related Topics

C++ | C Plus Plus Interview Questions for 2024

1) Write a program in C++ to print "Hello World"? #include <iostream.h>     #include <conio.h>   void main()    {       clrscr();       cout << "Hello World";     getch();     } 2) Write a program in C++ to enter two integers and find their sum and average ? #include <iostream.h>   #include <conio.h>   void main()   {   clrscr();   int x,y;   float sum,average;   cout << "Enter 2 integers : " << endl;   cin>>x>>y;   sum=x+y;   average=sum/2;   cout <<"The sum is:"<< sum << endl;   cout <<"The average is:"<< average << endl;   getch();   } 3) Write a program in...

5 minutes read.

Top 30 Python Interview Questions for 2024

1) What is Python? Python is a high level, interpreted and object-oriented programming language. It is easy to learn and supports multiple programming patterns. It is also known as powerful and versatile...

6 minutes read.

Top 15 NodeJS Interview Questions for 2024

1) What is NodeJs? NodeJs is open source JavaScript based feamework used to develop I/O intensive web application. It is collections of JavaScript library and runtime environment. It is used to...

3 minutes read.

Top 15 VBA Interview Questions for 2024

1) What is VBA? VBA stands for Visual Basic Application. It is an event-driven programming language. It is mainly used with Microsoft Office applications such as MS -Excel, MS-Word and MS-Access. 2)...

3 minutes read.

Top 15 Foundation Interview Questions for 2024

1) What is Foundation? Foundation is a front-end framework that is for designing beautiful responsive websites. This framework is compatible with all types of devices and provides you with HTML, CSS...

2 minutes read.

Artificial Neural Network Interview Questions

1. Explain Neural Network?  Neural Network is a sequence of an algorithm that gives its best to recognize the underlying relationship in a data-set through a process. The artificial neural network...

8 minutes read.

Top 15 PouchDB Interview Questions for 2024

1) What is PouchDB? PouchDB is an in-browser database that allows applications to save data. It is an open source database. It runs in Node.js. 2) In which language PouchDB was written? PouchDB was written in JavaScript language. 3)...

2 minutes read.

Top 18 UiPath Interview Questions for 2024

RPA UiPath Interview Questions and Answers for Fresher  1. What is RPA? RPA is an acronym for Robotic Process Automation. Robotic In RPA, Robotic is termed as an entity or machine which tries to...

7 minutes read.

Top 15 Apache Tapestry Interview Questions for 2024

1) What is Apache Tapestry? It is an open source web framework written in Java and can work under any application server. It is easily integrate with back ends like Hibernate...

2 minutes read.

Top 30 TurboGears Framework Interview Questions for 2024

1) What is TurboGears Framework? TurboGears is a Python Framework. It is used to create rapid web application. It consists of several WSGI (Web Server Gateway Interface) components. It is developed...

5 minutes read.

Top 25 jQuery Interview Questions for 2024

Most Frequently asked jQuery Interview Questions and Answers for Fresher and Experienced 1) Define Find and Children Method? In DOM tree if you have to find all the method we use Find...

4 minutes read.

Top 25 PL/SQL Interview question for 2024

1) What is PL/SQL? It is defined as SQL having Procedural features of Programming Language i.e. Procedural Language extension of SQL. 2) Enlist the section of PL/SQL block. It consist of three block ...

4 minutes read.

Top 14 Materialize CSS Framework Interview Questions for 2024

1) What is Materialize? Materialize is a CSS framework that contains library file. It is created with CSS, JavaScript and HTML. It helps to create attractive, reliable and functional web pages...

7 minutes read.

Top 28 Firebase Interview Questions for 2024

1) What is Firebase? Firebase is a platform which is used for building Web, IOS and Android applications. It offers: Real time database Different APIs Multiple authentication types and Hosting platform 2) What are the features of...

3 minutes read.

Top 15 CSS Buttons Interview Questions for 2024

1) What is CSS buttons? CSS buttons is used to create awesome button. It provides huge collection of CSS library files. 2) What are the CSS libraries to create buttons? There are following...

5 minutes read.

Top 15 ExpressJS Interview Questions for 2024

1) What is ExpressJs? Express Js is a framework for node.js which is light-weight and fast. It is used to develop web and mobile applications. 2) What are the features of ExpressJs? Following...

4 minutes read.

Top 15 JSP Interview Questions for 2024

1) What is JSP? It is a technology which is used to create web application like Servlet technology. It provides more functionality than Servlet. It consists of HTML and JSP tags. 2) What are...

3 minutes read.

Top 15 AWS Interview Questions for 2024

1) What is AWS? AWS stands for Amazon Web Services. It is a cloud web hosting platform that offers flexible, scalable, reliable, easy-to-use, and cost-effective solutions. 2) What is Cloud Computing? It is...

2 minutes read.

Top 30 Web Service Interview Questions for 2024

1) What is a Web Service? Web service is a client server application or component. It is used for communication. It is way to communicate between two devices over network. In another word...

5 minutes read.

Top 15 Framework7 Interview Questions for 2024

1) What is Framework7? Framework7 is an open source mobile HTML framework. It is used todevelop hybrid mobile apps for iOS and Android devices. 2) Why, framework7 is popular? There are various reasons...

8 minutes read.