An enterprise wants to allow a third-party SaaS monitoring application to collect performance metrics from Amazon CloudWatch in their AWS account. The SaaS provider's application runs in its own AWS account. The solutions architect must configure this access securely following the principle of least privilege, preventing unauthorized access by other customers of the SaaS provider.
Which combination of steps should the solutions architect take to meet these requirements? (Select TWO.)
- Create an IAM role in the enterprise account with a trust policy that trusts the SaaS provider's AWS account and requires a unique External IDCevap
- Attach a permissions policy to the IAM role that grants read-only access to Amazon CloudWatch metricsCevap
- CCreate an IAM user in the enterprise account, assign CloudWatch read-only permissions, and share the user's access keys with the SaaS provider
- DShare the enterprise account's root user access keys with the SaaS provider to ensure unrestricted access to all metrics
- EStore the API tokens and credentials used by the SaaS agent as a plaintext parameter in AWS Systems Manager Parameter Store
Cevap
To securely grant access to the third-party SaaS monitoring application, the solutions architect should create an IAM role in the enterprise account with a trust policy that requires a unique External ID and trusts the SaaS provider's AWS account. Additionally, a permissions policy granting read-only access to Amazon CloudWatch metrics must be attached to this role.
The correct combination of steps involves creating an IAM role in the enterprise account that trusts the third-party's AWS account and enforces an External ID, and then attaching a CloudWatch read-only permissions policy to that role. This enables secure cross-account delegation of access without using long-term credentials and prevents the confused deputy security vulnerability.
Adım Adım Çözüm
Anahtar Kavram
Cross-account access using IAM roles and External IDs to secure third-party integration.