June 2023 Flashcards

1
Q

Requirements for publishing a Github package (4)

A

1) npm publish (the command)
2) .npmrc (file with credentials)
3) {GITHUB_PACKAGES_TOKEN} in .env
4) valid “create packages” user token from Github

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

SCP (AWS Context)

A

Service Control Policies (only inside AWS Organizations, there are other perm-management control elsewhere)

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

HAProxy

A

High Availability Load Balancer

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

Protocols supported by the Application Load Balancer (AWS)

A

HTTP, HTTPS, WebSocket

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

Protocols supported by the Network Load Balancer (AWS)

A

TCP, TLS (secureTCP), UDP

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

PCAP

A

Packet Capture
an API for capturing network traffic

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

Autoware definition.
What is it built upon?
Important modules (5)

A

Autoware is an open-source software project for autonomous driving.
built on Robot Operating System (ROS)
Set of modules:
sensing
perception
planning
decision
actuation

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

MMC

A

Michigan Mobility Collaboration (Detroit Project)

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

Markov Chain

A

A stochastic model describing a sequence of possible events in which the probability of each event depends only on the state attained in the previous event.

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

SAE Specs as a group

A

J2735 - V2x message set (SPaT, MAP, BSM) used by DSRC & CV2X
J3016 - Levels
J3018 guidelines for testing Automated Vehicles
J3224 - SDSM (Sensor Data Sharing Message)

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

Common ROS objects (4)

A

topic
node
interface
parameter

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

Common Ros Commands (7)

A

list
info
echo
hz
bw
pub
play/record

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

Dave Leblanc

A

Acting Head of the Vehicle Systems & Control Group at UMTRI

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

Adding new company to allow registration (in Keys)

A

Need to set the membership field & the authorized domain.

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

Amazon Organizations (4 main concepts)

A

OU - Organizational Unit
Root OU
infinitely nest-able OUs
SCP applied to each OU

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

AWS IAM Advanced Policies (6)

A

aws:SourceIp
aws:RequestedRegion
ec2:ResourceTag/Project
aws:PrincipalTag/Department
aws:MultiFactorAuthPresent
aws:PrincipalOrdID

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

AWS IAM Advanced Policy Gotcha with S3 actions

A

Targeting buckets bucket-name-path
Targeting objects bucket-name-path/*

18
Q

What is HDF5 (5 “things”)

A

Hierarchical Data Format
HDF5 is the latest version
B-tree indexing
resources are accessed via POSIX style syntax /path/to/resource
faster than a RDB

19
Q

Raster Image

A

An image in the 2D format that you are used to. x and y pixel coords… Yup, that simple.

20
Q

AWS Route53 Health checks (3 kinds)

A

Health Checks
Calculated Health Checks (aggregate of health checks)
Cloudwatch Health Checks

21
Q

AWS Fargate

A

Serverless way to host AWS ECS workloads. No management of servers or clusters.

22
Q

AWS AMI

A

Amazon Machine Image

23
Q

AWS EBS

A

Amazon Elastic Block Store

24
Q

AWS ACM

A

Amazon Certificate Management

25
Q

AWS ALB

A

Application Load Balancer

26
Q

AWS NLB

A

Network Load Balancer

27
Q

AWS CLB

A

Classic Load Balancer

28
Q

AWS Draining

A

Concept of when an EC2 instance is going down. It must first serve all pending requests.

29
Q

AWS ASG (& kinds offered (2))

A

Amazon Auto Scaling Groups
Scale-in
Scale-Out

30
Q

AWS Dynamic Scaling Policies (4)

A

Target Tracking Scaling
Simple/Step Scaling
Scheduled Actions
Predictive Scaling (ML based)

31
Q

AWS Good Typical metrics to use to drive Scaling (4)

A

CPU utilization
Request Count Per Target
Avg. Network In/Out
Custom Cloud Watch

32
Q

AWS Scaling Cooldown (and default)

A

Default is 300 s (5 mins). Cool off after a scaling event, so you don’t get cascading scaling. (don’t be too fast)

33
Q

AWS Load Balancing: How to keep repeat calls form one location on the same instance

A

Turn on sticky connections.

34
Q

Amazon CloudTrail?

A

Auditing Tool
Trail as in audit trail.
Tracks users actions in AWS: management console, CLI, SDKs, and APIs

35
Q

How do you delete a terminated EC2 instance?

A

Just wait. It will go away eventually.

36
Q

Delete old branch (Git, 3 steps, first in English, then Git commands)

A

Checkout main
push delete command to remote/origin
fetch prune

git checkout main
git push origin –delete branch
git fetch -p

37
Q

Best way to pull in changes from main (if you are the only one using the branch)

A

git checkout branch
git rebase main

deal with conflicts

38
Q

Merge a branch into main

A

git checkout main
git merge branch

39
Q

Difference between git revert & git reset

A

git reset just pushes the HEAD pointer to the requested spot. This is OK to do when working in your private branch.
git revert just undoes a particular changeset and creates a new change to track those undo changes. This is the preferred method.

40
Q

How to update requirements.txt (and when to do it)

A

pip freeze > requirements.txt
usually after running a pip install (and testing it of course)

41
Q

How to open a file in the VSCode editer

A

code <filename></filename>

42
Q

ASGI

A

Asynchronous Server Gateway Interface
A spiritual successor to WSGI
Intended to provide a standard interface among async-capable Python web servers, frameworks and apps