Operating, Monitoring, and Securing ML and AI Solutions
An application on Amazon EC2 invokes Amazon Bedrock foundation models. Which credentials avoid storing a long-lived secret on the instance?
Show the answer
Correct answerC. An IAM role's temporary credentials supplied through an instance profile
AWhy not this: An IAM console password is for interactive sign-in, not for signing Bedrock API requests.
BWhy not this: An IAM user access key is a long-lived credential that the application must store and manage.
CWhy this is right: An instance profile makes temporary role credentials available without embedding a long-lived secret.
DWhy not this: A long-term API key is still a stored long-lived secret.
An EC2 instance profile supplies temporary IAM role credentials that AWS SDKs can obtain and refresh automatically. A stored IAM user access key remains a long-lived secret, even when placed in an environment variable.