AWS Certified SysOps Administrator – Associate (legacy) — Question 751

A SysOps administrator must run a script on production servers to fix an issue. The company has a policy to block all remote interactive access to production servers.
Based on this situation, how should the administrator run the script?

Answer options

Correct answer: C

Explanation

Configuring the script as a cron job or scheduled task allows it to execute automatically on the EC2 instances without requiring any interactive remote sessions, adhering to the company's security policy. Sharing EC2 key pairs for interactive access violates the policy, and user data scripts only execute during the initial launch of the instance rather than on already running production servers.