exam questions

Exam AWS Certified Security - Specialty All Questions

View all questions & answers for the AWS Certified Security - Specialty exam

Exam AWS Certified Security - Specialty topic 1 question 124 discussion

Exam question from Amazon's AWS Certified Security - Specialty
Question #: 124
Topic #: 1
[All AWS Certified Security - Specialty Questions]

A Security Engineer is working with the development team to design a supply chain application that stores sensitive inventory data in an Amazon S3 bucket. The application will use an AWS KMS customer master key (CMK) to encrypt the data on Amazon S3. The inventory data on Amazon S3 will be shared of vendors. All vendors will use AWS principals from their own AWS accounts to access the data on Amazon S3. The vendor list may change weekly, and the solution must support cross-account access.
What is the MOST efficient way to manage access control for the KMS CMK7?

  • A. Use KMS grants to manage key access. Programmatically create and revoke grants to manage vendor access.
  • B. Use an IAM role to manage key access. Programmatically update the IAM role policies to manage vendor access.
  • C. Use KMS key policies to manage key access. Programmatically update the KMS key policies to manage vendor access.
  • D. Use delegated access across AWS accounts by using IAM roles to manage key access. Programmatically update the IAM trust policy to manage cross- account vendor access.
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️

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
Larsson
Highly Voted 3 years, 7 months ago
A. It's usually a grant when a grant is an option in the tests.
upvoted 26 times
Raphaello
1 year, 3 months ago
Wrong.
upvoted 1 times
...
...
gfhbox0083
Highly Voted 3 years, 7 months ago
A, AWS KMS supports two resource-based access control mechanisms: key policies and grants. With grants you can programmatically delegate the use of KMS customer master keys (CMKs) to other AWS principals. IAM Policies are optional - Requires additional steps.
upvoted 8 times
...
vvsandipvv
Most Recent 11 months, 1 week ago
A . Don't know why it says grant in the option just choose it
upvoted 1 times
...
Raphaello
1 year, 3 months ago
Selected Answer: C
1. It was not mentioned how the vendor accounts access the data in S3 bucket. Manually or programmatically. Only mentioned "principals". 2. KMS key grants dynamically generate GRANT TOKEN that is required for granted actions for the time of grant validity. Once the grant is retired, the associated token is gone. This is why point (1) is important. How to communicate the token to vendor account and how is going to be used? 3. Using the word "programmatically" suits issuing grants more than updating key policy. Misleading. 4. Both A & C are correct each in its own context. Programmatic access from vendor account won't work well with GRANT TOKENS, cause each time "PROGRAMMATICALLY CREATE A GRANT" means vendor needs to update their programmatic access with the new GRANT TOKEN. Even manually, will depend on communicating the token. 5. For all above, setting a key policy to permit "principals" from vendor accounts is the best answer (NO GRANT TOKENS). Answer is C
upvoted 1 times
Raphaello
1 year, 3 months ago
Obviously I'm mistaken with my analysis about GRANT TOKEN. Grant token is not required after eventually consistent propagation. "Once the change has fully propagated throughout the system, the grantee principal can use the permissions in the grant without specifying the grant token or any evidence of the grant." Ref.: https://docs.aws.amazon.com/kms/latest/developerguide/grant-manage.html#using-grant-token Key words: "The vendor list may change weekly" The dynamic change in vendor list is a key to why use PROGRAMMATIC GRANTS instead updating the key policy. I take back my previous decision. In this scenario, answer A is the best option.
upvoted 1 times
...
...
KaiW
1 year, 4 months ago
Everyone says the answer is A but based on my understand and research, the answer should be more like C. https://repost.aws/knowledge-center/cross-account-access-denied-error-s3
upvoted 2 times
...
Ernestokoro
1 year, 7 months ago
Ans A: Grants are advanced mechanisms for specifying permissions that you or an Amazon service integrated with Amazon KMS can use to specify how and when a KMS key can be used. Grants are attached to a KMS key, and each grant contains the principal who receives permission to use the KMS key and a list of operations that are allowed. url: https://www.bing.com/ck/a?!&&p=d91421aa69e1d254JmltdHM9MTY5NTYwMDAwMCZpZ3VpZD0yMTEzZmNjNy0zOTNkLTYyYmQtMTJhNC1lZWQxMzhkZDYzM2QmaW5zaWQ9NTUxMg&ptn=3&hsh=3&fclid=2113fcc7-393d-62bd-12a4-eed138dd633d&psq=what+is+kms+key+grant&u=a1aHR0cHM6Ly9kb2NzLmFtYXpvbmF3cy5jbi9lbl91cy9rbXMvbGF0ZXN0L2RldmVsb3Blcmd1aWRlL2RldGVybWluaW5nLWFjY2Vzcy1ncmFudHMuaHRtbCM6fjp0ZXh0PUdyYW50cyUyMGFyZSUyMGFkdmFuY2VkJTIwbWVjaGFuaXNtcyUyMGZvciUyMHNwZWNpZnlpbmclMjBwZXJtaXNzaW9ucyUyMHRoYXQsYW5kJTIwYSUyMGxpc3QlMjBvZiUyMG9wZXJhdGlvbnMlMjB0aGF0JTIwYXJlJTIwYWxsb3dlZC4&ntb=1
upvoted 1 times
...
gagol14
2 years ago
Selected Answer: A
While using KMS grants is a viable option, it may not be the most efficient way to manage access control for the KMS CMK in the given scenario, as it requires creating and revoking individual grants for each vendor. Updating KMS key policies (Option C) is a more efficient approach, as it allows for easier management of access for multiple vendors, especially when the vendor list changes frequently.
upvoted 1 times
...
jAWStest
2 years, 6 months ago
Selected Answer: A
Grants allow programmatic access to keys. There are no roles in IAM Key policies
upvoted 1 times
...
kiev
3 years, 6 months ago
A as well for me
upvoted 2 times
...
AnilL
3 years, 7 months ago
aws kms create-grant \ --key-id 1234abcd-12ab-34cd-56ef-1234567890ab \ --grantee-principal arn:aws:iam::111122223333:user/exampleUser \ --operations Decrypt \ --retiring-principal arn:aws:iam::111122223333:role/adminRole \ --constraints EncryptionContextSubset={Department=IT}
upvoted 3 times
...
Raj9
3 years, 7 months ago
a - grants
upvoted 1 times
...
simplimarvelous
3 years, 7 months ago
A. Grants allow programatic creation and revoking of multiple granted key access'
upvoted 1 times
...
RaySmith
3 years, 7 months ago
A for me
upvoted 2 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