A company uses AWS CodePipeline to manage and deploy infrastructure as code. The infrastructure is defined in AWS CloudFormation templates and is primarily comprised of multiple Amazon EC2 instances and Amazon RDS databases. The Security team has observed many operators creating inbound security group rules with a source CIDR of 0 0 0 0/0 and would like to proactively stop the deployment of rules with open CIDRs The DevOps Engineer will implement a predeptoyment step that runs some security checks over the CloudFormation template before the pipeline processes it. This check should allow only inbound security group rules with a source CIDR of 0.0.0.0/0 if the rule has the description "Security Approval Ref XXXXX (where XXXXX is a preallocated reference) . The pipeline step should fail if this condition is not met and the deployment should be blocked. How should this be accomplished?
A) Enable a SCP in AWS Organizations. The policy should deny access to the API call Create Security GroupRule if the rule specifies 0.0.0.0/0 without a description referencing a security approval.
B) Add an initial stage to CodePipeline called Security Check. This stage should call an AWS Lambda function that scans the CloudFormation template and fails the pipeline if it finds 0.0.0.0/0 in a security group without a description referencing a security approval.
C) Create an AWS Config rule that is triggered on creation or edit of resource type EC2 SecurityGroup. This rule should call an AWS Lambda function to send a failure notification if the security group has any rules with a source CIDR of 0.0.0.0/0 without a description referencing a security approval.
D) Modify the IAM role used by CodePipeline. The IAM policy should deny access.
Correct Answer:
Verified
Q587: When thinking of AWS OpsWorks, which of
Q588: You work for a startup that has
Q589: Management has reported an increase in the
Q590: A company is migrating its public-facing software
Q591: The resources for a business-critical, three-tier web
Q593: What is AWS CloudTrail Processing Library?
A) A
Q594: You need to process long-running jobs once
Q595: A business has an application that consists
Q596: A company requires an RPO of 2 hours
Q597: What flag would you use to limit
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents