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

A developer is deploying an application on Amazon EC2 instances that run in Account A. The application needs to read data from an existing Amazon Kinesis data stream in Account B.

Which actions should the developer take to provide the application with access to the stream? (Choose two.)

Answer options

Correct answer: B, C

Explanation

To enable cross-account access to resources like Amazon Kinesis data streams, which do not support resource-based policies, you must use IAM role assumption. First, an IAM role with stream read permissions must be created in the trusting account (Account B). Second, a trust relationship must be established between this role and the instance profile role in Account A, allowing the application on the EC2 instance to assume the role in Account B and access the stream.