A company needs to restrict its database administrators from modifying Amazon RDS instances when they are working outside of the corporate network or outside of standard business hours. Which IAM mechanism should the security team implement to enforce these specific access conditions?
- An IAM policy containing a Condition element with aws:SourceIp and aws:CurrentTime keys attached to the database administrators' role or groupAnswer
- BA trust policy attached directly to the Amazon RDS database instances that defines the allowed access hours and IP address ranges
- CA configuration applied to the AWS Account Root User that automatically disables database administrator API access keys during off-hours
- DAn AWS-managed service control setting that relies on the AWS Shared Responsibility Model to dynamically block console access based on the administrator's physical timezone
Answer
An IAM policy containing a Condition element with aws:SourceIp and aws:CurrentTime keys attached to the database administrators' role or group
The correct answer is the option that suggests using an IAM policy with a Condition element containing the aws:SourceIp and aws:CurrentTime keys. This allows the security team to specify exactly when and from where the policy permits database administration tasks, conforming to best practices.
Step-by-Step Solution
Key Concept
IAM Policy Conditions