Question 102:
A database specialist wants to grant the read role to DocumentDB user “Bob” on DocumentDB database “production”. What action must the database specialist perform to accomplish this requirement?
Answer options:
A.Assign AWS Managed Policy “AmazonDocDBReadOnlyAccess” to IAM User “Bob”.
B.Create an IAM policy with “Allow” Effect on “read” Action for the “production” DocumentDB instance resource. Assign the IAM policy to IAM User “Bob”.
C.Create a Resource-Based Policy with “Allow” Effect on “read” Action for DocumentDB user “Bob”. Assign the policy to the DocumentDB instance.
D.Run command db.grantRolesToUser("Bob", [{role: "read", db: "production"}]).