AWS Certified Developer Associate (#23)

An application running on an Amazon Linux EC2 instance needs to manage the AWS infrastructure. How can the EC2 instance be configured to make AWS API calls securely?

Sign the AWS CLI command using the signature version 4 process.
Run the aws configure AWS CLI command and specify the access key id and secret access key.
Specify a role for the EC2 instance with the necessary privileges.
Pass the access key id and secret access key as parameters for each AWS CLI command.