developer Flashcards

1
Q

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

A

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 well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

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

A

Use the –disable-rollback flag with the AWS CLI

Set the Rollback on failure radio button to No in the CloudFormation console

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Which AWS service can be used to centrally store and version control your application source code, binaries and libraries?

CodeCommit

CodeBuild

CodePipeline

ElasticFileSystem

A

CodeCommit

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

When deploying application code to EC2, the AppSpec file can be written in which language?

YAML

JSON or YAML

XML

JSON

A

YAML

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

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

A

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Which AWS service can be used to fully automate your entire release process?

CodeBuild

CodeCommit

CodeDeploy

CodePipeline

A

CodePipeline

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

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

A

Resources

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

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

A

To specify the use of the Serverless Application Model for Lambda deployments

To re-use code located in S3

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

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

A

To specify code, scripts or functions that you want to run at set points in the deployment lifecycle

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

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.

A

CloudFormation, plus a version control system such as GitHub.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

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

A

Transforms

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Which AWS service can be used automatically install your application code onto EC2, on premises systems and Lambda?

CodeCommit

CodeDeploy

X-Ray

CodeBuild

A

CodeDeploy

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

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

A

Continuous Integration

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

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

A

CloudFormation will rollback the entire stack

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Which AWS service can be used to compile source code, run tests and package code?

CodePipeline

CodeBuild

CodeCommit

CodeDeploy

A

CodeBuild

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

When deploying application code to Lambda, the AppSpec file can be written in which language? (Choose 2)

XML

Python

JSON

YAML

A

JSON

YAML

17
Q

You are deploying an application to to a number of EC2 instances using CodeDeploy. What is the name of the file used to specify source files and lifecycle hooks?

appspec. json
buildspec. json
buildspec. yml
appspec. yml

A

appspec.yml

18
Q

You want to use the output of your CloudFormation stack as input to another CloudFormation stack. Which section of the CloudFormation template would you use to help you configure this?

Transforms

Exports

Resources

Outputs

A

Outputs