Practice - 5 Tasks
Answer the questions below
1fill in blank
easyComplete the code to enable encryption in transit by setting the correct protocol.
Elasticsearch
PUT /_cluster/settings
{
"persistent": {
"xpack.security.transport.ssl.enabled": [1]
}
} Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using false disables encryption, which is insecure.
Using 'auto' or 'none' are invalid values for this setting.
✗ Incorrect
Setting "xpack.security.transport.ssl.enabled" to true enables encryption in transit for transport layer.
2fill in blank
mediumComplete the code to enable encryption at rest by configuring the keystore setting.
Elasticsearch
PUT /_cluster/settings
{
"persistent": {
"xpack.security.encryptionKey": [1]
}
} Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using boolean true instead of a string key.
Leaving the key null disables encryption.
✗ Incorrect
The encryption key must be a string value used to encrypt data at rest.
3fill in blank
hardFix the error in the transport SSL configuration by choosing the correct certificate setting.
Elasticsearch
PUT /_cluster/settings
{
"persistent": {
"xpack.security.transport.ssl.certificate": [1]
}
} Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using true or 'enabled' instead of a file path string.
Setting the value to null disables the certificate.
✗ Incorrect
The certificate setting requires the file path as a string, not a boolean or null.
4fill in blank
hardFill both blanks to configure encryption in transit with the correct key and enable SSL.
Elasticsearch
PUT /_cluster/settings
{
"persistent": {
"xpack.security.transport.ssl.enabled": [1],
"xpack.security.transport.ssl.key": [2]
}
} Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Setting SSL enabled to false disables encryption.
Using incorrect file paths or wrong file types for the key.
✗ Incorrect
Enable SSL with true and provide the path to the private key file as a string.
5fill in blank
hardFill all three blanks to configure encryption at rest with a key, enable SSL, and set the certificate path.
Elasticsearch
PUT /_cluster/settings
{
"persistent": {
"xpack.security.encryptionKey": [1],
"xpack.security.transport.ssl.enabled": [2],
"xpack.security.transport.ssl.certificate": [3]
}
} Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using false disables SSL.
Using boolean values for encryption key.
Incorrect certificate file path.
✗ Incorrect
Encryption key must be a string, SSL enabled true, and certificate path a string to the cert file.