In the CodeDeploy AppSpec file, what are hooks used for?
To specify code, scripts or functions that you want to run at set points in the deployment lifecycle
Which of the following platforms are supported in ElasticBeanstalk
• Node.js
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
10
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
ApplicationStop, BeforeInstall, AfterInstall, ApplicationStart
How does API Gateway handle SOAP?
SOAP is handled as web service pass-through
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
• docker push
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
The .ebextensions folder
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
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
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
• Step Functions
You are importing an existing API to API Gateway. Which format is supported for API definition files? • Swagger • RAML • Angular • OpenAPI
Swagger
Which of the following platforms are supported in ElasticBeanstalk? • Tomcat • Passenger • Docker • JBoss
Tomcat
Passenger
Docker
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
• 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 of the following are supported ways to upload and deploy your Lambda code?
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
Blue / Green
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.
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 the CodePipeline Manual Approvals feature
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
In-Place
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
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
Rolling With Additional Batch
Immutable
Where should the appspec.yml be stored?
In the root of your application source directory