Deployment Flashcards
What is the correct way to deploy the new version to Elastic Beanstalk via the CLI?
Package your application as a zip file and deploy it using the ‘eb deploy’ command.
What does the update-application command in elastic beanstalk do?
just updates the specified properties of the application. This command does not allow you to upload packages to Elastic Beanstalk.
What types of files can EB CLI deploy?
a ZIP file or WAR file that you generate as part of a separate build process by adding the following lines to .elasticbeanstalk/config.yml in your project folder:
deploy: artifact: path/to/buildartifact.zip
In ECS what are the two different launch types?
EC2 and Fargate. This means Fargate can’t use Container Instance IAM Role, that’s only for EC2. But Fargate tasks can use IAM Roles.
How to give an application in ECS using Fargate access to AWS resources? There are 4 different tasks that access different AWS resources.
Create 4 different IAM Roles with the required permissions and attach them to each of the 4 ECS tasks.
A serverless application is using API Gateway with a non-proxy Lambda Integration. A developer was tasked to expose a GET method on a new /getcourses resource to invoke the Lambda function, which will allow the consumers to fetch a list of online courses in JSON format. The consumers must include a query string parameter named courseType in their request to get the data.
What is the MOST efficient solution that the developer should do to accomplish this requirement?
In this scenario, you have to enforce the use of a required courseType query string parameter in the /getcourses resource in API Gateway. In order to do this, you can configure the method request of your resource.
Hence, the correct answer is to configure the method request of the resource.
With CodeDeploy what deployment type to use with Lambda?
Blue/Green (not in-place)
Where can CodeDeploy deploy to?
Amazon EC2 instances, on-premises instances, serverless Lambda functions, or Amazon ECS services.
Where can application content be stored and then used by CodeDeploy?
Amazon S3 buckets, GitHub repositories, or Bitbucket repositories.
What are the two deployment types of CodeDeploy?
In-place and Blue/Green. But on-premises can’t use b/g
What is the CodeDeploy agent used for?
The CodeDeploy agent is a software package that, when installed and configured on an instance, makes it possible for that instance to be used in CodeDeploy deployments. The CodeDeploy agent communicates outbound using HTTPS over port 443.
It is also important to note that the CodeDeploy agent is required only if you deploy to an EC2/On-Premises compute platform. The agent is not required for deployments that use the Amazon ECS or AWS Lambda compute platform.
How would you read records in the same order they are written to the Kinesis Data Stream? And prevent processing duplicates?
use PutRecord along with the SequenceNumberForOrdering parameter. And add a unique ID to each record.
What is Cognito Identity pools used for?
They provide temporary AWS credentials for users who are guests (unauthenticated) and for users who have been authenticated and received a token. An identity pool is a store of user identity data specific to your account.
User Pools is for authentication. A guest would not be in the User Pool and couldn’t be authenticated. But they could be given credentials by being in the Identity pool.
What API call is used for someone using an API to interact with S3 using an IAM Role (maybe other AWS Services?) ?
AssumeRole
A developer needs to configure the environment name, solution stack, and environment links of his application environment which will be hosted in Elastic Beanstalk. Which configuration file should the developer add in the source bundle to meet the above requirement?
env.yaml (maybe env.json also?)