Security Flashcards

1
Q

In computing, the ______-_______-_____ is an important concept in teh web applciation security model.

A

same-origin-policy

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

Under teh same-origin-policy, a web browser permits scripts caontined in a first web apge to access data in a second web page, but only if both web pages have the same origin. This is done to prevent _______.

A

Cross site scripting - XSS.

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

T or F

(SOP) same-origin-policy is enforced by web browsers and ignored by tools like postman and curl.

A

True

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

____ is one way the server at the other end (not the client code in the browser) can relax the same-origin-policy.

A

Cross origin resource sharing (CORS)

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

______ is a machanism that allows restricted resources (ie: fonts) on a web page to be requested from another domain outside the domain from which the first resource was served.

A

Corss origin resource sharing (CORS)

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

Cross Origin Resource Sharing (CORS)

  • browser makes an HTTP options call for a URL
  • options is an HTTP method like Get, Put, and Post

Server returns a resonse that says:

“These other domains are approved ti Get this URL”

-Error - “Origin policy can’t be read at the remote resource?”

You need to enable CORS on API GW

A

just read the other card.

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

what is cloud HSM?

A

a dedicated Hardware Security MOdel

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

cloudHSM confirms to FIPS 140-2 Level 3

A

yes

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

Cloud HSM is level__ KMS

A

2

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

AWS manages the keys with cloud HSM

t or f

A

false, you manage the keys

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

t or fo

cloudhsm is a single tenant, dedicated hardware, multi az cluster

A

t

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

cloud hsm works with industry standard APIs, not aWS apis

A

t

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

HSM keys are irretrievable

t or f

A

t

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

what is parameter store

A

secure serverless storage for configuration and secrets

like passwords, db connection strings, license codes, api keys, etc.

think vault

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

how to you retrieve parameters in a hierarchy for ssm param store?

A

GetParametersByPAth api call

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

what is secrets manager

A

similar to param store but charges per secret stroed and per 10,000 api calls

17
Q

why secrets manager?

A

it rotates keys with rds automatically

18
Q

secrets manager cna generate random secrets

t or f?

A

t

19
Q

what is aws shield

A

protects against distributed denial of service (DDoS) attacks

20
Q

is this sheidl standard or advanced?

-protects against common layer 3 and 4 attacks

SYN/UDP floods

reflection attacks

very effective

A

standard

21
Q

features of shield advanced

3k per month

enhanced protection for ec2, elb, cf, global accelerator, route53

  • business and enterprise support customers get 24/7 access to ddos response team (DRT)
  • ddos cost protection
A

yes

22
Q

WAF = ?

A

web application firewall

23
Q

what does waf do?

A

lets you monitor https requests to CF, ALB, or API GW

24
Q

what filtering rules can you use with WAF?

A

ip addresses

query string params

sql query injection

25
Q

when waf blocks traffic, what error code is returned?

A

403

26
Q

what are the 3 waf behaviors?

A

allow, block, count

27
Q

___ ____ is a security management service that allows you to centrally configure and manage firewall rules across an aws organization

A

firewall manager