Misc Flashcards

1
Q

What is the difference between a data lake and a data warehouse in Azure?

A

A data lake holds data of all structure types, including raw and unprocessed data.

A data warehouse stores data that has been treated and transformed with a specific purpose in mind, which can then be used to source analytic or operational reporting.

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

What is Delta Lake?

A

An open approach to bringing data management and governance to data lakes

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

Cluster Types

A

All-Purpose - notebooks
Job - automated jobs

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

UML

A

Unified Modeling Language

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

Boxing

A

When a struct value is assigned to a variable that stores references, like the first line above, the
data is pushed out to another location on the heap, in its own little container—a box. A
reference to the box is then stored in the thing variable.

object thing = 3;

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

Unboxing

A

After ensuring that the type is correct, the box’s
contents are extracted—an unboxing conversion—and copied into the number variable.

int number = (int)thing;

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

Records

A

public record Point(float X, float Y); // That’s all.
The typical situation where a record makes sense is when your type
is little more than a set of properties—a data-focused entity.

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

Difference between struct and class

A

struct is value type and class is reference type

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

generic type contrainst

A

Where T : objectType

restricts a generic to specified type

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

stringbuilder

A

saves memory by hanging on to fragments of strings and not assembling them into final string until it is done

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

difference between out and ref

A

ref - must be initialized first
out - need not be initialized first but initialized in the method

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

difference between throw and throw e

A

throw - A bare throw; statement will rethrow the caught exception without modifying its original
stack trace
throw e -

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

difference between throw and throw e

A

throw - A bare throw; statement will rethrow the caught exception without modifying its original
stack trace
throw e - That
means when you throw an exception, as shown above, the stack trace will change to its new
location in this catch block, losing useful information.

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

delegate

A

a variable that stores methods, allowing them to be passed around like an object

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

closure

A

A method plus any captured variables from its
environment is called a closure

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

explicit/implicit operator

A

explicit - warn someone not to lose data without specifically asking for it (ie. double to int)
implicit - (ie. int to double)

17
Q

components of kafka

A

topics - categories to store/save info
producers - data sources for topics
consumers - read data through messages and topics
brokers - server part of a kafka cluster

18
Q

kafka partition

A

allows kafka to scale by partitioning a topic across clusters