Study. uk . com
  1. Home
  2. All questions
  3. Question 602

CKA study material · question 602 of 1000

A Secret manifest sets the key password under both data and stringData. Which value ends up stored?

  1. The one from data, since stringData is only a convenience
  2. The one from stringData
  3. Neither; the API server rejects the duplicate key
  4. Both, under password and password-string
Show the answer

Answer: B. The one from stringData

stringData is merged into data at admission, and where a key appears in both the stringData value takes precedence.

Source: Secrets (Kubernetes) — Working with Secrets › Constraints on Secret names and data

Challenge yourself on this topic → Study as cards