AWS Certified Solutions Architect – Professional SAP-C01 – Question319

AWS ________supports__________ environments as one of the AWS resource types.

A.
Elastic Beanstalk; Elastic Beanstalk application
B. CloudFormation; Elastic Beanstalk application
C. Elastic Beanstalk ; CloudFormation application
D. CloudFormation; CloudFormation application

Correct Answer: B

Explanation:

Explanation: AWS CloudFormation and AWS Elastic Beanstalk services are designed to complement each other. AWS CloudFormation supports Elastic Beanstalk application environments as one of the AWS resource types.
Reference:
http://aws.amazon.com/cloudformation/faqs/

AWS Certified Solutions Architect – Professional SAP-C01 – Question318

A user is using CloudFormation to launch an EC2 instance and then configure an application after the instance is launched. The user wants the stack creation of ELB and AutoScaling to wait until the EC2 instance is launched and configured properly.
How can the user configure this?

A.
The user can use the DependentCondition resource to hold the creation of the other dependent resources.
B. It is not possible that the stack creation will wait until one service is created and launched.
C. The user can use the HoldCondition resource to wait for the creation of the other dependent resources.
D. The user can use the WaitCondition resource to hold the creation of the other dependent resources.

Correct Answer: D

Explanation:

Explanation: AWS CloudFormation is an application management tool that provides application modeling, deployment, configuration, management, and related activities. AWS CloudFormation provides a WaitCondition resource that acts as a barrier and blocks the creation of other resources until a completion signal is received from an external source, such as a user application or
management system.
Reference:
http://aws.amazon.com/cloudformation/faqs

AWS Certified Solutions Architect – Professional SAP-C01 – Question317

When using the AWS CLI for AWS CloudFormation, which of the following commands returns a description of the specified resource in the specified stack?

A.
describe-stack-events
B. describe-stack-resource
C. create-stack-resource
D. describe-stack-returns

Correct Answer: B

Explanation:

Explanation: awsclicloudformation describe-stack-resource Description Returns a description of the specified resource in the specified stack. For deleted stacks, describe-stack-resource returns resource information for up to 90 days after the stack has been deleted.
Reference:
http://docs.aws.amazon.com/cli/latest/reference/cloudformation/desc…

AWS Certified Solutions Architect – Professional SAP-C01 – Question316

In the context of AWS CloudFormation, which of the following statements is correct?

A.
Actual resource names are a combination of the resource ID, stack, and logical resource name.
B. Actual resource name is the stack resource name.
C. Actual resource name is the logical resource name.
D. Actual resource names are a combination of the stack and logical resource name.

Correct Answer: D

Explanation:

Explanation: In AWS CloudFormation, actual resource names are a combination of the stack and logical resource name. This allows multiple stacks to be created from a template without fear of name collisions between AWS resources.
Reference:
https://aws.amazon.com/cloudformation/faqs/

AWS Certified Solutions Architect – Professional SAP-C01 – Question315

For AWS CloudFormation, which stack state refuses UpdateStack calls?

A.
UPDATE_ROLLBACK_FAILED
B. UPDATE_ROLLBACK_COMPLETE
C. UPDATE_COMPLETE
D. CREATE_COMPLETE

Correct Answer: A

Explanation:

Explanation: When a stack is in the UPDATE_ROLLBACK_FAILED state, you can continue rolling it back to return it to a working state (to UPDATE_ROLLBACK_COMPLETE).
You cannot update a stack that is in the UPDATE_ROLLBACK_FAILED state. However, if you can continue to roll it back, you can return the stack to its original settings and try to update it again.
Reference:
http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using…

AWS Certified Solutions Architect – Professional SAP-C01 – Question314

In an AWS CloudFormation template, each resource declaration includes:

A.
a logical ID, a resource type, and resource properties
B. a variable resource name and resource attributes
C. an IP address and resource entities
D. a physical ID, a resource file, and resource data

Correct Answer: A

Explanation:

Explanation: In AWS CloudFormation, each resource declaration includes three parts: a logical ID that is unique within the template, a resource type, and resource properties.
Reference:
http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/conce…

AWS Certified Solutions Architect – Professional SAP-C01 – Question313

You are playing around with setting up stacks using JSON templates in CloudFormation to try and understand them a little better. You have set up about 5 or 6 but now start to wonder if you are being charged for these stacks.
What is AWS's billing policy regarding stack resources?

