Cloud Concepts, Architecture and Design

An application on a cloud VM reads from a storage bucket using long-lived access keys embedded in its code. What should the architect do to BEST secure this service access?

Show the answer

Correct answerC. Assign a managed identity that issues short-lived credentials

AWhy not this: Network restriction limits the path but does not remove the embedded long-lived credentials.

BWhy not this: The application must still decrypt a long-lived key, so a static credential remains in code.

CWhy this is right: A workload identity issues short-lived credentials automatically, removing static secrets from code.

DWhy not this: Multifactor authentication protects human users, not a workload authenticating to storage.

A managed identity or role gives the workload temporary credentials, so no static secret is stored in code. Encrypting the embedded keys still leaves a long-lived secret that the application must be able to decrypt.