nerdexam
Amazon

DEA-C01 · Question #68

A company has a production AWS account that runs company workloads. The company's security team created a security AWS account to store and analyze security logs from the production AWS account. The…

The correct answer is D. Create a destination data stream in the security AWS account. Create an IAM role and a trust. To deliver security logs from Amazon CloudWatch Logs in a production AWS account to an Amazon Kinesis Data Stream in a security AWS account, the Kinesis stream should be created in the security account, with the security account granting permissions to the production account to…

Data Ingestion and Transformation

Question

A company has a production AWS account that runs company workloads. The company's security team created a security AWS account to store and analyze security logs from the production AWS account. The security logs in the production AWS account are stored in Amazon CloudWatch Logs. The company needs to use Amazon Kinesis Data Streams to deliver the security logs to the security AWS account. Which solution will meet these requirements?

Options

  • ACreate a destination data stream in the production AWS account. In the security AWS account,
  • BCreate a destination data stream in the security AWS account. Create an IAM role and a trust
  • CCreate a destination data stream in the production AWS account. In the production AWS account,
  • DCreate a destination data stream in the security AWS account. Create an IAM role and a trust

How the community answered

(22 responses)
  • A
    5% (1)
  • B
    5% (1)
  • C
    9% (2)
  • D
    82% (18)

Why each option

To deliver security logs from Amazon CloudWatch Logs in a production AWS account to an Amazon Kinesis Data Stream in a security AWS account, the Kinesis stream should be created in the security account, with the security account granting permissions to the production account to write to it, and a CloudWatch Logs subscription filter in the production account configured to send logs to the cross-account stream.

ACreate a destination data stream in the production AWS account. In the security AWS account,

Creating the destination data stream in the production AWS account means the stream resides in the source account, which would not facilitate cross-account delivery to the security account's Kinesis Data Stream using a subscription filter to receive data.

BCreate a destination data stream in the security AWS account. Create an IAM role and a trust

Creating the IAM role and trust policy in the production account to grant permissions to the production account itself to access a stream in the security account is incorrectly structured, as the permissions to allow writing to the Kinesis stream must be defined in the security account (the resource owner).

CCreate a destination data stream in the production AWS account. In the production AWS account,

Creating the destination data stream and IAM role/trust policy entirely within the production account would keep the Kinesis stream and logs within the production account, failing to deliver them to the separate security AWS account as required.

DCreate a destination data stream in the security AWS account. Create an IAM role and a trustCorrect

This solution correctly implements cross-account log delivery by creating the Kinesis Data Stream in the destination (security) account, where an IAM role with a trust policy grants the source (production) account permission to write to the stream, and then a CloudWatch Logs subscription filter in the production account pushes the logs to this cross-account Kinesis stream.

Concept tested: Cross-account CloudWatch Logs to Kinesis

Source: https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/CrossAccountDataDelivery.html

Topics

#Kinesis Data Streams#CloudWatch Logs#Cross-account data transfer#IAM roles

Community Discussion

No community discussion yet for this question.

Full DEA-C01 Practice