Welcome to ExamTopics
ExamTopics Logo
- Expert Verified, Online, Free.
exam questions

Exam AWS Certified Solutions Architect - Professional SAP-C02 All Questions

View all questions & answers for the AWS Certified Solutions Architect - Professional SAP-C02 exam

Exam AWS Certified Solutions Architect - Professional SAP-C02 topic 1 question 371 discussion

A company hosts an intranet web application on Amazon EC2 instances behind an Application Load Balancer (ALB). Currently, users authenticate to the application against an internal user database.

The company needs to authenticate users to the application by using an existing AWS Directory Service for Microsoft Active Directory directory. All users with accounts in the directory must have access to the application.

Which solution will meet these requirements?

  • A. Create a new app client in the directory. Create a listener rule for the ALB. Specify the authenticate-oidc action for the listener rule. Configure the listener rule with the appropriate issuer, client ID and secret, and endpoint details for the Active Directory service. Configure the new app client with the callback URL that the ALB provides.
  • B. Configure an Amazon Cognito user pool. Configure the user pool with a federated identity provider (ldP) that has metadata from the directory. Create an app client. Associate the app client with the user pool. Create a listener rule for the ALSpecify the authenticate-cognito action for the listener rule. Configure the listener rule to use the user pool and app client.
  • C. Add the directory as a new IAM identity provider (ldP). Create a new IAM role that has an entity type of SAML 2.0 federation. Configure a role policy that allows access to the ALB. Configure the new role as the default authenticated user role for the ldP. Create a listener rule for the ALB. Specify the authenticate-oidc action for the listener rule.
  • D. Enable AWS IAM Identity Center (AWS Single Sign-On). Configure the directory as an external identity provider (ldP) that uses SAML. Use the automatic provisioning method. Create a new IAM role that has an entity type of SAML 2.0 federation. Configure a role policy that allows access to the ALB. Attach the new role to all groups. Create a listener rule for the ALB. Specify the authenticate-cognito action for the listener rule.
Show Suggested Answer Hide Answer
Suggested Answer: B 🗳️

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
gustori99
Highly Voted 7 months, 3 weeks ago
Selected Answer: B
D is complete nonsense. Don't know why so many people are voting for it. "Configure a role policy that allows access to the ALB" - Come on, guys. ALB is accessed via http or https. You can restrict access via security groups not roles. Also cognito is mentioned in D but cognito is not connected to to the SAML provider. So B is the correct answer.
upvoted 11 times
...
ayadmawla
Highly Voted 11 months, 1 week ago
Selected Answer: B
There are two options either via Cognito or Auth0 and then attach an IDP to one of them. See: https://docs.aws.amazon.com/elasticloadbalancing/latest/application/listener-authenticate-users.html https://aws.amazon.com/blogs/aws/built-in-authentication-in-alb/
upvoted 8 times
...
AzureDP900
Most Recent 1 week, 2 days ago
Option B is right because: Cognito provides a federated identity provider that can integrate with the directory, making it easy to authenticate users against the application. By configuring the user pool with the metadata from the directory, you can leverage the existing authentication mechanism in the directory. Creating an app client and associating it with the user pool allows you to use Cognito as the authentication provider for the ALB. Specifying the authenticate-cognito action for the listener rule enables Cognito-based authentication for the ALB.
upvoted 1 times
...
liuliangzhou
2 months, 2 weeks ago
Selected Answer: B
Option B focuses more on user identity management for web and mobile applications, providing rich user management features and flexible authentication processes. If the company's main requirement is to manage user identities and data for applications, then option B may be more appropriate. Option D focuses more on providing single sign on access to AWS accounts and applications for organizational employees, as well as integration with external identity providers through SAML. If the company wishes to integrate its existing identity management system (such as Microsoft Active Directory) with AWS accounts and applications, and wants employees to easily access these resources, then option D may be more appropriate.
upvoted 2 times
...
kgpoj
3 months, 2 weeks ago
Selected Answer: B
IAM Identity Center is primarily designed for single sign-on (SSO) access to AWS accounts, applications, and services that are integrated with AWS. It provides centralized identity management for users accessing these resources. In contrast, the requirement here is for web application authentication directly tied to an intranet web application hosted on EC2 instances, not for general access to AWS resources.
upvoted 3 times
...
vip2
4 months, 2 weeks ago
Selected Answer: B
ALB Authenticate users through corporate identities, using SAML, OpenID Connect (OIDC), or OAuth, through the user pools supported by Amazon Cognito. https://docs.aws.amazon.com/elasticloadbalancing/latest/application/listener-authenticate-users.html
upvoted 1 times
...
9f02c8d
5 months, 3 weeks ago
Option B
upvoted 1 times
...
seetpt
6 months, 3 weeks ago
Selected Answer: B
B vote
upvoted 2 times
...
seetpt
6 months, 3 weeks ago
Selected Answer: B
B vote
upvoted 2 times
...
seetpt
6 months, 3 weeks ago
I vote for B
upvoted 1 times
...
TonytheTiger
7 months ago
Selected Answer: D
Option D: Per AWS doc " An Amazon Cognito user pool is a user directory for web and mobile app authentication and authorization. " . The question states " The company hosts an intranet web application". So, you can't select Cognito https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-identity-pools.html
upvoted 1 times
...
VerRi
7 months, 4 weeks ago
Selected Answer: B
A: The Active Directory directory does not use OIDC. B: Make sense. C: Cannot add the directory as a new IAM IdP. D: Why "authenticate-cognito action"
upvoted 5 times
...
Dgix
8 months, 1 week ago
Selected Answer: B
A: Doesn't support OIDC directly. B: ALBs can interface directly to Cognito. The correct answer. C: Rubbish, as IAM doesn't directly interface to any AD. D: Mixes things up royally.
upvoted 6 times
...
JOKERO
8 months, 1 week ago
Attach the new role to all groups ???
upvoted 1 times
...
career360guru
8 months, 2 weeks ago
Selected Answer: D
Option D
upvoted 2 times
...
ftaws
9 months, 4 weeks ago
refer to below. 46 I am on the Amazon Cognito team. Amazon Cognito is our identity management solution for developers building B2C or B2B apps for their customers, which makes it a customer-targeted IAM and user directory solution. AWS SSO is focused on SSO for employees accessing AWS and business apps, initially with Microsoft AD as the underlying employee directory. We plan to integrate Cognito User Pools and AWS SSO as part of our roadmap.
upvoted 2 times
...
ftaws
9 months, 4 weeks ago
Selected Answer: D
They have already AD so we have to use SSO.
upvoted 4 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 ...