ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 243 - DOP-C02 discussion

Report
Export

A DevOps learn has created a Custom Lambda rule in AWS Config. The rule monitors Amazon Elastic Container Repository (Amazon ECR) policy statements for ecr:' actions. When a noncompliant repository is detected, Amazon EventBridge uses Amazon Simple Notification Service (Amazon SNS) to route the notification to a security team.

When the custom AWS Config rule is evaluated, the AWS Lambda function fails to run.

Which solution will resolve the issue?

A.
Modify the Lambda function's resource policy to grant AWS Config permission to invoke the function.
Answers
A.
Modify the Lambda function's resource policy to grant AWS Config permission to invoke the function.
B.
Modify the SNS topic policy to include configuration changes for EventBridge to publish to the SNS topic.
Answers
B.
Modify the SNS topic policy to include configuration changes for EventBridge to publish to the SNS topic.
C.
Modify the Lambda function's execution role to include configuration changes for custom AWS Config rules.
Answers
C.
Modify the Lambda function's execution role to include configuration changes for custom AWS Config rules.
D.
Modify all the ECR repository policies to grant AWS Config access to the necessary ECR API actions.
Answers
D.
Modify all the ECR repository policies to grant AWS Config access to the necessary ECR API actions.
Suggested answer: A

Explanation:

Step 1: Understanding Lambda Permissions and AWS Config The custom AWS Config rule evaluates resources and invokes an AWS Lambda function when a compliance check is triggered. For AWS Config to invoke the Lambda function, it requires permission to do so. Issue: The Lambda function fails to execute because AWS Config doesn't have permission to invoke it. Action: Modify the resource-based policy of the Lambda function to grant AWS Config permission to invoke the Lambda function. Why: Without this permission, AWS Config cannot trigger the Lambda function, which is why the evaluation fails.

This corresponds to Option A: Modify the Lambda function's resource policy to grant AWS Config permission to invoke the function.

asked 16/09/2024
Eli Thompson
33 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first