Multiple Choice
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
Correct Answer:
Verified
Q113: When Ansible's connection state is set to
Q114: Which of these techniques enables the fastest
Q115: You have written a server-side Node.Js application
Q116: You have a large number of web
Q117: A company using AWS CodeCommit for source
Q119: A large enterprise is deploying a web
Q120: Why are more frequent snapshots or EBS
Q121: A company is using AWS to deploy
Q122: A consulting company was hired to assess
Q123: A company used AWS CloudFormation to deploy