SWE 645 Final Exam with all Correct & 100% Verified
Answers |Actual Complete Exam |Already Graded A+
(Just Released)
Basic python variables ✔Correct Answer-str (string), int, float, boolean
Python Collections - Container data types ✔Correct Answer-List, dictionary, tuple, set
Comprehension
Comprehension in Python ✔Correct Answer-used to create a new built-in data structure like a
list, a dictionary or a set from an existing data structure
three types of comprehension ✔Correct Answer-List
Set
Dictionary
how python syntax differs from java ✔Correct Answer-python doesn't have the semi colon
python relies on indentation rather than curly braces it uses x spaces for indentations as long as
its consistent (even a tab)
python doesn't declare the data type
python conditionals use a : (colon) rather than a curly brace
python 3 onward uses print(x) instead of print x
Syntax requires ____ after if, for, while, function def, etc. ✔Correct Answer-: COLON
Python uses indentation instead of ✔Correct Answer-{}, to specify blocks of code
Data science libraries add new data types to Python ✔Correct Answer-- ndarray (NumPy)
- Series (Pandas) and
- DataFrame (Pandas)
Sequence of characters in 'single' or "double quotes" ✔Correct Answer-string literals
'Hello' is same as "Hello" in python ✔Correct Answer-True
Strings are immutable ✔Correct Answer-Once assigned a value to a string, it can't be mutated
or changed.
mystring = 'hello'
mystring[0] = 'z' ✔Correct Answer-Error: item assignment not supported by str object
, SQL is optimized for ✔Correct Answer-storage
NoSQL is optimized for ✔Correct Answer-Compute
NoSQL is ✔Correct Answer-Denormalized/hierarchical
Instantiated views
scale horizontally
Built for OLTP at scale
SQL is ✔Correct Answer-Normalized/relations
Ad hox queries
Scale vertically
Good for OLAP
Partition key ✔Correct Answer-uniquely identifies item
used for building an unordered hash index
allows table to be partitioned for scale
Partition sort key ✔Correct Answer-uses two attributes together to uniquely identify an item
within unorded hash index data is arranged by the sort key
no lmimit on the number of items per partition key
Local secondary index ✔Correct Answer-alternate sort key atribute
index is local to partition key
Global Secondary Index ✔Correct Answer-Alternate partition and/or sort key
index is accross all partition keys
GSI update ✔Correct Answer-1. update request from client to table
2. update response from table to client
2(contd). asynchronous update (in progress from table to GSI)
what happens if GSI dont have enough write capacity ✔Correct Answer-the tables will be
throtled
when to use LSI ✔Correct Answer-LSI can be modeled as a GSI
if data size in an item collection is > 10GB ✔Correct Answer-use GSI
if eventual consistency is ok for your scenario ✔Correct Answer-use GSI
Scaling is based on ✔Correct Answer-throughput and size
Throughput ✔Correct Answer-Provision any amount of thorughput to a table
Answers |Actual Complete Exam |Already Graded A+
(Just Released)
Basic python variables ✔Correct Answer-str (string), int, float, boolean
Python Collections - Container data types ✔Correct Answer-List, dictionary, tuple, set
Comprehension
Comprehension in Python ✔Correct Answer-used to create a new built-in data structure like a
list, a dictionary or a set from an existing data structure
three types of comprehension ✔Correct Answer-List
Set
Dictionary
how python syntax differs from java ✔Correct Answer-python doesn't have the semi colon
python relies on indentation rather than curly braces it uses x spaces for indentations as long as
its consistent (even a tab)
python doesn't declare the data type
python conditionals use a : (colon) rather than a curly brace
python 3 onward uses print(x) instead of print x
Syntax requires ____ after if, for, while, function def, etc. ✔Correct Answer-: COLON
Python uses indentation instead of ✔Correct Answer-{}, to specify blocks of code
Data science libraries add new data types to Python ✔Correct Answer-- ndarray (NumPy)
- Series (Pandas) and
- DataFrame (Pandas)
Sequence of characters in 'single' or "double quotes" ✔Correct Answer-string literals
'Hello' is same as "Hello" in python ✔Correct Answer-True
Strings are immutable ✔Correct Answer-Once assigned a value to a string, it can't be mutated
or changed.
mystring = 'hello'
mystring[0] = 'z' ✔Correct Answer-Error: item assignment not supported by str object
, SQL is optimized for ✔Correct Answer-storage
NoSQL is optimized for ✔Correct Answer-Compute
NoSQL is ✔Correct Answer-Denormalized/hierarchical
Instantiated views
scale horizontally
Built for OLTP at scale
SQL is ✔Correct Answer-Normalized/relations
Ad hox queries
Scale vertically
Good for OLAP
Partition key ✔Correct Answer-uniquely identifies item
used for building an unordered hash index
allows table to be partitioned for scale
Partition sort key ✔Correct Answer-uses two attributes together to uniquely identify an item
within unorded hash index data is arranged by the sort key
no lmimit on the number of items per partition key
Local secondary index ✔Correct Answer-alternate sort key atribute
index is local to partition key
Global Secondary Index ✔Correct Answer-Alternate partition and/or sort key
index is accross all partition keys
GSI update ✔Correct Answer-1. update request from client to table
2. update response from table to client
2(contd). asynchronous update (in progress from table to GSI)
what happens if GSI dont have enough write capacity ✔Correct Answer-the tables will be
throtled
when to use LSI ✔Correct Answer-LSI can be modeled as a GSI
if data size in an item collection is > 10GB ✔Correct Answer-use GSI
if eventual consistency is ok for your scenario ✔Correct Answer-use GSI
Scaling is based on ✔Correct Answer-throughput and size
Throughput ✔Correct Answer-Provision any amount of thorughput to a table