Question 280
A security team protects secrets across AWS serverless services. The team confirms that an AWS service should access a secret without broad administrator permission. Which choice directly addresses the documented cause?
Explanation
Correct Answer
The scenario identifies this requirement: An AWS service should access a secret without broad administrator permission. Select Grant only secret-specific read actions to its role and key-decrypt when required as the specified technical mechanism. Service roles should not inherit global secret-management powers. This response addresses the problem described rather than a different design goal.
Incorrect Answers
Configure a customer managed KMS key for supported Lambda environment encryption would help if a Lambda runtime has environment secrets encrypted using an AWS managed key but policy demands customer key control. Customer managed keys allow more key policy oversight. That is not the symptom described here: an AWS service should access a secret without broad administrator permission. The matching response is Grant only secret-specific read actions to its role and key-decrypt when required, because service roles should not inherit global secret-management powers.
For the alternative failure a secret is rotated but an ECS service retains old environment values, the control Restart or redeploy affected tasks to load refreshed injected secrets is relevant: environment-injected secrets do not automatically refresh running containers. Here the evidence instead is an AWS service should access a secret without broad administrator permission. The selected technical mechanism is Grant only secret-specific read actions to its role and key-decrypt when required: service roles should not inherit global secret-management powers.
Avoid logging secret environment values and restrict container log viewers solves a different operational problem where an ECS task logs injected secret values on startup. Log confidentiality is separate from runtime secret injection. It does not directly address an AWS service should access a secret without broad administrator permission. The case calls for Grant only secret-specific read actions to its role and key-decrypt when required, since service roles should not inherit global secret-management powers.