Development with AWS Services Flashcards

1
Q

In the CodeDeploy AppSpec file, what are hooks used for?

  • Hooks are reserved for future use
  • To reference AWS resources that will be used during the deployment
  • To specify code, scripts or functions that you want to run at set points in the deployment lifecycle
  • To specify files that you want to copy during the deployment
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
2
Q

Which of the following platforms are supported in ElasticBeanstalk

  • Node.js
  • Chef
  • Single Container Docker
  • Java with Tomcat
A

• Node.js

  • Single Container Docker
  • Java with Tomcat
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

A transport company uses a mobile GPS application to track the location of each of their 60 vehicles. The application records each vehicle’s location to a DynamoDB table every 6 seconds. Each transmission is just under 1KB and throughput is spread evenly within that minute. How many units of write capacity should you specify for this table?

600
10
100
60

A

10

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

Which of the following specifies the correct run order for lifecycle hooks for an In-Place deployment using CodeDeploy?
• BeforeInstall, AfterInstall, ApplicationStop, ApplicationStart
• ApplicationStop, BeforeInstall, AfterInstall, ApplicationStart
• ApplicationStop, BeforeInstall, ApplicationStart, AfterInstall
• BeforeInstall, ApplicationStop, AfterInstall, ApplicationStart

A

ApplicationStop, BeforeInstall, AfterInstall, ApplicationStart

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

How does API Gateway handle SOAP?

  • SOAP is deprecated and not supported
  • The API gateway converts the xml response received by the SOAP API to JSON
  • SOAP is handled as web service pass-through
  • The API Gateway converts the SOAP API to a RESTful API
A

SOAP is handled as web service pass-through

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q
You want to deploy a docker image to ECS, which command would you use to add your image to the Elastic Container Registry?
•	docker pull
•	docker tag
•	docker push
•	docker build
A

• docker push

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

Where would you expect to Elastic Beanstalk configuration files like healthcheckurl.config, environmentvariables.config etc?
• The root directory of your project folder
• The .ebextensions folder
• The .ebenvironments folder
• The .ebconfigurations folder

A

The .ebextensions folder

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

Which of the following approaches can improve the performance of your Lambda function?
• Establish your database connections from within the Lambda execution environment to enable connection reuse
• Store environment variables outside the function
• Only include the libraries you need to minimize the size of your deployment package
• Package all dependencies with your deployment package

A

Establish your database connections from within the Lambda execution environment to enable connection reuse

Only include the libraries you need to minimize the size of your deployment package

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q
Which AWS service allows you to build and model your serverless application as a visual workflow consisting of a series of steps where the output of one stage can be input into another?
•	Step Functions
•	Simple Workflow Service
•	Lambda
•	CloudFormation
A

• Step Functions

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q
You are importing an existing API to API Gateway. Which format is supported for API definition files?
•	Swagger
•	RAML
•	Angular
•	OpenAPI
A

Swagger

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q
Which of the following platforms are supported in ElasticBeanstalk?
•	Tomcat
•	Passenger
•	Docker
•	JBoss
A

Tomcat
Passenger
Docker

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

You want to recieve an email whenever a user pushes code to your CodeCommit repository, how can you configure this?
• 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 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
• 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
13
Q

Which of the following are supported ways to upload and deploy your Lambda code?

  • Zip your code into a zip file, upload it to Elastic Beanstalk, then deploy your environment using Elastic Beanstalk
  • Copy and paste your code in to the integrated development environment (IDE) inside Lambda
  • Write a CloudFormation template that will deploy your environment including your code.
  • Zip your code into a zip file, upload it to an S3 bucket and have Lambda download it from S3
  • Zip your code into a zip file and upload it via the Lambda console
A
  • Copy and paste your code in to the integrated development environment (IDE) inside Lambda
  • Write a CloudFormation template that will deploy your environment including your code.
  • Zip your code into a zip file, upload it to an S3 bucket and have Lambda download it from S3
  • Zip your code into a zip file and upload it via the Lambda console
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q
You are planning to deploy a new version of your application using CodeDeploy. You only have a window of 2 hours to complete the deployment and test it. Your team leader is concerned about the time it could take to roll back the upgrade if it should fail. Which deployment approach would you recommend?
•	Blue / Green
•	Rolling with additional batch
•	Canary
•	In-Place
A

Blue / Green

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

You need to announce emergency downtime for a production AWS web application. This downtime notification requires different sets of instructions for different devices. All of the application users signed up to receive SNS notifications from the downtime topic when they began using the application and they are currently subscribed to this topic. What are appropriate ways for you to provide timely, device-specific instructions to end users when announcing this downtime?

  • Send a single message, but customize the text in the SNS message field so that each device gets only the information that is appropriate for them.
  • Send multiple messages to the topic and ask users to please ignore message formats that don’t pertain to them.
  • Create a different topic for each subscription type, then send one topic to SMS endpoints and the other topic to email endpoints.
  • It’s not possible to send SNS messages manually.
A

• Send a single message, but customize the text in the SNS message field so that each device gets only the information that is appropriate for them.

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

You have configured your CI/CD process using CodePipeline, however you want to introduce a manual sign-off and approval process which needs to be completed before a new version of your application is deployed to Production. How can you achieve this?

  • Use CodePipeline to handle build, compile, test and packaging activities, then manually start a CodeDeploy job to run an automated deployment of successfully tested code
  • Use the CodePipeline Manual Approvals feature
  • Configure MFA for CodeDeploy deployments
  • Configure two pipelines, one to handle code built and test and one to handle automated deployment. Use SNS and Lambda to trigger the Deployment Pipeline following notification of successful completion of the Build and Test Pipeline
A

Use the CodePipeline Manual Approvals feature

17
Q
You are planning to use CodeDeploy to deploy an application for the first time to a brand new fleet of EC2 instances. Which deployment approach would you recommend?
In-Place
Rolling with additional batch
Blue / Green
Canary
A

In-Place

18
Q

You are deploying a new version of your application using a CodeDeploy In-Place upgrade. At the end of the deployment you test the application and discover that something has gone wrong. You need to roll back your changes as quickly as possible. What do you do?

  • Use CodeDeploy to redeploy the previous version of the application
  • Point all incoming requests to your development environment while you fix the problem with the failed deployment
  • Use the CodeDeploy roll back feature to seamlessly roll back to the previous version
  • Configure your load balancer to send all incoming requests to the original instances running the old version of the application
A

• Use CodeDeploy to redeploy the previous version of the application

19
Q
Which of the following Elastic Beanstalk deployment approaches allow you to maintain full capacity while performing an update?
•	All At Once
•	Rolling With Additional Batch
•	Immutable
•	Rolling
A

Rolling With Additional Batch

Immutable

20
Q

Where should the appspec.yml be stored?

  • In the .ebextentions folder
  • In the root of your application source directory
  • In the config directory in your application source directory
  • In /opt
A

In the root of your application source directory