Misc Flashcards
What are the lifecycle event hooks for CodeDeploy?
- Start (Cannot be scripted)
- BeforeInstall (EC2 only)
- Install (Cannot be scripted)
- AfterInstall (EC2 only)
- AllowTestTraffic (Cannot be scripted)
- AfterAllowTestTraffic (EC2 only)
- BeforeAllowTraffic (Lambda / EC2)
- AllowTraffic (Cannot be scripted)
- AfterAllowTraffic (Lambda / EC2)
- End (Cannot be scripted)
Where are CodeDeploy deploy instructions written? (in what file?)
Appspec.yml
What can you deploy to with CodeDeploy?
EC2, On Premise, Lambda and ECS
What type of deployments can you do with CodeDeploy?
In-Place or Blue/Green
What are the Elastic Beanstalk deployment options?
All at once Rolling Rolling with additional batch Immutable Blue/Green (Traffic Splitting Deployment Policy)
Which Elastic Beanstalk deployments deploy to new instances?
Rolling with additional batch
Immutable
What are the components of ECS?
- Cluster: Multiple EC2 instances which will house the docker containers
- Task Definition: A JSON file that defines the configuration of (up to 10) containers you want to run
- Task: Launches containers defined in Task Definition. Tasks do not remain running once the workload is complete
- Service: Ensures tasks remaining running eg. web app.
- Container Agent: Binary on each EC2 instance which monitors, starts, and stops tasks
What is the X-Ray header called which identifies a trace that passed along to downstream services
The Tracing Header is named X-Amzn-Trace-Id
What X-Ray component provides the resource’s name, details about the request, and details about the work done?
Segments
What X-Ray component provides more granular timing information and details about downstream calls that your app made to fulfill the original request?
Subsegments
What X-Ray component collects all segments generated by a single request so you can track the path of requests through multiple services?
Traces
What X-Ray component provides a flow chart visualization of average response for micro-services and to visually pinpoint the failure?
Service Graph
X-Ray supports which languages?
Go, NodeJS, Ruby, Java, Python, ASP.NET, PHP
X-Ray integrates with which AWS Services?
Lambda, API Gateway, App Mesh, CloudTrail, CloudWatch, AWS Config, EB, ELB, SNS, SQS, EC2, ECS, Fargate
In X-Ray, what allows you to capture additional information in key-value pairs?
Annotations and Metadata.
- Annotations are indexed for use with filter expressions with a limit of 50
- Metadata are not indexed. Use Metadata to record data you want to store in the trace but don’t need to use for searching traces
How does the X-Ray Daemon work?
X-Ray Daemon is a software application that listens for traffic on UDP port 2000, gathers raw segment data, and relays it to the AWS X-Ray API. Data is generally not sent directly to the X-Ray API and passes through the X-Ray Daemon which uploads in bulk
Which AWS service would allow the developer to fully test and debug any resource based policies before deploying the changes?
AWS Trusted Advisor is an online tool that provides you real time guidance to help you provision your resources following AWS best practices.
What ElastiCache feature is used to manage runtime settings?
Parameter groups.
Parameter groups are an easy way to manage runtime settings for supported engine software. Parameters are used to control memory usage, eviction policies, item sizes, and more. An ElastiCache parameter group is a named collection of engine-specific parameters that you can apply to a cluster. By doing this, you make sure that all of the nodes in that cluster are configured in exactly the same way.
What does a VPC flow log do?
capture all incoming and outgoing IP traffic within your VPC.
How to enable CloudWatch alarms triggered on a 10 second interval basis?
High Resolution Metrics can be as low as 10 seconds.
What RDS feature allows to see how different processes or threads on a DB instance use the CPU?
Enhanced Monitoring
How would you troubleshoot an EC2 application’s memory usage in CloudWatch?
Install CloudWatch Agent
Can you create access keys for an IAM role?
No, you cannot. Only for IAM users.
Using API Gateway with HTTP proxy for backend endpoints, how would you direct traffic to different endpoints for different stages e.g. dev, QA, prod?
Use stage variables in the HTTP integration request of the API.
With deployment stages in API Gateway, you can manage multiple release stages for each API, such as dev, QA and production. Using stage variables, you can configure an API deployment stage to interact with different backend endpoints.