AWS Certified Machine Learning Specialty · Free Practice Question Medium
Question 7
A fintech startup is looking to streamline its nightly machine learning model training process, which involves a series of dependent ETL tasks. The goal is to find an approach that sequences these tasks efficiently, manages dependencies, and handles potential errors automatically. Which AWS service and feature combination best aligns with these requirements?
-
A
Apply Amazon SQS for task decoupling, using AWS Lambda for custom task sequencing and error management.
-
B
Use AWS Step Functions' workflow orchestration to manage the sequence of tasks
-
C
Implement Managed Workflows for Apache Airflow (MWAA) for flexible workflow orchestration
-
D
Leverage AWS Batch's job scheduling capabilities for executing batch jobs
Reveal correct answer
Correct answer: B
Explanation
Selecting the right AWS service to automate a sequence of ETL tasks for nightly machine learning model training requires balancing ease of orchestration, flexibility, and the ability to manage complex dependencies and errors. Each service offers unique advantages for workflow management, task execution, and error handling. Here's how each choice measures up for orchestrating a sophisticated machine learning pipeline:
Correct Choice: Use AWS Step Functions' workflow orchestration to manage the sequence of tasks
AWS Step Functions is ideally suited for complex workflows, offering serverless orchestration that simplifies the management of task sequences and dependencies. Its visual interface and direct integration with AWS services make it a robust solution for error handling and executing dependent tasks in a predefined order, ensuring a seamless flow from ETL processes to machine learning model training.
Incorrect Choice: Leverage AWS Batch's job scheduling capabilities for executing batch jobs
AWS Batch excels at efficiently managing and executing batch processing jobs at scale. It automatically provisions resources based on the job's requirements, optimizing for cost and performance. However, when it comes to orchestrating a sequence of dependent tasks, AWS Batch would require integration with another service, like AWS Step Functions, to manage the workflow effectively.
Incorrect Choice: Apply Amazon SQS for task decoupling, using AWS Lambda for custom task sequencing and error management.
Combining Amazon SQS with AWS Lambda offers a highly customizable approach to workflow management, where SQS decouples tasks for increased reliability and scalability, and Lambda functions are used to control the sequence and handle errors. This method provides flexibility but requires more development effort to implement custom sequencing logic and error handling mechanisms.
Incorrect Choice: Implement Managed Workflows for Apache Airflow (MWAA) for flexible workflow orchestration
Managed Workflows for Apache Airflow (MWAA) brings the power of Apache Airflow's programmable workflows to the AWS cloud, allowing for highly customizable and flexible orchestration of complex data processing tasks. It supports a wide range of integrations and plugins, making it suitable for scenarios that require specific workflow customizations beyond what AWS-native solutions provide. This choice offers deep control over task sequencing and integration but involves a steeper learning curve and potentially more management overhead compared to serverless options.
In summary, the selection depends on the specific needs of the workflow, including the complexity of the tasks, the level of customization required, and the preference for serverless versus managed services. AWS Step Functions offers a balance of ease of use and integration for straightforward workflows, while MWAA provides maximum flexibility for complex, customized orchestrations. Using SQS and Lambda together demands more custom development but offers granular control over task management.
Discussion
Think the marked answer is wrong, or have a better explanation? Share it below — comments appear after review.
