A SysOps administrator developed a Python script that uses the AWS SDK to conduct several maintenance tasks. The script needs to run automatically every night.
What is the MOST operationally efficient solution that meets this requirement?
A . Convert the Python script to an AWS Lambda (unction. Use an Amazon EventBridge (Amazon CloudWatch Events) rule to invoke the function every night.
B . Convert the Python script to an AWS Lambda function. Use AWS CloudTrail to invoke the function every night.
C . Deploy the Python script to an Amazon EC2 Instance. Use Amazon EventBridge (Amazon CloudWatch Events) to schedule the instance to start and stop every night.
D . Deploy the Python script to an Amazon EC2 instance. Use AWS Systems Manager to schedule the instance to start and stop every night.
Answer: A
Explanation:
To automate the execution of a Python script every night efficiently:
Convert Python Script to Lambda:
Create an AWS Lambda function and upload the Python script.
Ensure the function has the necessary IAM permissions to perform the required maintenance tasks.
Reference: AWS Lambda Developer Guide
Create EventBridge Rule:
Navigate to the Amazon EventBridge console and create a new rule. Set the rule to trigger the Lambda function on a nightly schedule.
Reference: Creating Scheduled Events with Amazon EventBridge
This solution is operationally efficient because Lambda functions are managed, scale automatically, and you only pay for the compute time you consume.
Latest SOA-C02 Dumps Valid Version with 54 Q&As
Latest And Valid Q&A | Instant Download | Once Fail, Full Refund