A developer is testing a Java application locally on their workstation. The application publishes messages to an Amazon SNS topic using the AWS SDK for Java v2. The SDK client is initialized as follows:
java
SnsClient snsClient = SnsClient.builder()
.region(Region.US_EAST_1)
.build();
The developer's workstation has a shared AWS credentials file (`~/.aws/credentials`) containing a `[default]` profile with expired credentials and a `[dev]` profile with valid credentials. In the local IDE run configuration, the environment variables `AWS_ACCESS_KEY_ID` and `AWS_SECRET_ACCESS_KEY` are set to temporary credentials from an older session that has since expired. When the application runs, it fails with an expired token error.
Which of the following configuration steps must the developer perform to ensure the application successfully authenticates using the valid credentials from the `[dev]` profile? (Select TWO.)
- Remove the AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY environment variables from the IDE run configuration.Cevap
- Set the AWS_PROFILE environment variable to dev in the IDE run configuration.Cevap
- CModify the Java code to pass the access key and secret key from the dev profile directly to the SnsClient.builder() initialization.
- DUpdate the IAM trust policy of the IAM user or role associated with the dev profile to trust the local IDE process.
- EStore the credentials as plaintext parameters in AWS Systems Manager Parameter Store and retrieve them using an unauthenticated SDK call at application startup.