A DevOps team stores multiple build artifacts in Artifact Registry, including Maven packages and container images. They want to ensure that developers in a specific team can pull images and download packages but cannot push new versions or delete existing artifacts. Which IAM role should be granted to those developers at the Artifact Registry repository level?
- A. roles/storage.objectViewer
- B. roles/artifactregistry.writer
- C. roles/artifactregistry.reader✓ Correct
- D. roles/artifactregistry.repoAdmin
Explanation
Option C is correct. The roles/artifactregistry.reader role grants permissions to read (pull/download) artifacts from Artifact Registry repositories without the ability to push, tag, or delete—exactly matching the requirement. Option B is wrong because roles/artifactregistry.writer also grants write (push) permissions, which the team explicitly should not have. Option D is wrong because roles/artifactregistry.repoAdmin grants full administrative control over the repository, including deletion and permission management, which far exceeds the read-only requirement. Option A is wrong because roles/storage.objectViewer is a Cloud Storage IAM role; Artifact Registry stores metadata and blobs in its own managed storage that is not directly accessible via Cloud Storage IAM, so this role does not grant Artifact Registry pull/download permissions.