SOA-C02 Deployment, Provisioning, and Automation • Set 13
SOA-C02 Deployment, Provisioning, and Automation Practice Test 13 — 15 questions with explanations. Free, no signup.
A CloudFormation template launches an EC2 instance with the user data script shown. The instance launches successfully but the web server does not serve PHP pages. What is the MOST likely reason?
Refer to the exhibit.
user_data_script:
Fn::Base64: !Sub |
#!/bin/bash
yum update -y
yum install -y httpd
systemctl start httpd
systemctl enable httpd
echo "<?php phpinfo(); ?>" > /var/www/html/index.php