0
0
MongoDBquery~10 mins

Encryption at rest concept in MongoDB - Interactive Code Practice

Choose your learning style9 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the code to enable encryption at rest in MongoDB configuration.

MongoDB
security:
  enableEncryption: [1]
Drag options to blanks, or click blank then click option'
Aenabled
Bfalse
Con
Dtrue
Attempts:
3 left
💡 Hint
Common Mistakes
Using strings like 'enabled' or 'on' instead of boolean true.
Setting the value to false disables encryption.
2fill in blank
medium

Complete the code to specify the encryption key file path in MongoDB configuration.

MongoDB
security:
  encryptionKeyFile: [1]
Drag options to blanks, or click blank then click option'
A/etc/mongodb/keyfile
Btrue
C/var/lib/mongodb/data
DenableEncryption
Attempts:
3 left
💡 Hint
Common Mistakes
Using boolean values instead of a file path.
Confusing the key file path with data directory paths.
3fill in blank
hard

Fix the error in the MongoDB configuration to properly enable encryption at rest.

MongoDB
security:
  enableEncryption: [1]
Drag options to blanks, or click blank then click option'
ATrue
BTRUE
Ctrue
Dyes
Attempts:
3 left
💡 Hint
Common Mistakes
Using capitalized or uppercase boolean values.
Using 'yes' instead of true.
4fill in blank
hard

Fill both blanks to configure encryption at rest with the key file and enable it.

MongoDB
security:
  enableEncryption: [1]
  encryptionKeyFile: [2]
Drag options to blanks, or click blank then click option'
Atrue
B/etc/mongodb/keyfile
C/var/lib/mongodb/data
Dfalse
Attempts:
3 left
💡 Hint
Common Mistakes
Setting enableEncryption to false disables encryption.
Using incorrect file paths for the key file.
5fill in blank
hard

Fill all three blanks to create a MongoDB configuration snippet that enables encryption at rest, specifies the key file, and sets the storage engine.

MongoDB
security:
  enableEncryption: [1]
  encryptionKeyFile: [2]
storage:
  engine: [3]
Drag options to blanks, or click blank then click option'
Atrue
B/etc/mongodb/keyfile
CwiredTiger
Dfalse
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'false' disables encryption.
Using storage engines that do not support encryption.
Incorrect file paths for the key file.