0
0
Hadoopdata~20 mins

Migration from Hadoop to cloud-native - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Cloud Migration Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate
2:00remaining
Key advantage of cloud-native over Hadoop
Which of the following is the main advantage of migrating from Hadoop to a cloud-native data platform?
ACloud-native platforms require manual resource allocation for each job to optimize costs.
BCloud-native platforms provide automatic scaling and managed services reducing operational overhead.
CHadoop clusters are easier to set up and require less maintenance than cloud-native platforms.
DHadoop supports serverless computing natively, unlike cloud-native platforms.
Attempts:
2 left
💡 Hint
Think about how cloud platforms handle resources compared to traditional Hadoop clusters.
data_output
intermediate
2:00remaining
Output of data migration script
Given the following Python pseudocode for migrating data from HDFS to cloud storage, what will be the output summary?
Hadoop
files = ['file1.csv', 'file2.csv', 'file3.csv']
migrated = []
for f in files:
    if f.endswith('.csv'):
        migrated.append(f)
print(f'Migrated {len(migrated)} files: {migrated}')
AMigrated 2 files: ['file1.csv', 'file2.csv']
BMigrated 0 files: []
CMigrated 3 files: ['file1.csv', 'file2.csv', 'file3.csv']
DMigrated 3 files: ['file1.csv', 'file2.csv']
Attempts:
2 left
💡 Hint
Check which files end with '.csv' in the list.
🔧 Debug
advanced
2:00remaining
Identify error in cloud migration script
What error will the following Python code raise during migration?
Hadoop
def migrate_data(files):
    migrated = {}
    for f in files:
        migrated[f] = migrated.get(f, 0) + 1
    return migrated

files = ['data1', 'data2', 'data1']
result = migrate_data(files)
print(result['data3'])
AKeyError because 'data3' is not in the dictionary.
BSyntaxError due to missing colon in function definition.
CNo error, output will be {'data1': 2, 'data2': 1, 'data3': 0}.
DTypeError because dictionary keys must be integers.
Attempts:
2 left
💡 Hint
Check what happens when accessing a dictionary key that does not exist.
visualization
advanced
2:00remaining
Interpreting migration progress chart
A line chart shows the number of files migrated over time during a Hadoop to cloud migration. The line starts slow, then sharply rises, then plateaus. What does this pattern most likely indicate?
AFiles were deleted instead of migrated, causing the plateau.
BConstant migration speed with no changes in resource allocation.
CMigration failed early and restarted multiple times.
DInitial setup delays, followed by fast migration, then resource limits causing slowdown.
Attempts:
2 left
💡 Hint
Think about common phases in large data migrations and resource usage.
🚀 Application
expert
3:00remaining
Choosing the best cloud-native tool for batch processing
You need to migrate a Hadoop batch processing job to a cloud-native environment. The job processes large datasets with complex transformations and requires fault tolerance. Which cloud-native tool is best suited?
AApache Spark on managed Kubernetes with autoscaling and checkpointing.
BSimple cloud storage buckets with manual script execution.
CServerless functions with 1-minute execution limits.
DRelational database triggers for batch processing.
Attempts:
2 left
💡 Hint
Consider fault tolerance, scalability, and batch processing capabilities.