A developer is troubleshooting a local Node.js application that uses the AWS SDK for JavaScript (v3) to query an Amazon DynamoDB table. The local development machine has the environment variables `AWS_ACCESS_KEY_ID` and `AWS_SECRET_ACCESS_KEY` set to credentials of a retired testing account, which causes authentication failures. The developer has a local shared credentials file (`~/.aws/credentials`) with a profile named `local-dev` that contains active credentials for the development environment. The client is initialized in the code as follows:
javascript
import { DynamoDBClient } from "@aws-sdk/client-dynamodb";
const client = new DynamoDBClient({});
Which of the following actions will resolve this credential resolution issue and ensure the application authenticates using the `local-dev` profile? (Select TWO.)
- Unset the `AWS_ACCESS_KEY_ID` and `AWS_SECRET_ACCESS_KEY` environment variables, and set the `AWS_PROFILE` environment variable to `local-dev`.Answer
- Import the `fromIni` credential provider from `@aws-sdk/credential-providers` and pass it to the `credentials` configuration option of the `DynamoDBClient` constructor, specifying the `local-dev` profile.Answer
- CSet the `AWS_DEFAULT_PROFILE` environment variable to `local-dev` and verify that the `AWS_PROFILE` environment variable is unset.
- DInitialize the `DynamoDBClient` by hardcoding the `local-dev` access key ID and secret access key directly into the client constructor configuration object.
- EStore the `local-dev` credentials as a `SecureString` parameter in AWS Systems Manager Parameter Store, and set the `AWS_SSM_CREDENTIALS_PATH` environment variable to point to the parameter.