0
0
GCPcloud~20 mins

Roles (basic, predefined, custom) in GCP - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
GCP Roles Mastery
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate
2:00remaining
Understanding Basic Roles in GCP

Which of the following statements correctly describes the basic roles in Google Cloud Platform?

ABasic roles are custom roles created by users to grant specific permissions tailored to their needs.
BBasic roles include Owner, Editor, and Viewer, and they grant broad permissions across all resources in a project.
CBasic roles are deprecated and no longer available in GCP.
DBasic roles are predefined roles that only apply to specific services like Compute Engine or Cloud Storage.
Attempts:
2 left
💡 Hint

Think about roles that apply broadly across a whole project.

🧠 Conceptual
intermediate
2:00remaining
Predefined Roles Purpose

What is the main purpose of predefined roles in Google Cloud Platform?

ATo provide very broad permissions that apply to all resources in a project.
BTo allow users to create their own roles with any permissions they want.
CTo grant permissions tailored to specific GCP services or tasks, offering more granularity than basic roles.
DTo replace custom roles and remove the need for user-defined permissions.
Attempts:
2 left
💡 Hint

Think about roles designed for specific services or tasks.

Architecture
advanced
2:30remaining
Choosing Role Types for a Secure Project

You are designing access control for a GCP project. You want to follow the principle of least privilege and allow users to perform only necessary actions on Compute Engine and Cloud Storage. Which role types should you assign?

AAssign basic roles like Editor to all users for simplicity.
BCreate custom roles with all permissions and assign them to users.
CAssign Owner role to all users to avoid permission issues.
DAssign predefined roles specific to Compute Engine and Cloud Storage to users based on their tasks.
Attempts:
2 left
💡 Hint

Think about limiting permissions to only what is needed.

security
advanced
2:00remaining
Custom Roles and Permission Management

Which statement about custom roles in GCP is true?

ACustom roles allow you to combine permissions from multiple predefined roles to fit specific needs.
BCustom roles can only include permissions from basic roles.
CCustom roles automatically update when new permissions are added to GCP services.
DCustom roles cannot be assigned to users or service accounts.
Attempts:
2 left
💡 Hint

Consider how custom roles help tailor permissions.

service_behavior
expert
2:30remaining
Effect of Assigning Multiple Roles

If a user is assigned both a predefined role with read-only permissions on Cloud Storage and a custom role with write permissions on the same service, what will be the user's effective permissions?

AThe user will have both read and write permissions combined from both roles.
BThe user will have write permissions only, as custom roles replace predefined roles.
CThe user will have only read-only permissions because predefined roles override custom roles.
DThe user will have no permissions due to conflict between roles.
Attempts:
2 left
💡 Hint

Think about how permissions from multiple roles combine.