Development with AWS Services Flashcards
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
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
- Chef
- Single Container Docker
- Java with Tomcat
• Node.js
- Single Container Docker
- Java with Tomcat
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 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
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?
- 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
- 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
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.
- 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.
• 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.