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

A .NET application that you manage is running in Elastic Beanstalk. Your developers tell you they will need access to application log files to debug issues that arise. The infrastructure will scale up and down.
How can you ensure the developers will be able to access only the log files?

Answer options

Correct answer: D

Explanation

By manually configuring a Windows Scheduled Task on the underlying EC2 instances to push logs to an Amazon S3 bucket, you can restrict developer access solely to that specific S3 bucket using IAM policies. Direct access to Elastic Beanstalk (Option A and Option B) would require granting broader permissions to the Elastic Beanstalk environment itself, which violates the principle of least privilege. Modifying the web.config (Option C) does not inherently handle the secure transport and access control of the log files to an external location.