What should the DevOps engineer do next to meet the requirements MOST cost-effectively?
Create an S3 event notification to invoke an AWS Lambda function when the license file is updated in the S3 bucket. Configure the Lambda function to invoke AWS Systems Manager Run Command to run the AWS-RunRemoteScript document to download the updated license file. Specify the command from Lambda to run on the application’s resource group with 50% concurrency. Configure Amazon Simple Email Service (Amazon SES) notifications for event notifications of SUCCESS and FAILED to send email notifications to the operations team.
Create an S3 event notification to invoke an AWS Lambda function when the license file is updated in the S3 bucket. Configure the Lambda function to invoke AWS Systems Manager Run Command to run the AWS-RunPowerShellScript document to download the updated license file. Specify the command from Lambda to run on the application’s resource group with 50% concurrency. Configure an Amazon Simple Notification Service (Amazon SNS) topic to send event notifications of SUCCESS and FAILED. Subscribe the email addresses of the operations team members to the SNS topic.
Create an Amazon EventBridge scheduled rule that runs each hour to invoke an AWS Lambda function. Configure the Lambda function to invoke AWS Systems Manager Run Command to run the AWS-RunPowerShellScript document to download the updated license file. Specify the command from Lambda to run on the application’s resource group with 50% concurrency. Configure an Amazon Simple Notification Service (Amazon SNS) topic to send event notifications of SUCCESS and FAILED. Subscribe the email addresses of the operations team members to the SNS topic.
Create an Amazon EventBridge scheduled rule that runs each hour to invoke an AWS Lambda function. Configure the Lambda function to invoke AWS Systems Manager Run Command to run the AWS-RunRemoteScript document to download the updated license file. Specify the command from Lambda to run on the application’s resource group with 50% concurrency. Configure Amazon Simple Email Service (Amazon SES) notifications for event notifications of SUCCESS and FAILED to send email notifications to the operations team.
Explanations:
This option uses the AWS-RunRemoteScript document, which is a Linux-based script. Since the instances are running Windows Server, this document is inappropriate.
This option correctly uses the AWS-RunPowerShellScript document, which is designed for Windows-based systems. It also uses S3 event notifications to trigger the update process, which reduces latency and is cost-effective. Additionally, SNS notifications are properly configured for success or failure.
This option uses an EventBridge rule with a fixed schedule (every hour), which is not efficient for real-time license updates. S3 event notifications would be more immediate.
Similar to option C, this option uses a scheduled rule, which is less efficient than using an S3 event. Additionally, it uses the AWS-RunRemoteScript document, which is not suitable for Windows instances.