SAP-C02 exam dumps

SAP-C02 practice question 376 of 678

AWS Certified Solutions Architect - Professional. Professional level, Amazon Web Services. Free question with the correct answer and a full explanation.

SAP-C02 Question 376

Select 3

Your company has deployed a serverless web application using AWS Lambda, Amazon API Gateway, and Amazon DynamoDB. The application handles high traffic and must meet strict availability requirements. To adhere to operational best practices, you must implement an alerting and automatic remediation strategy for the Lambda functions, which often encounter issues such as timeout errors and exceeding memory limits. Which combination of solutions will best meet these requirements?

  1. A

    Set up Amazon CloudWatch Alarms to monitor Lambda function errors and configure an SNS topic to notify the operations team.

  2. B

    Enable Lambda Dead Letter Queues (DLQs) to capture failed events and analyze them for troubleshooting.

  3. C

    Use AWS Config to automatically redeploy the Lambda function when it fails.

  4. D

    Create a CloudWatch Alarm for Lambda duration metrics and use an AWS Systems Manager Automation document to increase the memory allocation if the duration exceeds a threshold.

  5. E

    Use AWS Step Functions to retry failed Lambda executions automatically and notify the operations team via an SNS topic.

Show answer and explanation

Correct answers: A, B, D

Explanation

To implement an effective alerting and automatic remediation strategy, you need a combination of monitoring, alerting, and automated responses. CloudWatch Alarms with SNS notification ensures real-time alerting, while DLQs capture failed events for analysis and troubleshooting. Additionally, using CloudWatch metrics and Systems Manager Automation documents allows for proactive adjustments such as increasing memory allocation to prevent recurring issues. These solutions collectively provide operational visibility and automated recovery mechanisms, ensuring high availability and reliability for the serverless application.

  • A. Correct.

    Setting up Amazon CloudWatch Alarms for Lambda function errors and notifying the operations team ensures they are alerted to potential issues in real time. This is an essential part of an alerting strategy.

  • B. Correct.

    Enabling Lambda Dead Letter Queues (DLQs) captures events that failed processing, providing a mechanism for troubleshooting and ensuring critical events are not lost, which aligns with automatic remediation strategies.

  • C. Incorrect.

    AWS Config is used for resource configuration compliance and does not natively support automatic Lambda redeployment as a remediation action for runtime issues.

  • D. Correct.

    Creating a CloudWatch Alarm for Lambda duration metrics and using an AWS Systems Manager Automation document to adjust memory allocation dynamically addresses runtime performance issues, meeting the requirement for automatic remediation.

  • E. Incorrect.

    While AWS Step Functions can handle retries for failed executions, this approach is not suitable in this context as the question does not mention workflows or the need for orchestration logic. Additionally, Step Functions do not address issues like timeouts or memory limits directly.

Timed practice exam

Take a SAP-C02 practice test under exam conditions

75 questions in 180 minutes, drawn from this bank, with a score report and a per-question review when you finish.

Start timed exam