nosql 1 Quiz

nosql 1 Quiz

University

15 Qs

quiz-placeholder

Similar activities

Comandos Básicos de MongoDB

Comandos Básicos de MongoDB

9th Grade - University

20 Qs

Group 2 - LOGIC Family

Group 2 - LOGIC Family

University

19 Qs

KOMPUTER AKUNTANSI XI KD.3.1 PART 1

KOMPUTER AKUNTANSI XI KD.3.1 PART 1

University

10 Qs

SEO Foundations

SEO Foundations

University

10 Qs

Solve Problems with Data

Solve Problems with Data

University

10 Qs

Culture générale

Culture générale

11th Grade - Professional Development

16 Qs

Go Pointers

Go Pointers

University

11 Qs

Protocol SCADA

Protocol SCADA

University - Professional Development

11 Qs

nosql 1 Quiz

nosql 1 Quiz

Assessment

Quiz

Instructional Technology

University

Easy

Created by

Jigme Dema

Used 3+ times

FREE Resource

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

Create a free account and access millions of resources

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

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?