A company wants to share a dataset stored in an Amazon S3 bucket with a partner organization's AWS account. The company wants to grant this access by attaching a policy directly to the S3 bucket itself, specifying who can access it. Which type of policy should the company use to meet these requirements?
- AIdentity-based policy
- BSecurity Group rule
- Resource-based policyCevap
- DService Control Policy (SCP)
Cevap
Resource-based policy
A resource-based policy, such as an Amazon S3 bucket policy, is attached directly to the resource itself. It allows the owner of the resource to specify which principals (including users, roles, or other AWS accounts) have permission to access that specific resource.
Adım Adım Çözüm
Anahtar Kavram
Resource-based policies are attached directly to AWS resources (like S3 buckets or KMS keys) and define which principals (including external AWS accounts) can access that resource.