SCS-C03 practice question 5 of 15

A consultant agency needs to perform a security audit for a company's production AWS account. Several consultants need access to the account. The…

Full set: 227 questions
A consultant agency needs to perform a security audit for a company's production AWS account. Several consultants need access to the account. The consultant agency already has its own AWS account. The company requires multi-factor authentication (MFA) for all access to its production account. The company also forbids the use of long-term credentials. Which solution will provide the consultant agency with access that meets these requirements?
Answer options
A: Create an IAM group. Create an IAM user for each consultant. Add each user to the group. Turn on MFA for each consultant.
B: Configure Amazon Cognito on the company’s production account to authenticate against the consultant agency's identity provider (IdP). Add MFA to a Cognito user pool.
C: Create an IAM role in the consultant agency's AWS account. Define a trust policy that requires MFA. In the trust policy, specify the company's production account as the principal. Attach the trust policy to the role.
D: Create an IAM role in the company’s production account. Define a trust policy that requires MFA. In the trust policy, specify the consultant agency's AWS account as the principal. Attach the trust policy to the role. Correct answer
Correct Answer:
D. Create an IAM role in the company’s production account. Define a trust policy that requires MFA. In the trust policy, specify the consultant agency's AWS account as the principal. Attach the trust policy to the role.
Explanation

This solution correctly implements a secure, cross-account access pattern. An IAM role is created in the resource-owning account (the company) and establishes a trust relationship with the external account (the consultant agency). This allows IAM users in the consultant's account to assume the role without needing long-term credentials in the company's account. The trust policy can enforce the use of Multi-Factor Authentication (MFA) upon assuming the role, satisfying all stated requirements. This is the standard AWS best practice for granting third-party account access.

Why Incorrect

A. This creates long-term credentials (IAM users) in the company's account, which is explicitly forbidden by the requirements.
C. The IAM role must be created in the account that owns the resources (the company), not the account that needs access (the consultant agency).
B. Amazon Cognito is an identity service for customer-facing web and mobile applications, not for granting AWS account access to consultants.

References

1. AWS Identity and Access Management User Guide. (2024). IAM roles. AWS. Retrieved from https://docs.aws.amazon.com/IAM/latest/UserGuide/idroles.html. (See section "Roles terms and concepts").

2. AWS Identity and Access Management User Guide. (2024). Tutorial: Delegate access across AWS accounts using IAM roles. AWS. Retrieved from https://docs.aws.amazon.com/IAM/latest/UserGuide/tutorialcross-account-with-roles.html. (See Step 1: Create the Role).

3. AWS Identity and Access Management User Guide. (2024). Configuring MFA-protected API access. AWS. Retrieved from https://docs.aws.amazon.com/IAM/latest/UserGuide/MFAProtectedAPI.html. (See section "Example policies for MFA").

Scroll to Top