A CodeBuild project needs a SecureString parameter as an environment variable without storing its value in the buildspec. The service role already has retrieval and decryption permissions. What should the engineer configure?
Show the answer
Correct answerB. A parameter-store environment mapping referencing the parameter name
AWhy not this: A plaintext environment variable passes its configured text literally rather than resolving a Parameter Store reference.
BWhy this is right: CodeBuild resolves the parameter-store mapping and makes the retrieved value available as an environment variable.
CWhy not this: Exported variables pass build values to later pipeline actions; they do not retrieve Parameter Store values.
DWhy not this: An input artifact does not automatically retrieve or decrypt a Parameter Store parameter.
A parameter-store environment mapping tells CodeBuild to retrieve the parameter and populate the environment variable. A plaintext variable containing the parameter name passes that name literally; it does not retrieve the value.