AWS Certified Security – Specialty (SCS-C02) — Question 105

A security engineer is creating an AWS Lambda function. The Lambda function needs to use a role that is named LambdaAuditRole to assume a role that is named AcmeAuditFactoryRole in a different AWS account.

When the code is processed, the following error message appears: "An error occurred (AccessDenied) when calling the AssumeRole operation."

Which combination of steps should the security engineer take to resolve this error? (Choose two.)

Answer options

Correct answer: A, C

Explanation

The correct answer is A and C because LambdaAuditRole must have permission to assume AcmeAuditFactoryRole and the trust policy for AcmeAuditFactoryRole must explicitly allow this action from LambdaAuditRole. Options B, D, and E are not directly related to resolving the access denied error when assuming the role between accounts.