Question 1
Topic: Identity and access management
Skill tested: Designs workload identity and least-privilege authorization for cloud service access.
A data-processing workload runs on a virtual machine and must read objects from one storage bucket. The security team currently stores a long-lived access key in a configuration file, and the key has broad permissions across several buckets. The cloud platform supports attaching an identity to the virtual machine and granting that identity resource-scoped permissions. The workload must continue running without interactive login, and operators should not need to rotate a secret embedded in the application. Which change best meets these requirements?
A workload identity allows the virtual machine to obtain credentials through the cloud platform's supported identity flow without embedding a long-lived secret. Granting only read access to the required bucket follows least privilege and limits the impact of compromise. A narrower static key still creates a secret that must be stored and rotated. An operator's interactive credentials are not an appropriate noninteractive workload identity, while project-wide administrator access is unnecessarily broad.