🔥 40% Off Crucial Exams Memberships — Deal ends today!

54 minutes, 5 seconds remaining!

GCP Associate Cloud Engineer Practice Question

A Compute Engine VM uses the user-managed service account "app-logger-sa" to push log files into the bucket gs://audit-logs. The account currently has the Storage Admin (roles/storage.admin) role on the entire project. Security wants the configuration changed to follow the principle of least privilege while still allowing the logging agent to function. What should you do?

  • Keep Storage Admin but add an IAM condition to limit actions to the gs://audit-logs bucket.

  • Remove the project-level role and grant Storage Object Viewer on the gs://audit-logs bucket.

  • Replace the project-level role with Storage Admin on the gs://audit-logs bucket.

  • Remove the project-level Storage Admin role and grant the service account the Storage Object Creator role only on the gs://audit-logs bucket.

GCP Associate Cloud Engineer
Configuring access and security
Your Score:
Settings & Objectives
Random Mixed
Questions are selected randomly from all chosen topics, with a preference for those you haven’t seen before. You may see several questions from the same objective or domain in a row.
Rotate by Objective
Questions cycle through each objective or domain in turn, helping you avoid long streaks of questions from the same area. You may see some repeat questions, but the distribution will be more balanced across topics.

Check or uncheck an objective to set which questions you will receive.

Bash, the Crucial Exams Chat Bot
AI Bot