Given the following Elasticsearch snapshot creation request, what will be the response status if the repository exists and is accessible?
{
"repository": "my_backup",
"snapshot": "snapshot_1",
"body": {
"indices": "index1,index2",
"ignore_unavailable": true,
"include_global_state": false
}
}Check if the repository exists and the indices are available.
If the repository exists and indices are available or ignored if unavailable, the snapshot creation will be acknowledged successfully.
Consider this Elasticsearch restore request. What will be the effect on the cluster?
{
"repository": "my_backup",
"snapshot": "snapshot_1",
"body": {
"indices": "index1",
"rename_pattern": "index(\\d+)",
"rename_replacement": "restored_index$1",
"include_global_state": false
}
}Look at the rename_pattern and rename_replacement fields.
The restore request renames index1 to restored_index1 and does not include global cluster state, so cluster settings remain unchanged.
Analyze the following snapshot creation request and identify the cause of the failure.
{
"repository": "backup_repo",
"snapshot": "snap_2024",
"body": {
"indices": "*",
"ignore_unavailable": false
}
}Check repository registration and accessibility.
If the repository is not registered or accessible, snapshot creation fails regardless of indices or options.
Given this request to check snapshot status, what will be the output if the snapshot is currently in progress?
GET /_snapshot/my_backup/snapshot_1/_status
Consider the snapshot lifecycle states.
The snapshot status API returns the current state of the snapshot. If it is running, the state is IN_PROGRESS.
When restoring a snapshot with include_global_state set to true, what happens?
Think about what global state means in Elasticsearch snapshots.
Setting include_global_state to true restores cluster-wide settings and metadata from the snapshot, which can overwrite current cluster state.