AWS Certified Developer Associate DVA-C01 – Question432

A company uses AWS Organizations to manage multiple accounts. Account A has an application that runs n an Amazon EC2 instance. The application uses the AWS CLI to run automated deployments in Account. An administrator set up cross-account access by using an EC2 IAM service role in Account A and an IAM role in Account .
The application uses the following command to assume the IAM role in Account but is unable to deploy nything in Account .
aws sts assume-role –role-arn "am:aws:iam::<AccountB-ID>:role/AccountB-Role"
–role-session-name AccountB-Role-Session
Which step is needed next so that the application can successfully use the credentials that it obtains by sing the role in Account B?

A.
Configure the access key and secret access key of a valid IAM user from Account in the environment variables.
B. Configure the access key, secret access key, and token from the assume-role command in the environment variables.
C. Create a CLI profile for the EC2 IAM service role in the AWS configuration file.
D. Delete any access keys and secret access keys in the environment variables.