AWS Certified Developer – Associate (DVA-C02) — Question 348

A developer needs temporary access to resources in a second account.

What is the MOST secure way to achieve this?

Answer options

Correct answer: C

Explanation

Creating a cross-account IAM role and using the sts:AssumeRole API is the AWS-recommended best practice for cross-account access because it provides temporary, short-lived security credentials without sharing long-term secrets. Sharing IAM access keys via email is insecure and exposes long-lived credentials, while Amazon Cognito user pools are designed for application user authentication rather than cross-account AWS resource delegation.