Prepare and test your skills

Prepare and test your skills

Free sample question with answers and detailed explanation below. The Associate Cloud Engineer practice bank has an additional 2,014 practice questions.Try 10 free realistic questions: instant score, no credit card, and no account required.
An enterprise is managing several Linux-based Compute Engine virtual machines (VMs) with OS Login enabled at the project level.
A junior developer requires SSH access to log into the VM instances to inspect application logs and run standard user scripts. According to company security policy, the developer must not have administrative or sudo privileges on the guest operating system.
Which IAM role should you grant to the developer to fulfill this requirement?
The Security Admin role (roles/iam.securityAdmin) is a control-plane IAM role that grants permissions to view, create, update, and delete IAM policies across Google Cloud resources.
resourcemanager.projects.setIamPolicy and resourcemanager.projects.getIamPolicy.A security compliance officer needed to audit, modify, and manage the IAM role bindings and access permissions granted across Google Cloud project resources.
The Compute OS Admin Login role (roles/compute.osAdminLogin) grants users the ability to log into Compute Engine instances via SSH with full administrator (sudo) privileges on the guest operating system.
sudo privileges on the instances.google-sudoers or sudo group on the Linux instance, allowing them to execute any command as the root superuser.The scenario required the developer or administrator to install software packages, modify system service daemon configurations, or perform maintenance tasks that require sudo or root permissions inside the Linux VM.
The Support User role (roles/iam.supportUser) is an administrative role designed to allow designated users to create, view, and manage Google Cloud Customer Care support cases.
The junior developer needed access to communicate with Google Cloud Technical Support to open and manage support tickets regarding service issues.
The Compute OS Login role (roles/compute.osLogin) allows users to access Compute Engine Linux instances via SSH using OS Login without granting administrator permissions on the guest operating system.
sudoers group or have elevated administrative rights.Compared to administrative roles, roles/compute.osLogin satisfies the principle of least privilege. When combined with roles/iam.serviceAccountUser (if the VM runs as a service account), it grants the exact level of access needed to troubleshoot and inspect logs without risking unauthorized modifications to critical system files.

Answer them yourself and get your score the moment you finish. No account needed.
Full access includes
Keep the momentum going with these hand-picked practice scenarios
Last updated