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 function. 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 EventBride (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.
Converting the Python script to an AWS Lambda function and using an Amazon EventBridge (Amazon CloudWatch Events) rule to invoke the function every night is a serverless and fully managed solution, which means that the administrator does not have to worry about managing the underlying infrastructure or scaling.
AWS Lambda allows for easy deployment, scaling, and management of code in response to events. EventBridge (CloudWatch Events) provides a reliable way to schedule events and to invoke AWS services on a schedule.
Everyone seems to choose A. without a second thought, and there is a default metric for Lambda invocation errors. However, this doesn't deal with the alarms that Lambda may generate while running. Dealing with this requires CloudWatch logs to use patterns such as ?ERROR to parse the log files and generate an alert. Since the question doesn't seem that exotic or specific, "A." is probably the right choice, but this is a tricky question. If you think it isn't, read: https://aws.amazon.com/blogs/mt/get-notified-specific-lambda-function-error-patterns-using-cloudwatch/
Question asks for 'the MOST operationally efficient solution'
Deploying a Python script to an EC2 instance for execution would not be efficient
upvoted 1 times
...
Log in to ExamTopics
Sign in:
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
airraid2010
Highly Voted 1 year, 6 months agoAamee
Most Recent 2 weeks, 2 days agojipark
1 year, 3 months agoGomer
1 year, 7 months agoGomer
1 year, 7 months agomichaldavid
1 year, 11 months agoLiongeek
1 year, 12 months agoSurferbolt
2 years, 1 month agoget_certified
2 years, 2 months agoCiCa560
2 years, 2 months ago