For Amazon EC2 issues, while troubleshooting AWS CloudFormation, you need to view the cloud-init and cfn logs for more information. Identify a directory to which these logs are published. A. /var/opt/log/ec2 B. /var/log/lastlog C. /var/log/ D. /var/log/ec2
Correct Answer: C
Explanation:
Explanation: When you use AWS CloudFormation, you might encounter issues when you create, update, or delete AWS CloudFormation stacks. For Amazon EC2 issues, view the cloud-init and cfn logs. These logs are published on the Amazon EC2 instance in the /var/log/ directory.
These logs capture processes and command outputs while AWS CloudFormation is setting up your instance. For Windows, view the EC2Configure service and cfn logs in %ProgramFiles%AmazonEC2ConfigService and C:cfnlog.
You can also configure your AWS CloudFormation template so that the logs are published to Amazon CloudWatch, which displays logs in the AWS Management Console so you don’t have to connect to your Amazon EC2 instance.
Reference: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/troub…
Please disable your adblocker or whitelist this site!