Question

Difficulty: MediumStrengthening Identity, Access, and Network Security

An enterprise has an existing on-premises application that currently uses long-lived AWS IAM user access keys to upload large data logs to an Amazon S3 bucket. To strengthen security, a Solutions Architect is tasked with refactoring the authentication mechanism to use short-lived credentials via AWS IAM Roles Anywhere. The enterprise already operates an internal Certificate Authority (CA). Which combination of actions should the Solutions Architect perform to implement this security improvement? (Select two.)

  1. Create a trust anchor in AWS IAM Roles Anywhere by registering the certificate of the internal Certificate Authority (CA), and define a profile that specifies the IAM role that the on-premises application can assume.Answer
  2. Create an IAM role with a trust policy that allows the sts:AssumeRole, sts:TagSession, and sts:SetSourceIdentity actions, and trusts the rolesanywhere.amazonaws.com service principal.Answer
  3. C
    Configure the trust policy of the IAM role to use the sts:AssumeRoleWithSAML action, and configure the on-premises application to authenticate against a SAML 2.0 identity provider.
  4. D
    Attach a Service Control Policy (SCP) to the member account that permits the sts:AssumeRole action for the service principal rolesanywhere.amazonaws.com without configuring local trust policies on the target IAM role.
  5. E
    Configure default encryption on the S3 bucket using the AWS-managed KMS key aws/s3, and modify the key policy of aws/s3 to allow the rolesanywhere.amazonaws.com service principal to perform cryptographic actions.

Answer

Create a trust anchor in AWS IAM Roles Anywhere by registering the certificate of the internal Certificate Authority (CA), define a profile that specifies the IAM role, and create an IAM role with a trust policy that trusts the rolesanywhere.amazonaws.com service principal and allows the sts:AssumeRole, sts:TagSession, and sts:SetSourceIdentity actions.
The correct options implement IAM Roles Anywhere by registering the external CA certificate as a trust anchor and defining a profile referencing the role, while configuring the role trust policy to trust the rolesanywhere.amazonaws.com service principal with sts:AssumeRole, sts:TagSession, and sts:SetSourceIdentity actions.

Step-by-Step Solution

1
Register the internal Certificate Authority (CA) certificate as a trust anchor in AWS IAM Roles Anywhere.
Establishes a trust relationship between AWS IAM Roles Anywhere and the external PKI environment.
Allows AWS to validate certificates presented by the on-premises workloads.
2
Create an IAM role with a trust policy trusting the rolesanywhere.amazonaws.com service principal.
Allows the IAM Roles Anywhere service to assume the role on behalf of authenticated on-premises clients.
Ensures that the client can request temporary security credentials using the sts:AssumeRole, sts:TagSession, and sts:SetSourceIdentity actions.
3
Define an IAM Roles Anywhere profile and associate it with the created IAM role.
Maps the authenticated identity to the authorized target role and optional session policies.
Enables the credentials helper tool (aws_signing_helper) on the server to retrieve short-lived credentials for the application.

Key Concept

AWS IAM Roles Anywhere enables on-premises workloads to authenticate securely with AWS using local X.509 certificates to obtain short-lived IAM credentials, replacing static access keys.
Rate this question