Easy1 markMultiple Choice

AWS SAP-C02 · Question 09 · Domain 1.2: Security Controls

A company uses AWS IAM Identity Center (AWS SSO) integrated with their on-premises Active Directory. Developers need CLI access to AWS accounts. The security policy mandates that long-term IAM access keys must not be used. How should developers authenticate to the AWS CLI?

Answer options:

A.

Create IAM users for developers and use AWS STS to generate temporary tokens.

B.

Use the AWS CLI v2 to run 'aws configure sso'. Developers authenticate via their web browser to receive short-term credentials.

C.

Deploy an EC2 instance with an IAM role and require developers to SSH into it to run CLI commands.

D.

Use AWS Cognito to issue JWT tokens for the AWS CLI.

How to approach this question

Look for the native CLI integration for IAM Identity Center.

Full Answer

B.Use the AWS CLI v2 to run 'aws configure sso'. Developers authenticate via their web browser to receive short-term credentials.✓ Correct
AWS CLI v2 integrates directly with IAM Identity Center. 'aws configure sso' allows users to authenticate via a browser and automatically retrieves short-term credentials.

Common mistakes

Assuming IAM users are required for CLI access.

Practice the full AWS Solutions Architect Professional SAP-C02 Practice Exam 6

75 questions · hints · full answers · grading

More questions from this exam