nerdexam
Amazon

DVA-C02 · Question #636

A developer uses AWS IAM Identity Center to interact with the AWS CLI and AWS SDKs on a local workstation. API calls to AWS services were working when the SSO access was first configured. However…

The correct answer is C. The credentials from the IAM Identity Center federated role have expired. IAM Identity Center credentials are temporary and expire after a configured session duration; the developer must re-authenticate with 'aws sso login' to refresh them.

Submitted by certguy· Mar 5, 2026Troubleshooting and Optimization

Question

A developer uses AWS IAM Identity Center to interact with the AWS CLI and AWS SDKs on a local workstation. API calls to AWS services were working when the SSO access was first configured. However, the developer is now receiving Access Denied errors. The developer has not changed any configuration files or scripts that were previously working on the workstation. What is the MOST likely cause of the developer's access issue?

Options

  • AThe access permissions to the developer's AWS CLI binary file have changed.
  • BThe permission set that is assumed by IAM Identity Center does not have the necessary
  • CThe credentials from the IAM Identity Center federated role have expired.
  • DThe developer is attempting to make API calls to the incorrect AWS account.

How the community answered

(46 responses)
  • A
    2% (1)
  • B
    2% (1)
  • C
    91% (42)
  • D
    4% (2)

Why each option

IAM Identity Center credentials are temporary and expire after a configured session duration; the developer must re-authenticate with 'aws sso login' to refresh them.

AThe access permissions to the developer's AWS CLI binary file have changed.

File permission changes on the CLI binary would prevent the CLI from executing at all rather than producing AWS API-level Access Denied responses.

BThe permission set that is assumed by IAM Identity Center does not have the necessary

Permission sets configured by administrators do not change automatically; if permissions were sufficient before and no administrator made changes, this is not the cause of a sudden failure.

CThe credentials from the IAM Identity Center federated role have expired.Correct

IAM Identity Center issues short-lived federated credentials (typically 8 to 24 hours) that automatically expire; since no configuration was changed and the errors appeared after initially working, credential expiration is the most likely cause and re-running 'aws sso login' resolves it without any configuration changes.

DThe developer is attempting to make API calls to the incorrect AWS account.

Calling the wrong AWS account would be a configuration error present from the beginning of setup, not something that spontaneously appears after previously working correctly.

Concept tested: IAM Identity Center SSO credential expiration and refresh

Source: https://docs.aws.amazon.com/cli/latest/userguide/sso-configure-profile-token.html

Community Discussion

No community discussion yet for this question.

Full DVA-C02 Practice