nosql 1 Quiz

nosql 1 Quiz

University

15 Qs

quiz-placeholder

Similar activities

UH 1, Diesel Common Rail (PMKR 3)

UH 1, Diesel Common Rail (PMKR 3)

University

15 Qs

การจัดการฐานข้อมูล

การจัดการฐานข้อมูล

University

15 Qs

Tecnologìa y comunicacion

Tecnologìa y comunicacion

3rd Grade - Professional Development

20 Qs

Quiz Impor Ekspor & Otentikasi Otorisasi

Quiz Impor Ekspor & Otentikasi Otorisasi

University

11 Qs

CNC Idolaku

CNC Idolaku

University

15 Qs

Diagnóstico Power BI

Diagnóstico Power BI

University

14 Qs

Design For Machining

Design For Machining

University

15 Qs

IPS - 16

IPS - 16

University

13 Qs

nosql 1 Quiz

nosql 1 Quiz

Assessment

Quiz

Instructional Technology

University

Practice Problem

Easy

Created by

Jigme Dema

Used 3+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which guarantee is often associated with relational databases but is not automatically provided by many document stores?

Always linear horizontal scaling

Built-in schemaless flexibility

Guaranteed fastest read latency

ACID transactional properties

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

When a web API blindly uses req.body as a query filter, what kind of user-supplied element most directly changes query semantics?

Trailing whitespace in string values

Extra JSON comments inserted by the client

Boolean flags encoded as strings

JSON query operators like $ne, $or, $gt

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What developer habit most commonly opens an application to classic SQL injection (textual SQL manipulation)?

Using strict type definitions in DTOs

Sending all queries through a single DB access layer

Avoiding dynamic SQL entirely

Concatenating user input into SQL statement strings

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the most important immediate code change when replacing db.collection.find(req.body) to stop operator injection?

Return raw DB documents to the client for debugging

Allow only XML input instead of JSON

Wrap the whole request body in a string and store it

Construct a new filter: extract expected fields, validate types, and only include those keys

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which API-layer control most directly prevents clients from sending operator keys like $where?

Relying on client-side JavaScript to clean inputs

Using transport-layer encryption (TLS) only

Logging incoming requests but not rejecting them

Rejecting or stripping keys that start with $ and whitelisting allowed fields

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What role does a JSON schema library (e.g., Joi) play alongside parameterized routes?

It replaces the DB user permission model

It makes client-side validation unnecessary

It converts find() into raw SQL internally

It validates input shape/types before building queries

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which Mongoose-related benefit most helps prevent NoSQL operator injection?

Automatically running DB backups

Implicitly granting admin roles to the model

Automatically converting all objects to strings

Enforcing a schema so unexpected operator objects are rejected or cast

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?