For IndividualsFor Educators
ExpertMinds LogoExpertMinds
ExpertMinds

Ace your certifications with Practice Exams and AI assistance.

  • Browse Exams
  • For Educators
  • Blog
  • Privacy Policy
  • Terms of Service
  • Cookie Policy
  • Support
  • AWS SAA Exam Prep
  • PMI PMP Exam Prep
  • CPA Exam Prep
  • GCP PCA Exam Prep

© 2026 TinyHive Labs. Company number 16262776.

    PracticeAWS Solutions Architect Professional (SAP-C02)AWS Solutions Architect Professional SAP-C02 Practice Exam 2Question 69
    Hard1 markMultiple Choice
    Domain 1.2: Security ControlsOrganizationsSCPSecurity

    AWS SAP-C02 · Question 69 · Domain 1.2: Security Controls

    A company is using AWS Organizations. They want to apply a Service Control Policy (SCP) to an Organizational Unit (OU) to prevent any user from deleting VPC Flow Logs. However, they want the 'NetworkAdmin' IAM role to be exempt from this restriction. How can this be achieved?

    Answer options:

    A.

    Create an SCP with an Allow effect for the NetworkAdmin role.

    B.

    Create an SCP with a Deny effect for the 'ec2:DeleteFlowLogs' action, and add a condition using 'StringNotLike' with the 'aws:PrincipalARN' key pointing to the NetworkAdmin role.

    C.

    Attach an IAM policy to the NetworkAdmin role that explicitly allows deleting flow logs.

    D.

    Move the NetworkAdmin role to a different AWS account outside the OU.

    How to approach this question

    Use SCP conditions to create exceptions.

    Full Answer

    B.Create an SCP with a Deny effect for the 'ec2:DeleteFlowLogs' action, and add a condition using 'StringNotLike' with the 'aws:PrincipalARN' key pointing to the NetworkAdmin role.✓ Correct
    To create an exception in an SCP, you use a Deny statement combined with a condition. The 'StringNotLike' or 'ArnNotEquals' condition on 'aws:PrincipalARN' ensures the Deny applies to everyone except the specified role.

    Common mistakes

    Thinking an IAM Allow can override an SCP Deny.
    Question 68All questionsQuestion 70

    Practice the full AWS Solutions Architect Professional SAP-C02 Practice Exam 2

    75 questions · hints · full answers · grading

    Sign up freeTake the exam

    More questions from this exam

    Q01A company is setting up a multi-account AWS environment using AWS Organizations. They need to ens...EasyQ02An enterprise needs to connect its on-premises data center to AWS. They require a dedicated, priv...EasyQ03A company wants to share a single AWS Transit Gateway across multiple AWS accounts within their A...EasyQ04An architect needs to design a highly available database architecture that spans multiple AWS Reg...EasyQ05A global financial institution is migrating its core banking application to AWS. The application ...Medium
    View all 75 questions →