Skip to content

003 · Domain 8: Vault deployment architecture · 12% of the exam

Task 8.3: Explain the uses of Shamir secret sharing and unsealing

Key shares and threshold at init, PGP-encrypted shares, rekeying, operations that need a quorum of key holders, and recovery keys with auto unseal.

Study it

  • Shamir secret sharing, rekeying and recovery keys

    Lesson coming

Sample questions

Try each one before opening the answer. Every option is explained, with the HashiCorp documentation page that proves it.

Question 1 · choose 1

A new cluster uses the Shamir seal. Five officers must each hold one unseal key share, any three of them must be needed to unseal, and the operator running the initialization must not see any share in plaintext. Which command meets this?

  1. Avault operator init -key-shares=5 -key-threshold=3
  2. Bvault operator init -key-shares=5 -key-threshold=3 -root-token-pgp-key=<an officer's public key>
  3. Cvault operator init -recovery-shares=5 -recovery-threshold=3 -recovery-pgp-keys=<five keys>
  4. Dvault operator init -key-shares=5 -key-threshold=3 -pgp-keys=<five public keys>
Show the answer and why
  • Avault operator init -key-shares=5 -key-threshold=3

    Incorrect

    Without PGP keys the shares are printed in plaintext to the operator.

  • Bvault operator init -key-shares=5 -key-threshold=3 -root-token-pgp-key=<an officer's public key>

    Incorrect

    That encrypts only the initial root token; the unseal key shares are still printed in plaintext.

  • Cvault operator init -recovery-shares=5 -recovery-threshold=3 -recovery-pgp-keys=<five keys>

    Incorrect

    Recovery shares apply to auto unseal; a Shamir seal is split with the key share flags.

  • Dvault operator init -key-shares=5 -key-threshold=3 -pgp-keys=<five public keys>

    Correct

    The shares are split five ways with a threshold of three, and each is encrypted to one officer's PGP key so the operator sees only ciphertext.

Shamir's secret sharing splits the key into shares and a threshold; -pgp-keys encrypts each share at initialization.

Question 2 · choose 1

An operator runs vault operator init with no share options on a cluster with a Shamir seal. How is the key split?

  1. A3 shares, all of which are needed
  2. B1 share, since sharing is optional
  3. C5 shares, any 3 of which unseal Vault
  4. D5 shares, all of which are needed
Show the answer and why
  • A3 shares, all of which are needed

    Incorrect

    The default is five shares with a threshold of three.

  • B1 share, since sharing is optional

    Incorrect

    Vault splits the key by default.

  • C5 shares, any 3 of which unseal Vault

    Correct

    The defaults are -key-shares=5 and -key-threshold=3.

  • D5 shares, all of which are needed

    Incorrect

    Only three of the five are required by default.

Choose the split to match how many trusted holders exist and how many must agree.

Question 3 · choose 1

Two of five key holders are leaving the company, and the team wants a new split of seven shares with a threshold of four. Which operation does that?

  1. Avault operator rotate
  2. Bvault operator init again with the new values
  3. Cvault operator generate-root
  4. Dvault operator rekey with -key-shares=7 -key-threshold=4
Show the answer and why
  • Avault operator rotate

    Incorrect

    rotate changes the data encryption key, not the shares.

  • Bvault operator init again with the new values

    Incorrect

    A cluster is initialized only once.

  • Cvault operator generate-root

    Incorrect

    It does not change the key split.

  • Dvault operator rekey with -key-shares=7 -key-threshold=4

    Correct

    Rekeying generates a new root key and new unseal shares with the configured split, authorized by the current threshold.

Rekey after holders change, and distribute the new shares, encrypted with PGP if needed.

Question 4 · choose 1

A key holder asks whether their unseal key share lets them read secrets if the root token is lost. What is the answer?

  1. ANo; shares serve unsealing only, never ordinary requests
  2. BYes; a share works as a read-only token once Vault is unsealed
  3. CYes, once the threshold of holders logs in together
  4. DOnly if the share was PGP-encrypted at init
Show the answer and why
  • ANo; shares serve unsealing only, never ordinary requests

    Correct

    The shares are not useful for making any requests to Vault and can only be used for unsealing.

  • BYes; a share works as a read-only token once Vault is unsealed

    Incorrect

    Shares are not tokens.

  • CYes, once the threshold of holders logs in together

    Incorrect

    Shares do not log anyone in, however many holders act together.

  • DOnly if the share was PGP-encrypted at init

    Incorrect

    Encryption at init protects the share; it gives it no new power.

Secret sharing avoids trusting one holder with the root key; normal ACLs govern every request after unsealing.

Question 5 · choose 1

A cluster uses AWS KMS auto unseal, and the KMS key becomes unavailable. Can the holders of the recovery keys unseal Vault?

  1. AYes; recovery keys act as Shamir shares in an emergency
  2. BNo; recovery keys cannot decrypt the root key
  3. CYes, after switching the seal stanza to shamir
  4. DYes, with vault operator unseal -recovery
Show the answer and why
  • AYes; recovery keys act as Shamir shares in an emergency

    Incorrect

    With auto unseal, recovery keys cannot stand in for the seal.

  • BNo; recovery keys cannot decrypt the root key

    Correct

    Recovery keys are not sufficient to unseal Vault if the auto unseal mechanism is not working.

  • CYes, after switching the seal stanza to shamir

    Incorrect

    Migration needs the old seal to be available.

  • DYes, with vault operator unseal -recovery

    Incorrect

    No flag turns recovery keys into unseal keys.

Auto unseal creates a hard dependency on the KMS key: protect it and plan for its availability.

Practice domain 8 →Practice all domains →