A.
You are not charged for the stack resources if they are not taking any traffic.
B. You are charged for the stack resources for the time they were operating (but not if you deleted the stack within 30 minutes)
C. You are charged for the stack resources for the time they were operating (but not if you deleted the stack within 60 minutes)
D. You are charged for the stack resources for the time they were operating (even if you deleted the stack right away)

Correct Answer: D

Explanation:

Explanation: A stack is a collection of AWS resources that you can manage as a single unit. In other words, you can create, update, or delete a collection of resources by creating, updating, or deleting stacks. All the resources in a stack are defined by the stack’s AWS CloudFormation template. A stack, for instance, can include all the resources required to run a web application, such as a web server, a database, and networking rules. If you no longer require that web application, you can simply delete the stack, and all of its related resources are deleted. You are charged for the stack resources for the time they were operating (even if you deleted the stack right away).
Reference:
http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/stack…

AWS Certified Solutions Architect – Professional SAP-C01 – Question312

Which status represents a failure state in AWS CloudFormation?

A.
ROLLBACK_IN_PROGRESS
B. DELETE_IN_PROGRESS
C. UPDATE_COMPLETE_CLEANUP_IN_PROGRESS
D. REVIEW_IN_PROGRESS

Correct Answer: A

Explanation:

Explanation: ROLLBACK_IN_PROGRESS means an ongoing removal of one or more stacks after a failed stack creation or after an explicitly canceled stack creation. DELETE_IN_PROGRESS means an ongoing removal of one or more stacks. REVIEW_IN_PROGRESS means an ongoing creation of one or more stacks with an expected StackId but without any templates or resources. UPDATE_COMPLETE_CLEANUP_IN_PROGRESS means an ongoing removal of old resources for one or more stacks after a successful stack update.
Reference:
http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using…

AWS Certified Solutions Architect – Professional SAP-C01 – Question311

A user has launched an EBS optimized instance with EC2. Which of the below mentioned options is the correct statement?

A.
It provides additional dedicated capacity for EBS IO
B. The attached EBS will have greater storage capacity
C. The user will have a PIOPS based EBS volume
D. It will be launched on dedicated hardware in VPC

Correct Answer: A

Explanation:

Explanation: An Amazon EBS-optimized instance uses an optimized configuration stack and provides additional, dedicated capacity for the Amazon EBS I/O. This optimization provides the best performance for the user’s Amazon EBS volumes by minimizing contention between the Amazon EBS I/O and other traffic from the user’s instance.
Reference:
http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSOptimized.html

AWS Certified Solutions Architect – Professional SAP-C01 – Question310

A user is planning to launch multiple EC2 instance same as current running instance.
Which of the below mentioned parameters is not copied by Amazon EC2 in the launch wizard when the user has selected the option "Launch more like this"?

A.
Termination protection
B. Tenancy setting
C. Storage
D. Shutdown behavior

Correct Answer: C

Explanation:

Explanation: The Amazon EC2 console provides a “Launch more like this” wizard option that enables the user to use a current instance as a template for launching other instances.
This option automatically populates the Amazon EC2 launch wizard with certain configuration details from the selected instance. The following configuration details are copied from the selected instance into the launch wizard: AMI ID Instance type Availability Zone, or the VPC and subnet in which the selected instance is located Public IPv4 address.
If the selected instance currently has a public IPv4 address, the new instance receives a public IPv4 address – regardless of the selected instance’s default public IPv4 address setting.
For more information about public IPv4 addresses, see Public IPv4 Addresses and External DNS Hostnames. Placement group, if applicable IAM role associated with the instance, if applicable Shutdown behavior setting (stop or terminate) Termination protection setting (true or false) CloudWatch monitoring (enabled or disabled) Amazon EBS-optimization setting (true or false) Tenancy setting, if launching into a VPC (shared or dedicated) Kernel ID and RAM disk ID, if applicable User data, if specified Tags associated with the instance, if applicable Security groups associated with the instance The following configuration details are not copied from your selected instance; instead, the wizard applies their default settings or behavior: (VPC only) Number of network interfaces: The default is one network interface, which is the primary network interface (eth0). Storage: The default storage configuration is determined by the AMI and the instance type.
Reference:
http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/launching-instan…