New Features and Tools in MongoDB 4.2 ALL Questions & Answers

New Features and Tools in MongoDB 4.2 Chapter 1 – Transactions

 

Sharded Transactions Introduction

Transactions in MongoDB 4.2 are:

  • multi-document.
  • multi-statement.
  • available on any namespace in your instance, including sharded
    collections.

 

 

Sharded Transactions Performance Profile

Which of the following are valid methods of optimizing the performance
of sharded transactions?

  • Avoiding numerical values in your queries
  • Querying on your shard key
  • Co-locating chunks that will be accessed by single queries     

New Features and Tools in MongoDB 4.2 Chapter 2 – Enterprise Tools

 

Atlas Data Lake

Using the new Atlas Data Lake, how can you query the static data in
your S3 Bucket?
  • Node.js
  • Python
  • Java
  • Structured Query Language (SQL)
  • MongoDB Query Language (MQL)

Use Atlas Data Lake

Which Atlas Database user role is required for the database user to run
the storageSetConfig command?
  • dbAdmin
  • readOnly
  • atlasAdmin
  • readWriteAdminDatabase
  • readWriteAnyDatabase

Kafka Connector

The Kafka connector allows you to configure MongoDB as which of the
following?
  • A topic
  • A sink
  • A broker
  • A zookeeper
  • A partition

Geospatial Charts

Charts has introduced which of the following new Geospatial Chart types
for MongoDB 4.2?
  • Area
  • Grid
  • Scatter Plot
  • Heat Map
  • Histogram

Charts Embedding

You can embed your chart using which of the following?
    • anchor tag
    • iframe
    • script tag

New Features and Tools in MongoDB 4.2 Chapter 3 – Indexes Quiz
Answer

 

Hybrid Index Build

How many types of index builds exist in MongoDB 4.2?
  • 0: there are no indexes in MongoDB 4.2.
  • 1: a hybrid index build.
  • 2: a foreground and background index build.
  • 3: a foreground, background, and hybrid index build.
  • It is not possible to determine the number of index builds in MongoDB
    4.2.

Wildcard Index Type: Part 2

Using the wildcardProjection flag with Wildcard Indexes, we can:
  • include a set of fields in the Wildcard Index.
  • exclude a set of fields from the Wildcard Index.
  • specify a set of fields in the Wildcard Index to project with
    $project.

Wildcard Index Use Cases

Which of the following are good reasons to use a Wildcard Index?
  • A collection has documents with many different fields.
  • The query pattern on documents of a collection is
    unpredictable.
  • An application consistently queries against document fields that
    use the Attribute Pattern.

New Features and Tools in MongoDB 4.2 | Chapter 4 – Cloud – Ops
Manager

 
 

MongoDB Agent

How many binaries do you now need to monitor, backup and manage your
MongoDB deployment?
  • 1
  • 2
  • 3
  • 4
  • 5

Kubernetes Operator GA

Which of the following statements is true?
  • Kubernetes is used to manage virtual machines.
  • The MongoDB Kubernetes operator is still in beta.
  • Kubernetes is used to manage containers at scale.
  • You need to manually manage containers with Ops Manager.
  • You need to manually configure all network connections between
    containers.

Improvements to Cloud and Ops Manager

In Ops Manager 4.2, service users:
  • are created at the project level.
  • can be used to log in via the API.
  • cannot be revoked once created.
  • are created at the organization level.
  • have access to all admin functions on all projects.

Backup Flow Improvements

Which backup component is no longer necessary in Ops Manager 4.2?
    • Head DB
    • Blockstore
    • Backup Daemon
    • Filesystem Store
    • MongoDB Agent

New Features and Tools in MongoDB 4.2 | Chapter 5 – Atlas Quiz
Answer

 
 

Analytics Nodes

You would use an Analytics Node for an operation that:
  • is run by an administrator.
  • can tolerate reading stale data.
  • has a larger and less frequent workload than your operational
    workload.

Load a Sample Dataset

Once you’ve created an Atlas cluster, you can load the Atlas Sample
Dataset by:
  • running mongorestore.
  • running mongoimport.
  • upgrading to an M10 cluster.
  • clicking a button on Atlas.
  • paying the Sample Dataset licensing fee.
 

Improvements to Cloud Provider Snapshots

Which of the following Cloud Providers offer incremental backups?
  • AWS
  • Azure
  • Google Cloud Platform

New Features and Tools in MongoDB 4.2 | Chapter 6 – Security Quiz
Answer

No Passwords in Config Files

What are the new ways to reference the certificateKeyFilePassword in a
MongoDB configuration file?
  • String
  • HTTP request
  • Environmental variable

Client-Side Field Level Encryption

Which of the following are good use cases for Field Level
Encryption?
  • Database clients need the server to be highly available.
  • Data needs to be made permanently inaccessible at some
    point.
  • An organization needs to comply with regulations such as
    GDPR.   

New Features and Tools in MongoDB 4.2 | Chapter 7 – $merge
Aggregation Stage Quiz Answer

 
 
 

$merge Overview

In MongoDB 4.2, the $merge Aggregation stage:
  • can output to a sharded collection.
  • can output to a collection in the same or different database.
  • can merge documents from an Aggregation and a target
    collection.

$merge Syntax

Consider an Aggregation Pipeline using the new $merge stage that
outputs to the employee_data collection.
 
If we are not expecting to find any matching documents in the
employee_data collection, which of the following stages should we
use?
{
$merge: {
    into: “employee_data”,
    whenNotMatched: “fail”,
    whenMatched: “replace”
}
}
{
$merge: {
    into: “employee_data”,
    whenNotMatched: “discard”,
    whenMatched: “replace”
}
}

 

{
$merge: {
    into: “employee_data”,
    whenNotMatched: “insert”,
    whenMatched: “fail”
}
}
{
$merge: {
    into: “employee_data”,
    whenNotMatched: “fail”,
    whenMatched: “merge”
}
}
{
$merge: {
    into: “employee_data”,
    whenNotMatched: “insert”,
    whenMatched: “merge”
}

}

New Features and Tools in MongoDB 4.2 | Chapter 8 – General
Improvements Quiz Answer

 
 

Traffic Recorder

In MongoDB, the new traffic recorder:
  • requires the use of Wireshark.
  • cannot capture TLS traffic in 4.2.
  • writes traffic to the mongod log.
  • captures traffic on the database server.
  • captures traffic between the client and the server.

Updates Using Aggregation Pipeline: Part 1

When using an aggregation pipeline within an update() operation, which
of the following aggregation stages can we use?
  • $unset
  • $addFields
  • $replaceRoot

Updates Using Aggregation Pipeline: Part 2

When performing an update() operation with an aggregation pipeline, the
default value of the $$ROOT variable represents:
  • all documents inside the “root” collection.
  • all documents containing the “root” field.
  • the root document currently being processed.
  • a variable called “ROOT” that was defined in let.
  • the field “root” inside the document currently being processed.

zstd

Compared to snappy and zlib, the compression algorithm zstd:
    • has a faster compressing speed.
    • has a better compression ratio.
    • has a faster decompressing speed.

Learn other courses too:

M042 MongoDB Security | ALL Chapters Quiz & Answer
M201 MongoDB Performance – All Chapters Quiz Answer
M220P MongoDB for Python Developers Quiz Answers

 

Leave a Comment