developer Flashcards
You are deploying a number of EC2 and RDS instances using CloudFormation. Which section of the CloudFormation template would you use to define these?
Instances
Outputs
Resources
Transforms
You are deploying a number of EC2 and RDS instances using CloudFormation. Which section of the CloudFormation template would you use to define these?
Instances
Outputs
Resources
Transforms
How can you prevent CloudFormation from deleting your entire stack on failure? (Choose 2)
Use the –disable-rollback flag with the AWS CLI
Set Termination Protection to Enabled in the CloudFormation console
Set the Rollback on failure radio button to No in the CloudFormation console
Use the –enable-termination-protection flag with the AWS CLI
Use the –disable-rollback flag with the AWS CLI
Set the Rollback on failure radio button to No in the CloudFormation console
Which AWS service can be used to centrally store and version control your application source code, binaries and libraries?
CodeCommit
CodeBuild
CodePipeline
ElasticFileSystem
CodeCommit
When deploying application code to EC2, the AppSpec file can be written in which language?
YAML
JSON or YAML
XML
JSON
YAML
You want to recieve an email whenever a user pushes code to your CodeCommit repository, how can you configure this?
Configure a CloudWatch Events rule to send a message to SQS which will trigger an email to be sent whenever a user pushes code to the repository
Configure Notifications in the console, this will create a CloudWatch Events rule to send a notification to an SNS topic which will trigger an email to be sent to the user
Create a new SNS topic and configure it to poll for CodeCommit events. Ask all your users subscribe to the topic to recieve notifications
Configure a CloudWatch Events rule to send a message to SES which will trigger an email to be sent whenever a user pushes code to the repository
Configure Notifications in the console, this will create a CloudWatch Events rule to send a notification to an SNS topic which will trigger an email to be sent to the user
Which AWS service can be used to fully automate your entire release process?
CodeBuild
CodeCommit
CodeDeploy
CodePipeline
CodePipeline
You are using CloudFormation to create a new S3 bucket, which of the following sections would you use to define the properties of your bucket?
Parameters
Outputs
Resources
Conditions
Resources
Which two things can you define using the Transforms section of the CloudFormation template? (Choose 2)
To convert between YAML and JSON format templates
To specify the use of the Serverless Application Model for Lambda deployments
To re-use code located in S3
To transform API responses to a supported format
To specify the use of the Serverless Application Model for Lambda deployments
To re-use code located in S3
In the CodeDeploy AppSpec file, what are hooks used for?
To reference AWS resources that will be used during the deployment
To specify files that you want to copy during the deployment
Hooks are reserved for future use
To specify code, scripts or functions that you want to run at set points in the deployment lifecycle
To specify code, scripts or functions that you want to run at set points in the deployment lifecycle
Your company has moved to AWS so it can use “scripted infrastructure”. You would like to apply version control to your infrastructure, so that you can roll back infrastructure to a previous stable version if needed. You would also like to quickly deploy testing and staging environments in multiple regions. What services should you use to achieve this?
CloudFormation, plus a version control system such as GitHub.
CloudWatch, plus a version control system such as GitHub.
Opsworks, plus a version control system such as GitHub.
Elastic BeanStalk, plus a version control system such as GitHub.
CloudFormation, plus a version control system such as GitHub.
You have some code located in an S3 bucket that you want to reference in your CloudFormation template. Which section of the template can you use to define this?
Transforms
Inputs
Files
Resources
Transforms
Which AWS service can be used automatically install your application code onto EC2, on premises systems and Lambda?
CodeCommit
CodeDeploy
X-Ray
CodeBuild
CodeDeploy
Which of the following practices allows multiple developers working on the same application to merge code changes frequently, without impacting each other and enables the identification of bugs early on in the release process?
Continuous Deployment
Continuous Integration
Continuous Delivery
Continuous Development
Continuous Integration
Part of your CloudFormation deployment fails due to a mis-configuration, by default what will happen?
Failed components will remain available for debugging purposes
CloudFormation will ask you if you want to continue with the deployment
CloudFormation will rollback only the failed components
CloudFormation will rollback the entire stack
CloudFormation will rollback the entire stack
Which AWS service can be used to compile source code, run tests and package code?
CodePipeline
CodeBuild
CodeCommit
CodeDeploy
CodeBuild