A SysOps administrator reviews an AWS CloudFormation template and observes that stack creation fails. What is the reason the stack cannot be created?
Choose an answer
Tap an option to check your answer.
Correct answer: The PrivateDnsName attribute cannot be set via a CloudFormation template..
Why this is the answer
The PrivateDnsName attribute for an EC2 instance is automatically assigned by AWS and cannot be directly set or modified through a CloudFormation template or any other API call. CloudFormation allows you to define the desired state of your AWS resources, but certain attributes, like the private DNS name, are system-generated. Incorrect options: Omitting the Outputs section does not cause stack creation to fail; it simply means no output values will be displayed after the stack is created. Omitting the Parameters section is also not a failure condition. Parameters are optional inputs for a template. While specifying a VPC is often necessary for EC2 instances, its omission would typically lead to the instance being launched in the default VPC (if one exists) or a specific error message about missing network configuration, not a general failure related to an unchangeable attribute.
Pass your exam — without the endless answer hunt
Get every verified question and explanation for this exam in one place, and save hours of prep. 1,000+ certifications · 20+ languages · free to start.
Pass your exam faster → No card needed