NoSQL Solutions (MCQ & Structural)
NoSQL Solutions (MCQ & Structural)
MCQs
1. NoSQL stands for =>[D]
a) No to SQL
a) Key-value oriented DB
b) Document oriented DB
c) File oriented DB
d) Graph oriented DB
a) Key-value oriented DB
b) Document oriented DB
c) Column oriented DB
d) Graph oriented DB
a) Key-value oriented DB
b) Document oriented DB
c) Column oriented DB
d) Graph oriented DB
5. Which of the following best describes CouchDB? =>[B]
a) Key-value oriented DB
b) Document oriented DB
c) Column oriented DB
d) Graph oriented DB
a) Key-value oriented DB
b) Document oriented DB
c) Column oriented DB
d) Graph oriented DB
7. The ability of the system to continue operation in the presence of network divisions is: =>[B]
a) Consistency
b) Partition tolerance
c) Reliability
d) Availability
9. To partition the data in such a way that data typically requested and updated together resides
on the same node is: =>[D]
a) Partitioning
b) Clustering
c) Separating Reads from Writes
d) Sharding
10. A table of a relational model gets serialized as its lines are appended and flushed to disk
=>[A]
a) Columnar Storage Layout
a) SQL Server
b) MongoDB
c) Cassandra
a) Documents can contain many different key-value pairs, or key-array pairs, or even nested
documents
b) MongoDB has official drivers for a variety of popular programming languages and
development environments
c) When compared to relational databases, NoSQL databases are more scalable and provide
superior performance
d) All of the mentioned
a) SQL
b) Document databases
c) JSON
d) All of the mentioned
a) Cassandra
b) Riak
c) MongoDB
d) Redis
c) NewSQL databases are built to allow the insertion of data without a predefined schema
16. “Sharding” a database across many server instances can be achieved with _______________
=>[D]
a) LAN
b) SAN
c) MAN
17. Most NoSQL databases support automatic __________ meaning that you get high
availability and disaster recovery. =>[C]
a) processing
b) scalability
c) replication
d) all of the mentioned
18. Which of the following are the simplest NoSQL databases? =>[A]
a) Key-value
b) Wide-column
c) Document
19. ________ stores are used to store information about networks, such as social connections.
=>[D]
a) Key-value
b) Wide-column
c) Document
d) Graph
20. NoSQL databases is used mainly for handling large volumes of ______________ data.
=>[A]
a) unstructured
b) structured
c) semi-structured
21. You want all your colleagues to be able to access the compute node associated with an
Oracle Database Cloud – Database as a service (DBaaS) instance. You want them to do so by
using a custom host name rather than an IP address regardless of the client machine (personal or
provided by the company) that they use for the access. How would you enable this access?
=>[C]
a) Configure the Advanced Security Option (ASO).
b) Enable secure access to the DBaaS instance VM and database instance from remote hosts by
using SSH
c) Contact the administrator of your company’s intranet DNS and request a custom DNS record
for the compute node’s public IP address
d) Edit the machine’s /etc/hostfile.
e) Resolve your domain name to the IP address
of the DBaaS compute node by using the third party domain registration vendor console.
22. With Oracle Database Cloud Service as the subscription type, you must configure a database
for Backup and Recovery. Which two options do you have to back up your database instance?
=>[A,C]
a) No backups required. You are responsible for configuring the database backups.
b) Backup to cloud storage and VM block storage. Ten days worth of backups are kept, with five
most recent days worth of backups available directly on VM block storage.
c) Backup to Oracle Cloud Service storage volumes that is equal to five times the value that was
provided in Usable Sata Storage when the instance was created.
d) Backup to cloud storage and VM block storage. Fourteen days worth of backups are kept, with
seven most recent days worth of backups available directly on VM block storage
23. Users must be granted roles to manage cloud services. Which three statements are true about
roles and role assignment in Database as a Service (DBaaS)? =>[A,D,E]
a) Service administrators can assign and remove roles only for users of the services that they
manage
b) The DBaaS Database Administrator role permits granting the DBaaS Database Administrator
or DBaaS Database Operator role to existing users.
c) Identity domain administrators can assign and remove roles for users in any identity domains.
d) The DBaaS Database Operator role permits the ability to scale, patch, and backup or restore
service instances.
24. Which users are created and can be used for database and host management of your DBaaS
database servers? =>[D]
a) root,opc, and oracle users
25. Which two situations require that your Database as a Service (DBaaS) instance be scaled up?
=>[C,E]
d) The database instance is out of space in the sysaux and system table spaces.
26. How would you enable a port persistently to keep communication open through that port
always? =>[A]
a) To enable a port persistently, you must contact your DBaaS support team to update the port
specifications for use
b) You can use servers certificates to map a server’s identity to enable persistent connection
through a port to DBaaS instances.
c) All ports that are available in DBaaS servers must use an SSH tunnel and cannot be enabled
persistently
d) To enable a port persistently, you would require access to the Compute Cloud Service Console
to open the ports to a set of IP addresses.
27. Dbaascli is a command-line interface for managing a database instance on cloud. Which two
functions can you manage with dbaascli? =>[C,E]
e) applying a patch
28. Point out the correct statement. =>[A]
29. Which of the following language is MongoDB written in? => [C]
a) JavaScript
b) C
c) C++
d) All of the mentioned
a) SQL
b) XML
c) BSON
STRUCTURAL QUESTIONS
1. What is NoSQL?
NoSQL stands for "Not Only SQL." and covers only database that is not a traditional
relational DBMS
Its motivation is mostly simplified design, horizontal scaling and final contest over the
availability of data
2. What are the motives and main drivers of the NoSQL movement?
Motives
- Big web companies or companies running large-scale web sites like Facebook, Google
and Amazon
NoSQL
SQL
ACID: It is the guarantee of validity even in the event of errors and common failures. It
stands for;
- Atomicity which means transactions are all or nothing
- Consistency which means that transactions maintains validity
- Isolation which means executing 2 transactions in parallel or one after the other
would have the same result
- Durability which means once transactions has been committed, it is stored in a non-
volatile memory
- CAP (Brewer’s theorem) roughly, in a distributed system, one has to choose between;
o Consistency (every read receives the most recent write and error) and;
o Availability (every request receives a non-error r2qesponse, without
guarantee that it contains the most recent write)
o The P standing for Partition tolerance is a guarantee for availability
BASE
5. What are the main categories of NoSQL systems? Describe with some illustrative examples.
Definition:
Mongo is agile scalable, and schema-free document database written in C++ and
developed in an open source project which is mainly driven by the company, Logen Inc.
which aims at closing the gap between the fast and highly scalable key-value stores and
feature-rich traditional RDBMS.
Characteristics
8. Define DBaaS. What are the advantages of DBaaS over traditional database solutions?
DBaaS is a service delivery platform with shared or consolidated database infrastructure
enabling faster transactions and manages maintenance services with better scalability. The
following are advantages;
9. What are the difference between Data as a Service (DaaS) and Database as a Service
(DBaaS)?
A. DaaS: offers the ability to define in the cloud and subsequently query that data on
demand unlike traditional database solutions, DaaS doesn’t implement any typical DBMS
such as SQL. Instead, the data is access via a common set of APIs.
DaaS enables any organization
Examples of DaaS are; Urban Mapping, a Geographic data service, provide data for
customers to embed into their own websites and apps; Xignite makes financial data
available to customers; and hoovers a done and bad
B. DBaaS: offers full DB fxnality to app devs.
In DBaaS, a management layer is responsible for the continuous monitoring and
configuring of the DB to achieve optimized scaling, high availability, multi-tenancy (.i.e.
serving multiple client organizations), and effective resource allocation in the cloud,
thereby spearing the developer from ongoing DB admin task
SaaS - Software
DBaaS - Database
XASS hierarchy
PaaS - OS