0
0
GCPcloud~5 mins

IAM deny policies in GCP - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What is an IAM deny policy in Google Cloud?
An IAM deny policy explicitly blocks certain actions or permissions, even if other policies allow them. It acts like a stop sign to prevent access.
Click to reveal answer
beginner
How does an IAM deny policy differ from an allow policy?
Allow policies grant permissions to users or groups. Deny policies block permissions, overriding any allow policies that might grant access.
Click to reveal answer
intermediate
Can an IAM deny policy be overridden by an allow policy?
No. Deny policies take precedence and cannot be overridden by allow policies. They always block the specified permissions.
Click to reveal answer
intermediate
Why would you use an IAM deny policy in your cloud environment?
To add an extra layer of security by explicitly blocking risky or unwanted actions, even if other policies allow them. It helps prevent accidental or malicious access.
Click to reveal answer
beginner
What happens if a user has both an allow and a deny policy for the same permission?
The deny policy wins. The user will be blocked from performing that action despite the allow policy.
Click to reveal answer
What does an IAM deny policy do in Google Cloud?
ACreates new user accounts
BGrants permissions to users
CLogs user activities
DBlocks specified permissions even if allowed elsewhere
If a user has an allow and a deny policy for the same permission, what happens?
ADeny policy takes precedence
BAllow policy takes precedence
CBoth policies are ignored
DUser gets partial access
Why use an IAM deny policy?
ATo speed up network traffic
BTo explicitly block risky actions
CTo create new projects
DTo monitor billing
Which statement is true about IAM deny policies?
AThey override allow policies
BThey are optional and ignored by default
CThey grant permissions
DThey only apply to service accounts
Can an IAM deny policy be used to block access to a specific resource?
AOnly if the user is an admin
BNo, deny policies apply globally only
CYes, deny policies can target specific resources
DOnly if the resource is a VM
Explain how IAM deny policies work and why they are important in Google Cloud security.
Think about how a stop sign works in traffic.
You got /4 concepts.
    Describe a scenario where using an IAM deny policy would be beneficial.
    Imagine you want to stop someone from entering a room even if they have a key.
    You got /4 concepts.