SOA-C03 · Question #76
SOA-C03 Question #76: Real Exam Question with Answer & Explanation
The correct answer is C: The PrivateDnsName cannot be sot from a CloudFormation template.. In AWS CloudFormation, the PrivateDnsName property of an AWS::EC2::Instance resource is a read-only attribute automatically assigned by AWS when the instance is launched. It cannot be manually specified in the template. Attempting to define it causes stack creation to fail with a
Question
A CloudOps engineer is examining the following AWS CloudFormation template: Why will the stack creation fail?
Options
- AThe Outputs section of the CloudFormation template was omitted.
- BThe Parameters section of the CloudFormation template was omitted.
- CThe PrivateDnsName cannot be sot from a CloudFormation template.
- DThe VPC was not specified in the CloudFormation template.
Explanation
In AWS CloudFormation, the PrivateDnsName property of an AWS::EC2::Instance resource is a read-only attribute automatically assigned by AWS when the instance is launched. It cannot be manually specified in the template. Attempting to define it causes stack creation to fail with a validation error. CloudFormation manages this value based on the subnet and VPC DNS configuration, so it must be omitted from the template.
Community Discussion
No community discussion yet for this question.