exam questions

Exam AWS Certified Developer - Associate DVA-C02 All Questions

View all questions & answers for the AWS Certified Developer - Associate DVA-C02 exam

Exam AWS Certified Developer - Associate DVA-C02 topic 1 question 428 discussion

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.)

  • A. Update the instance profile role in Account A with stream read permissions.
  • B. Create an IAM role with stream read permissions in Account B.
  • C. Add a trust policy to the instance profile role and IAM role in Account B to allow the instance profile role to assume the IAM role.
  • D. Add a trust policy to the instance profile role and IAM role in Account B to allow reads from the stream.
  • E. Add a resource-based policy in Account B to allow read access from the instance profile role.
Show Suggested Answer Hide Answer
Suggested Answer: BC 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
tullio85
3 months, 2 weeks ago
In the soltion C the EC2 istance is missing. I have to assume that it is reference to the EC2 istance.
upvoted 1 times
...
bp07
3 months, 2 weeks ago
Selected Answer: AE
B and C together could be part of the solution, but they still don't fully address the requirement because the Kinesis stream needs a resource-based policy to grant permission for cross-account access. Hence I feel AE will be answer.
upvoted 1 times
...
examuserss
3 months, 3 weeks ago
Selected Answer: BC
Selectec Answer: BC To allow an EC2 instance in one account (Account A) to access a Kinesis stream in another account (Account B), you need cross-account access. This is achieved by: Creating an IAM role in Account B: This role will have the necessary Kinesis read permissions. Adding a trust policy: This policy, added to the role in Account B, allows the EC2 instance's IAM role (in Account A) to assume the role in Account B. The EC2 instance's role then acts as a temporary security credential for accessing the Kinesis stream in Account B.
upvoted 1 times
...
albert_kuo
6 months, 2 weeks ago
Selected Answer: BC
create iam role { "Version": "2012-10-17", "Statement": [ { "Effect": "Allow", "Action": [ "kinesis:DescribeStream", "kinesis:GetRecords", "kinesis:GetShardIterator", "kinesis:ListStreams" ], "Resource": "arn:aws:kinesis:<region>:<AccountB-ID>:stream/<stream-name>" } ] }
upvoted 2 times
albert_kuo
6 months, 2 weeks ago
create trust policy { "Version": "2012-10-17", "Statement": [ { "Effect": "Allow", "Principal": { "AWS": "arn:aws:iam::<AccountA-ID>:role/<InstanceProfileRoleName>" }, "Action": "sts:AssumeRole" } ] }
upvoted 1 times
...
albert_kuo
6 months, 2 weeks ago
configure policy in account A { "Version": "2012-10-17", "Statement": [ { "Effect": "Allow", "Action": "sts:AssumeRole", "Resource": "arn:aws:iam::<AccountB-ID>:role/<RoleNameInAccountB>" } ] }
upvoted 1 times
...
...
YUICH
6 months, 4 weeks ago
Selected Answer: AE
A. Update the instance profile role in Account A with the necessary permissions to read from the Kinesis stream. This allows the EC2 instance to assume the required permissions. E. Add a resource-based policy to the Kinesis stream in Account B to grant read access to the instance profile role in Account A. This enables cross-account access.
upvoted 1 times
...
jasonczx
7 months, 2 weeks ago
Selected Answer: BC
https://aws.amazon.com/blogs/security/how-to-use-trust-policies-with-iam-roles
upvoted 4 times
...
28304e5
7 months, 2 weeks ago
Selected Answer: BE
C: This action involves cross-account role assumption, but for Kinesis access, you would typically use resource-based policies rather than cross-account role assumption unless the use case specifically involves assuming roles across accounts.
upvoted 4 times
...
aragon_saa
7 months, 2 weeks ago
Selected Answer: BC
Answer is BC
upvoted 4 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago