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 102 discussion

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

An application uses Amazon Cognito to manage end users' permissions when directly accessing AWS resources, including Amazon DynamoDB. A new feature request reads as follows:
Provide a mechanism to mark customers as suspended pending investigation or suspended permanently. Customers should still be able to log in when suspended, but should not be able to make changes.
The priorities are to reduce complexity and avoid potential for future security issues.
Which approach will meet these requirements and priorities?

  • A. Create a new database field ג€suspended_statusג€ and modify the application logic to validate that field when processing requests.
  • B. Add suspended customers to second Cognito user pool and update the application login flow to check both user pools.
  • C. Use Amazon Cognito Sync to push out a ג€suspension_statusג€ parameter and split the IAM policy into normal users and suspended users.
  • D. Move suspended customers to a second Cognito group and define an appropriate IAM access policy for the group.
Show Suggested Answer Hide Answer
Suggested Answer: D 🗳️

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
josellama2000
Highly Voted 3 years, 7 months ago
A is incorrect. It is more complex then other answers B is incorret. we dont need a second user pool. A Cognito group suffices C ?? D is correct. It is the correct method Developers have the ability to add users and remove users from Cognito's groups and manage group permissions for sets of users. fine-grained Role-Based Access Control (RBAC) in Cognito Federated Identities allows developers to now assign different IAM roles to different authenticated users. Previously, Amazon Cognito only supported one IAM role for all authenticated users. https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-identity-pools.html A user pool is a user directory in Amazon Cognito. It provides user profiles for users. You create groups on user pools https://aws.amazon.com/blogs/aws/new-amazon-cognito-groups-and-fine-grained-role-based-access-control-2/
upvoted 34 times
Mimikabs
2 years, 5 months ago
C is incorrect. Amazon Cognito Sync (now called AWS app sync) is used to sync users' application data between devices and will not be applicable in this scenario.
upvoted 3 times
...
...
BillyC
Highly Voted 3 years, 8 months ago
D is Correct
upvoted 10 times
duduga40
3 years, 7 months ago
I think D.
upvoted 5 times
...
...
Raphaello
Most Recent 1 year, 3 months ago
Selected Answer: D
Correct answer is D
upvoted 1 times
...
ITGURU51
2 years, 1 month ago
As per AWS documentation: With Groups support in Cognito, developers can easily customize users’ app experience by creating groups which represent different user types and app usage permissions. Developers have the ability to add users and remove users from groups and manage group permissions for sets of users. Therefore, D should suffice.
upvoted 3 times
...
arpgaur
2 years, 4 months ago
Option D. Move suspended customers to a second Cognito group and define an appropriate IAM access policy for the group. This approach allows you to separate the suspended customers into a different group, and assign them a different IAM access policy that limits their permissions, without modifying the application logic. It also reduces complexity and eliminates the need for additional database fields or a second user pool, thus avoiding potential for future security issues.
upvoted 2 times
...
sapien45
2 years, 8 months ago
Selected Answer: D
Support for groups in Amazon Cognito user pools enables you to create and manage groups, add users to groups, and remove users from groups. You can assign an AWS Identity and Access Management (IAM) role to a group to define the permissions for members of a group. https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-pools-user-groups.html
upvoted 3 times
...
dcasabona
2 years, 10 months ago
Selected Answer: D
Option D make sense to me.
upvoted 1 times
...
RaySmith
3 years, 2 months ago
D is correct
upvoted 1 times
...
bustedd
3 years, 4 months ago
Selected Answer: D
D is correct answer
upvoted 1 times
...
NSF2
3 years, 4 months ago
The correct answer is D as per below. https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-pools-user-groups.html "Support for groups in Amazon Cognito user pools enables you to create and manage groups, add users to groups, and remove users from groups. Use groups to create collections of users to manage their permissions or to represent different types of users. You can assign an AWS Identity and Access Management (IAM) role to a group to define the permissions for members of a group."
upvoted 3 times
...
boooliyooo
3 years, 5 months ago
D however does not helps long term, imagine having to move each and every suspended users... A may seems complex, but it is the most effective and yet secured way of doing things.
upvoted 1 times
...
skipbaylessfor3
3 years, 6 months ago
D seems correct, but could it also be B? Or is that too much
upvoted 1 times
...
sanjaym
3 years, 6 months ago
Ans: D
upvoted 1 times
...
NANDY666
3 years, 6 months ago
D is Correct
upvoted 2 times
...
devjava
3 years, 6 months ago
Ans > D https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-pools-user-groups.html
upvoted 1 times
...
AfricanCloudGuru
3 years, 6 months ago
Ans (D) https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-pools-user-groups.htm
upvoted 1 times
...
lunamycat
3 years, 7 months ago
D is correct. https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-pools-user-groups.html
upvoted 1 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 ...