architect Flashcards

1
Q

Reverse proxy, forward proxy, examples.

A

Reverse proxy (more popular) a server or software component that sits between client devices and web servers. It receives client requests and forwards them to the appropriate backend servers. Unlike a forward proxy that handles client requests on behalf of the clients, a reverse proxy acts on behalf of the servers to handle incoming requests from clients.
e.g. Nginx for web application (forward, reverse), HAProxy, Apache Http server or Apache (reverse),

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

what does HTTP Request, REST API HTTP request response?

A

HTTP Request -> HTML (source code of web page)
REST API HTTP Request -> JSON (not for human to read)

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

k8s NodePort: targetPort, port, nodePort. Which one is mandtory?

A

Port. Therefore the targetPort will be the same as it. NodePort is randomly assigned. targetPort is the exposed port number of the pod. port is the port on the service object.

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

k8s service endpoint number how to check?

A

kubectl describe svc will print the endpoints. Endpoint mainly means the pods which the service is connecting.

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

K8s ingress controller vs load balancer? Vs nginx server?

A

Ingress controller contains load balancer + nginx server + other functions

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

K8s ingress controller role in k8s?

A

Ingress controller helps the apps deployed in k8s using a single accessible url that you can configure routes to different services within your cluster based on the url path. It also implement ssl security.

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

What kind of k8s object need to set up ingress controller?

A

Deployment, service type of node port, configMap, service account.

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

Term of ingress rules?

A

Ingress resources

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

链接cluster的网址怎么config?可以有多个吗?

A

Get different domain name, and then add multiple DNS entries all pointing to the same ingress controller service on your cluster

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

imperative vs declarative ? Explain in the context of k8s.

A

imperative means: cli tool to create sth.
declarative: use yaml manifest

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

multi-namespaces, how to create ing?

A

create ing in each ns

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

use exponential backoff to retry? meaning?

A

The term “backoff” refers to the practice of delaying subsequent attempts at retrying a failed operation. This delay is typically implemented to avoid overwhelming a system, reducing the chances of further failures due to excessive load or congestion. The backoff time can vary depending on the context.

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

OpenID connect? SSO? Their relationship? Any other similar tech to OpenID connect?

A

OpenID connect is a authentication protocol. It allows users to login to various app/web via a single set of credentials (google login). Similar tech like SAML. SAML and OpenID connect can be used to implement SSO. SSO, Social Login are similar things, the are just the concepts of above.

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

DNS? CNAME?

A

when type a url in browser, DNS system translate that domain name into IP points to the server where the website is hosted. In DNS, different types of DNS records serve various purposes in mapping domain names to specific resources or services on the internet. CNAME is a type of DNS record. A CNAME record allows one domain name to be an alias for another domain.

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

What is DNS? Explain an example DNS record type: A record

A

“A record” (Address record) is one of the fundamental types of DNS records used to translate domain names into IP addresses.

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

Apigee? main use case?

A

Apigee can be used to build reserver proxy for API, but it covers the whole lifecycle of APIs